212 lines
8.3 KiB
Go
212 lines
8.3 KiB
Go
|
// Code generated by protoc-gen-go.
|
||
|
// source: silence/silencepb/silence.proto
|
||
|
// DO NOT EDIT!
|
||
|
|
||
|
/*
|
||
|
Package silencepb is a generated protocol buffer package.
|
||
|
|
||
|
It is generated from these files:
|
||
|
silence/silencepb/silence.proto
|
||
|
|
||
|
It has these top-level messages:
|
||
|
Matcher
|
||
|
Comment
|
||
|
Silence
|
||
|
MeshSilence
|
||
|
*/
|
||
|
package silencepb
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
// Type specifies how the given name and pattern are matched
|
||
|
// against a label set.
|
||
|
type Matcher_Type int32
|
||
|
|
||
|
const (
|
||
|
Matcher_EQUAL Matcher_Type = 0
|
||
|
Matcher_REGEXP Matcher_Type = 1
|
||
|
)
|
||
|
|
||
|
var Matcher_Type_name = map[int32]string{
|
||
|
0: "EQUAL",
|
||
|
1: "REGEXP",
|
||
|
}
|
||
|
var Matcher_Type_value = map[string]int32{
|
||
|
"EQUAL": 0,
|
||
|
"REGEXP": 1,
|
||
|
}
|
||
|
|
||
|
func (x Matcher_Type) String() string {
|
||
|
return proto.EnumName(Matcher_Type_name, int32(x))
|
||
|
}
|
||
|
func (Matcher_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
|
||
|
|
||
|
// Matcher specifies a rule, which can match or set of labels or not.
|
||
|
type Matcher struct {
|
||
|
Type Matcher_Type `protobuf:"varint,1,opt,name=type,enum=silencepb.Matcher_Type" json:"type,omitempty"`
|
||
|
// The label name in a label set to against which the matcher
|
||
|
// checks the pattern.
|
||
|
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
||
|
// The pattern being checked according to the matcher's type.
|
||
|
Pattern string `protobuf:"bytes,3,opt,name=pattern" json:"pattern,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *Matcher) Reset() { *m = Matcher{} }
|
||
|
func (m *Matcher) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Matcher) ProtoMessage() {}
|
||
|
func (*Matcher) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||
|
|
||
|
// A comment can be attached to a silence.
|
||
|
type Comment struct {
|
||
|
Author string `protobuf:"bytes,1,opt,name=author" json:"author,omitempty"`
|
||
|
Comment string `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"`
|
||
|
Timestamp *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *Comment) Reset() { *m = Comment{} }
|
||
|
func (m *Comment) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Comment) ProtoMessage() {}
|
||
|
func (*Comment) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||
|
|
||
|
func (m *Comment) GetTimestamp() *google_protobuf.Timestamp {
|
||
|
if m != nil {
|
||
|
return m.Timestamp
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Silence specifies an object that ignores alerts based
|
||
|
// on a set of matchers during a given time frame.
|
||
|
type Silence struct {
|
||
|
// A globally unique identifier.
|
||
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
||
|
// A set of matchers all of which have to be true for a silence
|
||
|
// to affect a given label set.
|
||
|
Matchers []*Matcher `protobuf:"bytes,2,rep,name=matchers" json:"matchers,omitempty"`
|
||
|
// The time range during which the silence is active.
|
||
|
StartsAt *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=starts_at,json=startsAt" json:"starts_at,omitempty"`
|
||
|
EndsAt *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=ends_at,json=endsAt" json:"ends_at,omitempty"`
|
||
|
// The last motification made to the silence.
|
||
|
UpdatedAt *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
|
||
|
// A set of comments made on the silence.
|
||
|
Comments []*Comment `protobuf:"bytes,7,rep,name=comments" json:"comments,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *Silence) Reset() { *m = Silence{} }
|
||
|
func (m *Silence) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Silence) ProtoMessage() {}
|
||
|
func (*Silence) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||
|
|
||
|
func (m *Silence) GetMatchers() []*Matcher {
|
||
|
if m != nil {
|
||
|
return m.Matchers
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Silence) GetStartsAt() *google_protobuf.Timestamp {
|
||
|
if m != nil {
|
||
|
return m.StartsAt
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Silence) GetEndsAt() *google_protobuf.Timestamp {
|
||
|
if m != nil {
|
||
|
return m.EndsAt
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Silence) GetUpdatedAt() *google_protobuf.Timestamp {
|
||
|
if m != nil {
|
||
|
return m.UpdatedAt
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Silence) GetComments() []*Comment {
|
||
|
if m != nil {
|
||
|
return m.Comments
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// MeshSilence wraps a regular silence with an expiration timestamp
|
||
|
// after which the silence may be garbage collected.
|
||
|
type MeshSilence struct {
|
||
|
Silence *Silence `protobuf:"bytes,1,opt,name=silence" json:"silence,omitempty"`
|
||
|
ExpiresAt *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt" json:"expires_at,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *MeshSilence) Reset() { *m = MeshSilence{} }
|
||
|
func (m *MeshSilence) String() string { return proto.CompactTextString(m) }
|
||
|
func (*MeshSilence) ProtoMessage() {}
|
||
|
func (*MeshSilence) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||
|
|
||
|
func (m *MeshSilence) GetSilence() *Silence {
|
||
|
if m != nil {
|
||
|
return m.Silence
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *MeshSilence) GetExpiresAt() *google_protobuf.Timestamp {
|
||
|
if m != nil {
|
||
|
return m.ExpiresAt
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Matcher)(nil), "silencepb.Matcher")
|
||
|
proto.RegisterType((*Comment)(nil), "silencepb.Comment")
|
||
|
proto.RegisterType((*Silence)(nil), "silencepb.Silence")
|
||
|
proto.RegisterType((*MeshSilence)(nil), "silencepb.MeshSilence")
|
||
|
proto.RegisterEnum("silencepb.Matcher_Type", Matcher_Type_name, Matcher_Type_value)
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("silence/silencepb/silence.proto", fileDescriptor0) }
|
||
|
|
||
|
var fileDescriptor0 = []byte{
|
||
|
// 372 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x91, 0xcf, 0x4b, 0xeb, 0x40,
|
||
|
0x10, 0xc7, 0x5f, 0xd2, 0x34, 0x69, 0xa6, 0x50, 0xca, 0x1e, 0xde, 0x0b, 0x85, 0x47, 0x25, 0x27,
|
||
|
0x41, 0xd9, 0x42, 0x7b, 0x50, 0x8f, 0x45, 0x8a, 0x17, 0x0b, 0xba, 0x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