Versions in this module Expand all Collapse all v0 v0.26.0 Apr 9, 2022 Changes in this version + const RuleAlertingType + const RuleRecordingType + var AlertState_name = map[int32]string + var AlertState_value = map[string]int32 + var ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") + var RulesRequest_Type_name = map[int32]string + var RulesRequest_Type_value = map[string]int32 + func RegisterRulesServer(s *grpc.Server, srv RulesServer) + type Alert struct + Alerts []*AlertInstance + Annotations labelpb.ZLabelSet + DurationSeconds float64 + EvaluationDurationSeconds float64 + Health string + Labels labelpb.ZLabelSet + LastError string + LastEvaluation time.Time + Name string + Query string + State AlertState + func (*Alert) Descriptor() ([]byte, []int) + func (*Alert) ProtoMessage() + func (a1 *Alert) Compare(a2 *Alert) int + func (m *Alert) Marshal() (dAtA []byte, err error) + func (m *Alert) MarshalTo(dAtA []byte) (int, error) + func (m *Alert) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Alert) Reset() + func (m *Alert) Size() (n int) + func (m *Alert) String() string + func (m *Alert) Unmarshal(dAtA []byte) error + func (m *Alert) XXX_DiscardUnknown() + func (m *Alert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Alert) XXX_Merge(src proto.Message) + func (m *Alert) XXX_Size() int + func (m *Alert) XXX_Unmarshal(b []byte) error + type AlertInstance struct + ActiveAt *time.Time + Annotations labelpb.ZLabelSet + Labels labelpb.ZLabelSet + PartialResponseStrategy storepb.PartialResponseStrategy + State AlertState + Value string + func (*AlertInstance) Descriptor() ([]byte, []int) + func (*AlertInstance) ProtoMessage() + func (m *AlertInstance) Marshal() (dAtA []byte, err error) + func (m *AlertInstance) MarshalTo(dAtA []byte) (int, error) + func (m *AlertInstance) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AlertInstance) Reset() + func (m *AlertInstance) Size() (n int) + func (m *AlertInstance) String() string + func (m *AlertInstance) Unmarshal(dAtA []byte) error + func (m *AlertInstance) XXX_DiscardUnknown() + func (m *AlertInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AlertInstance) XXX_Merge(src proto.Message) + func (m *AlertInstance) XXX_Size() int + func (m *AlertInstance) XXX_Unmarshal(b []byte) error + type AlertState int32 + const AlertState_FIRING + const AlertState_INACTIVE + const AlertState_PENDING + func (AlertState) EnumDescriptor() ([]byte, []int) + func (x *AlertState) MarshalJSON() ([]byte, error) + func (x *AlertState) UnmarshalJSON(entry []byte) error + func (x AlertState) Compare(y AlertState) int + func (x AlertState) String() string + type RecordingRule struct + EvaluationDurationSeconds float64 + Health string + Labels labelpb.ZLabelSet + LastError string + LastEvaluation time.Time + Name string + Query string + func (*RecordingRule) Descriptor() ([]byte, []int) + func (*RecordingRule) ProtoMessage() + func (m *RecordingRule) Marshal() (dAtA []byte, err error) + func (m *RecordingRule) MarshalTo(dAtA []byte) (int, error) + func (m *RecordingRule) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RecordingRule) Reset() + func (m *RecordingRule) Size() (n int) + func (m *RecordingRule) String() string + func (m *RecordingRule) Unmarshal(dAtA []byte) error + func (m *RecordingRule) XXX_DiscardUnknown() + func (m *RecordingRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RecordingRule) XXX_Merge(src proto.Message) + func (m *RecordingRule) XXX_Size() int + func (m *RecordingRule) XXX_Unmarshal(b []byte) error + func (r1 *RecordingRule) Compare(r2 *RecordingRule) int + type Rule struct + Result isRule_Result + func NewAlertingRule(a *Alert) *Rule + func NewRecordingRule(r *RecordingRule) *Rule + func (*Rule) Descriptor() ([]byte, []int) + func (*Rule) ProtoMessage() + func (*Rule) XXX_OneofWrappers() []interface{} + func (m *Rule) GetAlert() *Alert + func (m *Rule) GetRecording() *RecordingRule + func (m *Rule) GetResult() isRule_Result + func (m *Rule) Marshal() (dAtA []byte, err error) + func (m *Rule) MarshalJSON() ([]byte, error) + func (m *Rule) MarshalTo(dAtA []byte) (int, error) + func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Rule) Reset() + func (m *Rule) Size() (n int) + func (m *Rule) String() string + func (m *Rule) Unmarshal(dAtA []byte) error + func (m *Rule) UnmarshalJSON(entry []byte) error + func (m *Rule) XXX_DiscardUnknown() + func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Rule) XXX_Merge(src proto.Message) + func (m *Rule) XXX_Size() int + func (m *Rule) XXX_Unmarshal(b []byte) error + func (r *Rule) GetLabels() labels.Labels + func (r *Rule) GetLastEvaluation() time.Time + func (r *Rule) GetName() string + func (r *Rule) GetQuery() string + func (r *Rule) SetLabels(ls labels.Labels) + func (r1 *Rule) Compare(r2 *Rule) int + type RuleGroup struct + EvaluationDurationSeconds float64 + File string + Interval float64 + LastEvaluation time.Time + Limit int64 + Name string + PartialResponseStrategy storepb.PartialResponseStrategy + Rules []*Rule + func (*RuleGroup) Descriptor() ([]byte, []int) + func (*RuleGroup) ProtoMessage() + func (m *RuleGroup) Marshal() (dAtA []byte, err error) + func (m *RuleGroup) MarshalTo(dAtA []byte) (int, error) + func (m *RuleGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RuleGroup) Reset() + func (m *RuleGroup) Size() (n int) + func (m *RuleGroup) String() string + func (m *RuleGroup) Unmarshal(dAtA []byte) error + func (m *RuleGroup) XXX_DiscardUnknown() + func (m *RuleGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RuleGroup) XXX_Merge(src proto.Message) + func (m *RuleGroup) XXX_Size() int + func (m *RuleGroup) XXX_Unmarshal(b []byte) error + func (r *RuleGroup) Key() string + func (r *RuleGroup) MarshalJSON() ([]byte, error) + func (r1 *RuleGroup) Compare(r2 *RuleGroup) int + type RuleGroups struct + Groups []*RuleGroup + func (*RuleGroups) Descriptor() ([]byte, []int) + func (*RuleGroups) ProtoMessage() + func (m *RuleGroups) Marshal() (dAtA []byte, err error) + func (m *RuleGroups) MarshalTo(dAtA []byte) (int, error) + func (m *RuleGroups) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RuleGroups) Reset() + func (m *RuleGroups) Size() (n int) + func (m *RuleGroups) String() string + func (m *RuleGroups) Unmarshal(dAtA []byte) error + func (m *RuleGroups) XXX_DiscardUnknown() + func (m *RuleGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RuleGroups) XXX_Merge(src proto.Message) + func (m *RuleGroups) XXX_Size() int + func (m *RuleGroups) XXX_Unmarshal(b []byte) error + func (r *RuleGroups) MarshalJSON() ([]byte, error) + type Rule_Alert struct + Alert *Alert + func (m *Rule_Alert) MarshalTo(dAtA []byte) (int, error) + func (m *Rule_Alert) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Rule_Alert) Size() (n int) + type Rule_Recording struct + Recording *RecordingRule + func (m *Rule_Recording) MarshalTo(dAtA []byte) (int, error) + func (m *Rule_Recording) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Rule_Recording) Size() (n int) + type RulesClient interface + Rules func(ctx context.Context, in *RulesRequest, opts ...grpc.CallOption) (Rules_RulesClient, error) + func NewRulesClient(cc *grpc.ClientConn) RulesClient + type RulesRequest struct + MatcherString []string + PartialResponseStrategy storepb.PartialResponseStrategy + Type RulesRequest_Type + func (*RulesRequest) Descriptor() ([]byte, []int) + func (*RulesRequest) ProtoMessage() + func (m *RulesRequest) Marshal() (dAtA []byte, err error) + func (m *RulesRequest) MarshalTo(dAtA []byte) (int, error) + func (m *RulesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RulesRequest) Reset() + func (m *RulesRequest) Size() (n int) + func (m *RulesRequest) String() string + func (m *RulesRequest) Unmarshal(dAtA []byte) error + func (m *RulesRequest) XXX_DiscardUnknown() + func (m *RulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RulesRequest) XXX_Merge(src proto.Message) + func (m *RulesRequest) XXX_Size() int + func (m *RulesRequest) XXX_Unmarshal(b []byte) error + type RulesRequest_Type int32 + const RulesRequest_ALERT + const RulesRequest_ALL + const RulesRequest_RECORD + func (RulesRequest_Type) EnumDescriptor() ([]byte, []int) + func (x RulesRequest_Type) String() string + type RulesResponse struct + Result isRulesResponse_Result + func NewRuleGroupRulesResponse(rg *RuleGroup) *RulesResponse + func NewWarningRulesResponse(warning error) *RulesResponse + func (*RulesResponse) Descriptor() ([]byte, []int) + func (*RulesResponse) ProtoMessage() + func (*RulesResponse) XXX_OneofWrappers() []interface{} + func (m *RulesResponse) GetGroup() *RuleGroup + func (m *RulesResponse) GetResult() isRulesResponse_Result + func (m *RulesResponse) GetWarning() string + func (m *RulesResponse) Marshal() (dAtA []byte, err error) + func (m *RulesResponse) MarshalTo(dAtA []byte) (int, error) + func (m *RulesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RulesResponse) Reset() + func (m *RulesResponse) Size() (n int) + func (m *RulesResponse) String() string + func (m *RulesResponse) Unmarshal(dAtA []byte) error + func (m *RulesResponse) XXX_DiscardUnknown() + func (m *RulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RulesResponse) XXX_Merge(src proto.Message) + func (m *RulesResponse) XXX_Size() int + func (m *RulesResponse) XXX_Unmarshal(b []byte) error + type RulesResponse_Group struct + Group *RuleGroup + func (m *RulesResponse_Group) MarshalTo(dAtA []byte) (int, error) + func (m *RulesResponse_Group) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RulesResponse_Group) Size() (n int) + type RulesResponse_Warning struct + Warning string + func (m *RulesResponse_Warning) MarshalTo(dAtA []byte) (int, error) + func (m *RulesResponse_Warning) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RulesResponse_Warning) Size() (n int) + type RulesServer interface + Rules func(*RulesRequest, Rules_RulesServer) error + type Rules_RulesClient interface + Recv func() (*RulesResponse, error) + type Rules_RulesServer interface + Send func(*RulesResponse) error + type UnimplementedRulesServer struct + func (*UnimplementedRulesServer) Rules(req *RulesRequest, srv Rules_RulesServer) error