Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: dmi/hw_metrics_mgmt_service.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 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. |
| 15 | var _ = proto.Marshal |
| 16 | var _ = fmt.Errorf |
| 17 | var _ = 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. |
| 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 24 | |
| 25 | type MetricNames int32 |
| 26 | |
| 27 | const ( |
| 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 | |
| 61 | var 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 | |
| 88 | var 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 | |
| 115 | func (x MetricNames) String() string { |
| 116 | return proto.EnumName(MetricNames_name, int32(x)) |
| 117 | } |
| 118 | |
| 119 | func (MetricNames) EnumDescriptor() ([]byte, []int) { |
| 120 | return fileDescriptor_6b6c2f1384c11ff5, []int{0} |
| 121 | } |
| 122 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 123 | type ListMetricsResponse_Reason int32 |
| 124 | |
| 125 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 126 | 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.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 130 | ) |
| 131 | |
| 132 | var ListMetricsResponse_Reason_name = map[int32]string{ |
| 133 | 0: "UNDEFINED_REASON", |
| 134 | 1: "UNKNOWN_DEVICE", |
| 135 | 2: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 136 | 3: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 137 | } |
| 138 | |
| 139 | var ListMetricsResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 140 | "UNDEFINED_REASON": 0, |
| 141 | "UNKNOWN_DEVICE": 1, |
| 142 | "INTERNAL_ERROR": 2, |
| 143 | "DEVICE_UNREACHABLE": 3, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | func (x ListMetricsResponse_Reason) String() string { |
| 147 | return proto.EnumName(ListMetricsResponse_Reason_name, int32(x)) |
| 148 | } |
| 149 | |
| 150 | func (ListMetricsResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 151 | return fileDescriptor_6b6c2f1384c11ff5, []int{2, 0} |
| 152 | } |
| 153 | |
| 154 | type MetricsConfigurationResponse_Reason int32 |
| 155 | |
| 156 | const ( |
| 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.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 162 | MetricsConfigurationResponse_DEVICE_UNREACHABLE MetricsConfigurationResponse_Reason = 5 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 163 | ) |
| 164 | |
| 165 | var 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.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 171 | 5: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 172 | } |
| 173 | |
| 174 | var 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.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 180 | "DEVICE_UNREACHABLE": 5, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | func (x MetricsConfigurationResponse_Reason) String() string { |
| 184 | return proto.EnumName(MetricsConfigurationResponse_Reason_name, int32(x)) |
| 185 | } |
| 186 | |
| 187 | func (MetricsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 188 | return fileDescriptor_6b6c2f1384c11ff5, []int{4, 0} |
| 189 | } |
| 190 | |
| 191 | type GetMetricResponse_Reason int32 |
| 192 | |
| 193 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 194 | 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.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 200 | ) |
| 201 | |
| 202 | var 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.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 208 | 5: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 209 | } |
| 210 | |
| 211 | var GetMetricResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 212 | "UNDEFINED_REASON": 0, |
| 213 | "UNKNOWN_DEVICE": 1, |
| 214 | "UNKNOWN_COMPONENT": 2, |
| 215 | "INTERNAL_ERROR": 3, |
| 216 | "INVALID_METRIC": 4, |
| 217 | "DEVICE_UNREACHABLE": 5, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 218 | } |
| 219 | |
| 220 | func (x GetMetricResponse_Reason) String() string { |
| 221 | return proto.EnumName(GetMetricResponse_Reason_name, int32(x)) |
| 222 | } |
| 223 | |
| 224 | func (GetMetricResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 225 | return fileDescriptor_6b6c2f1384c11ff5, []int{8, 0} |
| 226 | } |
| 227 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 228 | type 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 | |
| 241 | func (m *MetricConfig) Reset() { *m = MetricConfig{} } |
| 242 | func (m *MetricConfig) String() string { return proto.CompactTextString(m) } |
| 243 | func (*MetricConfig) ProtoMessage() {} |
| 244 | func (*MetricConfig) Descriptor() ([]byte, []int) { |
| 245 | return fileDescriptor_6b6c2f1384c11ff5, []int{0} |
| 246 | } |
| 247 | |
| 248 | func (m *MetricConfig) XXX_Unmarshal(b []byte) error { |
| 249 | return xxx_messageInfo_MetricConfig.Unmarshal(m, b) |
| 250 | } |
| 251 | func (m *MetricConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 252 | return xxx_messageInfo_MetricConfig.Marshal(b, m, deterministic) |
| 253 | } |
| 254 | func (m *MetricConfig) XXX_Merge(src proto.Message) { |
| 255 | xxx_messageInfo_MetricConfig.Merge(m, src) |
| 256 | } |
| 257 | func (m *MetricConfig) XXX_Size() int { |
| 258 | return xxx_messageInfo_MetricConfig.Size(m) |
| 259 | } |
| 260 | func (m *MetricConfig) XXX_DiscardUnknown() { |
| 261 | xxx_messageInfo_MetricConfig.DiscardUnknown(m) |
| 262 | } |
| 263 | |
| 264 | var xxx_messageInfo_MetricConfig proto.InternalMessageInfo |
| 265 | |
| 266 | func (m *MetricConfig) GetMetricId() MetricNames { |
| 267 | if m != nil { |
| 268 | return m.MetricId |
| 269 | } |
| 270 | return MetricNames_METRIC_NAME_UNDEFINED |
| 271 | } |
| 272 | |
| 273 | func (m *MetricConfig) GetIsConfigured() bool { |
| 274 | if m != nil { |
| 275 | return m.IsConfigured |
| 276 | } |
| 277 | return false |
| 278 | } |
| 279 | |
| 280 | func (m *MetricConfig) GetPollInterval() uint32 { |
| 281 | if m != nil { |
| 282 | return m.PollInterval |
| 283 | } |
| 284 | return 0 |
| 285 | } |
| 286 | |
| 287 | type 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 | |
| 294 | func (m *MetricsConfig) Reset() { *m = MetricsConfig{} } |
| 295 | func (m *MetricsConfig) String() string { return proto.CompactTextString(m) } |
| 296 | func (*MetricsConfig) ProtoMessage() {} |
| 297 | func (*MetricsConfig) Descriptor() ([]byte, []int) { |
| 298 | return fileDescriptor_6b6c2f1384c11ff5, []int{1} |
| 299 | } |
| 300 | |
| 301 | func (m *MetricsConfig) XXX_Unmarshal(b []byte) error { |
| 302 | return xxx_messageInfo_MetricsConfig.Unmarshal(m, b) |
| 303 | } |
| 304 | func (m *MetricsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 305 | return xxx_messageInfo_MetricsConfig.Marshal(b, m, deterministic) |
| 306 | } |
| 307 | func (m *MetricsConfig) XXX_Merge(src proto.Message) { |
| 308 | xxx_messageInfo_MetricsConfig.Merge(m, src) |
| 309 | } |
| 310 | func (m *MetricsConfig) XXX_Size() int { |
| 311 | return xxx_messageInfo_MetricsConfig.Size(m) |
| 312 | } |
| 313 | func (m *MetricsConfig) XXX_DiscardUnknown() { |
| 314 | xxx_messageInfo_MetricsConfig.DiscardUnknown(m) |
| 315 | } |
| 316 | |
| 317 | var xxx_messageInfo_MetricsConfig proto.InternalMessageInfo |
| 318 | |
| 319 | func (m *MetricsConfig) GetMetrics() []*MetricConfig { |
| 320 | if m != nil { |
| 321 | return m.Metrics |
| 322 | } |
| 323 | return nil |
| 324 | } |
| 325 | |
| 326 | type ListMetricsResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 327 | 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"` |
| 330 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 331 | XXX_unrecognized []byte `json:"-"` |
| 332 | XXX_sizecache int32 `json:"-"` |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 333 | } |
| 334 | |
| 335 | func (m *ListMetricsResponse) Reset() { *m = ListMetricsResponse{} } |
| 336 | func (m *ListMetricsResponse) String() string { return proto.CompactTextString(m) } |
| 337 | func (*ListMetricsResponse) ProtoMessage() {} |
| 338 | func (*ListMetricsResponse) Descriptor() ([]byte, []int) { |
| 339 | return fileDescriptor_6b6c2f1384c11ff5, []int{2} |
| 340 | } |
| 341 | |
| 342 | func (m *ListMetricsResponse) XXX_Unmarshal(b []byte) error { |
| 343 | return xxx_messageInfo_ListMetricsResponse.Unmarshal(m, b) |
| 344 | } |
| 345 | func (m *ListMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 346 | return xxx_messageInfo_ListMetricsResponse.Marshal(b, m, deterministic) |
| 347 | } |
| 348 | func (m *ListMetricsResponse) XXX_Merge(src proto.Message) { |
| 349 | xxx_messageInfo_ListMetricsResponse.Merge(m, src) |
| 350 | } |
| 351 | func (m *ListMetricsResponse) XXX_Size() int { |
| 352 | return xxx_messageInfo_ListMetricsResponse.Size(m) |
| 353 | } |
| 354 | func (m *ListMetricsResponse) XXX_DiscardUnknown() { |
| 355 | xxx_messageInfo_ListMetricsResponse.DiscardUnknown(m) |
| 356 | } |
| 357 | |
| 358 | var xxx_messageInfo_ListMetricsResponse proto.InternalMessageInfo |
| 359 | |
| 360 | func (m *ListMetricsResponse) GetStatus() Status { |
| 361 | if m != nil { |
| 362 | return m.Status |
| 363 | } |
| 364 | return Status_UNDEFINED_STATUS |
| 365 | } |
| 366 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 367 | func (m *ListMetricsResponse) GetReason() ListMetricsResponse_Reason { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 368 | if m != nil { |
| 369 | return m.Reason |
| 370 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 371 | return ListMetricsResponse_UNDEFINED_REASON |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 372 | } |
| 373 | |
| 374 | func (m *ListMetricsResponse) GetMetrics() *MetricsConfig { |
| 375 | if m != nil { |
| 376 | return m.Metrics |
| 377 | } |
| 378 | return nil |
| 379 | } |
| 380 | |
| 381 | type MetricsConfigurationRequest struct { |
| 382 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 383 | // Types that are valid to be assigned to Operation: |
| 384 | // *MetricsConfigurationRequest_Changes |
| 385 | // *MetricsConfigurationRequest_ResetToDefault |
| 386 | Operation isMetricsConfigurationRequest_Operation `protobuf_oneof:"operation"` |
| 387 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 388 | XXX_unrecognized []byte `json:"-"` |
| 389 | XXX_sizecache int32 `json:"-"` |
| 390 | } |
| 391 | |
| 392 | func (m *MetricsConfigurationRequest) Reset() { *m = MetricsConfigurationRequest{} } |
| 393 | func (m *MetricsConfigurationRequest) String() string { return proto.CompactTextString(m) } |
| 394 | func (*MetricsConfigurationRequest) ProtoMessage() {} |
| 395 | func (*MetricsConfigurationRequest) Descriptor() ([]byte, []int) { |
| 396 | return fileDescriptor_6b6c2f1384c11ff5, []int{3} |
| 397 | } |
| 398 | |
| 399 | func (m *MetricsConfigurationRequest) XXX_Unmarshal(b []byte) error { |
| 400 | return xxx_messageInfo_MetricsConfigurationRequest.Unmarshal(m, b) |
| 401 | } |
| 402 | func (m *MetricsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 403 | return xxx_messageInfo_MetricsConfigurationRequest.Marshal(b, m, deterministic) |
| 404 | } |
| 405 | func (m *MetricsConfigurationRequest) XXX_Merge(src proto.Message) { |
| 406 | xxx_messageInfo_MetricsConfigurationRequest.Merge(m, src) |
| 407 | } |
| 408 | func (m *MetricsConfigurationRequest) XXX_Size() int { |
| 409 | return xxx_messageInfo_MetricsConfigurationRequest.Size(m) |
| 410 | } |
| 411 | func (m *MetricsConfigurationRequest) XXX_DiscardUnknown() { |
| 412 | xxx_messageInfo_MetricsConfigurationRequest.DiscardUnknown(m) |
| 413 | } |
| 414 | |
| 415 | var xxx_messageInfo_MetricsConfigurationRequest proto.InternalMessageInfo |
| 416 | |
| 417 | func (m *MetricsConfigurationRequest) GetDeviceUuid() *Uuid { |
| 418 | if m != nil { |
| 419 | return m.DeviceUuid |
| 420 | } |
| 421 | return nil |
| 422 | } |
| 423 | |
| 424 | type isMetricsConfigurationRequest_Operation interface { |
| 425 | isMetricsConfigurationRequest_Operation() |
| 426 | } |
| 427 | |
| 428 | type MetricsConfigurationRequest_Changes struct { |
| 429 | Changes *MetricsConfig `protobuf:"bytes,2,opt,name=changes,proto3,oneof"` |
| 430 | } |
| 431 | |
| 432 | type MetricsConfigurationRequest_ResetToDefault struct { |
| 433 | ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"` |
| 434 | } |
| 435 | |
| 436 | func (*MetricsConfigurationRequest_Changes) isMetricsConfigurationRequest_Operation() {} |
| 437 | |
| 438 | func (*MetricsConfigurationRequest_ResetToDefault) isMetricsConfigurationRequest_Operation() {} |
| 439 | |
| 440 | func (m *MetricsConfigurationRequest) GetOperation() isMetricsConfigurationRequest_Operation { |
| 441 | if m != nil { |
| 442 | return m.Operation |
| 443 | } |
| 444 | return nil |
| 445 | } |
| 446 | |
| 447 | func (m *MetricsConfigurationRequest) GetChanges() *MetricsConfig { |
| 448 | if x, ok := m.GetOperation().(*MetricsConfigurationRequest_Changes); ok { |
| 449 | return x.Changes |
| 450 | } |
| 451 | return nil |
| 452 | } |
| 453 | |
| 454 | func (m *MetricsConfigurationRequest) GetResetToDefault() bool { |
| 455 | if x, ok := m.GetOperation().(*MetricsConfigurationRequest_ResetToDefault); ok { |
| 456 | return x.ResetToDefault |
| 457 | } |
| 458 | return false |
| 459 | } |
| 460 | |
| 461 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 462 | func (*MetricsConfigurationRequest) XXX_OneofWrappers() []interface{} { |
| 463 | return []interface{}{ |
| 464 | (*MetricsConfigurationRequest_Changes)(nil), |
| 465 | (*MetricsConfigurationRequest_ResetToDefault)(nil), |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | type MetricsConfigurationResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 470 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 471 | Reason MetricsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.MetricsConfigurationResponse_Reason" json:"reason,omitempty"` |
| 472 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 473 | XXX_unrecognized []byte `json:"-"` |
| 474 | XXX_sizecache int32 `json:"-"` |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 475 | } |
| 476 | |
| 477 | func (m *MetricsConfigurationResponse) Reset() { *m = MetricsConfigurationResponse{} } |
| 478 | func (m *MetricsConfigurationResponse) String() string { return proto.CompactTextString(m) } |
| 479 | func (*MetricsConfigurationResponse) ProtoMessage() {} |
| 480 | func (*MetricsConfigurationResponse) Descriptor() ([]byte, []int) { |
| 481 | return fileDescriptor_6b6c2f1384c11ff5, []int{4} |
| 482 | } |
| 483 | |
| 484 | func (m *MetricsConfigurationResponse) XXX_Unmarshal(b []byte) error { |
| 485 | return xxx_messageInfo_MetricsConfigurationResponse.Unmarshal(m, b) |
| 486 | } |
| 487 | func (m *MetricsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 488 | return xxx_messageInfo_MetricsConfigurationResponse.Marshal(b, m, deterministic) |
| 489 | } |
| 490 | func (m *MetricsConfigurationResponse) XXX_Merge(src proto.Message) { |
| 491 | xxx_messageInfo_MetricsConfigurationResponse.Merge(m, src) |
| 492 | } |
| 493 | func (m *MetricsConfigurationResponse) XXX_Size() int { |
| 494 | return xxx_messageInfo_MetricsConfigurationResponse.Size(m) |
| 495 | } |
| 496 | func (m *MetricsConfigurationResponse) XXX_DiscardUnknown() { |
| 497 | xxx_messageInfo_MetricsConfigurationResponse.DiscardUnknown(m) |
| 498 | } |
| 499 | |
| 500 | var xxx_messageInfo_MetricsConfigurationResponse proto.InternalMessageInfo |
| 501 | |
| 502 | func (m *MetricsConfigurationResponse) GetStatus() Status { |
| 503 | if m != nil { |
| 504 | return m.Status |
| 505 | } |
| 506 | return Status_UNDEFINED_STATUS |
| 507 | } |
| 508 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 509 | func (m *MetricsConfigurationResponse) GetReason() MetricsConfigurationResponse_Reason { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 510 | if m != nil { |
| 511 | return m.Reason |
| 512 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 513 | return MetricsConfigurationResponse_UNDEFINED_REASON |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 514 | } |
| 515 | |
| 516 | type MetricMetaData struct { |
| 517 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 518 | // uuid of the component |
| 519 | ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"` |
| 520 | ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` |
| 521 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 522 | XXX_unrecognized []byte `json:"-"` |
| 523 | XXX_sizecache int32 `json:"-"` |
| 524 | } |
| 525 | |
| 526 | func (m *MetricMetaData) Reset() { *m = MetricMetaData{} } |
| 527 | func (m *MetricMetaData) String() string { return proto.CompactTextString(m) } |
| 528 | func (*MetricMetaData) ProtoMessage() {} |
| 529 | func (*MetricMetaData) Descriptor() ([]byte, []int) { |
| 530 | return fileDescriptor_6b6c2f1384c11ff5, []int{5} |
| 531 | } |
| 532 | |
| 533 | func (m *MetricMetaData) XXX_Unmarshal(b []byte) error { |
| 534 | return xxx_messageInfo_MetricMetaData.Unmarshal(m, b) |
| 535 | } |
| 536 | func (m *MetricMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 537 | return xxx_messageInfo_MetricMetaData.Marshal(b, m, deterministic) |
| 538 | } |
| 539 | func (m *MetricMetaData) XXX_Merge(src proto.Message) { |
| 540 | xxx_messageInfo_MetricMetaData.Merge(m, src) |
| 541 | } |
| 542 | func (m *MetricMetaData) XXX_Size() int { |
| 543 | return xxx_messageInfo_MetricMetaData.Size(m) |
| 544 | } |
| 545 | func (m *MetricMetaData) XXX_DiscardUnknown() { |
| 546 | xxx_messageInfo_MetricMetaData.DiscardUnknown(m) |
| 547 | } |
| 548 | |
| 549 | var xxx_messageInfo_MetricMetaData proto.InternalMessageInfo |
| 550 | |
| 551 | func (m *MetricMetaData) GetDeviceUuid() *Uuid { |
| 552 | if m != nil { |
| 553 | return m.DeviceUuid |
| 554 | } |
| 555 | return nil |
| 556 | } |
| 557 | |
| 558 | func (m *MetricMetaData) GetComponentUuid() *Uuid { |
| 559 | if m != nil { |
| 560 | return m.ComponentUuid |
| 561 | } |
| 562 | return nil |
| 563 | } |
| 564 | |
| 565 | func (m *MetricMetaData) GetComponentName() string { |
| 566 | if m != nil { |
| 567 | return m.ComponentName |
| 568 | } |
| 569 | return "" |
| 570 | } |
| 571 | |
| 572 | // The Metrics are conveyed to external systems by submitting them on a kafka bus. |
| 573 | // The topic to which are Metrics are submitted would be configured as startup |
| 574 | // configuration of the components |
| 575 | type Metric struct { |
| 576 | MetricId MetricNames `protobuf:"varint,1,opt,name=metric_id,json=metricId,proto3,enum=dmi.MetricNames" json:"metric_id,omitempty"` |
| 577 | MetricMetadata *MetricMetaData `protobuf:"bytes,2,opt,name=metric_metadata,json=metricMetadata,proto3" json:"metric_metadata,omitempty"` |
| 578 | Value *ComponentSensorData `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` |
| 579 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 580 | XXX_unrecognized []byte `json:"-"` |
| 581 | XXX_sizecache int32 `json:"-"` |
| 582 | } |
| 583 | |
| 584 | func (m *Metric) Reset() { *m = Metric{} } |
| 585 | func (m *Metric) String() string { return proto.CompactTextString(m) } |
| 586 | func (*Metric) ProtoMessage() {} |
| 587 | func (*Metric) Descriptor() ([]byte, []int) { |
| 588 | return fileDescriptor_6b6c2f1384c11ff5, []int{6} |
| 589 | } |
| 590 | |
| 591 | func (m *Metric) XXX_Unmarshal(b []byte) error { |
| 592 | return xxx_messageInfo_Metric.Unmarshal(m, b) |
| 593 | } |
| 594 | func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 595 | return xxx_messageInfo_Metric.Marshal(b, m, deterministic) |
| 596 | } |
| 597 | func (m *Metric) XXX_Merge(src proto.Message) { |
| 598 | xxx_messageInfo_Metric.Merge(m, src) |
| 599 | } |
| 600 | func (m *Metric) XXX_Size() int { |
| 601 | return xxx_messageInfo_Metric.Size(m) |
| 602 | } |
| 603 | func (m *Metric) XXX_DiscardUnknown() { |
| 604 | xxx_messageInfo_Metric.DiscardUnknown(m) |
| 605 | } |
| 606 | |
| 607 | var xxx_messageInfo_Metric proto.InternalMessageInfo |
| 608 | |
| 609 | func (m *Metric) GetMetricId() MetricNames { |
| 610 | if m != nil { |
| 611 | return m.MetricId |
| 612 | } |
| 613 | return MetricNames_METRIC_NAME_UNDEFINED |
| 614 | } |
| 615 | |
| 616 | func (m *Metric) GetMetricMetadata() *MetricMetaData { |
| 617 | if m != nil { |
| 618 | return m.MetricMetadata |
| 619 | } |
| 620 | return nil |
| 621 | } |
| 622 | |
| 623 | func (m *Metric) GetValue() *ComponentSensorData { |
| 624 | if m != nil { |
| 625 | return m.Value |
| 626 | } |
| 627 | return nil |
| 628 | } |
| 629 | |
| 630 | type GetMetricRequest struct { |
| 631 | MetaData *MetricMetaData `protobuf:"bytes,1,opt,name=meta_data,json=metaData,proto3" json:"meta_data,omitempty"` |
| 632 | MetricId MetricNames `protobuf:"varint,2,opt,name=metric_id,json=metricId,proto3,enum=dmi.MetricNames" json:"metric_id,omitempty"` |
| 633 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 634 | XXX_unrecognized []byte `json:"-"` |
| 635 | XXX_sizecache int32 `json:"-"` |
| 636 | } |
| 637 | |
| 638 | func (m *GetMetricRequest) Reset() { *m = GetMetricRequest{} } |
| 639 | func (m *GetMetricRequest) String() string { return proto.CompactTextString(m) } |
| 640 | func (*GetMetricRequest) ProtoMessage() {} |
| 641 | func (*GetMetricRequest) Descriptor() ([]byte, []int) { |
| 642 | return fileDescriptor_6b6c2f1384c11ff5, []int{7} |
| 643 | } |
| 644 | |
| 645 | func (m *GetMetricRequest) XXX_Unmarshal(b []byte) error { |
| 646 | return xxx_messageInfo_GetMetricRequest.Unmarshal(m, b) |
| 647 | } |
| 648 | func (m *GetMetricRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 649 | return xxx_messageInfo_GetMetricRequest.Marshal(b, m, deterministic) |
| 650 | } |
| 651 | func (m *GetMetricRequest) XXX_Merge(src proto.Message) { |
| 652 | xxx_messageInfo_GetMetricRequest.Merge(m, src) |
| 653 | } |
| 654 | func (m *GetMetricRequest) XXX_Size() int { |
| 655 | return xxx_messageInfo_GetMetricRequest.Size(m) |
| 656 | } |
| 657 | func (m *GetMetricRequest) XXX_DiscardUnknown() { |
| 658 | xxx_messageInfo_GetMetricRequest.DiscardUnknown(m) |
| 659 | } |
| 660 | |
| 661 | var xxx_messageInfo_GetMetricRequest proto.InternalMessageInfo |
| 662 | |
| 663 | func (m *GetMetricRequest) GetMetaData() *MetricMetaData { |
| 664 | if m != nil { |
| 665 | return m.MetaData |
| 666 | } |
| 667 | return nil |
| 668 | } |
| 669 | |
| 670 | func (m *GetMetricRequest) GetMetricId() MetricNames { |
| 671 | if m != nil { |
| 672 | return m.MetricId |
| 673 | } |
| 674 | return MetricNames_METRIC_NAME_UNDEFINED |
| 675 | } |
| 676 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 677 | type GetMetricResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 678 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 679 | Reason GetMetricResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetMetricResponse_Reason" json:"reason,omitempty"` |
| 680 | Metric *Metric `protobuf:"bytes,3,opt,name=metric,proto3" json:"metric,omitempty"` |
| 681 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 682 | XXX_unrecognized []byte `json:"-"` |
| 683 | XXX_sizecache int32 `json:"-"` |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 684 | } |
| 685 | |
| 686 | func (m *GetMetricResponse) Reset() { *m = GetMetricResponse{} } |
| 687 | func (m *GetMetricResponse) String() string { return proto.CompactTextString(m) } |
| 688 | func (*GetMetricResponse) ProtoMessage() {} |
| 689 | func (*GetMetricResponse) Descriptor() ([]byte, []int) { |
| 690 | return fileDescriptor_6b6c2f1384c11ff5, []int{8} |
| 691 | } |
| 692 | |
| 693 | func (m *GetMetricResponse) XXX_Unmarshal(b []byte) error { |
| 694 | return xxx_messageInfo_GetMetricResponse.Unmarshal(m, b) |
| 695 | } |
| 696 | func (m *GetMetricResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 697 | return xxx_messageInfo_GetMetricResponse.Marshal(b, m, deterministic) |
| 698 | } |
| 699 | func (m *GetMetricResponse) XXX_Merge(src proto.Message) { |
| 700 | xxx_messageInfo_GetMetricResponse.Merge(m, src) |
| 701 | } |
| 702 | func (m *GetMetricResponse) XXX_Size() int { |
| 703 | return xxx_messageInfo_GetMetricResponse.Size(m) |
| 704 | } |
| 705 | func (m *GetMetricResponse) XXX_DiscardUnknown() { |
| 706 | xxx_messageInfo_GetMetricResponse.DiscardUnknown(m) |
| 707 | } |
| 708 | |
| 709 | var xxx_messageInfo_GetMetricResponse proto.InternalMessageInfo |
| 710 | |
| 711 | func (m *GetMetricResponse) GetStatus() Status { |
| 712 | if m != nil { |
| 713 | return m.Status |
| 714 | } |
| 715 | return Status_UNDEFINED_STATUS |
| 716 | } |
| 717 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 718 | func (m *GetMetricResponse) GetReason() GetMetricResponse_Reason { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 719 | if m != nil { |
| 720 | return m.Reason |
| 721 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 722 | return GetMetricResponse_UNDEFINED_REASON |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 723 | } |
| 724 | |
| 725 | func (m *GetMetricResponse) GetMetric() *Metric { |
| 726 | if m != nil { |
| 727 | return m.Metric |
| 728 | } |
| 729 | return nil |
| 730 | } |
| 731 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 732 | func init() { |
| 733 | proto.RegisterEnum("dmi.MetricNames", MetricNames_name, MetricNames_value) |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 734 | proto.RegisterEnum("dmi.ListMetricsResponse_Reason", ListMetricsResponse_Reason_name, ListMetricsResponse_Reason_value) |
| 735 | proto.RegisterEnum("dmi.MetricsConfigurationResponse_Reason", MetricsConfigurationResponse_Reason_name, MetricsConfigurationResponse_Reason_value) |
| 736 | proto.RegisterEnum("dmi.GetMetricResponse_Reason", GetMetricResponse_Reason_name, GetMetricResponse_Reason_value) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 737 | proto.RegisterType((*MetricConfig)(nil), "dmi.MetricConfig") |
| 738 | proto.RegisterType((*MetricsConfig)(nil), "dmi.MetricsConfig") |
| 739 | proto.RegisterType((*ListMetricsResponse)(nil), "dmi.ListMetricsResponse") |
| 740 | proto.RegisterType((*MetricsConfigurationRequest)(nil), "dmi.MetricsConfigurationRequest") |
| 741 | proto.RegisterType((*MetricsConfigurationResponse)(nil), "dmi.MetricsConfigurationResponse") |
| 742 | proto.RegisterType((*MetricMetaData)(nil), "dmi.MetricMetaData") |
| 743 | proto.RegisterType((*Metric)(nil), "dmi.Metric") |
| 744 | proto.RegisterType((*GetMetricRequest)(nil), "dmi.GetMetricRequest") |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 745 | proto.RegisterType((*GetMetricResponse)(nil), "dmi.GetMetricResponse") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 746 | } |
| 747 | |
| 748 | func init() { proto.RegisterFile("dmi/hw_metrics_mgmt_service.proto", fileDescriptor_6b6c2f1384c11ff5) } |
| 749 | |
| 750 | var fileDescriptor_6b6c2f1384c11ff5 = []byte{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame^] | 751 | // 1169 bytes of a gzipped FileDescriptorProto |
| 752 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcb, 0x6f, 0xdb, 0xc6, |
| 753 | 0x13, 0x36, 0xa9, 0xc4, 0x89, 0x57, 0xb6, 0x42, 0xaf, 0xf3, 0x50, 0x9c, 0xe4, 0x17, 0x9b, 0xc6, |
| 754 | 0xaf, 0x30, 0xd2, 0x46, 0x0a, 0x14, 0x14, 0x7d, 0xe5, 0x50, 0x9a, 0xdc, 0xd8, 0x44, 0x28, 0x4a, |
| 755 | 0x58, 0x91, 0x72, 0xd2, 0x43, 0x17, 0x1b, 0x71, 0xa3, 0x10, 0x30, 0x49, 0x95, 0xa4, 0x9c, 0x73, |
| 756 | 0x4f, 0x45, 0x6f, 0x4d, 0x8b, 0x1e, 0x7a, 0xeb, 0xa5, 0xb7, 0xbe, 0xff, 0x8a, 0x3e, 0xef, 0xed, |
| 757 | 0xff, 0xd1, 0x16, 0xe8, 0xad, 0xe0, 0x2e, 0xa5, 0xae, 0x15, 0xb9, 0x81, 0x8b, 0xde, 0xc8, 0x99, |
| 758 | 0xef, 0x9b, 0xf9, 0x66, 0x66, 0x5f, 0x60, 0x33, 0x88, 0xc2, 0xe6, 0xe3, 0x27, 0x24, 0x62, 0x79, |
| 759 | 0x1a, 0x0e, 0x32, 0x12, 0x0d, 0xa3, 0x9c, 0x64, 0x2c, 0x3d, 0x0c, 0x07, 0xac, 0x31, 0x4a, 0x93, |
| 760 | 0x3c, 0x81, 0x95, 0x20, 0x0a, 0xd7, 0x57, 0x0b, 0xdc, 0x20, 0x89, 0xa2, 0x24, 0xce, 0x84, 0x7d, |
| 761 | 0x7d, 0x59, 0x50, 0xc5, 0x9f, 0xfe, 0x9e, 0x02, 0x96, 0xdb, 0x3c, 0x88, 0x99, 0xc4, 0x8f, 0xc2, |
| 762 | 0x21, 0xbc, 0x09, 0x96, 0x44, 0x50, 0x12, 0x06, 0x75, 0x65, 0x43, 0xd9, 0xae, 0xb5, 0xb4, 0x46, |
| 763 | 0x10, 0x85, 0x0d, 0x81, 0x72, 0x69, 0xc4, 0x32, 0x7c, 0x56, 0x40, 0xec, 0x00, 0x6e, 0x81, 0x95, |
| 764 | 0x30, 0x23, 0x03, 0xce, 0x1d, 0xa7, 0x2c, 0xa8, 0xab, 0x1b, 0xca, 0xf6, 0x59, 0xbc, 0x1c, 0x66, |
| 765 | 0xe6, 0xd4, 0x56, 0x80, 0x46, 0xc9, 0xc1, 0x01, 0x09, 0xe3, 0x9c, 0xa5, 0x87, 0xf4, 0xa0, 0x5e, |
| 766 | 0xd9, 0x50, 0xb6, 0x57, 0xf0, 0x72, 0x61, 0xb4, 0x4b, 0x9b, 0x7e, 0x07, 0xac, 0x88, 0x14, 0x25, |
| 767 | 0x13, 0xbe, 0x08, 0xce, 0x94, 0xe5, 0xd5, 0x95, 0x8d, 0xca, 0x76, 0xb5, 0xb5, 0x2a, 0xe9, 0x10, |
| 768 | 0x18, 0x3c, 0x41, 0xe8, 0xef, 0xaa, 0x60, 0xcd, 0x09, 0xb3, 0xbc, 0x0c, 0x81, 0x59, 0x36, 0x4a, |
| 769 | 0xe2, 0x8c, 0xc1, 0x2d, 0xb0, 0x98, 0xe5, 0x34, 0x1f, 0x67, 0x65, 0x2d, 0x55, 0x1e, 0xa3, 0xc7, |
| 770 | 0x4d, 0xb8, 0x74, 0xc1, 0x57, 0xc0, 0x62, 0xca, 0x68, 0x96, 0xc4, 0x5c, 0x7d, 0xad, 0x75, 0x9d, |
| 771 | 0x83, 0xe6, 0x84, 0x6b, 0x60, 0x0e, 0xc3, 0x25, 0x1c, 0xbe, 0xf4, 0xb7, 0xc4, 0xa2, 0xa4, 0x6a, |
| 772 | 0x0b, 0x4a, 0x12, 0xb3, 0x59, 0x8d, 0x6f, 0x83, 0x45, 0xc1, 0x87, 0xe7, 0x81, 0xe6, 0xbb, 0x16, |
| 773 | 0xba, 0x6b, 0xbb, 0xc8, 0x22, 0x18, 0x19, 0xbd, 0x8e, 0xab, 0x2d, 0x40, 0x08, 0x6a, 0xbe, 0x7b, |
| 774 | 0xcf, 0xed, 0xec, 0xbb, 0xc4, 0x42, 0x7d, 0xdb, 0x44, 0x9a, 0x52, 0xd8, 0x6c, 0xd7, 0x43, 0xd8, |
| 775 | 0x35, 0x1c, 0x82, 0x30, 0xee, 0x60, 0x4d, 0x85, 0x17, 0x01, 0x14, 0x7e, 0xe2, 0xbb, 0x18, 0x19, |
| 776 | 0xe6, 0x9e, 0xb1, 0xe3, 0x20, 0xad, 0xa2, 0x7f, 0xab, 0x80, 0x2b, 0x47, 0x52, 0x8f, 0x53, 0x9a, |
| 777 | 0x87, 0x49, 0x8c, 0xd9, 0x3b, 0x63, 0x96, 0xe5, 0xf0, 0x06, 0xa8, 0x06, 0xac, 0x58, 0x21, 0x64, |
| 778 | 0x3c, 0x2e, 0x87, 0x5b, 0x6d, 0x2d, 0x71, 0xc5, 0xfe, 0x38, 0x0c, 0x30, 0x10, 0xde, 0xe2, 0x1b, |
| 779 | 0x36, 0xc0, 0x99, 0xc1, 0x63, 0x1a, 0x0f, 0x59, 0xc6, 0x7b, 0x32, 0xb7, 0xb2, 0xbd, 0x05, 0x3c, |
| 780 | 0x01, 0xc1, 0x1b, 0x40, 0x4b, 0x59, 0xc6, 0x72, 0x92, 0x27, 0x24, 0x60, 0x8f, 0xe8, 0xf8, 0x20, |
| 781 | 0xe7, 0x2d, 0x39, 0xbb, 0xb7, 0x80, 0x6b, 0xdc, 0xe3, 0x25, 0x96, 0xb0, 0xef, 0x54, 0xc1, 0x52, |
| 782 | 0x32, 0x62, 0x42, 0x9b, 0xfe, 0x89, 0x0a, 0xae, 0xce, 0x17, 0x7d, 0x92, 0x09, 0xbe, 0x39, 0x33, |
| 783 | 0xc1, 0xed, 0x67, 0xd5, 0xce, 0xc4, 0x9d, 0x19, 0xa5, 0xfe, 0x54, 0xf9, 0x8f, 0xa6, 0x73, 0x0d, |
| 784 | 0x5c, 0xee, 0x76, 0x1c, 0x87, 0x70, 0x47, 0xdf, 0x70, 0x88, 0xef, 0xf6, 0xfc, 0x6e, 0xb7, 0x83, |
| 785 | 0x3d, 0x64, 0x69, 0x15, 0x41, 0xe9, 0x1b, 0x8e, 0x6d, 0x91, 0x36, 0xf2, 0xb0, 0x6d, 0x6a, 0xa7, |
| 786 | 0x8e, 0x19, 0xe8, 0x69, 0xfd, 0x63, 0x05, 0xd4, 0x44, 0x0d, 0x6d, 0x96, 0x53, 0x8b, 0xe6, 0xf4, |
| 787 | 0x44, 0x33, 0xbc, 0x05, 0x6a, 0x83, 0x24, 0x1a, 0x25, 0x31, 0x8b, 0x73, 0x01, 0x57, 0x67, 0xe1, |
| 788 | 0x2b, 0x53, 0x00, 0x67, 0xfc, 0x5f, 0x66, 0xc4, 0x34, 0x62, 0x7c, 0x86, 0x4b, 0x12, 0xac, 0xd8, |
| 789 | 0xff, 0xfa, 0x67, 0x0a, 0x58, 0x14, 0xba, 0x4e, 0x7a, 0x5c, 0xdc, 0x01, 0xe7, 0x4a, 0x78, 0xc4, |
| 790 | 0x72, 0x1a, 0xd0, 0x9c, 0x96, 0x9a, 0xd6, 0x24, 0xd2, 0xa4, 0x58, 0x5c, 0x8b, 0xa6, 0xff, 0x05, |
| 791 | 0x14, 0x36, 0xc0, 0xe9, 0x43, 0x7a, 0x30, 0x66, 0xe5, 0x66, 0xab, 0x73, 0x8e, 0x39, 0x91, 0xd6, |
| 792 | 0x63, 0x71, 0x96, 0xa4, 0x9c, 0x28, 0x60, 0x7a, 0x06, 0xb4, 0x5d, 0x56, 0xee, 0xe1, 0xc9, 0x26, |
| 793 | 0xb8, 0xc5, 0x05, 0x53, 0xc2, 0x73, 0x2b, 0xc7, 0xe7, 0x2e, 0x34, 0x8b, 0x96, 0x1f, 0x29, 0x51, |
| 794 | 0x7d, 0x5e, 0x89, 0xfa, 0xa7, 0x2a, 0x58, 0x95, 0xb2, 0x9e, 0x64, 0x15, 0xbf, 0x3c, 0xb3, 0x8a, |
| 795 | 0xaf, 0x71, 0xd0, 0x33, 0xc1, 0x66, 0x4f, 0xa1, 0x2d, 0xb0, 0x28, 0xb2, 0x97, 0x7d, 0xa9, 0x4a, |
| 796 | 0xea, 0x70, 0xe9, 0xd2, 0xdf, 0xff, 0x37, 0xeb, 0xfb, 0x02, 0x58, 0x9d, 0xd8, 0xcc, 0x4e, 0xbb, |
| 797 | 0xdb, 0x71, 0x91, 0xeb, 0x69, 0xea, 0x9c, 0x65, 0x7f, 0xa2, 0x75, 0x7d, 0xe3, 0xd7, 0xd3, 0xa0, |
| 798 | 0x2a, 0x35, 0x0f, 0x5e, 0x06, 0x17, 0x04, 0x87, 0xb8, 0x46, 0xbb, 0x00, 0x97, 0xe2, 0xb4, 0x85, |
| 799 | 0x42, 0x6b, 0xe9, 0xba, 0x6b, 0xb8, 0xa4, 0xd7, 0x45, 0xc8, 0xd2, 0x14, 0xb8, 0x06, 0xce, 0x95, |
| 800 | 0x56, 0xb3, 0xeb, 0x13, 0x0f, 0xb5, 0xbb, 0x5a, 0x00, 0xaf, 0x83, 0x2b, 0x92, 0xd1, 0xef, 0x19, |
| 801 | 0xbb, 0x88, 0x74, 0x11, 0x36, 0x91, 0xeb, 0x19, 0xbb, 0x48, 0x63, 0xf0, 0x2a, 0xb8, 0x54, 0x02, |
| 802 | 0x3c, 0x6c, 0xb8, 0x3d, 0x13, 0xd9, 0x7d, 0x84, 0x05, 0xfb, 0x3b, 0x05, 0x5e, 0x07, 0xeb, 0x73, |
| 803 | 0xbc, 0xfd, 0x8e, 0xc3, 0xd9, 0xdf, 0x2b, 0xc7, 0xd0, 0x77, 0x6c, 0xa3, 0xa7, 0xfd, 0xa0, 0xc0, |
| 804 | 0x8d, 0x69, 0x76, 0xd9, 0x8b, 0xef, 0x93, 0x6e, 0x67, 0x1f, 0x61, 0xed, 0xc7, 0xe3, 0x10, 0xde, |
| 805 | 0x04, 0xf1, 0x93, 0x02, 0x75, 0x70, 0x6d, 0x0e, 0x62, 0xdf, 0xe8, 0x23, 0x07, 0xb9, 0xbb, 0xde, |
| 806 | 0x9e, 0xf6, 0x73, 0x31, 0x92, 0x49, 0x43, 0x2c, 0xbb, 0x77, 0x4f, 0xa8, 0xff, 0x5c, 0x85, 0x97, |
| 807 | 0xc1, 0x79, 0xd9, 0x6c, 0x1a, 0x5d, 0xc3, 0xb4, 0xbd, 0x07, 0xda, 0x17, 0xc5, 0x75, 0xb1, 0x2a, |
| 808 | 0xbb, 0x78, 0x63, 0xb4, 0x2f, 0x55, 0xb8, 0x09, 0xae, 0x3e, 0x63, 0x97, 0x1b, 0xf6, 0x95, 0x0a, |
| 809 | 0x5f, 0x00, 0x9b, 0x32, 0x04, 0x23, 0xc3, 0x22, 0xfb, 0xd8, 0xf6, 0x8e, 0xe0, 0xbe, 0x56, 0xe1, |
| 810 | 0x36, 0xd8, 0x92, 0x71, 0x77, 0x0d, 0xdf, 0xf1, 0x1e, 0x10, 0x13, 0x39, 0x4e, 0x4f, 0x46, 0x7e, |
| 811 | 0xa3, 0xc2, 0xf3, 0xd3, 0xc9, 0x61, 0xa3, 0x2d, 0xd4, 0x7f, 0x50, 0x81, 0x75, 0xb0, 0x26, 0x59, |
| 812 | 0xa7, 0xe2, 0x9f, 0x56, 0xa4, 0x72, 0x0b, 0x8f, 0xd0, 0xfe, 0x61, 0x45, 0xea, 0xe5, 0xd4, 0x2c, |
| 813 | 0x27, 0xfa, 0x48, 0x26, 0xf2, 0xf6, 0x92, 0xb6, 0x71, 0x5f, 0xfb, 0xad, 0x02, 0x2f, 0x01, 0x78, |
| 814 | 0xc4, 0x2c, 0x22, 0xfe, 0x5e, 0x91, 0x7a, 0x2f, 0x39, 0xe4, 0x98, 0x7f, 0xc8, 0x18, 0xdb, 0x75, |
| 815 | 0x11, 0x26, 0x3d, 0x1f, 0xe3, 0x8e, 0xef, 0x5a, 0xb6, 0xbb, 0x2b, 0x4a, 0xf9, 0xe5, 0x54, 0xeb, |
| 816 | 0x4f, 0x05, 0xfc, 0xcf, 0xa5, 0x79, 0x78, 0xc8, 0xca, 0xdb, 0xa7, 0x4d, 0x63, 0x3a, 0x64, 0x11, |
| 817 | 0x3f, 0xa0, 0xf8, 0xfb, 0x0c, 0xbe, 0x0a, 0xaa, 0xd2, 0xdb, 0x02, 0x9e, 0xe3, 0xdb, 0x75, 0x8f, |
| 818 | 0xa6, 0xc1, 0x13, 0x9a, 0x32, 0xdb, 0x5a, 0xaf, 0x1f, 0xf7, 0xfc, 0x80, 0x14, 0xac, 0xfb, 0xa3, |
| 819 | 0x80, 0xe6, 0x6c, 0xde, 0xcd, 0x06, 0x37, 0xfe, 0xe1, 0xd2, 0xe3, 0x87, 0xdf, 0xfa, 0xe6, 0x73, |
| 820 | 0xaf, 0x45, 0xf8, 0x3a, 0x58, 0x9a, 0x1e, 0x38, 0xf0, 0xc2, 0xec, 0x01, 0x24, 0xc2, 0x5c, 0x9c, |
| 821 | 0x7f, 0x2e, 0xed, 0xbc, 0xf1, 0xd6, 0x6b, 0xc3, 0x30, 0x7f, 0x3c, 0x7e, 0xd8, 0x18, 0x24, 0x51, |
| 822 | 0x33, 0x19, 0xb1, 0x78, 0x90, 0xa4, 0x41, 0x53, 0x5c, 0x49, 0x37, 0xa3, 0x69, 0x23, 0x6e, 0xf2, |
| 823 | 0x87, 0xe0, 0x23, 0x3a, 0x60, 0xcd, 0xc3, 0xdb, 0xcd, 0x61, 0xd2, 0x0c, 0xa2, 0xf0, 0xe1, 0x22, |
| 824 | 0x7f, 0x90, 0xde, 0xfe, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x39, 0xbd, 0x5d, 0x97, 0xdb, 0x0a, 0x00, |
| 825 | 0x00, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 826 | } |
| 827 | |
| 828 | // Reference imports to suppress errors if they are not otherwise used. |
| 829 | var _ context.Context |
| 830 | var _ grpc.ClientConn |
| 831 | |
| 832 | // This is a compile-time assertion to ensure that this generated file |
| 833 | // is compatible with the grpc package it is being compiled against. |
| 834 | const _ = grpc.SupportPackageIsVersion4 |
| 835 | |
| 836 | // NativeMetricsManagementServiceClient is the client API for NativeMetricsManagementService service. |
| 837 | // |
| 838 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 839 | type NativeMetricsManagementServiceClient interface { |
| 840 | // List the supported metrics for the passed device. |
| 841 | // This would be the first call that you make to know about the metrics that a particular device supports and |
| 842 | // then use the UpdateMetricsConfiguration API to monitor only the required metrics. |
| 843 | ListMetrics(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListMetricsResponse, error) |
| 844 | // Updates the configuration of the list of metrics in the request |
| 845 | // Acts upon single metric configuration, collection of a single metric can be started/stopped |
| 846 | // by changing its configuration. |
| 847 | // |
| 848 | // This configuration is persisted across restart of the device or the device manager |
| 849 | UpdateMetricsConfiguration(ctx context.Context, in *MetricsConfigurationRequest, opts ...grpc.CallOption) (*MetricsConfigurationResponse, error) |
| 850 | // Get the instantenous value of a metric |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 851 | GetMetric(ctx context.Context, in *GetMetricRequest, opts ...grpc.CallOption) (*GetMetricResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 852 | } |
| 853 | |
| 854 | type nativeMetricsManagementServiceClient struct { |
| 855 | cc *grpc.ClientConn |
| 856 | } |
| 857 | |
| 858 | func NewNativeMetricsManagementServiceClient(cc *grpc.ClientConn) NativeMetricsManagementServiceClient { |
| 859 | return &nativeMetricsManagementServiceClient{cc} |
| 860 | } |
| 861 | |
| 862 | func (c *nativeMetricsManagementServiceClient) ListMetrics(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListMetricsResponse, error) { |
| 863 | out := new(ListMetricsResponse) |
| 864 | err := c.cc.Invoke(ctx, "/dmi.NativeMetricsManagementService/ListMetrics", in, out, opts...) |
| 865 | if err != nil { |
| 866 | return nil, err |
| 867 | } |
| 868 | return out, nil |
| 869 | } |
| 870 | |
| 871 | func (c *nativeMetricsManagementServiceClient) UpdateMetricsConfiguration(ctx context.Context, in *MetricsConfigurationRequest, opts ...grpc.CallOption) (*MetricsConfigurationResponse, error) { |
| 872 | out := new(MetricsConfigurationResponse) |
| 873 | err := c.cc.Invoke(ctx, "/dmi.NativeMetricsManagementService/UpdateMetricsConfiguration", in, out, opts...) |
| 874 | if err != nil { |
| 875 | return nil, err |
| 876 | } |
| 877 | return out, nil |
| 878 | } |
| 879 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 880 | func (c *nativeMetricsManagementServiceClient) GetMetric(ctx context.Context, in *GetMetricRequest, opts ...grpc.CallOption) (*GetMetricResponse, error) { |
| 881 | out := new(GetMetricResponse) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 882 | err := c.cc.Invoke(ctx, "/dmi.NativeMetricsManagementService/GetMetric", in, out, opts...) |
| 883 | if err != nil { |
| 884 | return nil, err |
| 885 | } |
| 886 | return out, nil |
| 887 | } |
| 888 | |
| 889 | // NativeMetricsManagementServiceServer is the server API for NativeMetricsManagementService service. |
| 890 | type NativeMetricsManagementServiceServer interface { |
| 891 | // List the supported metrics for the passed device. |
| 892 | // This would be the first call that you make to know about the metrics that a particular device supports and |
| 893 | // then use the UpdateMetricsConfiguration API to monitor only the required metrics. |
| 894 | ListMetrics(context.Context, *HardwareID) (*ListMetricsResponse, error) |
| 895 | // Updates the configuration of the list of metrics in the request |
| 896 | // Acts upon single metric configuration, collection of a single metric can be started/stopped |
| 897 | // by changing its configuration. |
| 898 | // |
| 899 | // This configuration is persisted across restart of the device or the device manager |
| 900 | UpdateMetricsConfiguration(context.Context, *MetricsConfigurationRequest) (*MetricsConfigurationResponse, error) |
| 901 | // Get the instantenous value of a metric |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 902 | GetMetric(context.Context, *GetMetricRequest) (*GetMetricResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 903 | } |
| 904 | |
| 905 | func RegisterNativeMetricsManagementServiceServer(s *grpc.Server, srv NativeMetricsManagementServiceServer) { |
| 906 | s.RegisterService(&_NativeMetricsManagementService_serviceDesc, srv) |
| 907 | } |
| 908 | |
| 909 | func _NativeMetricsManagementService_ListMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 910 | in := new(HardwareID) |
| 911 | if err := dec(in); err != nil { |
| 912 | return nil, err |
| 913 | } |
| 914 | if interceptor == nil { |
| 915 | return srv.(NativeMetricsManagementServiceServer).ListMetrics(ctx, in) |
| 916 | } |
| 917 | info := &grpc.UnaryServerInfo{ |
| 918 | Server: srv, |
| 919 | FullMethod: "/dmi.NativeMetricsManagementService/ListMetrics", |
| 920 | } |
| 921 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 922 | return srv.(NativeMetricsManagementServiceServer).ListMetrics(ctx, req.(*HardwareID)) |
| 923 | } |
| 924 | return interceptor(ctx, in, info, handler) |
| 925 | } |
| 926 | |
| 927 | func _NativeMetricsManagementService_UpdateMetricsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 928 | in := new(MetricsConfigurationRequest) |
| 929 | if err := dec(in); err != nil { |
| 930 | return nil, err |
| 931 | } |
| 932 | if interceptor == nil { |
| 933 | return srv.(NativeMetricsManagementServiceServer).UpdateMetricsConfiguration(ctx, in) |
| 934 | } |
| 935 | info := &grpc.UnaryServerInfo{ |
| 936 | Server: srv, |
| 937 | FullMethod: "/dmi.NativeMetricsManagementService/UpdateMetricsConfiguration", |
| 938 | } |
| 939 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 940 | return srv.(NativeMetricsManagementServiceServer).UpdateMetricsConfiguration(ctx, req.(*MetricsConfigurationRequest)) |
| 941 | } |
| 942 | return interceptor(ctx, in, info, handler) |
| 943 | } |
| 944 | |
| 945 | func _NativeMetricsManagementService_GetMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 946 | in := new(GetMetricRequest) |
| 947 | if err := dec(in); err != nil { |
| 948 | return nil, err |
| 949 | } |
| 950 | if interceptor == nil { |
| 951 | return srv.(NativeMetricsManagementServiceServer).GetMetric(ctx, in) |
| 952 | } |
| 953 | info := &grpc.UnaryServerInfo{ |
| 954 | Server: srv, |
| 955 | FullMethod: "/dmi.NativeMetricsManagementService/GetMetric", |
| 956 | } |
| 957 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 958 | return srv.(NativeMetricsManagementServiceServer).GetMetric(ctx, req.(*GetMetricRequest)) |
| 959 | } |
| 960 | return interceptor(ctx, in, info, handler) |
| 961 | } |
| 962 | |
| 963 | var _NativeMetricsManagementService_serviceDesc = grpc.ServiceDesc{ |
| 964 | ServiceName: "dmi.NativeMetricsManagementService", |
| 965 | HandlerType: (*NativeMetricsManagementServiceServer)(nil), |
| 966 | Methods: []grpc.MethodDesc{ |
| 967 | { |
| 968 | MethodName: "ListMetrics", |
| 969 | Handler: _NativeMetricsManagementService_ListMetrics_Handler, |
| 970 | }, |
| 971 | { |
| 972 | MethodName: "UpdateMetricsConfiguration", |
| 973 | Handler: _NativeMetricsManagementService_UpdateMetricsConfiguration_Handler, |
| 974 | }, |
| 975 | { |
| 976 | MethodName: "GetMetric", |
| 977 | Handler: _NativeMetricsManagementService_GetMetric_Handler, |
| 978 | }, |
| 979 | }, |
| 980 | Streams: []grpc.StreamDesc{}, |
| 981 | Metadata: "dmi/hw_metrics_mgmt_service.proto", |
| 982 | } |