From 3d3b2ca2390c70707ef4d31213ade7d270239b92 Mon Sep 17 00:00:00 2001 From: Danielle Lancashire Date: Thu, 9 May 2019 13:22:22 +0200 Subject: [PATCH] consul: Document example check id --- command/agent/consul/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/agent/consul/client.go b/command/agent/consul/client.go index ff5af7282..ae095c863 100644 --- a/command/agent/consul/client.go +++ b/command/agent/consul/client.go @@ -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)) }