ceresdbproto

package module
v0.0.0-...-a7db881 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FilterType_name = map[int32]string{
		0: "LITERAL_OR",
		1: "NOT_LITERAL_OR",
		2: "REGEXP",
		3: "NOT_REGEXP_MATCH",
	}
	FilterType_value = map[string]int32{
		"LITERAL_OR":       0,
		"NOT_LITERAL_OR":   1,
		"REGEXP":           2,
		"NOT_REGEXP_MATCH": 3,
	}
)

Enum value maps for FilterType.

View Source
var (
	SubExpr_OperatorType_name = map[int32]string{
		0: "AGGR",
		1: "FUNC",
		2: "BINARY",
	}
	SubExpr_OperatorType_value = map[string]int32{
		"AGGR":   0,
		"FUNC":   1,
		"BINARY": 2,
	}
)

Enum value maps for SubExpr_OperatorType.

View Source
var (
	QueryResponse_SchemaType_name = map[int32]string{
		0: "AVRO",
		1: "JSON",
	}
	QueryResponse_SchemaType_value = map[string]int32{
		"AVRO": 0,
		"JSON": 1,
	}
)

Enum value maps for QueryResponse_SchemaType.

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_prometheus_proto protoreflect.FileDescriptor
View Source
var File_storage_proto protoreflect.FileDescriptor
View Source
var StorageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "storage.StorageService",
	HandlerType: (*StorageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Route",
			Handler:    _StorageService_Route_Handler,
		},
		{
			MethodName: "Write",
			Handler:    _StorageService_Write_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _StorageService_Query_Handler,
		},
		{
			MethodName: "PromQuery",
			Handler:    _StorageService_PromQuery_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamWrite",
			Handler:       _StorageService_StreamWrite_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "StreamQuery",
			Handler:       _StorageService_StreamQuery_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "storage.proto",
}

StorageService_ServiceDesc is the grpc.ServiceDesc for StorageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStorageServiceServer

func RegisterStorageServiceServer(s grpc.ServiceRegistrar, srv StorageServiceServer)

Types

type Endpoint

type Endpoint struct {
	Ip   string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

func (*Endpoint) Descriptor() ([]byte, []int)

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetIp

func (x *Endpoint) GetIp() string

func (*Endpoint) GetPort

func (x *Endpoint) GetPort() uint32

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

func (x *Endpoint) ProtoReflect() protoreflect.Message

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

type Expr

type Expr struct {

	// Types that are assignable to Node:
	//	*Expr_Operand
	//	*Expr_SubExpr
	Node isExpr_Node `protobuf_oneof:"Node"`
	// contains filtered or unexported fields
}

func (*Expr) Descriptor deprecated

func (*Expr) Descriptor() ([]byte, []int)

Deprecated: Use Expr.ProtoReflect.Descriptor instead.

func (*Expr) GetNode

func (m *Expr) GetNode() isExpr_Node

func (*Expr) GetOperand

func (x *Expr) GetOperand() *Operand

func (*Expr) GetSubExpr

func (x *Expr) GetSubExpr() *SubExpr

func (*Expr) ProtoMessage

func (*Expr) ProtoMessage()

func (*Expr) ProtoReflect

func (x *Expr) ProtoReflect() protoreflect.Message

func (*Expr) Reset

func (x *Expr) Reset()

func (*Expr) String

func (x *Expr) String() string

type Expr_Operand

type Expr_Operand struct {
	Operand *Operand `protobuf:"bytes,1,opt,name=operand,proto3,oneof"`
}

type Expr_SubExpr

type Expr_SubExpr struct {
	SubExpr *SubExpr `protobuf:"bytes,2,opt,name=sub_expr,json=subExpr,proto3,oneof"`
}

type Field

type Field struct {
	NameIndex uint32 `protobuf:"varint,1,opt,name=name_index,json=nameIndex,proto3" json:"name_index,omitempty"`
	Value     *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetNameIndex

func (x *Field) GetNameIndex() uint32

func (*Field) GetValue

func (x *Field) GetValue() *Value

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

func (x *Field) ProtoReflect() protoreflect.Message

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type FieldGroup

type FieldGroup struct {
	Timestamp int64    `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Fields    []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldGroup) Descriptor deprecated

func (*FieldGroup) Descriptor() ([]byte, []int)

Deprecated: Use FieldGroup.ProtoReflect.Descriptor instead.

func (*FieldGroup) GetFields

func (x *FieldGroup) GetFields() []*Field

func (*FieldGroup) GetTimestamp

func (x *FieldGroup) GetTimestamp() int64

func (*FieldGroup) ProtoMessage

func (*FieldGroup) ProtoMessage()

func (*FieldGroup) ProtoReflect

func (x *FieldGroup) ProtoReflect() protoreflect.Message

func (*FieldGroup) Reset

func (x *FieldGroup) Reset()

func (*FieldGroup) String

func (x *FieldGroup) String() string

type Filter

type Filter struct {
	TagKey    string            `protobuf:"bytes,1,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"`
	Operators []*FilterOperator `protobuf:"bytes,2,rep,name=operators,proto3" json:"operators,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetOperators

func (x *Filter) GetOperators() []*FilterOperator

func (*Filter) GetTagKey

func (x *Filter) GetTagKey() string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

func (x *Filter) ProtoReflect() protoreflect.Message

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type FilterOperator

type FilterOperator struct {
	FilterType FilterType `protobuf:"varint,1,opt,name=filter_type,json=filterType,proto3,enum=storage.FilterType" json:"filter_type,omitempty"`
	Params     []string   `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*FilterOperator) Descriptor deprecated

func (*FilterOperator) Descriptor() ([]byte, []int)

Deprecated: Use FilterOperator.ProtoReflect.Descriptor instead.

func (*FilterOperator) GetFilterType

func (x *FilterOperator) GetFilterType() FilterType

func (*FilterOperator) GetParams

func (x *FilterOperator) GetParams() []string

func (*FilterOperator) ProtoMessage

func (*FilterOperator) ProtoMessage()

func (*FilterOperator) ProtoReflect

func (x *FilterOperator) ProtoReflect() protoreflect.Message

func (*FilterOperator) Reset

func (x *FilterOperator) Reset()

func (*FilterOperator) String

func (x *FilterOperator) String() string

type FilterType

type FilterType int32
const (
	FilterType_LITERAL_OR       FilterType = 0
	FilterType_NOT_LITERAL_OR   FilterType = 1
	FilterType_REGEXP           FilterType = 2
	FilterType_NOT_REGEXP_MATCH FilterType = 3
)

func (FilterType) Descriptor

func (FilterType) Descriptor() protoreflect.EnumDescriptor

func (FilterType) Enum

func (x FilterType) Enum() *FilterType

func (FilterType) EnumDescriptor deprecated

func (FilterType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FilterType.Descriptor instead.

func (FilterType) Number

func (x FilterType) Number() protoreflect.EnumNumber

func (FilterType) String

func (x FilterType) String() string

func (FilterType) Type

type Label

type Label struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

func (*Label) Descriptor() ([]byte, []int)

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetName

func (x *Label) GetName() string

func (*Label) GetValue

func (x *Label) GetValue() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

func (x *Label) ProtoReflect() protoreflect.Message

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type Labels

type Labels struct {
	Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*Labels) Descriptor deprecated

func (*Labels) Descriptor() ([]byte, []int)

Deprecated: Use Labels.ProtoReflect.Descriptor instead.

func (*Labels) GetLabels

func (x *Labels) GetLabels() []*Label

func (*Labels) ProtoMessage

func (*Labels) ProtoMessage()

func (*Labels) ProtoReflect

func (x *Labels) ProtoReflect() protoreflect.Message

func (*Labels) Reset

func (x *Labels) Reset()

func (*Labels) String

func (x *Labels) String() string

type Operand

type Operand struct {

	// Types that are assignable to Value:
	//	*Operand_FloatVal
	//	*Operand_StringVal
	//	*Operand_Selector
	Value isOperand_Value `protobuf_oneof:"Value"`
	// contains filtered or unexported fields
}

func (*Operand) Descriptor deprecated

func (*Operand) Descriptor() ([]byte, []int)

Deprecated: Use Operand.ProtoReflect.Descriptor instead.

func (*Operand) GetFloatVal

func (x *Operand) GetFloatVal() float64

func (*Operand) GetSelector

func (x *Operand) GetSelector() *Selector

func (*Operand) GetStringVal

func (x *Operand) GetStringVal() string

func (*Operand) GetValue

func (m *Operand) GetValue() isOperand_Value

func (*Operand) ProtoMessage

func (*Operand) ProtoMessage()

func (*Operand) ProtoReflect

func (x *Operand) ProtoReflect() protoreflect.Message

func (*Operand) Reset

func (x *Operand) Reset()

func (*Operand) String

func (x *Operand) String() string

type Operand_FloatVal

type Operand_FloatVal struct {
	FloatVal float64 `protobuf:"fixed64,1,opt,name=float_val,json=floatVal,proto3,oneof"`
}

type Operand_Selector

type Operand_Selector struct {
	Selector *Selector `protobuf:"bytes,3,opt,name=selector,proto3,oneof"`
}

type Operand_StringVal

type Operand_StringVal struct {
	StringVal string `protobuf:"bytes,2,opt,name=string_val,json=stringVal,proto3,oneof"`
}

type PrometheusQueryRequest

type PrometheusQueryRequest struct {
	Expr *Expr `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	// use oneof to represent option for scalar value
	// https://github.com/protocolbuffers/protobuf/issues/1606
	//
	// Types that are assignable to LookbackDelta:
	//	*PrometheusQueryRequest_Delta
	LookbackDelta isPrometheusQueryRequest_LookbackDelta `protobuf_oneof:"lookback_delta"`
	// contains filtered or unexported fields
}

func (*PrometheusQueryRequest) Descriptor deprecated

func (*PrometheusQueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use PrometheusQueryRequest.ProtoReflect.Descriptor instead.

func (*PrometheusQueryRequest) GetDelta

func (x *PrometheusQueryRequest) GetDelta() int64

func (*PrometheusQueryRequest) GetExpr

func (x *PrometheusQueryRequest) GetExpr() *Expr

func (*PrometheusQueryRequest) GetLookbackDelta

func (m *PrometheusQueryRequest) GetLookbackDelta() isPrometheusQueryRequest_LookbackDelta

func (*PrometheusQueryRequest) ProtoMessage

func (*PrometheusQueryRequest) ProtoMessage()

func (*PrometheusQueryRequest) ProtoReflect

func (x *PrometheusQueryRequest) ProtoReflect() protoreflect.Message

func (*PrometheusQueryRequest) Reset

func (x *PrometheusQueryRequest) Reset()

func (*PrometheusQueryRequest) String

func (x *PrometheusQueryRequest) String() string

type PrometheusQueryRequest_Delta

type PrometheusQueryRequest_Delta struct {
	Delta int64 `protobuf:"varint,2,opt,name=delta,proto3,oneof"`
}

type PrometheusQueryResponse

type PrometheusQueryResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Samples within a time series must be ordered by time.
	Timeseries []*TimeSeries `protobuf:"bytes,2,rep,name=timeseries,proto3" json:"timeseries,omitempty"`
	// contains filtered or unexported fields
}

func (*PrometheusQueryResponse) Descriptor deprecated

func (*PrometheusQueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use PrometheusQueryResponse.ProtoReflect.Descriptor instead.

func (*PrometheusQueryResponse) GetHeader

func (x *PrometheusQueryResponse) GetHeader() *ResponseHeader

func (*PrometheusQueryResponse) GetTimeseries

func (x *PrometheusQueryResponse) GetTimeseries() []*TimeSeries

func (*PrometheusQueryResponse) ProtoMessage

func (*PrometheusQueryResponse) ProtoMessage()

func (*PrometheusQueryResponse) ProtoReflect

func (x *PrometheusQueryResponse) ProtoReflect() protoreflect.Message

func (*PrometheusQueryResponse) Reset

func (x *PrometheusQueryResponse) Reset()

func (*PrometheusQueryResponse) String

func (x *PrometheusQueryResponse) String() string

type QueryRequest

type QueryRequest struct {
	Metrics []string `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	Ql      string   `protobuf:"bytes,2,opt,name=ql,proto3" json:"ql,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest) Descriptor deprecated

func (*QueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetMetrics

func (x *QueryRequest) GetMetrics() []string

func (*QueryRequest) GetQl

func (x *QueryRequest) GetQl() string

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

func (x *QueryRequest) ProtoReflect() protoreflect.Message

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryResponse

type QueryResponse struct {
	Header        *ResponseHeader          `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	SchemaType    QueryResponse_SchemaType `` /* 130-byte string literal not displayed */
	SchemaContent string                   `protobuf:"bytes,3,opt,name=schema_content,json=schemaContent,proto3" json:"schema_content,omitempty"`
	Rows          [][]byte                 `protobuf:"bytes,4,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

func (*QueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetHeader

func (x *QueryResponse) GetHeader() *ResponseHeader

func (*QueryResponse) GetRows

func (x *QueryResponse) GetRows() [][]byte

func (*QueryResponse) GetSchemaContent

func (x *QueryResponse) GetSchemaContent() string

func (*QueryResponse) GetSchemaType

func (x *QueryResponse) GetSchemaType() QueryResponse_SchemaType

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

func (x *QueryResponse) ProtoReflect() protoreflect.Message

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type QueryResponse_SchemaType

type QueryResponse_SchemaType int32
const (
	QueryResponse_AVRO QueryResponse_SchemaType = 0
	QueryResponse_JSON QueryResponse_SchemaType = 1
)

func (QueryResponse_SchemaType) Descriptor

func (QueryResponse_SchemaType) Enum

func (QueryResponse_SchemaType) EnumDescriptor deprecated

func (QueryResponse_SchemaType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryResponse_SchemaType.Descriptor instead.

func (QueryResponse_SchemaType) Number

func (QueryResponse_SchemaType) String

func (x QueryResponse_SchemaType) String() string

func (QueryResponse_SchemaType) Type

type ResponseHeader

type ResponseHeader struct {
	Code  uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseHeader) Descriptor deprecated

func (*ResponseHeader) Descriptor() ([]byte, []int)

Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead.

func (*ResponseHeader) GetCode

func (x *ResponseHeader) GetCode() uint32

func (*ResponseHeader) GetError

func (x *ResponseHeader) GetError() string

func (*ResponseHeader) ProtoMessage

func (*ResponseHeader) ProtoMessage()

func (*ResponseHeader) ProtoReflect

func (x *ResponseHeader) ProtoReflect() protoreflect.Message

func (*ResponseHeader) Reset

func (x *ResponseHeader) Reset()

func (*ResponseHeader) String

func (x *ResponseHeader) String() string

type Route

type Route struct {
	Metric   string    `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	Endpoint *Endpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Ext      []byte    `protobuf:"bytes,3,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

func (*Route) Descriptor deprecated

func (*Route) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetEndpoint

func (x *Route) GetEndpoint() *Endpoint

func (*Route) GetExt

func (x *Route) GetExt() []byte

func (*Route) GetMetric

func (x *Route) GetMetric() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type RouteRequest

type RouteRequest struct {
	Metrics []string `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteRequest) Descriptor deprecated

func (*RouteRequest) Descriptor() ([]byte, []int)

Deprecated: Use RouteRequest.ProtoReflect.Descriptor instead.

func (*RouteRequest) GetMetrics

func (x *RouteRequest) GetMetrics() []string

func (*RouteRequest) ProtoMessage

func (*RouteRequest) ProtoMessage()

func (*RouteRequest) ProtoReflect

func (x *RouteRequest) ProtoReflect() protoreflect.Message

func (*RouteRequest) Reset

func (x *RouteRequest) Reset()

func (*RouteRequest) String

func (x *RouteRequest) String() string

type RouteResponse

type RouteResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Routes []*Route        `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteResponse) Descriptor deprecated

func (*RouteResponse) Descriptor() ([]byte, []int)

Deprecated: Use RouteResponse.ProtoReflect.Descriptor instead.

func (*RouteResponse) GetHeader

func (x *RouteResponse) GetHeader() *ResponseHeader

func (*RouteResponse) GetRoutes

func (x *RouteResponse) GetRoutes() []*Route

func (*RouteResponse) ProtoMessage

func (*RouteResponse) ProtoMessage()

func (*RouteResponse) ProtoReflect

func (x *RouteResponse) ProtoReflect() protoreflect.Message

func (*RouteResponse) Reset

func (x *RouteResponse) Reset()

func (*RouteResponse) String

func (x *RouteResponse) String() string

type Sample

type Sample struct {
	Value     float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp int64   `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Sample) Descriptor deprecated

func (*Sample) Descriptor() ([]byte, []int)

Deprecated: Use Sample.ProtoReflect.Descriptor instead.

func (*Sample) GetTimestamp

func (x *Sample) GetTimestamp() int64

func (*Sample) GetValue

func (x *Sample) GetValue() float64

func (*Sample) ProtoMessage

func (*Sample) ProtoMessage()

func (*Sample) ProtoReflect

func (x *Sample) ProtoReflect() protoreflect.Message

func (*Sample) Reset

func (x *Sample) Reset()

func (*Sample) String

func (x *Sample) String() string

type Selector

type Selector struct {
	Measurement string    `protobuf:"bytes,1,opt,name=measurement,proto3" json:"measurement,omitempty"`
	Filters     []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
	Start       int64     `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	End         int64     `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	AlignStart  int64     `protobuf:"varint,5,opt,name=align_start,json=alignStart,proto3" json:"align_start,omitempty"`
	AlignEnd    int64     `protobuf:"varint,6,opt,name=align_end,json=alignEnd,proto3" json:"align_end,omitempty"`
	Step        int64     `protobuf:"varint,7,opt,name=step,proto3" json:"step,omitempty"`
	Range       int64     `protobuf:"varint,8,opt,name=range,proto3" json:"range,omitempty"`
	Offset      int64     `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"`
	Field       string    `protobuf:"bytes,10,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*Selector) Descriptor deprecated

func (*Selector) Descriptor() ([]byte, []int)

Deprecated: Use Selector.ProtoReflect.Descriptor instead.

func (*Selector) GetAlignEnd

func (x *Selector) GetAlignEnd() int64

func (*Selector) GetAlignStart

func (x *Selector) GetAlignStart() int64

func (*Selector) GetEnd

func (x *Selector) GetEnd() int64

func (*Selector) GetField

func (x *Selector) GetField() string

func (*Selector) GetFilters

func (x *Selector) GetFilters() []*Filter

func (*Selector) GetMeasurement

func (x *Selector) GetMeasurement() string

func (*Selector) GetOffset

func (x *Selector) GetOffset() int64

func (*Selector) GetRange

func (x *Selector) GetRange() int64

func (*Selector) GetStart

func (x *Selector) GetStart() int64

func (*Selector) GetStep

func (x *Selector) GetStep() int64

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) ProtoReflect

func (x *Selector) ProtoReflect() protoreflect.Message

func (*Selector) Reset

func (x *Selector) Reset()

func (*Selector) String

func (x *Selector) String() string

type StorageServiceClient

type StorageServiceClient interface {
	Route(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*RouteResponse, error)
	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
	StreamWrite(ctx context.Context, opts ...grpc.CallOption) (StorageService_StreamWriteClient, error)
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	StreamQuery(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (StorageService_StreamQueryClient, error)
	PromQuery(ctx context.Context, in *PrometheusQueryRequest, opts ...grpc.CallOption) (*PrometheusQueryResponse, error)
}

StorageServiceClient is the client API for StorageService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type StorageServiceServer

type StorageServiceServer interface {
	Route(context.Context, *RouteRequest) (*RouteResponse, error)
	Write(context.Context, *WriteRequest) (*WriteResponse, error)
	StreamWrite(StorageService_StreamWriteServer) error
	Query(context.Context, *QueryRequest) (*QueryResponse, error)
	StreamQuery(*QueryRequest, StorageService_StreamQueryServer) error
	PromQuery(context.Context, *PrometheusQueryRequest) (*PrometheusQueryResponse, error)
	// contains filtered or unexported methods
}

StorageServiceServer is the server API for StorageService service. All implementations must embed UnimplementedStorageServiceServer for forward compatibility

type StorageService_StreamQueryClient

type StorageService_StreamQueryClient interface {
	Recv() (*QueryResponse, error)
	grpc.ClientStream
}

type StorageService_StreamQueryServer

type StorageService_StreamQueryServer interface {
	Send(*QueryResponse) error
	grpc.ServerStream
}

type StorageService_StreamWriteClient

type StorageService_StreamWriteClient interface {
	Send(*WriteRequest) error
	CloseAndRecv() (*WriteResponse, error)
	grpc.ClientStream
}

type StorageService_StreamWriteServer

type StorageService_StreamWriteServer interface {
	SendAndClose(*WriteResponse) error
	Recv() (*WriteRequest, error)
	grpc.ServerStream
}

type SubExpr

type SubExpr struct {
	OpType   SubExpr_OperatorType `protobuf:"varint,1,opt,name=op_type,json=opType,proto3,enum=storage.SubExpr_OperatorType" json:"op_type,omitempty"`
	Operator string               `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	Operands []*Expr              `protobuf:"bytes,3,rep,name=operands,proto3" json:"operands,omitempty"`
	// for aggr
	Group   []string `protobuf:"bytes,4,rep,name=group,proto3" json:"group,omitempty"`
	Without bool     `protobuf:"varint,5,opt,name=without,proto3" json:"without,omitempty"`
	// contains filtered or unexported fields
}

func (*SubExpr) Descriptor deprecated

func (*SubExpr) Descriptor() ([]byte, []int)

Deprecated: Use SubExpr.ProtoReflect.Descriptor instead.

func (*SubExpr) GetGroup

func (x *SubExpr) GetGroup() []string

func (*SubExpr) GetOpType

func (x *SubExpr) GetOpType() SubExpr_OperatorType

func (*SubExpr) GetOperands

func (x *SubExpr) GetOperands() []*Expr

func (*SubExpr) GetOperator

func (x *SubExpr) GetOperator() string

func (*SubExpr) GetWithout

func (x *SubExpr) GetWithout() bool

func (*SubExpr) ProtoMessage

func (*SubExpr) ProtoMessage()

func (*SubExpr) ProtoReflect

func (x *SubExpr) ProtoReflect() protoreflect.Message

func (*SubExpr) Reset

func (x *SubExpr) Reset()

func (*SubExpr) String

func (x *SubExpr) String() string

type SubExpr_OperatorType

type SubExpr_OperatorType int32
const (
	SubExpr_AGGR   SubExpr_OperatorType = 0
	SubExpr_FUNC   SubExpr_OperatorType = 1
	SubExpr_BINARY SubExpr_OperatorType = 2
)

func (SubExpr_OperatorType) Descriptor

func (SubExpr_OperatorType) Enum

func (SubExpr_OperatorType) EnumDescriptor deprecated

func (SubExpr_OperatorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SubExpr_OperatorType.Descriptor instead.

func (SubExpr_OperatorType) Number

func (SubExpr_OperatorType) String

func (x SubExpr_OperatorType) String() string

func (SubExpr_OperatorType) Type

type Tag

type Tag struct {
	NameIndex uint32 `protobuf:"varint,1,opt,name=name_index,json=nameIndex,proto3" json:"name_index,omitempty"`
	Value     *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

func (*Tag) Descriptor() ([]byte, []int)

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetNameIndex

func (x *Tag) GetNameIndex() uint32

func (*Tag) GetValue

func (x *Tag) GetValue() *Value

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

func (x *Tag) ProtoReflect() protoreflect.Message

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type TimeSeries

type TimeSeries struct {
	Labels  []*Label  `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	Samples []*Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeSeries) Descriptor deprecated

func (*TimeSeries) Descriptor() ([]byte, []int)

Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.

func (*TimeSeries) GetLabels

func (x *TimeSeries) GetLabels() []*Label

func (*TimeSeries) GetSamples

func (x *TimeSeries) GetSamples() []*Sample

func (*TimeSeries) ProtoMessage

func (*TimeSeries) ProtoMessage()

func (*TimeSeries) ProtoReflect

func (x *TimeSeries) ProtoReflect() protoreflect.Message

func (*TimeSeries) Reset

func (x *TimeSeries) Reset()

func (*TimeSeries) String

func (x *TimeSeries) String() string

type UnimplementedStorageServiceServer

type UnimplementedStorageServiceServer struct {
}

UnimplementedStorageServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStorageServiceServer) PromQuery

func (UnimplementedStorageServiceServer) Query

func (UnimplementedStorageServiceServer) Route

func (UnimplementedStorageServiceServer) StreamQuery

func (UnimplementedStorageServiceServer) StreamWrite

func (UnimplementedStorageServiceServer) Write

type UnsafeStorageServiceServer

type UnsafeStorageServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeStorageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageServiceServer will result in compilation errors.

type Value

type Value struct {

	// Types that are assignable to Value:
	//	*Value_Float64Value
	//	*Value_StringValue
	//	*Value_Int64Value
	//	*Value_Float32Value
	//	*Value_Int32Value
	//	*Value_Int16Value
	//	*Value_Int8Value
	//	*Value_BoolValue
	//	*Value_Uint64Value
	//	*Value_Uint32Value
	//	*Value_Uint16Value
	//	*Value_Uint8Value
	//	*Value_TimestampValue
	//	*Value_VarbinaryValue
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetFloat32Value

func (x *Value) GetFloat32Value() float32

func (*Value) GetFloat64Value

func (x *Value) GetFloat64Value() float64

func (*Value) GetInt16Value

func (x *Value) GetInt16Value() int32

func (*Value) GetInt32Value

func (x *Value) GetInt32Value() int32

func (*Value) GetInt64Value

func (x *Value) GetInt64Value() int64

func (*Value) GetInt8Value

func (x *Value) GetInt8Value() int32

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetTimestampValue

func (x *Value) GetTimestampValue() int64

func (*Value) GetUint16Value

func (x *Value) GetUint16Value() uint32

func (*Value) GetUint32Value

func (x *Value) GetUint32Value() uint32

func (*Value) GetUint64Value

func (x *Value) GetUint64Value() uint64

func (*Value) GetUint8Value

func (x *Value) GetUint8Value() uint32

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) GetVarbinaryValue

func (x *Value) GetVarbinaryValue() []byte

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_BoolValue

type Value_BoolValue struct {
	BoolValue bool `protobuf:"varint,8,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Value_Float32Value

type Value_Float32Value struct {
	Float32Value float32 `protobuf:"fixed32,4,opt,name=float32_value,json=float32Value,proto3,oneof"`
}

type Value_Float64Value

type Value_Float64Value struct {
	Float64Value float64 `protobuf:"fixed64,1,opt,name=float64_value,json=float64Value,proto3,oneof"`
}

type Value_Int16Value

type Value_Int16Value struct {
	Int16Value int32 `protobuf:"varint,6,opt,name=int16_value,json=int16Value,proto3,oneof"`
}

type Value_Int32Value

type Value_Int32Value struct {
	Int32Value int32 `protobuf:"varint,5,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_Int8Value

type Value_Int8Value struct {
	Int8Value int32 `protobuf:"varint,7,opt,name=int8_value,json=int8Value,proto3,oneof"`
}

type Value_StringValue

type Value_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Value_TimestampValue

type Value_TimestampValue struct {
	TimestampValue int64 `protobuf:"varint,13,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
}

type Value_Uint16Value

type Value_Uint16Value struct {
	Uint16Value uint32 `protobuf:"varint,11,opt,name=uint16_value,json=uint16Value,proto3,oneof"`
}

type Value_Uint32Value

type Value_Uint32Value struct {
	Uint32Value uint32 `protobuf:"varint,10,opt,name=uint32_value,json=uint32Value,proto3,oneof"`
}

type Value_Uint64Value

type Value_Uint64Value struct {
	Uint64Value uint64 `protobuf:"varint,9,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
}

type Value_Uint8Value

type Value_Uint8Value struct {
	Uint8Value uint32 `protobuf:"varint,12,opt,name=uint8_value,json=uint8Value,proto3,oneof"`
}

type Value_VarbinaryValue

type Value_VarbinaryValue struct {
	VarbinaryValue []byte `protobuf:"bytes,14,opt,name=varbinary_value,json=varbinaryValue,proto3,oneof"`
}

type WriteEntry

type WriteEntry struct {
	Tags        []*Tag        `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	FieldGroups []*FieldGroup `protobuf:"bytes,2,rep,name=field_groups,json=fieldGroups,proto3" json:"field_groups,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteEntry) Descriptor deprecated

func (*WriteEntry) Descriptor() ([]byte, []int)

Deprecated: Use WriteEntry.ProtoReflect.Descriptor instead.

func (*WriteEntry) GetFieldGroups

func (x *WriteEntry) GetFieldGroups() []*FieldGroup

func (*WriteEntry) GetTags

func (x *WriteEntry) GetTags() []*Tag

func (*WriteEntry) ProtoMessage

func (*WriteEntry) ProtoMessage()

func (*WriteEntry) ProtoReflect

func (x *WriteEntry) ProtoReflect() protoreflect.Message

func (*WriteEntry) Reset

func (x *WriteEntry) Reset()

func (*WriteEntry) String

func (x *WriteEntry) String() string

type WriteMetric

type WriteMetric struct {
	Metric     string        `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	TagNames   []string      `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
	FieldNames []string      `protobuf:"bytes,3,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"`
	Entries    []*WriteEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteMetric) Descriptor deprecated

func (*WriteMetric) Descriptor() ([]byte, []int)

Deprecated: Use WriteMetric.ProtoReflect.Descriptor instead.

func (*WriteMetric) GetEntries

func (x *WriteMetric) GetEntries() []*WriteEntry

func (*WriteMetric) GetFieldNames

func (x *WriteMetric) GetFieldNames() []string

func (*WriteMetric) GetMetric

func (x *WriteMetric) GetMetric() string

func (*WriteMetric) GetTagNames

func (x *WriteMetric) GetTagNames() []string

func (*WriteMetric) ProtoMessage

func (*WriteMetric) ProtoMessage()

func (*WriteMetric) ProtoReflect

func (x *WriteMetric) ProtoReflect() protoreflect.Message

func (*WriteMetric) Reset

func (x *WriteMetric) Reset()

func (*WriteMetric) String

func (x *WriteMetric) String() string

type WriteRequest

type WriteRequest struct {
	Metrics []*WriteMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteRequest) Descriptor deprecated

func (*WriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetMetrics

func (x *WriteRequest) GetMetrics() []*WriteMetric

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

func (x *WriteRequest) ProtoReflect() protoreflect.Message

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

type WriteResponse

type WriteResponse struct {
	Header  *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Success uint32          `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	Failed  uint32          `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteResponse) Descriptor deprecated

func (*WriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) GetFailed

func (x *WriteResponse) GetFailed() uint32

func (*WriteResponse) GetHeader

func (x *WriteResponse) GetHeader() *ResponseHeader

func (*WriteResponse) GetSuccess

func (x *WriteResponse) GetSuccess() uint32

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

func (x *WriteResponse) ProtoReflect() protoreflect.Message

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL