|
@@ -1,636 +0,0 @@
|
|
|
-// 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
|
|
|
|
|
- Table
|
|
|
|
|
- TableColumn
|
|
|
|
|
- TableRow
|
|
|
|
|
- RowValue
|
|
|
|
|
- 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 RowValue_Kind int32
|
|
|
|
|
-
|
|
|
|
|
-const (
|
|
|
|
|
- // Field type null.
|
|
|
|
|
- RowValue_TYPE_NULL RowValue_Kind = 0
|
|
|
|
|
- // Field type double.
|
|
|
|
|
- RowValue_TYPE_DOUBLE RowValue_Kind = 1
|
|
|
|
|
- // Field type int64.
|
|
|
|
|
- RowValue_TYPE_INT64 RowValue_Kind = 2
|
|
|
|
|
- // Field type bool.
|
|
|
|
|
- RowValue_TYPE_BOOL RowValue_Kind = 3
|
|
|
|
|
- // Field type string.
|
|
|
|
|
- RowValue_TYPE_STRING RowValue_Kind = 4
|
|
|
|
|
- // Field type bytes.
|
|
|
|
|
- RowValue_TYPE_BYTES RowValue_Kind = 5
|
|
|
|
|
-)
|
|
|
|
|
-
|
|
|
|
|
-var RowValue_Kind_name = map[int32]string{
|
|
|
|
|
- 0: "TYPE_NULL",
|
|
|
|
|
- 1: "TYPE_DOUBLE",
|
|
|
|
|
- 2: "TYPE_INT64",
|
|
|
|
|
- 3: "TYPE_BOOL",
|
|
|
|
|
- 4: "TYPE_STRING",
|
|
|
|
|
- 5: "TYPE_BYTES",
|
|
|
|
|
-}
|
|
|
|
|
-var RowValue_Kind_value = map[string]int32{
|
|
|
|
|
- "TYPE_NULL": 0,
|
|
|
|
|
- "TYPE_DOUBLE": 1,
|
|
|
|
|
- "TYPE_INT64": 2,
|
|
|
|
|
- "TYPE_BOOL": 3,
|
|
|
|
|
- "TYPE_STRING": 4,
|
|
|
|
|
- "TYPE_BYTES": 5,
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (x RowValue_Kind) String() string {
|
|
|
|
|
- return proto1.EnumName(RowValue_Kind_name, int32(x))
|
|
|
|
|
-}
|
|
|
|
|
-func (RowValue_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{8, 0} }
|
|
|
|
|
-
|
|
|
|
|
-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"`
|
|
|
|
|
- Tables []*Table `protobuf:"bytes,5,rep,name=tables" json:"tables,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
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *QueryResult) GetTables() []*Table {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.Tables
|
|
|
|
|
- }
|
|
|
|
|
- return nil
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-type Table struct {
|
|
|
|
|
- Columns []*TableColumn `protobuf:"bytes,1,rep,name=columns" json:"columns,omitempty"`
|
|
|
|
|
- Rows []*TableRow `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"`
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *Table) Reset() { *m = Table{} }
|
|
|
|
|
-func (m *Table) String() string { return proto1.CompactTextString(m) }
|
|
|
|
|
-func (*Table) ProtoMessage() {}
|
|
|
|
|
-func (*Table) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
|
-
|
|
|
|
|
-func (m *Table) GetColumns() []*TableColumn {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.Columns
|
|
|
|
|
- }
|
|
|
|
|
- return nil
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *Table) GetRows() []*TableRow {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.Rows
|
|
|
|
|
- }
|
|
|
|
|
- return nil
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-type TableColumn struct {
|
|
|
|
|
- Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *TableColumn) Reset() { *m = TableColumn{} }
|
|
|
|
|
-func (m *TableColumn) String() string { return proto1.CompactTextString(m) }
|
|
|
|
|
-func (*TableColumn) ProtoMessage() {}
|
|
|
|
|
-func (*TableColumn) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
|
|
|
|
-
|
|
|
|
|
-func (m *TableColumn) GetName() string {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.Name
|
|
|
|
|
- }
|
|
|
|
|
- return ""
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-type TableRow struct {
|
|
|
|
|
- Values []*RowValue `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *TableRow) Reset() { *m = TableRow{} }
|
|
|
|
|
-func (m *TableRow) String() string { return proto1.CompactTextString(m) }
|
|
|
|
|
-func (*TableRow) ProtoMessage() {}
|
|
|
|
|
-func (*TableRow) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
|
|
|
|
-
|
|
|
|
|
-func (m *TableRow) GetValues() []*RowValue {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.Values
|
|
|
|
|
- }
|
|
|
|
|
- return nil
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-type RowValue struct {
|
|
|
|
|
- Kind RowValue_Kind `protobuf:"varint,1,opt,name=kind,enum=plugins.RowValue_Kind" json:"kind,omitempty"`
|
|
|
|
|
- DoubleValue float64 `protobuf:"fixed64,2,opt,name=doubleValue" json:"doubleValue,omitempty"`
|
|
|
|
|
- Int64Value int64 `protobuf:"varint,3,opt,name=int64Value" json:"int64Value,omitempty"`
|
|
|
|
|
- BoolValue bool `protobuf:"varint,4,opt,name=boolValue" json:"boolValue,omitempty"`
|
|
|
|
|
- StringValue string `protobuf:"bytes,5,opt,name=stringValue" json:"stringValue,omitempty"`
|
|
|
|
|
- BytesValue []byte `protobuf:"bytes,6,opt,name=bytesValue,proto3" json:"bytesValue,omitempty"`
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *RowValue) Reset() { *m = RowValue{} }
|
|
|
|
|
-func (m *RowValue) String() string { return proto1.CompactTextString(m) }
|
|
|
|
|
-func (*RowValue) ProtoMessage() {}
|
|
|
|
|
-func (*RowValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
|
|
|
|
-
|
|
|
|
|
-func (m *RowValue) GetKind() RowValue_Kind {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.Kind
|
|
|
|
|
- }
|
|
|
|
|
- return RowValue_TYPE_NULL
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *RowValue) GetDoubleValue() float64 {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.DoubleValue
|
|
|
|
|
- }
|
|
|
|
|
- return 0
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *RowValue) GetInt64Value() int64 {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.Int64Value
|
|
|
|
|
- }
|
|
|
|
|
- return 0
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *RowValue) GetBoolValue() bool {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.BoolValue
|
|
|
|
|
- }
|
|
|
|
|
- return false
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *RowValue) GetStringValue() string {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.StringValue
|
|
|
|
|
- }
|
|
|
|
|
- return ""
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (m *RowValue) GetBytesValue() []byte {
|
|
|
|
|
- if m != nil {
|
|
|
|
|
- return m.BytesValue
|
|
|
|
|
- }
|
|
|
|
|
- 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{9} }
|
|
|
|
|
-
|
|
|
|
|
-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{10} }
|
|
|
|
|
-
|
|
|
|
|
-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{11} }
|
|
|
|
|
-
|
|
|
|
|
-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((*Table)(nil), "plugins.Table")
|
|
|
|
|
- proto1.RegisterType((*TableColumn)(nil), "plugins.TableColumn")
|
|
|
|
|
- proto1.RegisterType((*TableRow)(nil), "plugins.TableRow")
|
|
|
|
|
- proto1.RegisterType((*RowValue)(nil), "plugins.RowValue")
|
|
|
|
|
- proto1.RegisterType((*DatasourceInfo)(nil), "plugins.DatasourceInfo")
|
|
|
|
|
- proto1.RegisterType((*TimeSeries)(nil), "plugins.TimeSeries")
|
|
|
|
|
- proto1.RegisterType((*Point)(nil), "plugins.Point")
|
|
|
|
|
- proto1.RegisterEnum("plugins.RowValue_Kind", RowValue_Kind_name, RowValue_Kind_value)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 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{
|
|
|
|
|
- // 811 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x55, 0x5d, 0x8f, 0x1b, 0x35,
|
|
|
|
|
- 0x14, 0x65, 0xbe, 0x92, 0xcc, 0x0d, 0x0d, 0xa9, 0xa9, 0x20, 0x5a, 0x01, 0x5a, 0x46, 0x50, 0x05,
|
|
|
|
|
- 0x90, 0x22, 0x08, 0xa5, 0x45, 0x85, 0xa7, 0xd0, 0x08, 0xa5, 0x84, 0xdd, 0xc5, 0x3b, 0x45, 0x2a,
|
|
|
|
|
- 0x0f, 0x54, 0x93, 0x8c, 0x13, 0x86, 0xce, 0x8c, 0x83, 0xed, 0xd9, 0x10, 0xf1, 0xc4,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