Documentation ¶
Index ¶
- Variables
- type Float64
- func (*Float64) Descriptor() ([]byte, []int)
- func (m *Float64) GetLabel() string
- func (m *Float64) GetTags() map[string]string
- func (m *Float64) GetValue() float64
- func (*Float64) ProtoMessage()
- func (m *Float64) Reset()
- func (m *Float64) String() string
- func (m *Float64) XXX_DiscardUnknown()
- func (m *Float64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Float64) XXX_Merge(src proto.Message)
- func (m *Float64) XXX_Size() int
- func (m *Float64) XXX_Unmarshal(b []byte) error
- type Int64
- func (*Int64) Descriptor() ([]byte, []int)
- func (m *Int64) GetLabel() string
- func (m *Int64) GetTags() map[string]string
- func (m *Int64) GetValue() int64
- func (*Int64) ProtoMessage()
- func (m *Int64) Reset()
- func (m *Int64) String() string
- func (m *Int64) XXX_DiscardUnknown()
- func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Int64) XXX_Merge(src proto.Message)
- func (m *Int64) XXX_Size() int
- func (m *Int64) XXX_Unmarshal(b []byte) error
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) GetBaseOid() string
- func (m *Metric) GetBoolValue() bool
- func (m *Metric) GetBytesValue() []byte
- func (m *Metric) GetError() string
- func (m *Metric) GetFloatValue() float64
- func (m *Metric) GetHwaddrValue() string
- func (m *Metric) GetIndex() int64
- func (m *Metric) GetIntValue() int64
- func (m *Metric) GetIpaddrValue() string
- func (m *Metric) GetName() string
- func (m *Metric) GetOid() string
- func (m *Metric) GetStringValue() string
- func (m *Metric) GetTimestampValue() *timestamp.Timestamp
- func (m *Metric) GetType() MetricType
- func (m *Metric) GetValue() isMetric_Value
- func (*Metric) ProtoMessage()
- func (m *Metric) Reset()
- func (m *Metric) String() string
- func (m *Metric) XXX_DiscardUnknown()
- func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metric) XXX_Merge(src proto.Message)
- func (*Metric) XXX_OneofWrappers() []interface{}
- func (m *Metric) XXX_Size() int
- func (m *Metric) XXX_Unmarshal(b []byte) error
- type MetricType
- type Metric_BoolValue
- type Metric_BytesValue
- type Metric_FloatValue
- type Metric_HwaddrValue
- type Metric_IntValue
- type Metric_IpaddrValue
- type Metric_StringValue
- type Metric_TimestampValue
- type String
- func (*String) Descriptor() ([]byte, []int)
- func (m *String) GetLabel() string
- func (m *String) GetTags() map[string]string
- func (m *String) GetValue() string
- func (*String) ProtoMessage()
- func (m *String) Reset()
- func (m *String) String() string
- func (m *String) XXX_DiscardUnknown()
- func (m *String) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *String) XXX_Merge(src proto.Message)
- func (m *String) XXX_Size() int
- func (m *String) XXX_Unmarshal(b []byte) error
- type Uint64
- func (*Uint64) Descriptor() ([]byte, []int)
- func (m *Uint64) GetLabel() string
- func (m *Uint64) GetTags() map[string]string
- func (m *Uint64) GetValue() int64
- func (*Uint64) ProtoMessage()
- func (m *Uint64) Reset()
- func (m *Uint64) String() string
- func (m *Uint64) XXX_DiscardUnknown()
- func (m *Uint64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Uint64) XXX_Merge(src proto.Message)
- func (m *Uint64) XXX_Size() int
- func (m *Uint64) XXX_Unmarshal(b []byte) error
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) ProtoMessage ¶
func (*Float64) ProtoMessage()
func (*Float64) XXX_DiscardUnknown ¶
func (m *Float64) XXX_DiscardUnknown()
func (*Float64) XXX_Marshal ¶
func (*Float64) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Int64) ProtoMessage()
func (*Int64) XXX_DiscardUnknown ¶
func (m *Int64) XXX_DiscardUnknown()
func (*Int64) XXX_Marshal ¶
func (*Int64) XXX_Unmarshal ¶
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) GetBaseOid ¶
func (*Metric) GetBoolValue ¶
func (*Metric) GetBytesValue ¶
func (*Metric) GetFloatValue ¶
func (*Metric) GetHwaddrValue ¶
func (*Metric) GetIntValue ¶
func (*Metric) GetIpaddrValue ¶
func (*Metric) GetStringValue ¶
func (*Metric) GetTimestampValue ¶
func (*Metric) GetType ¶
func (m *Metric) GetType() MetricType
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) XXX_DiscardUnknown ¶
func (m *Metric) XXX_DiscardUnknown()
func (*Metric) XXX_Marshal ¶
func (*Metric) XXX_OneofWrappers ¶
func (*Metric) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Metric) XXX_Unmarshal ¶
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 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) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) XXX_DiscardUnknown ¶
func (m *String) XXX_DiscardUnknown()
func (*String) XXX_Marshal ¶
func (*String) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Uint64) ProtoMessage()
func (*Uint64) XXX_DiscardUnknown ¶
func (m *Uint64) XXX_DiscardUnknown()
func (*Uint64) XXX_Marshal ¶
func (*Uint64) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.