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