metrics

package
v1.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMetrics        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMetrics          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group")
)

Functions

func MapFromList

func MapFromList(l *MetricsList) map[string]interface{}

MapFromList returns a map with the values from the list

Types

type Metric

type Metric struct {
	Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	// Types that are valid to be assigned to Value:
	//	*Metric_ValUint64
	//	*Metric_ValString
	Value isMetric_Value `protobuf_oneof:"Value"`
}

func (*Metric) Descriptor

func (*Metric) Descriptor() ([]byte, []int)

func (*Metric) Equal

func (this *Metric) Equal(that interface{}) bool

func (*Metric) GetKey

func (m *Metric) GetKey() string

func (*Metric) GetValString

func (m *Metric) GetValString() string

func (*Metric) GetValUint64

func (m *Metric) GetValUint64() uint64

func (*Metric) GetValue

func (m *Metric) GetValue() isMetric_Value

func (*Metric) GoString

func (this *Metric) GoString() string

func (*Metric) Marshal

func (m *Metric) Marshal() (dAtA []byte, err error)

func (*Metric) MarshalTo

func (m *Metric) MarshalTo(dAtA []byte) (int, error)

func (*Metric) MarshalToSizedBuffer

func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) Size

func (m *Metric) Size() (n int)

func (*Metric) String

func (this *Metric) String() string

func (*Metric) Unmarshal

func (m *Metric) Unmarshal(dAtA []byte) error

func (*Metric) XXX_DiscardUnknown

func (m *Metric) XXX_DiscardUnknown()

func (*Metric) XXX_Marshal

func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metric) XXX_Merge

func (m *Metric) XXX_Merge(src proto.Message)

func (*Metric) XXX_OneofWrappers

func (*Metric) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Metric) XXX_Size

func (m *Metric) XXX_Size() int

func (*Metric) XXX_Unmarshal

func (m *Metric) XXX_Unmarshal(b []byte) error

type Metric_ValString

type Metric_ValString struct {
	ValString string `protobuf:"bytes,3,opt,name=ValString,proto3,oneof" json:"ValString,omitempty"`
}

func (*Metric_ValString) Equal

func (this *Metric_ValString) Equal(that interface{}) bool

func (*Metric_ValString) GoString

func (this *Metric_ValString) GoString() string

func (*Metric_ValString) MarshalTo

func (m *Metric_ValString) MarshalTo(dAtA []byte) (int, error)

func (*Metric_ValString) MarshalToSizedBuffer

func (m *Metric_ValString) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_ValString) Size

func (m *Metric_ValString) Size() (n int)

func (*Metric_ValString) String

func (this *Metric_ValString) String() string

type Metric_ValUint64

type Metric_ValUint64 struct {
	ValUint64 uint64 `protobuf:"varint,2,opt,name=ValUint64,proto3,oneof" json:"ValUint64,omitempty"`
}

func (*Metric_ValUint64) Equal

func (this *Metric_ValUint64) Equal(that interface{}) bool

func (*Metric_ValUint64) GoString

func (this *Metric_ValUint64) GoString() string

func (*Metric_ValUint64) MarshalTo

func (m *Metric_ValUint64) MarshalTo(dAtA []byte) (int, error)

func (*Metric_ValUint64) MarshalToSizedBuffer

func (m *Metric_ValUint64) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_ValUint64) Size

func (m *Metric_ValUint64) Size() (n int)

func (*Metric_ValUint64) String

func (this *Metric_ValUint64) String() string

type MetricsList

type MetricsList struct {
	Metrics []Metric `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics"`
}

func ListFromMap

func ListFromMap(metricsMap map[string]interface{}) *MetricsList

ListFromMap returns a list of values from the provided map

func (*MetricsList) Descriptor

func (*MetricsList) Descriptor() ([]byte, []int)

func (*MetricsList) Equal

func (this *MetricsList) Equal(that interface{}) bool

func (*MetricsList) GetMetrics

func (m *MetricsList) GetMetrics() []Metric

func (*MetricsList) GoString

func (this *MetricsList) GoString() string

func (*MetricsList) Marshal

func (m *MetricsList) Marshal() (dAtA []byte, err error)

func (*MetricsList) MarshalTo

func (m *MetricsList) MarshalTo(dAtA []byte) (int, error)

func (*MetricsList) MarshalToSizedBuffer

func (m *MetricsList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MetricsList) ProtoMessage

func (*MetricsList) ProtoMessage()

func (*MetricsList) Reset

func (m *MetricsList) Reset()

func (*MetricsList) Size

func (m *MetricsList) Size() (n int)

func (*MetricsList) String

func (this *MetricsList) String() string

func (*MetricsList) Unmarshal

func (m *MetricsList) Unmarshal(dAtA []byte) error

func (*MetricsList) XXX_DiscardUnknown

func (m *MetricsList) XXX_DiscardUnknown()

func (*MetricsList) XXX_Marshal

func (m *MetricsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetricsList) XXX_Merge

func (m *MetricsList) XXX_Merge(src proto.Message)

func (*MetricsList) XXX_Size

func (m *MetricsList) XXX_Size() int

func (*MetricsList) XXX_Unmarshal

func (m *MetricsList) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL