Documentation ¶
Index ¶
- Variables
- func FromPoint(p *Point) (*metrics.Point, error)
- func RegisterMetricsdbServer(s *grpc.Server, srv MetricsdbServer)
- type MetricsdbClient
- type MetricsdbServer
- type Metricsdb_SubmitClient
- type Metricsdb_SubmitServer
- type Point
- func (*Point) Descriptor() ([]byte, []int)
- func (m *Point) GetFields() map[string]*Value
- func (m *Point) GetName() string
- func (m *Point) GetTags() map[string]string
- func (m *Point) GetTimestamp() *timestamp.Timestamp
- func (*Point) ProtoMessage()
- func (m *Point) Reset()
- func (m *Point) String() string
- func (m *Point) XXX_DiscardUnknown()
- func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Point) XXX_Merge(src proto.Message)
- func (m *Point) XXX_Size() int
- func (m *Point) XXX_Unmarshal(b []byte) error
- type UnimplementedMetricsdbServer
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetBoolValue() bool
- func (m *Value) GetDoubleValue() float64
- func (m *Value) GetDurationValue() *duration.Duration
- func (m *Value) GetInt32Value() int32
- func (m *Value) GetInt64Value() int64
- func (m *Value) GetStringValue() string
- func (m *Value) GetTimestampValue() *timestamp.Timestamp
- func (m *Value) GetType() Value_Type
- func (m *Value) GetUint32Value() uint32
- func (m *Value) GetUint64Value() uint64
- func (m *Value) GetValue() isValue_Value
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) String() string
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (*Value) XXX_OneofWrappers() []interface{}
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
- type Value_BoolValue
- type Value_DoubleValue
- type Value_DurationValue
- type Value_Int32Value
- type Value_Int64Value
- type Value_StringValue
- type Value_TimestampValue
- type Value_Type
- type Value_Uint32Value
- type Value_Uint64Value
Constants ¶
This section is empty.
Variables ¶
View Source
var Value_Type_name = map[int32]string{
0: "UNDEFINED",
1: "INT",
2: "INT8",
3: "INT16",
4: "INT32",
5: "INT64",
6: "UINT",
7: "UINT8",
8: "UINT16",
9: "UINT32",
10: "UINT64",
11: "BOOL",
12: "FLOAT64",
13: "STRING",
14: "TIMESTAMP",
15: "DURATION",
}
View Source
var Value_Type_value = map[string]int32{
"UNDEFINED": 0,
"INT": 1,
"INT8": 2,
"INT16": 3,
"INT32": 4,
"INT64": 5,
"UINT": 6,
"UINT8": 7,
"UINT16": 8,
"UINT32": 9,
"UINT64": 10,
"BOOL": 11,
"FLOAT64": 12,
"STRING": 13,
"TIMESTAMP": 14,
"DURATION": 15,
}
Functions ¶
func RegisterMetricsdbServer ¶
func RegisterMetricsdbServer(s *grpc.Server, srv MetricsdbServer)
Types ¶
type MetricsdbClient ¶
type MetricsdbClient interface {
Submit(ctx context.Context, opts ...grpc.CallOption) (Metricsdb_SubmitClient, error)
}
MetricsdbClient is the client API for Metricsdb service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMetricsdbClient ¶
func NewMetricsdbClient(cc *grpc.ClientConn) MetricsdbClient
type MetricsdbServer ¶
type MetricsdbServer interface {
Submit(Metricsdb_SubmitServer) error
}
MetricsdbServer is the server API for Metricsdb service.
type Metricsdb_SubmitClient ¶
type Metricsdb_SubmitServer ¶
type Point ¶
type Point struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Fields map[string]*Value `` /* 153-byte string literal not displayed */ Tags map[string]string `` /* 149-byte string literal not displayed */ Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Point is the type defining a metric point.
func (*Point) Descriptor ¶
func (*Point) GetTimestamp ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) XXX_DiscardUnknown ¶
func (m *Point) XXX_DiscardUnknown()
func (*Point) XXX_Marshal ¶
func (*Point) XXX_Unmarshal ¶
type UnimplementedMetricsdbServer ¶
type UnimplementedMetricsdbServer struct { }
UnimplementedMetricsdbServer can be embedded to have forward compatible implementations.
func (*UnimplementedMetricsdbServer) Submit ¶
func (*UnimplementedMetricsdbServer) Submit(srv Metricsdb_SubmitServer) error
type Value ¶
type Value struct { Type Value_Type `protobuf:"varint,1,opt,name=type,proto3,enum=metricsdb.Value_Type" json:"type,omitempty"` // Types that are valid to be assigned to Value: // *Value_Int32Value // *Value_Int64Value // *Value_Uint32Value // *Value_Uint64Value // *Value_BoolValue // *Value_DoubleValue // *Value_StringValue // *Value_TimestampValue // *Value_DurationValue Value isValue_Value `protobuf_oneof:"value"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Value describes a value in a point.
func (*Value) Descriptor ¶
func (*Value) GetBoolValue ¶
func (*Value) GetDoubleValue ¶
func (*Value) GetDurationValue ¶
func (*Value) GetInt32Value ¶
func (*Value) GetInt64Value ¶
func (*Value) GetStringValue ¶
func (*Value) GetTimestampValue ¶
func (*Value) GetType ¶
func (m *Value) GetType() Value_Type
func (*Value) GetUint32Value ¶
func (*Value) GetUint64Value ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_OneofWrappers ¶
func (*Value) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Value) XXX_Unmarshal ¶
type Value_BoolValue ¶
type Value_BoolValue struct {
BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type Value_DoubleValue ¶
type Value_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,7,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type Value_DurationValue ¶
type Value_Int32Value ¶
type Value_Int32Value struct {
Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
}
type Value_Int64Value ¶
type Value_Int64Value struct {
Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
}
type Value_StringValue ¶
type Value_StringValue struct {
StringValue string `protobuf:"bytes,8,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type Value_TimestampValue ¶
type Value_Type ¶
type Value_Type int32
Type enumerates the possible value types
const ( Value_UNDEFINED Value_Type = 0 Value_INT Value_Type = 1 Value_INT8 Value_Type = 2 Value_INT16 Value_Type = 3 Value_INT32 Value_Type = 4 Value_INT64 Value_Type = 5 Value_UINT Value_Type = 6 Value_UINT8 Value_Type = 7 Value_UINT16 Value_Type = 8 Value_UINT32 Value_Type = 9 Value_UINT64 Value_Type = 10 Value_BOOL Value_Type = 11 Value_FLOAT64 Value_Type = 12 Value_STRING Value_Type = 13 Value_TIMESTAMP Value_Type = 14 Value_DURATION Value_Type = 15 )
func (Value_Type) EnumDescriptor ¶
func (Value_Type) EnumDescriptor() ([]byte, []int)
func (Value_Type) String ¶
func (x Value_Type) String() string
type Value_Uint32Value ¶
type Value_Uint32Value struct {
Uint32Value uint32 `protobuf:"varint,4,opt,name=uint32_value,json=uint32Value,proto3,oneof"`
}
type Value_Uint64Value ¶
type Value_Uint64Value struct {
Uint64Value uint64 `protobuf:"varint,5,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.