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