-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.pb.go
239 lines (215 loc) · 8.91 KB
/
config.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: config.proto
package collector_service
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "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 CollectorConfig struct {
//
//采集配置id
ConfigId string `protobuf:"bytes,1,opt,name=configId,proto3" json:"configId" form:"configId"`
//
//采集实例objectId
ObjectId string `protobuf:"bytes,2,opt,name=objectId,proto3" json:"objectId" form:"objectId"`
//
//关系查询路径
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path" form:"path"`
//
//指标名称
MetricName string `protobuf:"bytes,4,opt,name=metricName,proto3" json:"metricName" form:"metricName"`
//
//采集参数
Params []*CollectorConfig_Params `protobuf:"bytes,5,rep,name=params,proto3" json:"params" form:"params"`
//
//采集间隔
Interval int32 `protobuf:"varint,6,opt,name=interval,proto3" json:"interval" form:"interval"`
//
//采集配置实例版本号
ConfigVersion int32 `protobuf:"varint,7,opt,name=configVersion,proto3" json:"configVersion" form:"configVersion"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CollectorConfig) Reset() { *m = CollectorConfig{} }
func (m *CollectorConfig) String() string { return proto.CompactTextString(m) }
func (*CollectorConfig) ProtoMessage() {}
func (*CollectorConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_3eaf2c85e69e9ea4, []int{0}
}
func (m *CollectorConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollectorConfig.Unmarshal(m, b)
}
func (m *CollectorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollectorConfig.Marshal(b, m, deterministic)
}
func (m *CollectorConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectorConfig.Merge(m, src)
}
func (m *CollectorConfig) XXX_Size() int {
return xxx_messageInfo_CollectorConfig.Size(m)
}
func (m *CollectorConfig) XXX_DiscardUnknown() {
xxx_messageInfo_CollectorConfig.DiscardUnknown(m)
}
var xxx_messageInfo_CollectorConfig proto.InternalMessageInfo
func (m *CollectorConfig) GetConfigId() string {
if m != nil {
return m.ConfigId
}
return ""
}
func (m *CollectorConfig) GetObjectId() string {
if m != nil {
return m.ObjectId
}
return ""
}
func (m *CollectorConfig) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *CollectorConfig) GetMetricName() string {
if m != nil {
return m.MetricName
}
return ""
}
func (m *CollectorConfig) GetParams() []*CollectorConfig_Params {
if m != nil {
return m.Params
}
return nil
}
func (m *CollectorConfig) GetInterval() int32 {
if m != nil {
return m.Interval
}
return 0
}
func (m *CollectorConfig) GetConfigVersion() int32 {
if m != nil {
return m.ConfigVersion
}
return 0
}
type CollectorConfig_Params struct {
//
//参数名
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" form:"key"`
//
//参数值
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"`
//
//参数类型, mapping - 从cmdb映射, const - 固定值, cmdbValue - 从cmdb取值
ParamType string `protobuf:"bytes,3,opt,name=paramType,proto3" json:"paramType" form:"paramType"`
//
//参数如果有多个值,是否需要展开
Expand bool `protobuf:"varint,4,opt,name=expand,proto3" json:"expand" form:"expand"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CollectorConfig_Params) Reset() { *m = CollectorConfig_Params{} }
func (m *CollectorConfig_Params) String() string { return proto.CompactTextString(m) }
func (*CollectorConfig_Params) ProtoMessage() {}
func (*CollectorConfig_Params) Descriptor() ([]byte, []int) {
return fileDescriptor_3eaf2c85e69e9ea4, []int{0, 0}
}
func (m *CollectorConfig_Params) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollectorConfig_Params.Unmarshal(m, b)
}
func (m *CollectorConfig_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollectorConfig_Params.Marshal(b, m, deterministic)
}
func (m *CollectorConfig_Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectorConfig_Params.Merge(m, src)
}
func (m *CollectorConfig_Params) XXX_Size() int {
return xxx_messageInfo_CollectorConfig_Params.Size(m)
}
func (m *CollectorConfig_Params) XXX_DiscardUnknown() {
xxx_messageInfo_CollectorConfig_Params.DiscardUnknown(m)
}
var xxx_messageInfo_CollectorConfig_Params proto.InternalMessageInfo
func (m *CollectorConfig_Params) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *CollectorConfig_Params) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *CollectorConfig_Params) GetParamType() string {
if m != nil {
return m.ParamType
}
return ""
}
func (m *CollectorConfig_Params) GetExpand() bool {
if m != nil {
return m.Expand
}
return false
}
func init() {
proto.RegisterType((*CollectorConfig)(nil), "collector_service.CollectorConfig")
proto.RegisterType((*CollectorConfig_Params)(nil), "collector_service.CollectorConfig.Params")
}
func init() { proto.RegisterFile("config.proto", fileDescriptor_3eaf2c85e69e9ea4) }
var fileDescriptor_3eaf2c85e69e9ea4 = []byte{
// 518 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xdf, 0x6e, 0xd3, 0x30,
0x14, 0xc6, 0x55, 0xb6, 0x96, 0xce, 0xfb, 0xd3, 0xd6, 0x0c, 0x29, 0xaa, 0x84, 0x52, 0x19, 0x04,
0x9d, 0x44, 0x92, 0x6d, 0x15, 0x93, 0xe0, 0x02, 0x89, 0xf6, 0x6a, 0x42, 0x20, 0x64, 0x4d, 0x5c,
0x6c, 0xda, 0x26, 0xd7, 0x75, 0xb3, 0xd0, 0xa4, 0x27, 0x72, 0xdc, 0x8e, 0x6e, 0xe2, 0x82, 0x47,
0xe2, 0x85, 0x82, 0xc4, 0x23, 0xe4, 0x09, 0x50, 0xec, 0xa4, 0x2d, 0xec, 0xce, 0x3e, 0xdf, 0xef,
0x7c, 0x39, 0x3e, 0x5f, 0xd0, 0x0e, 0x87, 0xe9, 0x38, 0xf0, 0xdd, 0x58, 0x82, 0x02, 0xdc, 0xe2,
0x10, 0x86, 0x82, 0x2b, 0x90, 0xd7, 0x89, 0x90, 0xf3, 0x80, 0x8b, 0xb6, 0xe3, 0x07, 0xea, 0x66,
0x36, 0x74, 0x39, 0x44, 0x9e, 0x0f, 0x3e, 0x78, 0x9a, 0x1c, 0xce, 0xc6, 0xfa, 0xa6, 0x2f, 0xfa,
0x64, 0x1c, 0xda, 0x27, 0x6b, 0x78, 0x74, 0x1b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