MCPcopy Create free account
hub / github.com/cortexproject/cortex / shouldConvertV2Metadata

Function shouldConvertV2Metadata

pkg/util/push/push.go:280–282  ·  view source on GitHub ↗
(metadata cortexpb.MetadataV2)

Source from the content-addressed store, hash-verified

278}
279
280func shouldConvertV2Metadata(metadata cortexpb.MetadataV2) bool {
281 return !(metadata.HelpRef == 0 && metadata.UnitRef == 0 && metadata.Type == cortexpb.METRIC_TYPE_UNSPECIFIED) //nolint:staticcheck
282}
283
284func convertV2ToV1Metadata(name string, symbols []string, metadata cortexpb.MetadataV2) (*cortexpb.MetricMetadata, error) {
285 t := cortexpb.UNKNOWN

Callers 1

convertV2RequestToV1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected