Documentation ¶
Index ¶
- Variables
- type Expr
- type Expr_Operand
- type Expr_SubExpr
- type Filter
- type FilterOperator
- func (*FilterOperator) Descriptor() ([]byte, []int)deprecated
- func (x *FilterOperator) GetFilterType() FilterType
- func (x *FilterOperator) GetParams() []string
- func (*FilterOperator) ProtoMessage()
- func (x *FilterOperator) ProtoReflect() protoreflect.Message
- func (x *FilterOperator) Reset()
- func (x *FilterOperator) String() string
- type FilterType
- type Label
- type Labels
- type Operand
- func (*Operand) Descriptor() ([]byte, []int)deprecated
- func (x *Operand) GetFloatVal() float64
- func (x *Operand) GetSelector() *Selector
- func (x *Operand) GetStringVal() string
- func (m *Operand) GetValue() isOperand_Value
- func (*Operand) ProtoMessage()
- func (x *Operand) ProtoReflect() protoreflect.Message
- func (x *Operand) Reset()
- func (x *Operand) String() string
- type Operand_FloatVal
- type Operand_Selector
- type Operand_StringVal
- type Sample
- type Selector
- func (*Selector) Descriptor() ([]byte, []int)deprecated
- func (x *Selector) GetAlignEnd() int64
- func (x *Selector) GetAlignStart() int64
- func (x *Selector) GetEnd() int64
- func (x *Selector) GetField() string
- func (x *Selector) GetFilters() []*Filter
- func (x *Selector) GetMeasurement() string
- func (x *Selector) GetOffset() int64
- func (x *Selector) GetRange() int64
- func (x *Selector) GetStart() int64
- func (x *Selector) GetStep() int64
- func (*Selector) ProtoMessage()
- func (x *Selector) ProtoReflect() protoreflect.Message
- func (x *Selector) Reset()
- func (x *Selector) String() string
- type SubExpr
- func (*SubExpr) Descriptor() ([]byte, []int)deprecated
- func (x *SubExpr) GetGroup() []string
- func (x *SubExpr) GetOpType() SubExpr_OperatorType
- func (x *SubExpr) GetOperands() []*Expr
- func (x *SubExpr) GetOperator() string
- func (x *SubExpr) GetWithout() bool
- func (*SubExpr) ProtoMessage()
- func (x *SubExpr) ProtoReflect() protoreflect.Message
- func (x *SubExpr) Reset()
- func (x *SubExpr) String() string
- type SubExpr_OperatorType
- func (SubExpr_OperatorType) Descriptor() protoreflect.EnumDescriptor
- func (x SubExpr_OperatorType) Enum() *SubExpr_OperatorType
- func (SubExpr_OperatorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubExpr_OperatorType) Number() protoreflect.EnumNumber
- func (x SubExpr_OperatorType) String() string
- func (SubExpr_OperatorType) Type() protoreflect.EnumType
- type TimeSeries
- func (*TimeSeries) Descriptor() ([]byte, []int)deprecated
- func (x *TimeSeries) GetLabels() []*Label
- func (x *TimeSeries) GetSamples() []*Sample
- func (*TimeSeries) ProtoMessage()
- func (x *TimeSeries) ProtoReflect() protoreflect.Message
- func (x *TimeSeries) Reset()
- func (x *TimeSeries) String() string
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) GetOperand ¶
func (*Expr) GetSubExpr ¶
func (*Expr) ProtoMessage ¶
func (*Expr) ProtoMessage()
func (*Expr) ProtoReflect ¶
func (x *Expr) ProtoReflect() protoreflect.Message
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) GetOperators ¶
func (x *Filter) GetOperators() []*FilterOperator
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
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 ¶
func (FilterType) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Labels) ProtoMessage()
func (*Labels) ProtoReflect ¶
func (x *Labels) ProtoReflect() protoreflect.Message
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) GetFloatVal ¶
func (*Operand) GetSelector ¶
func (*Operand) GetStringVal ¶
func (*Operand) ProtoMessage ¶
func (*Operand) ProtoMessage()
func (*Operand) ProtoReflect ¶
func (x *Operand) ProtoReflect() protoreflect.Message
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 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) GetTimestamp ¶
func (*Sample) ProtoMessage ¶
func (*Sample) ProtoMessage()
func (*Sample) ProtoReflect ¶
func (x *Sample) ProtoReflect() protoreflect.Message
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) GetAlignEnd ¶
func (*Selector) GetAlignStart ¶
func (*Selector) GetFilters ¶
func (*Selector) GetMeasurement ¶
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) ProtoReflect ¶
func (x *Selector) ProtoReflect() protoreflect.Message
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) GetOpType ¶
func (x *SubExpr) GetOpType() SubExpr_OperatorType
func (*SubExpr) GetOperands ¶
func (*SubExpr) GetOperator ¶
func (*SubExpr) GetWithout ¶
func (*SubExpr) ProtoMessage ¶
func (*SubExpr) ProtoMessage()
func (*SubExpr) ProtoReflect ¶
func (x *SubExpr) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (SubExpr_OperatorType) Enum ¶
func (x SubExpr_OperatorType) Enum() *SubExpr_OperatorType
func (SubExpr_OperatorType) EnumDescriptor
deprecated
func (SubExpr_OperatorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubExpr_OperatorType.Descriptor instead.
func (SubExpr_OperatorType) Number ¶
func (x SubExpr_OperatorType) Number() protoreflect.EnumNumber
func (SubExpr_OperatorType) String ¶
func (x SubExpr_OperatorType) String() string
func (SubExpr_OperatorType) Type ¶
func (SubExpr_OperatorType) Type() protoreflect.EnumType
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
Click to show internal directories.
Click to hide internal directories.