metric

package
v0.0.0-...-c02b23a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricType_name = map[int32]string{
	0:  "INT",
	1:  "FLOAT",
	2:  "HWADDR",
	3:  "IPADDR",
	4:  "STRING",
	5:  "BOOL",
	9:  "BYTES",
	10: "TIMETICKS",
}
View Source
var MetricType_value = map[string]int32{
	"INT":       0,
	"FLOAT":     1,
	"HWADDR":    2,
	"IPADDR":    3,
	"STRING":    4,
	"BOOL":      5,
	"BYTES":     9,
	"TIMETICKS": 10,
}

Functions

This section is empty.

Types

type Float64

type Float64 struct {
	Label                string            `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Value                float64           `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	Tags                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Float64) Descriptor

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

func (*Float64) GetLabel

func (m *Float64) GetLabel() string

func (*Float64) GetTags

func (m *Float64) GetTags() map[string]string

func (*Float64) GetValue

func (m *Float64) GetValue() float64

func (*Float64) ProtoMessage

func (*Float64) ProtoMessage()

func (*Float64) Reset

func (m *Float64) Reset()

func (*Float64) String

func (m *Float64) String() string

func (*Float64) XXX_DiscardUnknown

func (m *Float64) XXX_DiscardUnknown()

func (*Float64) XXX_Marshal

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

func (*Float64) XXX_Merge

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

func (*Float64) XXX_Size

func (m *Float64) XXX_Size() int

func (*Float64) XXX_Unmarshal

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

type Int64

type Int64 struct {
	Label                string            `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Value                int64             `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	Tags                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Int64) Descriptor

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

func (*Int64) GetLabel

func (m *Int64) GetLabel() string

func (*Int64) GetTags

func (m *Int64) GetTags() map[string]string

func (*Int64) GetValue

func (m *Int64) GetValue() int64

func (*Int64) ProtoMessage

func (*Int64) ProtoMessage()

func (*Int64) Reset

func (m *Int64) Reset()

func (*Int64) String

func (m *Int64) String() string

func (*Int64) XXX_DiscardUnknown

func (m *Int64) XXX_DiscardUnknown()

func (*Int64) XXX_Marshal

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

func (*Int64) XXX_Merge

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

func (*Int64) XXX_Size

func (m *Int64) XXX_Size() int

func (*Int64) XXX_Unmarshal

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

type Metric

type Metric struct {
	Name    string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Oid     string     `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"`
	BaseOid string     `protobuf:"bytes,3,opt,name=base_oid,json=baseOid,proto3" json:"base_oid,omitempty"`
	Index   int64      `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	Type    MetricType `protobuf:"varint,5,opt,name=type,proto3,enum=dnc.metric.MetricType" json:"type,omitempty"`
	// Types that are valid to be assigned to Value:
	//	*Metric_IntValue
	//	*Metric_FloatValue
	//	*Metric_StringValue
	//	*Metric_BoolValue
	//	*Metric_BytesValue
	//	*Metric_HwaddrValue
	//	*Metric_IpaddrValue
	//	*Metric_TimestampValue
	Value                isMetric_Value `protobuf_oneof:"value"`
	Error                string         `protobuf:"bytes,14,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Metric) Descriptor

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

func (*Metric) GetBaseOid

func (m *Metric) GetBaseOid() string

func (*Metric) GetBoolValue

func (m *Metric) GetBoolValue() bool

func (*Metric) GetBytesValue

func (m *Metric) GetBytesValue() []byte

func (*Metric) GetError

func (m *Metric) GetError() string

func (*Metric) GetFloatValue

func (m *Metric) GetFloatValue() float64

func (*Metric) GetHwaddrValue

func (m *Metric) GetHwaddrValue() string

func (*Metric) GetIndex

func (m *Metric) GetIndex() int64

func (*Metric) GetIntValue

func (m *Metric) GetIntValue() int64

func (*Metric) GetIpaddrValue

func (m *Metric) GetIpaddrValue() string

func (*Metric) GetName

func (m *Metric) GetName() string

func (*Metric) GetOid

func (m *Metric) GetOid() string

func (*Metric) GetStringValue

func (m *Metric) GetStringValue() string

func (*Metric) GetTimestampValue

func (m *Metric) GetTimestampValue() *timestamp.Timestamp

func (*Metric) GetType

func (m *Metric) GetType() MetricType

func (*Metric) GetValue

func (m *Metric) GetValue() isMetric_Value

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) String

func (m *Metric) String() string

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 MetricType

type MetricType int32
const (
	MetricType_INT       MetricType = 0
	MetricType_FLOAT     MetricType = 1
	MetricType_HWADDR    MetricType = 2
	MetricType_IPADDR    MetricType = 3
	MetricType_STRING    MetricType = 4
	MetricType_BOOL      MetricType = 5
	MetricType_BYTES     MetricType = 9
	MetricType_TIMETICKS MetricType = 10
)

func (MetricType) EnumDescriptor

func (MetricType) EnumDescriptor() ([]byte, []int)

func (MetricType) String

func (x MetricType) String() string

type Metric_BoolValue

type Metric_BoolValue struct {
	BoolValue bool `protobuf:"varint,9,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Metric_BytesValue

type Metric_BytesValue struct {
	BytesValue []byte `protobuf:"bytes,10,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}

type Metric_FloatValue

type Metric_FloatValue struct {
	FloatValue float64 `protobuf:"fixed64,7,opt,name=float_value,json=floatValue,proto3,oneof"`
}

type Metric_HwaddrValue

type Metric_HwaddrValue struct {
	HwaddrValue string `protobuf:"bytes,11,opt,name=hwaddr_value,json=hwaddrValue,proto3,oneof"`
}

type Metric_IntValue

type Metric_IntValue struct {
	IntValue int64 `protobuf:"varint,6,opt,name=int_value,json=intValue,proto3,oneof"`
}

type Metric_IpaddrValue

type Metric_IpaddrValue struct {
	IpaddrValue string `protobuf:"bytes,12,opt,name=ipaddr_value,json=ipaddrValue,proto3,oneof"`
}

type Metric_StringValue

type Metric_StringValue struct {
	StringValue string `protobuf:"bytes,8,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Metric_TimestampValue

type Metric_TimestampValue struct {
	TimestampValue *timestamp.Timestamp `protobuf:"bytes,13,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
}

type String

type String struct {
	Label                string            `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Value                string            `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Tags                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*String) Descriptor

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

func (*String) GetLabel

func (m *String) GetLabel() string

func (*String) GetTags

func (m *String) GetTags() map[string]string

func (*String) GetValue

func (m *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) Reset

func (m *String) Reset()

func (*String) String

func (m *String) String() string

func (*String) XXX_DiscardUnknown

func (m *String) XXX_DiscardUnknown()

func (*String) XXX_Marshal

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

func (*String) XXX_Merge

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

func (*String) XXX_Size

func (m *String) XXX_Size() int

func (*String) XXX_Unmarshal

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

type Uint64

type Uint64 struct {
	Label                string            `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Value                int64             `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	Tags                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Uint64) Descriptor

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

func (*Uint64) GetLabel

func (m *Uint64) GetLabel() string

func (*Uint64) GetTags

func (m *Uint64) GetTags() map[string]string

func (*Uint64) GetValue

func (m *Uint64) GetValue() int64

func (*Uint64) ProtoMessage

func (*Uint64) ProtoMessage()

func (*Uint64) Reset

func (m *Uint64) Reset()

func (*Uint64) String

func (m *Uint64) String() string

func (*Uint64) XXX_DiscardUnknown

func (m *Uint64) XXX_DiscardUnknown()

func (*Uint64) XXX_Marshal

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

func (*Uint64) XXX_Merge

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

func (*Uint64) XXX_Size

func (m *Uint64) XXX_Size() int

func (*Uint64) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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