blob: b812950306f683e0ecb441b10dfe57eac13f2d80 [file] [log] [blame]
Amit Ghosh09f28362020-06-12 21:52:19 +01001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: dmi/hw_metrics_mgmt_service.proto
3
4package dmi
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 grpc "google.golang.org/grpc"
11 math "math"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25type MetricNames int32
26
27const (
28 MetricNames_METRIC_NAME_UNDEFINED MetricNames = 0
29 // FAN related metrics
30 MetricNames_METRIC_FAN_SPEED MetricNames = 1
31 // CPU related metrics
32 MetricNames_METRIC_CPU_TEMP MetricNames = 100
33 MetricNames_METRIC_CPU_USAGE_PERCENTAGE MetricNames = 101
34 // Transceiver related metrics
35 MetricNames_METRIC_TRANSCEIVER_TEMP MetricNames = 200
36 MetricNames_METRIC_TRANSCEIVER_VOLTAGE MetricNames = 201
37 MetricNames_METRIC_TRANSCEIVER_BIAS MetricNames = 202
38 MetricNames_METRIC_TRANSCEIVER_RX_POWER MetricNames = 203
39 MetricNames_METRIC_TRANSCEIVER_TX_POWER MetricNames = 204
40 MetricNames_METRIC_TRANSCEIVER_WAVELENGTH MetricNames = 205
41 // Disk related metrics
42 MetricNames_METRIC_DISK_TEMP MetricNames = 300
43 MetricNames_METRIC_DISK_CAPACITY MetricNames = 301
44 MetricNames_METRIC_DISK_USAGE MetricNames = 302
45 MetricNames_METRIC_DISK_USAGE_PERCENTAGE MetricNames = 303
46 MetricNames_METRIC_DISK_READ_WRITE_PERCENTAGE MetricNames = 304
47 MetricNames_METRIC_DISK_FAULTY_CELLS_PERCENTAGE MetricNames = 305
48 // RAM related metrics
49 MetricNames_METRIC_RAM_TEMP MetricNames = 400
50 MetricNames_METRIC_RAM_CAPACITY MetricNames = 401
51 MetricNames_METRIC_RAM_USAGE MetricNames = 402
52 MetricNames_METRIC_RAM_USAGE_PERCENTAGE MetricNames = 403
53 // Power related metrics
54 MetricNames_METRIC_POWER_MAX MetricNames = 500
55 MetricNames_METRIC_POWER_USAGE MetricNames = 501
56 MetricNames_METRIC_POWER_USAGE_PERCENTAGE MetricNames = 502
57 // Chassis related metrics
58 MetricNames_METRIC_INNER_SURROUNDING_TEMP MetricNames = 600
59)
60
61var MetricNames_name = map[int32]string{
62 0: "METRIC_NAME_UNDEFINED",
63 1: "METRIC_FAN_SPEED",
64 100: "METRIC_CPU_TEMP",
65 101: "METRIC_CPU_USAGE_PERCENTAGE",
66 200: "METRIC_TRANSCEIVER_TEMP",
67 201: "METRIC_TRANSCEIVER_VOLTAGE",
68 202: "METRIC_TRANSCEIVER_BIAS",
69 203: "METRIC_TRANSCEIVER_RX_POWER",
70 204: "METRIC_TRANSCEIVER_TX_POWER",
71 205: "METRIC_TRANSCEIVER_WAVELENGTH",
72 300: "METRIC_DISK_TEMP",
73 301: "METRIC_DISK_CAPACITY",
74 302: "METRIC_DISK_USAGE",
75 303: "METRIC_DISK_USAGE_PERCENTAGE",
76 304: "METRIC_DISK_READ_WRITE_PERCENTAGE",
77 305: "METRIC_DISK_FAULTY_CELLS_PERCENTAGE",
78 400: "METRIC_RAM_TEMP",
79 401: "METRIC_RAM_CAPACITY",
80 402: "METRIC_RAM_USAGE",
81 403: "METRIC_RAM_USAGE_PERCENTAGE",
82 500: "METRIC_POWER_MAX",
83 501: "METRIC_POWER_USAGE",
84 502: "METRIC_POWER_USAGE_PERCENTAGE",
85 600: "METRIC_INNER_SURROUNDING_TEMP",
86}
87
88var MetricNames_value = map[string]int32{
89 "METRIC_NAME_UNDEFINED": 0,
90 "METRIC_FAN_SPEED": 1,
91 "METRIC_CPU_TEMP": 100,
92 "METRIC_CPU_USAGE_PERCENTAGE": 101,
93 "METRIC_TRANSCEIVER_TEMP": 200,
94 "METRIC_TRANSCEIVER_VOLTAGE": 201,
95 "METRIC_TRANSCEIVER_BIAS": 202,
96 "METRIC_TRANSCEIVER_RX_POWER": 203,
97 "METRIC_TRANSCEIVER_TX_POWER": 204,
98 "METRIC_TRANSCEIVER_WAVELENGTH": 205,
99 "METRIC_DISK_TEMP": 300,
100 "METRIC_DISK_CAPACITY": 301,
101 "METRIC_DISK_USAGE": 302,
102 "METRIC_DISK_USAGE_PERCENTAGE": 303,
103 "METRIC_DISK_READ_WRITE_PERCENTAGE": 304,
104 "METRIC_DISK_FAULTY_CELLS_PERCENTAGE": 305,
105 "METRIC_RAM_TEMP": 400,
106 "METRIC_RAM_CAPACITY": 401,
107 "METRIC_RAM_USAGE": 402,
108 "METRIC_RAM_USAGE_PERCENTAGE": 403,
109 "METRIC_POWER_MAX": 500,
110 "METRIC_POWER_USAGE": 501,
111 "METRIC_POWER_USAGE_PERCENTAGE": 502,
112 "METRIC_INNER_SURROUNDING_TEMP": 600,
113}
114
115func (x MetricNames) String() string {
116 return proto.EnumName(MetricNames_name, int32(x))
117}
118
119func (MetricNames) EnumDescriptor() ([]byte, []int) {
120 return fileDescriptor_6b6c2f1384c11ff5, []int{0}
121}
122
amit.ghoshae473032021-01-10 11:59:10 +0100123type ListMetricsResponse_Reason int32
124
125const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100126 ListMetricsResponse_UNDEFINED_REASON ListMetricsResponse_Reason = 0
127 ListMetricsResponse_UNKNOWN_DEVICE ListMetricsResponse_Reason = 1
128 ListMetricsResponse_INTERNAL_ERROR ListMetricsResponse_Reason = 2
129 ListMetricsResponse_DEVICE_UNREACHABLE ListMetricsResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +0100130)
131
132var ListMetricsResponse_Reason_name = map[int32]string{
133 0: "UNDEFINED_REASON",
134 1: "UNKNOWN_DEVICE",
135 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100136 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100137}
138
139var ListMetricsResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100140 "UNDEFINED_REASON": 0,
141 "UNKNOWN_DEVICE": 1,
142 "INTERNAL_ERROR": 2,
143 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +0100144}
145
146func (x ListMetricsResponse_Reason) String() string {
147 return proto.EnumName(ListMetricsResponse_Reason_name, int32(x))
148}
149
150func (ListMetricsResponse_Reason) EnumDescriptor() ([]byte, []int) {
151 return fileDescriptor_6b6c2f1384c11ff5, []int{2, 0}
152}
153
154type MetricsConfigurationResponse_Reason int32
155
156const (
157 MetricsConfigurationResponse_UNDEFINED_REASON MetricsConfigurationResponse_Reason = 0
158 MetricsConfigurationResponse_UNKNOWN_DEVICE MetricsConfigurationResponse_Reason = 1
159 MetricsConfigurationResponse_INTERNAL_ERROR MetricsConfigurationResponse_Reason = 2
160 MetricsConfigurationResponse_POLL_INTERVAL_UNSUPPORTED MetricsConfigurationResponse_Reason = 3
161 MetricsConfigurationResponse_INVALID_METRIC MetricsConfigurationResponse_Reason = 4
amit.ghoshbd2022e2021-02-22 05:58:53 +0100162 MetricsConfigurationResponse_DEVICE_UNREACHABLE MetricsConfigurationResponse_Reason = 5
amit.ghoshae473032021-01-10 11:59:10 +0100163)
164
165var MetricsConfigurationResponse_Reason_name = map[int32]string{
166 0: "UNDEFINED_REASON",
167 1: "UNKNOWN_DEVICE",
168 2: "INTERNAL_ERROR",
169 3: "POLL_INTERVAL_UNSUPPORTED",
170 4: "INVALID_METRIC",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100171 5: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100172}
173
174var MetricsConfigurationResponse_Reason_value = map[string]int32{
175 "UNDEFINED_REASON": 0,
176 "UNKNOWN_DEVICE": 1,
177 "INTERNAL_ERROR": 2,
178 "POLL_INTERVAL_UNSUPPORTED": 3,
179 "INVALID_METRIC": 4,
amit.ghoshbd2022e2021-02-22 05:58:53 +0100180 "DEVICE_UNREACHABLE": 5,
amit.ghoshae473032021-01-10 11:59:10 +0100181}
182
183func (x MetricsConfigurationResponse_Reason) String() string {
184 return proto.EnumName(MetricsConfigurationResponse_Reason_name, int32(x))
185}
186
187func (MetricsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) {
188 return fileDescriptor_6b6c2f1384c11ff5, []int{4, 0}
189}
190
191type GetMetricResponse_Reason int32
192
193const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100194 GetMetricResponse_UNDEFINED_REASON GetMetricResponse_Reason = 0
195 GetMetricResponse_UNKNOWN_DEVICE GetMetricResponse_Reason = 1
196 GetMetricResponse_UNKNOWN_COMPONENT GetMetricResponse_Reason = 2
197 GetMetricResponse_INTERNAL_ERROR GetMetricResponse_Reason = 3
198 GetMetricResponse_INVALID_METRIC GetMetricResponse_Reason = 4
199 GetMetricResponse_DEVICE_UNREACHABLE GetMetricResponse_Reason = 5
amit.ghoshae473032021-01-10 11:59:10 +0100200)
201
202var GetMetricResponse_Reason_name = map[int32]string{
203 0: "UNDEFINED_REASON",
204 1: "UNKNOWN_DEVICE",
205 2: "UNKNOWN_COMPONENT",
206 3: "INTERNAL_ERROR",
207 4: "INVALID_METRIC",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100208 5: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100209}
210
211var GetMetricResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100212 "UNDEFINED_REASON": 0,
213 "UNKNOWN_DEVICE": 1,
214 "UNKNOWN_COMPONENT": 2,
215 "INTERNAL_ERROR": 3,
216 "INVALID_METRIC": 4,
217 "DEVICE_UNREACHABLE": 5,
amit.ghoshae473032021-01-10 11:59:10 +0100218}
219
220func (x GetMetricResponse_Reason) String() string {
221 return proto.EnumName(GetMetricResponse_Reason_name, int32(x))
222}
223
224func (GetMetricResponse_Reason) EnumDescriptor() ([]byte, []int) {
225 return fileDescriptor_6b6c2f1384c11ff5, []int{8, 0}
226}
227
Amit Ghosh09f28362020-06-12 21:52:19 +0100228type MetricConfig struct {
229 MetricId MetricNames `protobuf:"varint,1,opt,name=metric_id,json=metricId,proto3,enum=dmi.MetricNames" json:"metric_id,omitempty"`
230 // Whether the device manager is collecting and reporting this metric or not
231 IsConfigured bool `protobuf:"varint,2,opt,name=is_configured,json=isConfigured,proto3" json:"is_configured,omitempty"`
232 // Number of seconds between two consecutive polls of the particular metric
233 // Each device manager implemenation could have it's per metric default poll frequency which
234 // can be requested to be changed using this value
235 PollInterval uint32 `protobuf:"varint,3,opt,name=poll_interval,json=pollInterval,proto3" json:"poll_interval,omitempty"`
236 XXX_NoUnkeyedLiteral struct{} `json:"-"`
237 XXX_unrecognized []byte `json:"-"`
238 XXX_sizecache int32 `json:"-"`
239}
240
241func (m *MetricConfig) Reset() { *m = MetricConfig{} }
242func (m *MetricConfig) String() string { return proto.CompactTextString(m) }
243func (*MetricConfig) ProtoMessage() {}
244func (*MetricConfig) Descriptor() ([]byte, []int) {
245 return fileDescriptor_6b6c2f1384c11ff5, []int{0}
246}
247
248func (m *MetricConfig) XXX_Unmarshal(b []byte) error {
249 return xxx_messageInfo_MetricConfig.Unmarshal(m, b)
250}
251func (m *MetricConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
252 return xxx_messageInfo_MetricConfig.Marshal(b, m, deterministic)
253}
254func (m *MetricConfig) XXX_Merge(src proto.Message) {
255 xxx_messageInfo_MetricConfig.Merge(m, src)
256}
257func (m *MetricConfig) XXX_Size() int {
258 return xxx_messageInfo_MetricConfig.Size(m)
259}
260func (m *MetricConfig) XXX_DiscardUnknown() {
261 xxx_messageInfo_MetricConfig.DiscardUnknown(m)
262}
263
264var xxx_messageInfo_MetricConfig proto.InternalMessageInfo
265
266func (m *MetricConfig) GetMetricId() MetricNames {
267 if m != nil {
268 return m.MetricId
269 }
270 return MetricNames_METRIC_NAME_UNDEFINED
271}
272
273func (m *MetricConfig) GetIsConfigured() bool {
274 if m != nil {
275 return m.IsConfigured
276 }
277 return false
278}
279
280func (m *MetricConfig) GetPollInterval() uint32 {
281 if m != nil {
282 return m.PollInterval
283 }
284 return 0
285}
286
287type MetricsConfig struct {
288 Metrics []*MetricConfig `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
289 XXX_NoUnkeyedLiteral struct{} `json:"-"`
290 XXX_unrecognized []byte `json:"-"`
291 XXX_sizecache int32 `json:"-"`
292}
293
294func (m *MetricsConfig) Reset() { *m = MetricsConfig{} }
295func (m *MetricsConfig) String() string { return proto.CompactTextString(m) }
296func (*MetricsConfig) ProtoMessage() {}
297func (*MetricsConfig) Descriptor() ([]byte, []int) {
298 return fileDescriptor_6b6c2f1384c11ff5, []int{1}
299}
300
301func (m *MetricsConfig) XXX_Unmarshal(b []byte) error {
302 return xxx_messageInfo_MetricsConfig.Unmarshal(m, b)
303}
304func (m *MetricsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
305 return xxx_messageInfo_MetricsConfig.Marshal(b, m, deterministic)
306}
307func (m *MetricsConfig) XXX_Merge(src proto.Message) {
308 xxx_messageInfo_MetricsConfig.Merge(m, src)
309}
310func (m *MetricsConfig) XXX_Size() int {
311 return xxx_messageInfo_MetricsConfig.Size(m)
312}
313func (m *MetricsConfig) XXX_DiscardUnknown() {
314 xxx_messageInfo_MetricsConfig.DiscardUnknown(m)
315}
316
317var xxx_messageInfo_MetricsConfig proto.InternalMessageInfo
318
319func (m *MetricsConfig) GetMetrics() []*MetricConfig {
320 if m != nil {
321 return m.Metrics
322 }
323 return nil
324}
325
326type ListMetricsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100327 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
328 Reason ListMetricsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListMetricsResponse_Reason" json:"reason,omitempty"`
329 Metrics *MetricsConfig `protobuf:"bytes,3,opt,name=metrics,proto3" json:"metrics,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100330 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100331 XXX_NoUnkeyedLiteral struct{} `json:"-"`
332 XXX_unrecognized []byte `json:"-"`
333 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100334}
335
336func (m *ListMetricsResponse) Reset() { *m = ListMetricsResponse{} }
337func (m *ListMetricsResponse) String() string { return proto.CompactTextString(m) }
338func (*ListMetricsResponse) ProtoMessage() {}
339func (*ListMetricsResponse) Descriptor() ([]byte, []int) {
340 return fileDescriptor_6b6c2f1384c11ff5, []int{2}
341}
342
343func (m *ListMetricsResponse) XXX_Unmarshal(b []byte) error {
344 return xxx_messageInfo_ListMetricsResponse.Unmarshal(m, b)
345}
346func (m *ListMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
347 return xxx_messageInfo_ListMetricsResponse.Marshal(b, m, deterministic)
348}
349func (m *ListMetricsResponse) XXX_Merge(src proto.Message) {
350 xxx_messageInfo_ListMetricsResponse.Merge(m, src)
351}
352func (m *ListMetricsResponse) XXX_Size() int {
353 return xxx_messageInfo_ListMetricsResponse.Size(m)
354}
355func (m *ListMetricsResponse) XXX_DiscardUnknown() {
356 xxx_messageInfo_ListMetricsResponse.DiscardUnknown(m)
357}
358
359var xxx_messageInfo_ListMetricsResponse proto.InternalMessageInfo
360
361func (m *ListMetricsResponse) GetStatus() Status {
362 if m != nil {
363 return m.Status
364 }
365 return Status_UNDEFINED_STATUS
366}
367
amit.ghoshae473032021-01-10 11:59:10 +0100368func (m *ListMetricsResponse) GetReason() ListMetricsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100369 if m != nil {
370 return m.Reason
371 }
amit.ghoshae473032021-01-10 11:59:10 +0100372 return ListMetricsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100373}
374
375func (m *ListMetricsResponse) GetMetrics() *MetricsConfig {
376 if m != nil {
377 return m.Metrics
378 }
379 return nil
380}
381
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100382func (m *ListMetricsResponse) GetReasonDetail() string {
383 if m != nil {
384 return m.ReasonDetail
385 }
386 return ""
387}
388
Amit Ghosh09f28362020-06-12 21:52:19 +0100389type MetricsConfigurationRequest struct {
390 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
391 // Types that are valid to be assigned to Operation:
392 // *MetricsConfigurationRequest_Changes
393 // *MetricsConfigurationRequest_ResetToDefault
394 Operation isMetricsConfigurationRequest_Operation `protobuf_oneof:"operation"`
395 XXX_NoUnkeyedLiteral struct{} `json:"-"`
396 XXX_unrecognized []byte `json:"-"`
397 XXX_sizecache int32 `json:"-"`
398}
399
400func (m *MetricsConfigurationRequest) Reset() { *m = MetricsConfigurationRequest{} }
401func (m *MetricsConfigurationRequest) String() string { return proto.CompactTextString(m) }
402func (*MetricsConfigurationRequest) ProtoMessage() {}
403func (*MetricsConfigurationRequest) Descriptor() ([]byte, []int) {
404 return fileDescriptor_6b6c2f1384c11ff5, []int{3}
405}
406
407func (m *MetricsConfigurationRequest) XXX_Unmarshal(b []byte) error {
408 return xxx_messageInfo_MetricsConfigurationRequest.Unmarshal(m, b)
409}
410func (m *MetricsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
411 return xxx_messageInfo_MetricsConfigurationRequest.Marshal(b, m, deterministic)
412}
413func (m *MetricsConfigurationRequest) XXX_Merge(src proto.Message) {
414 xxx_messageInfo_MetricsConfigurationRequest.Merge(m, src)
415}
416func (m *MetricsConfigurationRequest) XXX_Size() int {
417 return xxx_messageInfo_MetricsConfigurationRequest.Size(m)
418}
419func (m *MetricsConfigurationRequest) XXX_DiscardUnknown() {
420 xxx_messageInfo_MetricsConfigurationRequest.DiscardUnknown(m)
421}
422
423var xxx_messageInfo_MetricsConfigurationRequest proto.InternalMessageInfo
424
425func (m *MetricsConfigurationRequest) GetDeviceUuid() *Uuid {
426 if m != nil {
427 return m.DeviceUuid
428 }
429 return nil
430}
431
432type isMetricsConfigurationRequest_Operation interface {
433 isMetricsConfigurationRequest_Operation()
434}
435
436type MetricsConfigurationRequest_Changes struct {
437 Changes *MetricsConfig `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
438}
439
440type MetricsConfigurationRequest_ResetToDefault struct {
441 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
442}
443
444func (*MetricsConfigurationRequest_Changes) isMetricsConfigurationRequest_Operation() {}
445
446func (*MetricsConfigurationRequest_ResetToDefault) isMetricsConfigurationRequest_Operation() {}
447
448func (m *MetricsConfigurationRequest) GetOperation() isMetricsConfigurationRequest_Operation {
449 if m != nil {
450 return m.Operation
451 }
452 return nil
453}
454
455func (m *MetricsConfigurationRequest) GetChanges() *MetricsConfig {
456 if x, ok := m.GetOperation().(*MetricsConfigurationRequest_Changes); ok {
457 return x.Changes
458 }
459 return nil
460}
461
462func (m *MetricsConfigurationRequest) GetResetToDefault() bool {
463 if x, ok := m.GetOperation().(*MetricsConfigurationRequest_ResetToDefault); ok {
464 return x.ResetToDefault
465 }
466 return false
467}
468
469// XXX_OneofWrappers is for the internal use of the proto package.
470func (*MetricsConfigurationRequest) XXX_OneofWrappers() []interface{} {
471 return []interface{}{
472 (*MetricsConfigurationRequest_Changes)(nil),
473 (*MetricsConfigurationRequest_ResetToDefault)(nil),
474 }
475}
476
477type MetricsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100478 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
479 Reason MetricsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.MetricsConfigurationResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100480 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100481 XXX_NoUnkeyedLiteral struct{} `json:"-"`
482 XXX_unrecognized []byte `json:"-"`
483 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100484}
485
486func (m *MetricsConfigurationResponse) Reset() { *m = MetricsConfigurationResponse{} }
487func (m *MetricsConfigurationResponse) String() string { return proto.CompactTextString(m) }
488func (*MetricsConfigurationResponse) ProtoMessage() {}
489func (*MetricsConfigurationResponse) Descriptor() ([]byte, []int) {
490 return fileDescriptor_6b6c2f1384c11ff5, []int{4}
491}
492
493func (m *MetricsConfigurationResponse) XXX_Unmarshal(b []byte) error {
494 return xxx_messageInfo_MetricsConfigurationResponse.Unmarshal(m, b)
495}
496func (m *MetricsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
497 return xxx_messageInfo_MetricsConfigurationResponse.Marshal(b, m, deterministic)
498}
499func (m *MetricsConfigurationResponse) XXX_Merge(src proto.Message) {
500 xxx_messageInfo_MetricsConfigurationResponse.Merge(m, src)
501}
502func (m *MetricsConfigurationResponse) XXX_Size() int {
503 return xxx_messageInfo_MetricsConfigurationResponse.Size(m)
504}
505func (m *MetricsConfigurationResponse) XXX_DiscardUnknown() {
506 xxx_messageInfo_MetricsConfigurationResponse.DiscardUnknown(m)
507}
508
509var xxx_messageInfo_MetricsConfigurationResponse proto.InternalMessageInfo
510
511func (m *MetricsConfigurationResponse) GetStatus() Status {
512 if m != nil {
513 return m.Status
514 }
515 return Status_UNDEFINED_STATUS
516}
517
amit.ghoshae473032021-01-10 11:59:10 +0100518func (m *MetricsConfigurationResponse) GetReason() MetricsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100519 if m != nil {
520 return m.Reason
521 }
amit.ghoshae473032021-01-10 11:59:10 +0100522 return MetricsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100523}
524
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100525func (m *MetricsConfigurationResponse) GetReasonDetail() string {
526 if m != nil {
527 return m.ReasonDetail
528 }
529 return ""
530}
531
Amit Ghosh09f28362020-06-12 21:52:19 +0100532type MetricMetaData struct {
533 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
534 // uuid of the component
535 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
536 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
537 XXX_NoUnkeyedLiteral struct{} `json:"-"`
538 XXX_unrecognized []byte `json:"-"`
539 XXX_sizecache int32 `json:"-"`
540}
541
542func (m *MetricMetaData) Reset() { *m = MetricMetaData{} }
543func (m *MetricMetaData) String() string { return proto.CompactTextString(m) }
544func (*MetricMetaData) ProtoMessage() {}
545func (*MetricMetaData) Descriptor() ([]byte, []int) {
546 return fileDescriptor_6b6c2f1384c11ff5, []int{5}
547}
548
549func (m *MetricMetaData) XXX_Unmarshal(b []byte) error {
550 return xxx_messageInfo_MetricMetaData.Unmarshal(m, b)
551}
552func (m *MetricMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
553 return xxx_messageInfo_MetricMetaData.Marshal(b, m, deterministic)
554}
555func (m *MetricMetaData) XXX_Merge(src proto.Message) {
556 xxx_messageInfo_MetricMetaData.Merge(m, src)
557}
558func (m *MetricMetaData) XXX_Size() int {
559 return xxx_messageInfo_MetricMetaData.Size(m)
560}
561func (m *MetricMetaData) XXX_DiscardUnknown() {
562 xxx_messageInfo_MetricMetaData.DiscardUnknown(m)
563}
564
565var xxx_messageInfo_MetricMetaData proto.InternalMessageInfo
566
567func (m *MetricMetaData) GetDeviceUuid() *Uuid {
568 if m != nil {
569 return m.DeviceUuid
570 }
571 return nil
572}
573
574func (m *MetricMetaData) GetComponentUuid() *Uuid {
575 if m != nil {
576 return m.ComponentUuid
577 }
578 return nil
579}
580
581func (m *MetricMetaData) GetComponentName() string {
582 if m != nil {
583 return m.ComponentName
584 }
585 return ""
586}
587
588// The Metrics are conveyed to external systems by submitting them on a kafka bus.
589// The topic to which are Metrics are submitted would be configured as startup
590// configuration of the components
591type Metric struct {
592 MetricId MetricNames `protobuf:"varint,1,opt,name=metric_id,json=metricId,proto3,enum=dmi.MetricNames" json:"metric_id,omitempty"`
593 MetricMetadata *MetricMetaData `protobuf:"bytes,2,opt,name=metric_metadata,json=metricMetadata,proto3" json:"metric_metadata,omitempty"`
594 Value *ComponentSensorData `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
595 XXX_NoUnkeyedLiteral struct{} `json:"-"`
596 XXX_unrecognized []byte `json:"-"`
597 XXX_sizecache int32 `json:"-"`
598}
599
600func (m *Metric) Reset() { *m = Metric{} }
601func (m *Metric) String() string { return proto.CompactTextString(m) }
602func (*Metric) ProtoMessage() {}
603func (*Metric) Descriptor() ([]byte, []int) {
604 return fileDescriptor_6b6c2f1384c11ff5, []int{6}
605}
606
607func (m *Metric) XXX_Unmarshal(b []byte) error {
608 return xxx_messageInfo_Metric.Unmarshal(m, b)
609}
610func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
611 return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
612}
613func (m *Metric) XXX_Merge(src proto.Message) {
614 xxx_messageInfo_Metric.Merge(m, src)
615}
616func (m *Metric) XXX_Size() int {
617 return xxx_messageInfo_Metric.Size(m)
618}
619func (m *Metric) XXX_DiscardUnknown() {
620 xxx_messageInfo_Metric.DiscardUnknown(m)
621}
622
623var xxx_messageInfo_Metric proto.InternalMessageInfo
624
625func (m *Metric) GetMetricId() MetricNames {
626 if m != nil {
627 return m.MetricId
628 }
629 return MetricNames_METRIC_NAME_UNDEFINED
630}
631
632func (m *Metric) GetMetricMetadata() *MetricMetaData {
633 if m != nil {
634 return m.MetricMetadata
635 }
636 return nil
637}
638
639func (m *Metric) GetValue() *ComponentSensorData {
640 if m != nil {
641 return m.Value
642 }
643 return nil
644}
645
646type GetMetricRequest struct {
647 MetaData *MetricMetaData `protobuf:"bytes,1,opt,name=meta_data,json=metaData,proto3" json:"meta_data,omitempty"`
648 MetricId MetricNames `protobuf:"varint,2,opt,name=metric_id,json=metricId,proto3,enum=dmi.MetricNames" json:"metric_id,omitempty"`
649 XXX_NoUnkeyedLiteral struct{} `json:"-"`
650 XXX_unrecognized []byte `json:"-"`
651 XXX_sizecache int32 `json:"-"`
652}
653
654func (m *GetMetricRequest) Reset() { *m = GetMetricRequest{} }
655func (m *GetMetricRequest) String() string { return proto.CompactTextString(m) }
656func (*GetMetricRequest) ProtoMessage() {}
657func (*GetMetricRequest) Descriptor() ([]byte, []int) {
658 return fileDescriptor_6b6c2f1384c11ff5, []int{7}
659}
660
661func (m *GetMetricRequest) XXX_Unmarshal(b []byte) error {
662 return xxx_messageInfo_GetMetricRequest.Unmarshal(m, b)
663}
664func (m *GetMetricRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
665 return xxx_messageInfo_GetMetricRequest.Marshal(b, m, deterministic)
666}
667func (m *GetMetricRequest) XXX_Merge(src proto.Message) {
668 xxx_messageInfo_GetMetricRequest.Merge(m, src)
669}
670func (m *GetMetricRequest) XXX_Size() int {
671 return xxx_messageInfo_GetMetricRequest.Size(m)
672}
673func (m *GetMetricRequest) XXX_DiscardUnknown() {
674 xxx_messageInfo_GetMetricRequest.DiscardUnknown(m)
675}
676
677var xxx_messageInfo_GetMetricRequest proto.InternalMessageInfo
678
679func (m *GetMetricRequest) GetMetaData() *MetricMetaData {
680 if m != nil {
681 return m.MetaData
682 }
683 return nil
684}
685
686func (m *GetMetricRequest) GetMetricId() MetricNames {
687 if m != nil {
688 return m.MetricId
689 }
690 return MetricNames_METRIC_NAME_UNDEFINED
691}
692
aghoshc301dcd2020-09-03 16:55:34 +0100693type GetMetricResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100694 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
695 Reason GetMetricResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetMetricResponse_Reason" json:"reason,omitempty"`
696 Metric *Metric `protobuf:"bytes,3,opt,name=metric,proto3" json:"metric,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100697 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100698 XXX_NoUnkeyedLiteral struct{} `json:"-"`
699 XXX_unrecognized []byte `json:"-"`
700 XXX_sizecache int32 `json:"-"`
aghoshc301dcd2020-09-03 16:55:34 +0100701}
702
703func (m *GetMetricResponse) Reset() { *m = GetMetricResponse{} }
704func (m *GetMetricResponse) String() string { return proto.CompactTextString(m) }
705func (*GetMetricResponse) ProtoMessage() {}
706func (*GetMetricResponse) Descriptor() ([]byte, []int) {
707 return fileDescriptor_6b6c2f1384c11ff5, []int{8}
708}
709
710func (m *GetMetricResponse) XXX_Unmarshal(b []byte) error {
711 return xxx_messageInfo_GetMetricResponse.Unmarshal(m, b)
712}
713func (m *GetMetricResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
714 return xxx_messageInfo_GetMetricResponse.Marshal(b, m, deterministic)
715}
716func (m *GetMetricResponse) XXX_Merge(src proto.Message) {
717 xxx_messageInfo_GetMetricResponse.Merge(m, src)
718}
719func (m *GetMetricResponse) XXX_Size() int {
720 return xxx_messageInfo_GetMetricResponse.Size(m)
721}
722func (m *GetMetricResponse) XXX_DiscardUnknown() {
723 xxx_messageInfo_GetMetricResponse.DiscardUnknown(m)
724}
725
726var xxx_messageInfo_GetMetricResponse proto.InternalMessageInfo
727
728func (m *GetMetricResponse) GetStatus() Status {
729 if m != nil {
730 return m.Status
731 }
732 return Status_UNDEFINED_STATUS
733}
734
amit.ghoshae473032021-01-10 11:59:10 +0100735func (m *GetMetricResponse) GetReason() GetMetricResponse_Reason {
aghoshc301dcd2020-09-03 16:55:34 +0100736 if m != nil {
737 return m.Reason
738 }
amit.ghoshae473032021-01-10 11:59:10 +0100739 return GetMetricResponse_UNDEFINED_REASON
aghoshc301dcd2020-09-03 16:55:34 +0100740}
741
742func (m *GetMetricResponse) GetMetric() *Metric {
743 if m != nil {
744 return m.Metric
745 }
746 return nil
747}
748
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100749func (m *GetMetricResponse) GetReasonDetail() string {
750 if m != nil {
751 return m.ReasonDetail
752 }
753 return ""
754}
755
Amit Ghosh09f28362020-06-12 21:52:19 +0100756func init() {
757 proto.RegisterEnum("dmi.MetricNames", MetricNames_name, MetricNames_value)
amit.ghoshae473032021-01-10 11:59:10 +0100758 proto.RegisterEnum("dmi.ListMetricsResponse_Reason", ListMetricsResponse_Reason_name, ListMetricsResponse_Reason_value)
759 proto.RegisterEnum("dmi.MetricsConfigurationResponse_Reason", MetricsConfigurationResponse_Reason_name, MetricsConfigurationResponse_Reason_value)
760 proto.RegisterEnum("dmi.GetMetricResponse_Reason", GetMetricResponse_Reason_name, GetMetricResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100761 proto.RegisterType((*MetricConfig)(nil), "dmi.MetricConfig")
762 proto.RegisterType((*MetricsConfig)(nil), "dmi.MetricsConfig")
763 proto.RegisterType((*ListMetricsResponse)(nil), "dmi.ListMetricsResponse")
764 proto.RegisterType((*MetricsConfigurationRequest)(nil), "dmi.MetricsConfigurationRequest")
765 proto.RegisterType((*MetricsConfigurationResponse)(nil), "dmi.MetricsConfigurationResponse")
766 proto.RegisterType((*MetricMetaData)(nil), "dmi.MetricMetaData")
767 proto.RegisterType((*Metric)(nil), "dmi.Metric")
768 proto.RegisterType((*GetMetricRequest)(nil), "dmi.GetMetricRequest")
aghoshc301dcd2020-09-03 16:55:34 +0100769 proto.RegisterType((*GetMetricResponse)(nil), "dmi.GetMetricResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100770}
771
772func init() { proto.RegisterFile("dmi/hw_metrics_mgmt_service.proto", fileDescriptor_6b6c2f1384c11ff5) }
773
774var fileDescriptor_6b6c2f1384c11ff5 = []byte{
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100775 // 1198 bytes of a gzipped FileDescriptorProto
776 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x6f, 0xdb, 0x46,
777 0x13, 0x36, 0xa9, 0xc4, 0x89, 0x57, 0xb6, 0x42, 0xaf, 0xf3, 0xa1, 0x38, 0xc9, 0x1b, 0x59, 0xc1,
778 0x5b, 0x08, 0x69, 0x23, 0x07, 0x0e, 0x8a, 0x7e, 0xe5, 0x50, 0x9a, 0xdc, 0xd8, 0x44, 0x28, 0x4a,
779 0x58, 0x91, 0x72, 0xd2, 0x43, 0x17, 0x1b, 0x71, 0x23, 0x13, 0x10, 0x49, 0x95, 0xa4, 0x9c, 0x9f,
780 0x50, 0xf4, 0xd6, 0xb4, 0xe8, 0x4f, 0x68, 0x4f, 0xfd, 0xfe, 0x01, 0xbd, 0x15, 0xe8, 0xe7, 0xbd,
781 0xfd, 0x1f, 0x6d, 0x81, 0xde, 0x0a, 0xee, 0x52, 0xca, 0x5a, 0x96, 0x9b, 0xba, 0xe8, 0x4d, 0x7a,
782 0xe6, 0x99, 0x99, 0x67, 0x66, 0x96, 0xb3, 0x0b, 0x36, 0xfc, 0x30, 0xd8, 0xdc, 0x7f, 0x42, 0x42,
783 0x96, 0x25, 0x41, 0x3f, 0x25, 0xe1, 0x20, 0xcc, 0x48, 0xca, 0x92, 0x83, 0xa0, 0xcf, 0x9a, 0xa3,
784 0x24, 0xce, 0x62, 0x58, 0xf2, 0xc3, 0x60, 0x7d, 0x35, 0xe7, 0xf5, 0xe3, 0x30, 0x8c, 0xa3, 0x54,
785 0xe0, 0xeb, 0xcb, 0xc2, 0x55, 0xfc, 0xab, 0xbf, 0xab, 0x80, 0xe5, 0x16, 0x0f, 0x62, 0xc4, 0xd1,
786 0xe3, 0x60, 0x00, 0x6f, 0x81, 0x25, 0x11, 0x94, 0x04, 0x7e, 0x55, 0xa9, 0x29, 0x8d, 0xca, 0x96,
787 0xd6, 0xf4, 0xc3, 0xa0, 0x29, 0x58, 0x0e, 0x0d, 0x59, 0x8a, 0xcf, 0x0a, 0x8a, 0xe5, 0xc3, 0x1b,
788 0x60, 0x25, 0x48, 0x49, 0x9f, 0xfb, 0x8e, 0x13, 0xe6, 0x57, 0xd5, 0x9a, 0xd2, 0x38, 0x8b, 0x97,
789 0x83, 0xd4, 0x98, 0x62, 0x39, 0x69, 0x14, 0x0f, 0x87, 0x24, 0x88, 0x32, 0x96, 0x1c, 0xd0, 0x61,
790 0xb5, 0x54, 0x53, 0x1a, 0x2b, 0x78, 0x39, 0x07, 0xad, 0x02, 0xab, 0xdf, 0x05, 0x2b, 0x22, 0x45,
791 0xe1, 0x09, 0x5f, 0x04, 0x67, 0x8a, 0xf2, 0xaa, 0x4a, 0xad, 0xd4, 0x28, 0x6f, 0xad, 0x4a, 0x3a,
792 0x04, 0x07, 0x4f, 0x18, 0xf5, 0x4f, 0x54, 0xb0, 0x66, 0x07, 0x69, 0x56, 0x84, 0xc0, 0x2c, 0x1d,
793 0xc5, 0x51, 0xca, 0xe0, 0x0d, 0xb0, 0x98, 0x66, 0x34, 0x1b, 0xa7, 0x45, 0x2d, 0x65, 0x1e, 0xa3,
794 0xcb, 0x21, 0x5c, 0x98, 0xe0, 0x2b, 0x60, 0x31, 0x61, 0x34, 0x8d, 0x23, 0xae, 0xbe, 0xb2, 0x75,
795 0x9d, 0x93, 0xe6, 0x84, 0x6b, 0x62, 0x4e, 0xc3, 0x05, 0x1d, 0xbe, 0xf4, 0x4c, 0x62, 0x5e, 0x52,
796 0x79, 0x0b, 0x4a, 0x12, 0xd3, 0x19, 0x8d, 0x79, 0x1b, 0x84, 0x1f, 0xf1, 0x59, 0x46, 0x83, 0x61,
797 0xf5, 0x54, 0x4d, 0x69, 0x2c, 0xe1, 0x65, 0x01, 0x9a, 0x1c, 0xab, 0xbf, 0x0d, 0x16, 0x45, 0x12,
798 0x78, 0x1e, 0x68, 0x9e, 0x63, 0xa2, 0x7b, 0x96, 0x83, 0x4c, 0x82, 0x91, 0xde, 0x6d, 0x3b, 0xda,
799 0x02, 0x84, 0xa0, 0xe2, 0x39, 0xf7, 0x9d, 0xf6, 0x9e, 0x43, 0x4c, 0xd4, 0xb3, 0x0c, 0xa4, 0x29,
800 0x39, 0x66, 0x39, 0x2e, 0xc2, 0x8e, 0x6e, 0x13, 0x84, 0x71, 0x1b, 0x6b, 0x2a, 0xbc, 0x08, 0xa0,
801 0xb0, 0x13, 0xcf, 0xc1, 0x48, 0x37, 0x76, 0xf5, 0x6d, 0x1b, 0x69, 0xa5, 0xfa, 0xd7, 0x0a, 0xb8,
802 0x72, 0x48, 0xdf, 0x38, 0xa1, 0x59, 0x10, 0x47, 0x98, 0xbd, 0x33, 0x66, 0x69, 0x06, 0x6f, 0x82,
803 0xb2, 0xcf, 0xf2, 0x63, 0x44, 0xc6, 0xe3, 0xe2, 0x04, 0x94, 0xb7, 0x96, 0x78, 0x59, 0xde, 0x38,
804 0xf0, 0x31, 0x10, 0xd6, 0xfc, 0x37, 0x6c, 0x82, 0x33, 0xfd, 0x7d, 0x1a, 0x0d, 0x58, 0xca, 0x1b,
805 0x37, 0xb7, 0xfc, 0xdd, 0x05, 0x3c, 0x21, 0xc1, 0x9b, 0x40, 0x4b, 0x58, 0xca, 0x32, 0x92, 0xc5,
806 0xc4, 0x67, 0x8f, 0xe9, 0x78, 0x98, 0xf1, 0xbe, 0x9d, 0xdd, 0x5d, 0xc0, 0x15, 0x6e, 0x71, 0x63,
807 0x53, 0xe0, 0xdb, 0x65, 0xb0, 0x14, 0x8f, 0x98, 0xd0, 0x56, 0xff, 0x46, 0x05, 0x57, 0xe7, 0x8b,
808 0x3e, 0xc9, 0x98, 0xdf, 0x9c, 0x19, 0x73, 0xe3, 0xa8, 0xda, 0x99, 0xb8, 0xb3, 0xf3, 0x3e, 0x32,
809 0xc1, 0xd2, 0x9c, 0x09, 0x3e, 0x55, 0xfe, 0xa3, 0x11, 0x5e, 0x03, 0x97, 0x3b, 0x6d, 0xdb, 0x26,
810 0xdc, 0xd0, 0xd3, 0x6d, 0xe2, 0x39, 0x5d, 0xaf, 0xd3, 0x69, 0x63, 0x17, 0x99, 0x5a, 0x49, 0xb8,
811 0xf4, 0x74, 0xdb, 0x32, 0x49, 0x0b, 0xb9, 0xd8, 0x32, 0xb4, 0x53, 0xc7, 0x4c, 0xfd, 0x74, 0xfd,
812 0x23, 0x05, 0x54, 0x44, 0xa1, 0x2d, 0x96, 0x51, 0x93, 0x66, 0xf4, 0x44, 0x83, 0xbe, 0x0d, 0x2a,
813 0xfd, 0x38, 0x1c, 0xc5, 0x11, 0x8b, 0x32, 0x41, 0x57, 0x67, 0xe9, 0x2b, 0x53, 0x02, 0xf7, 0xf8,
814 0xbf, 0xec, 0x11, 0xd1, 0x90, 0x15, 0xad, 0x7a, 0x46, 0xcb, 0x37, 0x49, 0xfd, 0x63, 0x05, 0x2c,
815 0x0a, 0x5d, 0x27, 0x5d, 0x3c, 0x77, 0xc1, 0xb9, 0x82, 0x1e, 0xb2, 0x8c, 0xfa, 0x34, 0xa3, 0x85,
816 0xa6, 0x35, 0xc9, 0x69, 0x52, 0x2c, 0xae, 0x84, 0xd3, 0xff, 0x39, 0x15, 0x36, 0xc1, 0xe9, 0x03,
817 0x3a, 0x1c, 0xb3, 0xe2, 0xb3, 0xad, 0x72, 0x1f, 0x63, 0x22, 0xad, 0xcb, 0xa2, 0x34, 0x4e, 0xb8,
818 0xa3, 0xa0, 0xd5, 0x53, 0xa0, 0xed, 0xb0, 0x62, 0x1b, 0x4c, 0xbe, 0x94, 0xdb, 0x5c, 0x30, 0x25,
819 0x3c, 0xb7, 0x72, 0x7c, 0xee, 0x5c, 0xb3, 0x68, 0xf9, 0xa1, 0x12, 0xd5, 0xe7, 0x95, 0x58, 0xff,
820 0x56, 0x05, 0xab, 0x52, 0xd6, 0x93, 0x1c, 0xf5, 0x97, 0x67, 0x8e, 0xfa, 0x35, 0x4e, 0x3a, 0x12,
821 0xec, 0xe8, 0xf9, 0x5e, 0x14, 0xd9, 0x8b, 0xbe, 0x94, 0x25, 0x75, 0xb8, 0x30, 0xfd, 0xb3, 0x35,
822 0xf6, 0xde, 0xbf, 0xf9, 0x08, 0x2e, 0x80, 0xd5, 0x09, 0x66, 0xb4, 0x5b, 0x9d, 0xb6, 0x83, 0x1c,
823 0x57, 0x53, 0xe7, 0x7c, 0x1b, 0x27, 0x3a, 0xfc, 0x37, 0x7f, 0x3d, 0x0d, 0xca, 0x52, 0x87, 0xe1,
824 0x65, 0x70, 0x41, 0xf8, 0x10, 0x47, 0x6f, 0xe5, 0xe4, 0x42, 0x9c, 0xb6, 0x90, 0x6b, 0x2d, 0x4c,
825 0xf7, 0x74, 0x87, 0x74, 0x3b, 0x08, 0x99, 0x9a, 0x02, 0xd7, 0xc0, 0xb9, 0x02, 0x35, 0x3a, 0x1e,
826 0x71, 0x51, 0xab, 0xa3, 0xf9, 0xf0, 0x3a, 0xb8, 0x22, 0x81, 0x5e, 0x57, 0xdf, 0x41, 0xa4, 0x83,
827 0xb0, 0x81, 0x1c, 0x57, 0xdf, 0x41, 0x1a, 0x83, 0x57, 0xc1, 0xa5, 0x82, 0xe0, 0x62, 0xdd, 0xe9,
828 0x1a, 0xc8, 0xea, 0x21, 0x2c, 0xbc, 0xbf, 0x53, 0xe0, 0x75, 0xb0, 0x3e, 0xc7, 0xda, 0x6b, 0xdb,
829 0xdc, 0xfb, 0x7b, 0xe5, 0x18, 0xf7, 0x6d, 0x4b, 0xef, 0x6a, 0x3f, 0x28, 0xb0, 0x36, 0xcd, 0x2e,
830 0x5b, 0xf1, 0x03, 0xd2, 0x69, 0xef, 0x21, 0xac, 0xfd, 0x78, 0x1c, 0xc3, 0x9d, 0x30, 0x7e, 0x52,
831 0x60, 0x1d, 0x5c, 0x9b, 0xc3, 0xd8, 0xd3, 0x7b, 0xc8, 0x46, 0xce, 0x8e, 0xbb, 0xab, 0xfd, 0x9c,
832 0x8f, 0x64, 0xd2, 0x10, 0xd3, 0xea, 0xde, 0x17, 0xea, 0x3f, 0x55, 0xe1, 0x65, 0x70, 0x5e, 0x86,
833 0x0d, 0xbd, 0xa3, 0x1b, 0x96, 0xfb, 0x50, 0xfb, 0x2c, 0xbf, 0x78, 0x56, 0x65, 0x13, 0x6f, 0x8c,
834 0xf6, 0xb9, 0x0a, 0x37, 0xc0, 0xd5, 0x23, 0xb8, 0xdc, 0xb0, 0x2f, 0x54, 0xf8, 0x02, 0xd8, 0x90,
835 0x29, 0x18, 0xe9, 0x26, 0xd9, 0xc3, 0x96, 0x7b, 0x88, 0xf7, 0xa5, 0x0a, 0x1b, 0xe0, 0x86, 0xcc,
836 0xbb, 0xa7, 0x7b, 0xb6, 0xfb, 0x90, 0x18, 0xc8, 0xb6, 0xbb, 0x32, 0xf3, 0x2b, 0x15, 0x9e, 0x9f,
837 0x4e, 0x0e, 0xeb, 0x2d, 0xa1, 0xfe, 0xfd, 0x12, 0xac, 0x82, 0x35, 0x09, 0x9d, 0x8a, 0x7f, 0x5a,
838 0x92, 0xca, 0xcd, 0x2d, 0x42, 0xfb, 0x07, 0x25, 0xa9, 0x97, 0x53, 0x58, 0x4e, 0xf4, 0xa1, 0xec,
839 0xc8, 0xdb, 0x4b, 0x5a, 0xfa, 0x03, 0xed, 0xb7, 0x12, 0xbc, 0x04, 0xe0, 0x21, 0x58, 0x44, 0xfc,
840 0xbd, 0x24, 0xf5, 0x5e, 0x32, 0xc8, 0x31, 0xff, 0x90, 0x39, 0x96, 0xe3, 0x20, 0x4c, 0xba, 0x1e,
841 0xc6, 0x6d, 0xcf, 0x31, 0x2d, 0x67, 0x47, 0x94, 0xf2, 0xcb, 0xa9, 0xad, 0x3f, 0x15, 0xf0, 0x3f,
842 0x87, 0x66, 0xc1, 0x01, 0x2b, 0xee, 0xb1, 0x16, 0x8d, 0xe8, 0x80, 0x85, 0x7c, 0x8b, 0xf1, 0xe7,
843 0x20, 0x7c, 0x15, 0x94, 0xa5, 0xa7, 0x0c, 0x3c, 0xc7, 0xbf, 0xe9, 0x5d, 0x9a, 0xf8, 0x4f, 0x68,
844 0xc2, 0x2c, 0x73, 0xbd, 0x7a, 0xdc, 0x6b, 0x07, 0x52, 0xb0, 0xee, 0x8d, 0x7c, 0x9a, 0xb1, 0x79,
845 0x77, 0x24, 0xac, 0xfd, 0xcd, 0xf5, 0xc9, 0x37, 0xe4, 0xfa, 0xc6, 0x73, 0x2f, 0x58, 0xf8, 0x3a,
846 0x58, 0x9a, 0x6e, 0x25, 0x78, 0x61, 0x76, 0x4b, 0x89, 0x30, 0x17, 0xe7, 0x2f, 0xaf, 0xed, 0x37,
847 0xde, 0x7a, 0x6d, 0x10, 0x64, 0xfb, 0xe3, 0x47, 0xcd, 0x7e, 0x1c, 0x6e, 0xc6, 0x23, 0x16, 0xf5,
848 0xe3, 0xc4, 0xdf, 0x14, 0xf7, 0xd6, 0xad, 0x70, 0xda, 0x88, 0x5b, 0xfc, 0xdd, 0xf9, 0x98, 0xf6,
849 0xd9, 0xe6, 0xc1, 0x9d, 0xcd, 0x41, 0xbc, 0xe9, 0x87, 0xc1, 0xa3, 0x45, 0xfe, 0xfe, 0xbd, 0xf3,
850 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa4, 0xee, 0x26, 0xad, 0x4a, 0x0b, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100851}
852
853// Reference imports to suppress errors if they are not otherwise used.
854var _ context.Context
855var _ grpc.ClientConn
856
857// This is a compile-time assertion to ensure that this generated file
858// is compatible with the grpc package it is being compiled against.
859const _ = grpc.SupportPackageIsVersion4
860
861// NativeMetricsManagementServiceClient is the client API for NativeMetricsManagementService service.
862//
863// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
864type NativeMetricsManagementServiceClient interface {
865 // List the supported metrics for the passed device.
866 // This would be the first call that you make to know about the metrics that a particular device supports and
867 // then use the UpdateMetricsConfiguration API to monitor only the required metrics.
868 ListMetrics(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListMetricsResponse, error)
869 // Updates the configuration of the list of metrics in the request
870 // Acts upon single metric configuration, collection of a single metric can be started/stopped
871 // by changing its configuration.
872 //
873 // This configuration is persisted across restart of the device or the device manager
874 UpdateMetricsConfiguration(ctx context.Context, in *MetricsConfigurationRequest, opts ...grpc.CallOption) (*MetricsConfigurationResponse, error)
875 // Get the instantenous value of a metric
aghoshc301dcd2020-09-03 16:55:34 +0100876 GetMetric(ctx context.Context, in *GetMetricRequest, opts ...grpc.CallOption) (*GetMetricResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100877}
878
879type nativeMetricsManagementServiceClient struct {
880 cc *grpc.ClientConn
881}
882
883func NewNativeMetricsManagementServiceClient(cc *grpc.ClientConn) NativeMetricsManagementServiceClient {
884 return &nativeMetricsManagementServiceClient{cc}
885}
886
887func (c *nativeMetricsManagementServiceClient) ListMetrics(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListMetricsResponse, error) {
888 out := new(ListMetricsResponse)
889 err := c.cc.Invoke(ctx, "/dmi.NativeMetricsManagementService/ListMetrics", in, out, opts...)
890 if err != nil {
891 return nil, err
892 }
893 return out, nil
894}
895
896func (c *nativeMetricsManagementServiceClient) UpdateMetricsConfiguration(ctx context.Context, in *MetricsConfigurationRequest, opts ...grpc.CallOption) (*MetricsConfigurationResponse, error) {
897 out := new(MetricsConfigurationResponse)
898 err := c.cc.Invoke(ctx, "/dmi.NativeMetricsManagementService/UpdateMetricsConfiguration", in, out, opts...)
899 if err != nil {
900 return nil, err
901 }
902 return out, nil
903}
904
aghoshc301dcd2020-09-03 16:55:34 +0100905func (c *nativeMetricsManagementServiceClient) GetMetric(ctx context.Context, in *GetMetricRequest, opts ...grpc.CallOption) (*GetMetricResponse, error) {
906 out := new(GetMetricResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +0100907 err := c.cc.Invoke(ctx, "/dmi.NativeMetricsManagementService/GetMetric", in, out, opts...)
908 if err != nil {
909 return nil, err
910 }
911 return out, nil
912}
913
914// NativeMetricsManagementServiceServer is the server API for NativeMetricsManagementService service.
915type NativeMetricsManagementServiceServer interface {
916 // List the supported metrics for the passed device.
917 // This would be the first call that you make to know about the metrics that a particular device supports and
918 // then use the UpdateMetricsConfiguration API to monitor only the required metrics.
919 ListMetrics(context.Context, *HardwareID) (*ListMetricsResponse, error)
920 // Updates the configuration of the list of metrics in the request
921 // Acts upon single metric configuration, collection of a single metric can be started/stopped
922 // by changing its configuration.
923 //
924 // This configuration is persisted across restart of the device or the device manager
925 UpdateMetricsConfiguration(context.Context, *MetricsConfigurationRequest) (*MetricsConfigurationResponse, error)
926 // Get the instantenous value of a metric
aghoshc301dcd2020-09-03 16:55:34 +0100927 GetMetric(context.Context, *GetMetricRequest) (*GetMetricResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100928}
929
930func RegisterNativeMetricsManagementServiceServer(s *grpc.Server, srv NativeMetricsManagementServiceServer) {
931 s.RegisterService(&_NativeMetricsManagementService_serviceDesc, srv)
932}
933
934func _NativeMetricsManagementService_ListMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
935 in := new(HardwareID)
936 if err := dec(in); err != nil {
937 return nil, err
938 }
939 if interceptor == nil {
940 return srv.(NativeMetricsManagementServiceServer).ListMetrics(ctx, in)
941 }
942 info := &grpc.UnaryServerInfo{
943 Server: srv,
944 FullMethod: "/dmi.NativeMetricsManagementService/ListMetrics",
945 }
946 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
947 return srv.(NativeMetricsManagementServiceServer).ListMetrics(ctx, req.(*HardwareID))
948 }
949 return interceptor(ctx, in, info, handler)
950}
951
952func _NativeMetricsManagementService_UpdateMetricsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
953 in := new(MetricsConfigurationRequest)
954 if err := dec(in); err != nil {
955 return nil, err
956 }
957 if interceptor == nil {
958 return srv.(NativeMetricsManagementServiceServer).UpdateMetricsConfiguration(ctx, in)
959 }
960 info := &grpc.UnaryServerInfo{
961 Server: srv,
962 FullMethod: "/dmi.NativeMetricsManagementService/UpdateMetricsConfiguration",
963 }
964 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
965 return srv.(NativeMetricsManagementServiceServer).UpdateMetricsConfiguration(ctx, req.(*MetricsConfigurationRequest))
966 }
967 return interceptor(ctx, in, info, handler)
968}
969
970func _NativeMetricsManagementService_GetMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
971 in := new(GetMetricRequest)
972 if err := dec(in); err != nil {
973 return nil, err
974 }
975 if interceptor == nil {
976 return srv.(NativeMetricsManagementServiceServer).GetMetric(ctx, in)
977 }
978 info := &grpc.UnaryServerInfo{
979 Server: srv,
980 FullMethod: "/dmi.NativeMetricsManagementService/GetMetric",
981 }
982 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
983 return srv.(NativeMetricsManagementServiceServer).GetMetric(ctx, req.(*GetMetricRequest))
984 }
985 return interceptor(ctx, in, info, handler)
986}
987
988var _NativeMetricsManagementService_serviceDesc = grpc.ServiceDesc{
989 ServiceName: "dmi.NativeMetricsManagementService",
990 HandlerType: (*NativeMetricsManagementServiceServer)(nil),
991 Methods: []grpc.MethodDesc{
992 {
993 MethodName: "ListMetrics",
994 Handler: _NativeMetricsManagementService_ListMetrics_Handler,
995 },
996 {
997 MethodName: "UpdateMetricsConfiguration",
998 Handler: _NativeMetricsManagementService_UpdateMetricsConfiguration_Handler,
999 },
1000 {
1001 MethodName: "GetMetric",
1002 Handler: _NativeMetricsManagementService_GetMetric_Handler,
1003 },
1004 },
1005 Streams: []grpc.StreamDesc{},
1006 Metadata: "dmi/hw_metrics_mgmt_service.proto",
1007}