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