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

Struct MetadataV2

pkg/cortexpb/cortex.pb.go:494–504  ·  view source on GitHub ↗

Metadata represents the metadata associated with the given series' samples.

Source from the content-addressed store, hash-verified

492
493// Metadata represents the metadata associated with the given series' samples.
494type MetadataV2 struct {
495 Type MetadataV2_MetricType `protobuf:"varint,1,opt,name=type,proto3,enum=cortexpb.MetadataV2_MetricType" json:"type,omitempty"`
496 // help_ref is a reference to the Request.symbols array representing help
497 // text for the metric. Help is optional, reference should point to an empty string in
498 // such a case.
499 HelpRef uint32 `protobuf:"varint,3,opt,name=help_ref,json=helpRef,proto3" json:"help_ref,omitempty"`
500 // unit_ref is a reference to the Request.symbols array representing a unit
501 // for the metric. Unit is optional, reference should point to an empty string in
502 // such a case.
503 UnitRef uint32 `protobuf:"varint,4,opt,name=unit_ref,json=unitRef,proto3" json:"unit_ref,omitempty"`
504}
505
506func (m *MetadataV2) Reset() { *m = MetadataV2{} }
507func (*MetadataV2) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected