Skip to content

Commit

Permalink
consul: Document example check id
Browse files Browse the repository at this point in the history
  • Loading branch information
endocrimes committed May 9, 2019
1 parent 14c231a commit 3d3b2ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions command/agent/consul/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 3d3b2ca

Please sign in to comment.