mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
consul: Document example check id
This commit is contained in:
@@ -1116,6 +1116,8 @@ func makeTaskServiceID(allocID, taskName string, service *structs.Service, canar
|
||||
}
|
||||
|
||||
// makeCheckID creates a unique ID for a check.
|
||||
//
|
||||
// Example Check ID: _nomad-check-434ae42f9a57c5705344974ac38de2aee0ee089d
|
||||
func makeCheckID(serviceID string, check *structs.ServiceCheck) string {
|
||||
return fmt.Sprintf("%s%s", nomadCheckPrefix, check.Hash(serviceID))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user