Documentation ¶
Index ¶
- Variables
- func CloneLabelPairs(pairs []*dto.LabelPair) []*dto.LabelPair
- type Desc
- func (*Desc) Descriptor() ([]byte, []int)deprecated
- func (x *Desc) GetConstLabelPairs() []*_go.LabelPair
- func (x *Desc) GetDimHash() uint64
- func (x *Desc) GetFQName() string
- func (x *Desc) GetHelp() string
- func (x *Desc) GetID() uint64
- func (x *Desc) GetVariableLabels() []string
- func (x *Desc) GetXPadding1() uint64
- func (x *Desc) GetXPadding2() uint64
- func (*Desc) ProtoMessage()
- func (x *Desc) ProtoReflect() protoreflect.Message
- func (x *Desc) Reset()
- func (x *Desc) String() string
- func (d *Desc) ToPrometheusDesc() *prometheus.Desc
- func (d *Desc) ToPrometheusDescUnsafe() *prometheus.Desc
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_rancher_opni_pkg_metrics_desc_desc_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Desc ¶
type Desc struct { FQName string `protobuf:"bytes,1,opt,name=FQName,proto3" json:"FQName,omitempty"` Help string `protobuf:"bytes,2,opt,name=Help,proto3" json:"Help,omitempty"` ConstLabelPairs []*_go.LabelPair `protobuf:"bytes,3,rep,name=ConstLabelPairs,proto3" json:"ConstLabelPairs,omitempty"` VariableLabels []string `protobuf:"bytes,4,rep,name=VariableLabels,proto3" json:"VariableLabels,omitempty"` ID uint64 `protobuf:"varint,5,opt,name=ID,proto3" json:"ID,omitempty"` DimHash uint64 `protobuf:"varint,6,opt,name=DimHash,proto3" json:"DimHash,omitempty"` XPadding1 uint64 `protobuf:"fixed64,7,opt,name=_padding1,json=Padding1,proto3" json:"_padding1,omitempty"` XPadding2 uint64 `protobuf:"fixed64,8,opt,name=_padding2,json=Padding2,proto3" json:"_padding2,omitempty"` // contains filtered or unexported fields }
func FromPrometheusDesc ¶
func FromPrometheusDesc(desc *prometheus.Desc) *Desc
FromPrometheusDesc returns a prometheus.Desc reinterpreted as a desc.Desc. This function performs a shallow-copy, so it may not be safe to use the original object afterwards.
func (*Desc) Descriptor
deprecated
func (*Desc) GetConstLabelPairs ¶
func (*Desc) GetDimHash ¶
func (*Desc) GetVariableLabels ¶
func (*Desc) GetXPadding1 ¶
func (*Desc) GetXPadding2 ¶
func (*Desc) ProtoMessage ¶
func (*Desc) ProtoMessage()
func (*Desc) ProtoReflect ¶
func (x *Desc) ProtoReflect() protoreflect.Message
func (*Desc) ToPrometheusDesc ¶
func (d *Desc) ToPrometheusDesc() *prometheus.Desc
ToPrometheusDesc converts a deep-copy of a desc.Desc to a prometheus.Desc. It is safe to use the original object after calling this function.
func (*Desc) ToPrometheusDescUnsafe ¶
func (d *Desc) ToPrometheusDescUnsafe() *prometheus.Desc
ToPrometheusDescUnsafe returns a desc.Desc reinterpreted as a prometheus.Desc. It is *not* safe to use the original object after calling this function.
Click to show internal directories.
Click to hide internal directories.