You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/01/27 16:54:29 UTC

[GitHub] [trafficcontrol] mhoppa commented on a change in pull request #4325: Servers/checks go

mhoppa commented on a change in pull request #4325: Servers/checks go
URL: https://github.com/apache/trafficcontrol/pull/4325#discussion_r371357351
 
 

 ##########
 File path: lib/go-tc/serverchecks.go
 ##########
 @@ -35,36 +35,42 @@ type ServerchecksResponse struct {
 	Response []Servercheck `json:"response"`
 }
 
-// Servercheck is a single Servercheck struct for GET response.
-// swagger:model Servercheck
-type Servercheck struct {
+// CommonCheckFields is a structure containing all of the fields common to both
+// Serverchecks and GenericServerChecks.
+type CommonCheckFields struct {
 
-	// The Servercheck response data
-	//
-	// Admin state of the checked server
+	// AdminState is the server's status - called "AdminState" for legacy reasons.
 	AdminState string `json:"adminState"`
 
-	// Cache group the checked server belongs to
+	// CacheGroup is the name of the Cache Group to which the server belongs.
 	CacheGroup string `json:"cacheGroup"`
 
-	// ID number of the checked server
+	// ID is the integral, unique identifier of the server.
 	ID int `json:"id"`
 
-	// Hostname of the checked server
+	// HostName of the checked server.
 	HostName string `json:"hostName"`
 
-	// Reval pending flag for checked server
+	// RevalPending is a flag that indicates if revalidations are pending for the checked server.
 	RevalPending bool `json:"revalPending"`
 
-	// Profile name of checked server
+	// Profile is the name of the Profile used by the checked server.
 	Profile string `json:"profile"`
 
-	// Traffic Control type of the checked server
+	// Type is the name of the server's Type.
 	Type string `json:"type"`
 
-	// Update pending flag for the checked server
+	// UpdPending is a flag that indicates if updates are pending for the checked server.
 	UpdPending bool `json:"updPending"`
 
+}
+
+// Servercheck is a single Servercheck struct for GET response.
+// swagger:model Servercheck
 
 Review comment:
   whats this swagger:model? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services