MCPcopy
hub / github.com/ory/keto / getLabelValue

Function getLabelValue

internal/driver/daemon_test.go:141–149  ·  view source on GitHub ↗
(name string, metric []*ioprometheusclient.Metric)

Source from the content-addressed store, hash-verified

139}
140
141func getLabelValue(name string, metric []*ioprometheusclient.Metric) string {
142 for _, label := range metric[0].Label {
143 if *label.Name == name {
144 return *label.Value
145 }
146 }
147
148 return ""
149}

Callers 1

TestScrapingEndpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected