forked from prometheus/alertmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
silence.pb.go
211 lines (182 loc) · 8.26 KB
/
silence.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
// 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, 0x56, 0xf0, 0x26, 0x69, 0x33,
0xb6, 0x81, 0xe6, 0x07, 0xc9, 0x44, 0xf4, 0xec, 0x7f, 0xe2, 0x5f, 0xea, 0x66, 0xb3, 0x89, 0x48,
0x0f, 0xf5, 0x94, 0x99, 0xcc, 0xe7, 0x3b, 0x33, 0xdf, 0x59, 0x18, 0x17, 0xd1, 0x1e, 0x93, 0x0d,
0x4e, 0xf4, 0x37, 0x5b, 0x37, 0x11, 0xcf, 0xf2, 0x94, 0x52, 0xe6, 0xb6, 0x85, 0xd1, 0x78, 0x9b,
0xa6, 0xdb, 0x3d, 0x4e, 0x54, 0x61, 0x5d, 0xbe, 0x4c, 0x28, 0x8a, 0xb1, 0xa0, 0x20, 0xce, 0x6a,
0xd6, 0xff, 0x30, 0xc0, 0x59, 0x06, 0xb4, 0xd9, 0x61, 0xce, 0xce, 0xc0, 0xa2, 0xf7, 0x0c, 0x3d,
0xe3, 0xc4, 0x38, 0x1d, 0x4c, 0xff, 0xf1, 0xb6, 0x0d, 0xd7, 0x04, 0x5f, 0xc9, 0xb2, 0x50, 0x10,
0x63, 0x60, 0x25, 0x41, 0x8c, 0x9e, 0x29, 0x61, 0x57, 0xa8, 0x98, 0x79, 0xe0, 0x64, 0x01, 0x11,
0xe6, 0x89, 0xd7,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