-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration_template.pb.go
302 lines (273 loc) · 10.6 KB
/
configuration_template.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: configuration_template.proto
package collector_center
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
_ "github.com/mwitkow/go-proto-validators"
math "math"
)
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//采集配置模版
type ConfigurationTemplate struct {
//
//ORG
Org int32 `protobuf:"varint,1,opt,name=org,proto3" json:"org" form:"org"`
//
//ID
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id" form:"id"`
//
//名称
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
//
//参数
Kwargs *types.Value `protobuf:"bytes,4,opt,name=kwargs,proto3" json:"kwargs" form:"kwargs"`
//
//超时时间
Timeout int32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout" form:"timeout"`
//
//环境变量
Env *types.Value `protobuf:"bytes,6,opt,name=env,proto3" json:"env" form:"env"`
//
//是否禁用
Disabled bool `protobuf:"varint,7,opt,name=disabled,proto3" json:"disabled" form:"disabled"`
//
//标签
Labels []string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels" form:"labels"`
//
//是否忽略不符合要求数据
IgnoreInvalid bool `protobuf:"varint,9,opt,name=ignoreInvalid,proto3" json:"ignoreInvalid" form:"ignoreInvalid"`
//
//脚本
Script *Script `protobuf:"bytes,10,opt,name=script,proto3" json:"script" form:"script"`
//
//目标动态范围
TargetRange *TargetRange `protobuf:"bytes,11,opt,name=targetRange,proto3" json:"targetRange" form:"targetRange"`
//
//采集间隔
Interval int32 `protobuf:"varint,12,opt,name=interval,proto3" json:"interval" form:"interval"`
//
//缓存过期次数(时间)
CacheTtl int32 `protobuf:"varint,13,opt,name=cacheTtl,proto3" json:"cacheTtl" form:"cacheTtl"`
//
//执行时间范围(24小时)
TimeRange string `protobuf:"bytes,14,opt,name=timeRange,proto3" json:"timeRange" form:"timeRange"`
//
//采集类型名称
ClazzName string `protobuf:"bytes,15,opt,name=clazzName,proto3" json:"clazzName" form:"clazzName"`
//
//创建者
Creator string `protobuf:"bytes,16,opt,name=creator,proto3" json:"creator" form:"creator"`
//
//修改者
Modifier string `protobuf:"bytes,17,opt,name=modifier,proto3" json:"modifier" form:"modifier"`
//
//创建时间
Ctime int32 `protobuf:"varint,18,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
//
//修改时间
Mtime int32 `protobuf:"varint,19,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigurationTemplate) Reset() { *m = ConfigurationTemplate{} }
func (m *ConfigurationTemplate) String() string { return proto.CompactTextString(m) }
func (*ConfigurationTemplate) ProtoMessage() {}
func (*ConfigurationTemplate) Descriptor() ([]byte, []int) {
return fileDescriptor_933fc8a80f9f98b8, []int{0}
}
func (m *ConfigurationTemplate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigurationTemplate.Unmarshal(m, b)
}
func (m *ConfigurationTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigurationTemplate.Marshal(b, m, deterministic)
}
func (m *ConfigurationTemplate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigurationTemplate.Merge(m, src)
}
func (m *ConfigurationTemplate) XXX_Size() int {
return xxx_messageInfo_ConfigurationTemplate.Size(m)
}
func (m *ConfigurationTemplate) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigurationTemplate.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigurationTemplate proto.InternalMessageInfo
func (m *ConfigurationTemplate) GetOrg() int32 {
if m != nil {
return m.Org
}
return 0
}
func (m *ConfigurationTemplate) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *ConfigurationTemplate) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ConfigurationTemplate) GetKwargs() *types.Value {
if m != nil {
return m.Kwargs
}
return nil
}
func (m *ConfigurationTemplate) GetTimeout() int32 {
if m != nil {
return m.Timeout
}
return 0
}
func (m *ConfigurationTemplate) GetEnv() *types.Value {
if m != nil {
return m.Env
}
return nil
}
func (m *ConfigurationTemplate) GetDisabled() bool {
if m != nil {
return m.Disabled
}
return false
}
func (m *ConfigurationTemplate) GetLabels() []string {
if m != nil {
return m.Labels
}
return nil
}
func (m *ConfigurationTemplate) GetIgnoreInvalid() bool {
if m != nil {
return m.IgnoreInvalid
}
return false
}
func (m *ConfigurationTemplate) GetScript() *Script {
if m != nil {
return m.Script
}
return nil
}
func (m *ConfigurationTemplate) GetTargetRange() *TargetRange {
if m != nil {
return m.TargetRange
}
return nil
}
func (m *ConfigurationTemplate) GetInterval() int32 {
if m != nil {
return m.Interval
}
return 0
}
func (m *ConfigurationTemplate) GetCacheTtl() int32 {
if m != nil {
return m.CacheTtl
}
return 0
}
func (m *ConfigurationTemplate) GetTimeRange() string {
if m != nil {
return m.TimeRange
}
return ""
}
func (m *ConfigurationTemplate) GetClazzName() string {
if m != nil {
return m.ClazzName
}
return ""
}
func (m *ConfigurationTemplate) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *ConfigurationTemplate) GetModifier() string {
if m != nil {
return m.Modifier
}
return ""
}
func (m *ConfigurationTemplate) GetCtime() int32 {
if m != nil {
return m.Ctime
}
return 0
}
func (m *ConfigurationTemplate) GetMtime() int32 {
if m != nil {
return m.Mtime
}
return 0
}
func init() {
proto.RegisterType((*ConfigurationTemplate)(nil), "collector_center.ConfigurationTemplate")
}
func init() { proto.RegisterFile("configuration_template.proto", fileDescriptor_933fc8a80f9f98b8) }
var fileDescriptor_933fc8a80f9f98b8 = []byte{
// 723 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xef, 0x4e, 0xdb, 0x3a,
0x18, 0xc6, 0x69, 0x0b, 0xa5, 0x75, 0xa1, 0x14, 0xf3, 0x47, 0x3e, 0x88, 0xa3, 0x54, 0x3e, 0x3a,
0x47, 0x45, 0x3a, 0x4d, 0x8e, 0x7a, 0xfe, 0xe8, 0x0c, 0x69, 0x93, 0x56, 0x3e, 0x6d, 0x9a, 0xf6,
0xc1, 0x43, 0x43, 0x1a, 0x42, 0xc8, 0x4d, 0xdc, 0x10, 0x91, 0xc4, 0x95,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