Converted diagnosis socket Info to a struct.

Review: https://reviews.apache.org/r/26290