// 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} } func (m *Matcher) GetType() Matcher_Type { if m != nil { return m.Type } return Matcher_EQUAL } func (m *Matcher) GetName() string { if m != nil { return m.Name } return "" } func (m *Matcher) GetPattern() string { if m != nil { return m.Pattern } return "" } // 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) GetAuthor() string { if m != nil { return m.Author } return "" } func (m *Comment) GetComment() string { if m != nil { return m.Comment } return "" } 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) GetId() string { if m != nil { return m.Id } return "" } 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{ // 376 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x6a, 0xdb, 0x40, 0x10, 0x40, 0x2b, 0x59, 0x96, 0xac, 0x31, 0x18, 0xb3, 0x87, 0x56, 0x18, 0x8a, 0x8d, 0x4e, 0x86, 0x96, 0x35, 0xd8, 0x87, 0xb6, 0x47, 0x51, 0x4c, 0x2f, 0x35, 0xb4, 0x1b, 0x07, 0x72, 0x0b, 0x6b, 0x6b, 0x62, 0x0b, 0x2c, 0x69, 0x91, 0x46, 0x21, 0x3e, 0xe7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