// 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 TimeSeries Point */ package proto import proto1 "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" 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 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"` MaxDataPoints int64 `protobuf:"varint,2,opt,name=maxDataPoints" json:"maxDataPoints,omitempty"` IntervalMs int64 `protobuf:"varint,3,opt,name=intervalMs" json:"intervalMs,omitempty"` ModelJson string `protobuf:"bytes,4,opt,name=modelJson" json:"modelJson,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) 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) GetModelJson() string { if m != nil { return m.ModelJson } return "" } type TimeRange struct { FromRaw string `protobuf:"bytes,1,opt,name=fromRaw" json:"fromRaw,omitempty"` ToRaw string `protobuf:"bytes,2,opt,name=toRaw" json:"toRaw,omitempty"` FromEpochMs int64 `protobuf:"varint,3,opt,name=fromEpochMs" json:"fromEpochMs,omitempty"` ToEpochMs int64 `protobuf:"varint,4,opt,name=toEpochMs" json:"toEpochMs,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) GetFromRaw() string { if m != nil { return m.FromRaw } return "" } func (m *TimeRange) GetToRaw() string { if m != nil { return m.ToRaw } return "" } func (m *TimeRange) GetFromEpochMs() int64 { if m != nil { return m.FromEpochMs } return 0 } func (m *TimeRange) GetToEpochMs() int64 { if m != nil { return m.ToEpochMs } return 0 } type Response struct { Results []*QueryResult `protobuf:"bytes,1,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) GetResults() []*QueryResult { if m != nil { return m.Results } return nil } type QueryResult struct { Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` RefId string `protobuf:"bytes,2,opt,name=refId" json:"refId,omitempty"` MetaJson string `protobuf:"bytes,3,opt,name=metaJson" json:"metaJson,omitempty"` Series []*TimeSeries `protobuf:"bytes,4,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) 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() []*TimeSeries { if m != nil { return m.Series } return nil } type DatasourceInfo struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` OrgId int64 `protobuf:"varint,2,opt,name=orgId" json:"orgId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Type string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"` Url string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"` JsonData string `protobuf:"bytes,6,opt,name=jsonData" json:"jsonData,omitempty"` SecureJsonData string `protobuf:"bytes,7,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) GetId() int64 { if m != nil { return m.Id } return 0 } func (m *DatasourceInfo) GetOrgId() int64 { if m != nil { return m.OrgId } return 0 } 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) GetUrl() string { if m != nil { return m.Url } 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 TimeSeries 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 *TimeSeries) Reset() { *m = TimeSeries{} } func (m *TimeSeries) String() string { return proto1.CompactTextString(m) } func (*TimeSeries) ProtoMessage() {} func (*TimeSeries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *TimeSeries) GetName() string { if m != nil { return m.Name } return "" } func (m *TimeSeries) GetTags() map[string]string { if m != nil { return m.Tags } return nil } func (m *TimeSeries) GetPoints() []*Point { if m != nil { return m.Points } return nil } type Point struct { Timestamp int64 `protobuf:"varint,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() int64 { if m != nil { return m.Timestamp } return 0 } 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((*TimeSeries)(nil), "plugins.TimeSeries") 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{ // 566 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x54, 0x51, 0x8b, 0xd3, 0x4c, 0x14, 0x25, 0x49, 0xdb, 0x6c, 0x6e, 0xf9, 0xca, 0xb7, 0xe3, 0x82, 0xa1, 0xa8, 0x94, 0x20, 0x4b, 0x41, 0x08, 0x5a, 0x1f, 0x56, 0x56, 0x9f, 0xc4, 0x7d, 0xd8, 0x05, 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