Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
timeseries.proto
It has these top-level messages:
Points Point SaveErrors PointError Expression Tss Tsdata PV
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTimeseriesServer ¶
func RegisterTimeseriesServer(s *grpc.Server, srv TimeseriesServer)
Types ¶
type Expression ¶
type Expression struct {
Expression string `protobuf:"bytes,1,opt,name=expression" json:"expression,omitempty"`
}
func (*Expression) Descriptor ¶
func (*Expression) Descriptor() ([]byte, []int)
func (*Expression) ProtoMessage ¶
func (*Expression) ProtoMessage()
func (*Expression) Reset ¶
func (m *Expression) Reset()
func (*Expression) String ¶
func (m *Expression) String() string
type PV ¶
type PV struct { Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` Nullval bool `protobuf:"varint,2,opt,name=nullval" json:"nullval,omitempty"` }
func (*PV) Descriptor ¶
func (*PV) ProtoMessage ¶
func (*PV) ProtoMessage()
type Point ¶
type Point struct { Metric string `protobuf:"bytes,1,opt,name=metric" json:"metric,omitempty"` Tags map[string]string `` /* 128-byte string literal not displayed */ Value float64 `protobuf:"fixed64,3,opt,name=value" json:"value,omitempty"` Text string `protobuf:"bytes,4,opt,name=text" json:"text,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` }
func (*Point) Descriptor ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
type PointError ¶
type PointError struct { Datapoint *Point `protobuf:"bytes,1,opt,name=datapoint" json:"datapoint,omitempty"` Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` }
func (*PointError) Descriptor ¶
func (*PointError) Descriptor() ([]byte, []int)
func (*PointError) GetDatapoint ¶
func (m *PointError) GetDatapoint() *Point
func (*PointError) ProtoMessage ¶
func (*PointError) ProtoMessage()
func (*PointError) Reset ¶
func (m *PointError) Reset()
func (*PointError) String ¶
func (m *PointError) String() string
type Points ¶
type Points struct {
Points []*Point `protobuf:"bytes,1,rep,name=points" json:"points,omitempty"`
}
func (*Points) Descriptor ¶
func (*Points) ProtoMessage ¶
func (*Points) ProtoMessage()
type SaveErrors ¶
type SaveErrors struct {
Errors []*PointError `protobuf:"bytes,1,rep,name=errors" json:"errors,omitempty"`
}
func (*SaveErrors) Descriptor ¶
func (*SaveErrors) Descriptor() ([]byte, []int)
func (*SaveErrors) GetErrors ¶
func (m *SaveErrors) GetErrors() []*PointError
func (*SaveErrors) ProtoMessage ¶
func (*SaveErrors) ProtoMessage()
func (*SaveErrors) Reset ¶
func (m *SaveErrors) Reset()
func (*SaveErrors) String ¶
func (m *SaveErrors) String() string
type TimeseriesClient ¶
type TimeseriesClient interface { SavePoints(ctx context.Context, in *Points, opts ...grpc.CallOption) (*SaveErrors, error) QueryExpression(ctx context.Context, in *Expression, opts ...grpc.CallOption) (*Tsdata, error) }
func NewTimeseriesClient ¶
func NewTimeseriesClient(cc *grpc.ClientConn) TimeseriesClient
type TimeseriesServer ¶
type TimeseriesServer interface { SavePoints(context.Context, *Points) (*SaveErrors, error) QueryExpression(context.Context, *Expression) (*Tsdata, error) }
type Tsdata ¶
type Tsdata struct { Metric string `protobuf:"bytes,1,opt,name=metric" json:"metric,omitempty"` Tags map[string]string `` /* 128-byte string literal not displayed */ AggregatedTags []string `protobuf:"bytes,3,rep,name=aggregatedTags" json:"aggregatedTags,omitempty"` Tsuids []string `protobuf:"bytes,4,rep,name=tsuids" json:"tsuids,omitempty"` Dps map[string]*PV `` /* 126-byte string literal not displayed */ }
func (*Tsdata) Descriptor ¶
func (*Tsdata) ProtoMessage ¶
func (*Tsdata) ProtoMessage()
type Tss ¶
type Tss struct {
Tss []*Tsdata `protobuf:"bytes,1,rep,name=tss" json:"tss,omitempty"`
}
func (*Tss) Descriptor ¶
func (*Tss) ProtoMessage ¶
func (*Tss) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.