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

Method GetIDByKey

server/controller/prometheus/cache/target.go:161–163  ·  view source on GitHub ↗
(key TargetKey)

Source from the content-addressed store, hash-verified

159}
160
161func (t *target) GetIDByKey(key TargetKey) (int, bool) {
162 return t.keyToTargetID.Load(key)
163}
164
165func (t *target) GetLabelNamesByID(id int) []string {
166 return t.targetIDToLabelNames.Load(id)

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected