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