MCPcopy Create free account
hub / github.com/deepflowio/deepflow / NewTargetKey

Function NewTargetKey

server/controller/prometheus/cache/target.go:44–51  ·  view source on GitHub ↗
(instance, job string, vpcID, podClusterID int)

Source from the content-addressed store, hash-verified

42}
43
44func NewTargetKey(instance, job string, vpcID, podClusterID int) TargetKey {
45 return TargetKey{
46 Instance: instance,
47 Job: job,
48 VPCID: vpcID,
49 PodClusterID: podClusterID,
50 }
51}
52
53type keyToTargetID struct {
54 lock sync.Mutex

Callers 2

AddMethod · 0.85
refreshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected