Versions in this module Expand all Collapse all v3 v3.0.1 Mar 21, 2022 v3.0.0 Mar 21, 2022 Changes in this version + var ErrIntOverflowRules = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthRules = fmt.Errorf("proto: negative length found during unmarshaling") + func FromProto(rg *RuleGroupDesc) rulefmt.RuleGroup + type RuleDesc struct + Alert string + Annotations []github_com_grafana_loki_pkg_logproto.LabelAdapter + Expr string + For time.Duration + Labels []github_com_grafana_loki_pkg_logproto.LabelAdapter + Record string + func (*RuleDesc) Descriptor() ([]byte, []int) + func (*RuleDesc) ProtoMessage() + func (m *RuleDesc) GetAlert() string + func (m *RuleDesc) GetExpr() string + func (m *RuleDesc) GetFor() time.Duration + func (m *RuleDesc) GetRecord() string + func (m *RuleDesc) Marshal() (dAtA []byte, err error) + func (m *RuleDesc) MarshalTo(dAtA []byte) (int, error) + func (m *RuleDesc) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RuleDesc) Reset() + func (m *RuleDesc) Size() (n int) + func (m *RuleDesc) Unmarshal(dAtA []byte) error + func (m *RuleDesc) XXX_DiscardUnknown() + func (m *RuleDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RuleDesc) XXX_Merge(src proto.Message) + func (m *RuleDesc) XXX_Size() int + func (m *RuleDesc) XXX_Unmarshal(b []byte) error + func (this *RuleDesc) Equal(that interface{}) bool + func (this *RuleDesc) GoString() string + func (this *RuleDesc) String() string + type RuleGroupDesc struct + Interval time.Duration + Name string + Namespace string + Options []*types.Any + Rules []*RuleDesc + User string + func ToProto(user string, namespace string, rl rulefmt.RuleGroup) *RuleGroupDesc + func (*RuleGroupDesc) Descriptor() ([]byte, []int) + func (*RuleGroupDesc) ProtoMessage() + func (m *RuleGroupDesc) GetInterval() time.Duration + func (m *RuleGroupDesc) GetName() string + func (m *RuleGroupDesc) GetNamespace() string + func (m *RuleGroupDesc) GetOptions() []*types.Any + func (m *RuleGroupDesc) GetRules() []*RuleDesc + func (m *RuleGroupDesc) GetUser() string + func (m *RuleGroupDesc) Marshal() (dAtA []byte, err error) + func (m *RuleGroupDesc) MarshalTo(dAtA []byte) (int, error) + func (m *RuleGroupDesc) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RuleGroupDesc) Reset() + func (m *RuleGroupDesc) Size() (n int) + func (m *RuleGroupDesc) Unmarshal(dAtA []byte) error + func (m *RuleGroupDesc) XXX_DiscardUnknown() + func (m *RuleGroupDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RuleGroupDesc) XXX_Merge(src proto.Message) + func (m *RuleGroupDesc) XXX_Size() int + func (m *RuleGroupDesc) XXX_Unmarshal(b []byte) error + func (this *RuleGroupDesc) Equal(that interface{}) bool + func (this *RuleGroupDesc) GoString() string + func (this *RuleGroupDesc) String() string + type RuleGroupList []*RuleGroupDesc + func (l RuleGroupList) Formatted() map[string][]rulefmt.RuleGroup Other modules containing this package github.com/pao214/loki/v2