// Code generated by protoc-gen-go. DO NOT EDIT. // source: tsdb_plugin.proto /* Package proto is a generated protocol buffer package. It is generated from these files: tsdb_plugin.proto It has these top-level messages: TsdbQuery Query Timerange Response QueryResult DatasourceInfo TsdbSeries Point */ package proto import proto1 "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto1.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package // Message represents a simple message sent to the Echo service. type TsdbQuery struct { Timerange *Timerange `protobuf:"bytes,1,opt,name=timerange" json:"timerange,omitempty"` Datasource *DatasourceInfo `protobuf:"bytes,2,opt,name=datasource" json:"datasource,omitempty"` Queries []*Query `protobuf:"bytes,3,rep,name=queries" json:"queries,omitempty"` } func (m *TsdbQuery) Reset() { *m = TsdbQuery{} } func (m *TsdbQuery) String() string { return proto1.CompactTextString(m) } func (*TsdbQuery) ProtoMessage() {} func (*TsdbQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *TsdbQuery) GetTimerange() *Timerange { if m != nil { return m.Timerange } return nil } func (m *TsdbQuery) GetDatasource() *DatasourceInfo { if m != nil { return m.Datasource } return nil } func (m *TsdbQuery) GetQueries() []*Query { if m != nil { return m.Queries } return nil } type Query struct { RefId string `protobuf:"bytes,1,opt,name=refId" json:"refId,omitempty"` ModelJson string `protobuf:"bytes,2,opt,name=modelJson" json:"modelJson,omitempty"` MaxDataPoints int64 `protobuf:"varint,3,opt,name=MaxDataPoints" json:"MaxDataPoints,omitempty"` IntervalMs int64 `protobuf:"varint,4,opt,name=intervalMs" json:"intervalMs,omitempty"` Datasource *DatasourceInfo `protobuf:"bytes,5,opt,name=datasource" json:"datasource,omitempty"` } func (m *Query) Reset() { *m = Query{} } func (m *Query) String() string { return proto1.CompactTextString(m) } func (*Query) ProtoMessage() {} func (*Query) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *Query) GetRefId() string { if m != nil { return m.RefId } return "" } func (m *Query) GetModelJson() string { if m != nil { return m.ModelJson } return "" } func (m *Query) GetMaxDataPoints() int64 { if m != nil { return m.MaxDataPoints } return 0 } func (m *Query) GetIntervalMs() int64 { if m != nil { return m.IntervalMs } return 0 } func (m *Query) GetDatasource() *DatasourceInfo { if m != nil { return m.Datasource } return nil } type Timerange struct { From string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"` Now *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=now" json:"now,omitempty"` } func (m *Timerange) Reset() { *m = Timerange{} } func (m *Timerange) String() string { return proto1.CompactTextString(m) } func (*Timerange) ProtoMessage() {} func (*Timerange) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } func (m *Timerange) GetFrom() string { if m != nil { return m.From } return "" } func (m *Timerange) GetTo() string { if m != nil { return m.To } return "" } func (m *Timerange) GetNow() *google_protobuf.Timestamp { if m != nil { return m.Now } return nil } type Response struct { Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` Results []*QueryResult `protobuf:"bytes,2,rep,name=results" json:"results,omitempty"` } func (m *Response) Reset() { *m = Response{} } func (m *Response) String() string { return proto1.CompactTextString(m) } func (*Response) ProtoMessage() {} func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } func (m *Response) GetMessage() string { if m != nil { return m.Message } return "" } func (m *Response) GetResults() []*QueryResult { if m != nil { return m.Results } return nil } type QueryResult struct { Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` ErrorString string `protobuf:"bytes,2,opt,name=errorString" json:"errorString,omitempty"` RefId string `protobuf:"bytes,3,opt,name=refId" json:"refId,omitempty"` MetaJson string `protobuf:"bytes,4,opt,name=metaJson" json:"metaJson,omitempty"` Series []*TsdbSeries `protobuf:"bytes,5,rep,name=series" json:"series,omitempty"` } func (m *QueryResult) Reset() { *m = QueryResult{} } func (m *QueryResult) String() string { return proto1.CompactTextString(m) } func (*QueryResult) ProtoMessage() {} func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *QueryResult) GetError() string { if m != nil { return m.Error } return "" } func (m *QueryResult) GetErrorString() string { if m != nil { return m.ErrorString } return "" } func (m *QueryResult) GetRefId() string { if m != nil { return m.RefId } return "" } func (m *QueryResult) GetMetaJson() string { if m != nil { return m.MetaJson } return "" } func (m *QueryResult) GetSeries() []*TsdbSeries { if m != nil { return m.Series } return nil } type DatasourceInfo struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Access string `protobuf:"bytes,3,opt,name=access" json:"access,omitempty"` Url string `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"` BasicAuth bool `protobuf:"varint,5,opt,name=basicAuth" json:"basicAuth,omitempty"` BasicAuthUser string `protobuf:"bytes,6,opt,name=basicAuthUser" json:"basicAuthUser,omitempty"` BasicAuthPassword string `protobuf:"bytes,7,opt,name=basicAuthPassword" json:"basicAuthPassword,omitempty"` JsonData string `protobuf:"bytes,8,opt,name=jsonData" json:"jsonData,omitempty"` SecureJsonData string `protobuf:"bytes,9,opt,name=secureJsonData" json:"secureJsonData,omitempty"` } func (m *DatasourceInfo) Reset() { *m = DatasourceInfo{} } func (m *DatasourceInfo) String() string { return proto1.CompactTextString(m) } func (*DatasourceInfo) ProtoMessage() {} func (*DatasourceInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func (m *DatasourceInfo) GetName() string { if m != nil { return m.Name } return "" } func (m *DatasourceInfo) GetType() string { if m != nil { return m.Type } return "" } func (m *DatasourceInfo) GetAccess() string { if m != nil { return m.Access } return "" } func (m *DatasourceInfo) GetUrl() string { if m != nil { return m.Url } return "" } func (m *DatasourceInfo) GetBasicAuth() bool { if m != nil { return m.BasicAuth } return false } func (m *DatasourceInfo) GetBasicAuthUser() string { if m != nil { return m.BasicAuthUser } return "" } func (m *DatasourceInfo) GetBasicAuthPassword() string { if m != nil { return m.BasicAuthPassword } return "" } func (m *DatasourceInfo) GetJsonData() string { if m != nil { return m.JsonData } return "" } func (m *DatasourceInfo) GetSecureJsonData() string { if m != nil { return m.SecureJsonData } return "" } type TsdbSeries struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Tags map[string]string `protobuf:"bytes,2,rep,name=tags" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Points []*Point `protobuf:"bytes,3,rep,name=points" json:"points,omitempty"` } func (m *TsdbSeries) Reset() { *m = TsdbSeries{} } func (m *TsdbSeries) String() string { return proto1.CompactTextString(m) } func (*TsdbSeries) ProtoMessage() {} func (*TsdbSeries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *TsdbSeries) GetName() string { if m != nil { return m.Name } return "" } func (m *TsdbSeries) GetTags() map[string]string { if m != nil { return m.Tags } return nil } func (m *TsdbSeries) GetPoints() []*Point { if m != nil { return m.Points } return nil } type Point struct { Timestamp *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"` Value float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` } func (m *Point) Reset() { *m = Point{} } func (m *Point) String() string { return proto1.CompactTextString(m) } func (*Point) ProtoMessage() {} func (*Point) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *Point) GetTimestamp() *google_protobuf.Timestamp { if m != nil { return m.Timestamp } return nil } func (m *Point) GetValue() float64 { if m != nil { return m.Value } return 0 } func init() { proto1.RegisterType((*TsdbQuery)(nil), "plugins.TsdbQuery") proto1.RegisterType((*Query)(nil), "plugins.Query") proto1.RegisterType((*Timerange)(nil), "plugins.Timerange") proto1.RegisterType((*Response)(nil), "plugins.Response") proto1.RegisterType((*QueryResult)(nil), "plugins.QueryResult") proto1.RegisterType((*DatasourceInfo)(nil), "plugins.DatasourceInfo") proto1.RegisterType((*TsdbSeries)(nil), "plugins.TsdbSeries") proto1.RegisterType((*Point)(nil), "plugins.Point") } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // Client API for TsdbPlugin service type TsdbPluginClient interface { Query(ctx context.Context, in *TsdbQuery, opts ...grpc.CallOption) (*Response, error) } type tsdbPluginClient struct { cc *grpc.ClientConn } func NewTsdbPluginClient(cc *grpc.ClientConn) TsdbPluginClient { return &tsdbPluginClient{cc} } func (c *tsdbPluginClient) Query(ctx context.Context, in *TsdbQuery, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := grpc.Invoke(ctx, "/plugins.TsdbPlugin/Query", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } // Server API for TsdbPlugin service type TsdbPluginServer interface { Query(context.Context, *TsdbQuery) (*Response, error) } func RegisterTsdbPluginServer(s *grpc.Server, srv TsdbPluginServer) { s.RegisterService(&_TsdbPlugin_serviceDesc, srv) } func _TsdbPlugin_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TsdbQuery) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TsdbPluginServer).Query(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/plugins.TsdbPlugin/Query", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TsdbPluginServer).Query(ctx, req.(*TsdbQuery)) } return interceptor(ctx, in, info, handler) } var _TsdbPlugin_serviceDesc = grpc.ServiceDesc{ ServiceName: "plugins.TsdbPlugin", HandlerType: (*TsdbPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Query", Handler: _TsdbPlugin_Query_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tsdb_plugin.proto", } func init() { proto1.RegisterFile("tsdb_plugin.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ // 652 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x6f, 0xd4, 0x3a, 0x14, 0x55, 0xe6, 0x3b, 0x77, 0xf4, 0x46, 0xaf, 0x7e, 0xd5, 0x23, 0x1a, 0xf1, 0x51, 0x45, 0xa8, 0x1a, 0x89, 0x2a, 0x85, 0x61, 0xd1, 0x0a, 0xb1, 0x01, 0xc1, 0xa2, 0x95, 0x2a, 0x15, 0x77, 0x10, 0x12, 0x12, 0x42, 0x9e, 0x89, 0x27, 0x04, 0x92, 0x78, 0xb0, 0x9d, 0x96, 0xf9, 0x27, 0x2c, 0x59, 0xf0, 0x13, 0x58, 0xf1, 0xeb, 0x90, 0x6f, 0xec, 0x64, 0xa6, 0x54, 0x88, 0x55, 0xee, 0x3d, 0xf7, 0xd8, 0x39, 0x3e, 0xf7, 0xda, 0xb0, 0xa3, 0x55, 0x3c, 0x7f, 0xbf, 0xca, 0xca, 0x24, 0x2d, 0xa2, 0x95, 0x14, 0x5a, 0x90, 0x7e, 0x95, 0xa9, 0xf1, 0xbd, 0x44, 0x88, 0x24, 0xe3, 0x87, 0x08, 0xcf, 0xcb, 0xe5, 0xa1, 0x4e, 0x73, 0xae, 0x34, 0xcb, 0x57, 0x15, 0x33, 0xfc, 0xe6, 0x81, 0x3f, 0x53, 0xf1, 0xfc, 0x55, 0xc9, 0xe5, 0x9a, 0x3c, 0x04, 0xdf, 0x10, 0x24, 0x2b, 0x12, 0x1e, 0x78, 0x7b, 0xde, 0x64, 0x38, 0x25, 0x91, 0xdd, 0x2b, 0x9a, 0xb9, 0x0a, 0x6d, 0x48, 0xe4, 0x08, 0x20, 0x66, 0x9a, 0x29,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