ceresprompb

package
v0.0.0-...-29cb0c6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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 File_prometheus_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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 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=prometheus.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 *commonpb.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 (*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 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 SubExpr

type SubExpr struct {
	OpType   SubExpr_OperatorType `protobuf:"varint,1,opt,name=op_type,json=opType,proto3,enum=prometheus.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 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

Jump to

Keyboard shortcuts

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