Maninder | dfadc98 | 2020-10-28 14:04:33 +0530 | [diff] [blame^] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/events.proto |
| 3 | |
| 4 | package voltha |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| 10 | _ "github.com/opencord/voltha-protos/v4/go/common" |
| 11 | _ "google.golang.org/genproto/googleapis/api/annotations" |
| 12 | math "math" |
| 13 | ) |
| 14 | |
| 15 | // Reference imports to suppress errors if they are not otherwise used. |
| 16 | var _ = proto.Marshal |
| 17 | var _ = fmt.Errorf |
| 18 | var _ = math.Inf |
| 19 | |
| 20 | // This is a compile-time assertion to ensure that this generated file |
| 21 | // is compatible with the proto package it is being compiled against. |
| 22 | // A compilation error at this line likely means your copy of the |
| 23 | // proto package needs to be updated. |
| 24 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 25 | |
| 26 | type ConfigEventType_Types int32 |
| 27 | |
| 28 | const ( |
| 29 | ConfigEventType_add ConfigEventType_Types = 0 |
| 30 | ConfigEventType_remove ConfigEventType_Types = 1 |
| 31 | ConfigEventType_update ConfigEventType_Types = 2 |
| 32 | ) |
| 33 | |
| 34 | var ConfigEventType_Types_name = map[int32]string{ |
| 35 | 0: "add", |
| 36 | 1: "remove", |
| 37 | 2: "update", |
| 38 | } |
| 39 | |
| 40 | var ConfigEventType_Types_value = map[string]int32{ |
| 41 | "add": 0, |
| 42 | "remove": 1, |
| 43 | "update": 2, |
| 44 | } |
| 45 | |
| 46 | func (x ConfigEventType_Types) String() string { |
| 47 | return proto.EnumName(ConfigEventType_Types_name, int32(x)) |
| 48 | } |
| 49 | |
| 50 | func (ConfigEventType_Types) EnumDescriptor() ([]byte, []int) { |
| 51 | return fileDescriptor_e63e6c07044fd2c4, []int{0, 0} |
| 52 | } |
| 53 | |
| 54 | type KpiEventType_Types int32 |
| 55 | |
| 56 | const ( |
| 57 | KpiEventType_slice KpiEventType_Types = 0 |
| 58 | KpiEventType_ts KpiEventType_Types = 1 |
| 59 | ) |
| 60 | |
| 61 | var KpiEventType_Types_name = map[int32]string{ |
| 62 | 0: "slice", |
| 63 | 1: "ts", |
| 64 | } |
| 65 | |
| 66 | var KpiEventType_Types_value = map[string]int32{ |
| 67 | "slice": 0, |
| 68 | "ts": 1, |
| 69 | } |
| 70 | |
| 71 | func (x KpiEventType_Types) String() string { |
| 72 | return proto.EnumName(KpiEventType_Types_name, int32(x)) |
| 73 | } |
| 74 | |
| 75 | func (KpiEventType_Types) EnumDescriptor() ([]byte, []int) { |
| 76 | return fileDescriptor_e63e6c07044fd2c4, []int{2, 0} |
| 77 | } |
| 78 | |
| 79 | type EventCategory_Types int32 |
| 80 | |
| 81 | const ( |
| 82 | EventCategory_COMMUNICATION EventCategory_Types = 0 |
| 83 | EventCategory_ENVIRONMENT EventCategory_Types = 1 |
| 84 | EventCategory_EQUIPMENT EventCategory_Types = 2 |
| 85 | EventCategory_SERVICE EventCategory_Types = 3 |
| 86 | EventCategory_PROCESSING EventCategory_Types = 4 |
| 87 | EventCategory_SECURITY EventCategory_Types = 5 |
| 88 | ) |
| 89 | |
| 90 | var EventCategory_Types_name = map[int32]string{ |
| 91 | 0: "COMMUNICATION", |
| 92 | 1: "ENVIRONMENT", |
| 93 | 2: "EQUIPMENT", |
| 94 | 3: "SERVICE", |
| 95 | 4: "PROCESSING", |
| 96 | 5: "SECURITY", |
| 97 | } |
| 98 | |
| 99 | var EventCategory_Types_value = map[string]int32{ |
| 100 | "COMMUNICATION": 0, |
| 101 | "ENVIRONMENT": 1, |
| 102 | "EQUIPMENT": 2, |
| 103 | "SERVICE": 3, |
| 104 | "PROCESSING": 4, |
| 105 | "SECURITY": 5, |
| 106 | } |
| 107 | |
| 108 | func (x EventCategory_Types) String() string { |
| 109 | return proto.EnumName(EventCategory_Types_name, int32(x)) |
| 110 | } |
| 111 | |
| 112 | func (EventCategory_Types) EnumDescriptor() ([]byte, []int) { |
| 113 | return fileDescriptor_e63e6c07044fd2c4, []int{9, 0} |
| 114 | } |
| 115 | |
| 116 | type EventSubCategory_Types int32 |
| 117 | |
| 118 | const ( |
| 119 | EventSubCategory_PON EventSubCategory_Types = 0 |
| 120 | EventSubCategory_OLT EventSubCategory_Types = 1 |
| 121 | EventSubCategory_ONT EventSubCategory_Types = 2 |
| 122 | EventSubCategory_ONU EventSubCategory_Types = 3 |
| 123 | EventSubCategory_NNI EventSubCategory_Types = 4 |
| 124 | ) |
| 125 | |
| 126 | var EventSubCategory_Types_name = map[int32]string{ |
| 127 | 0: "PON", |
| 128 | 1: "OLT", |
| 129 | 2: "ONT", |
| 130 | 3: "ONU", |
| 131 | 4: "NNI", |
| 132 | } |
| 133 | |
| 134 | var EventSubCategory_Types_value = map[string]int32{ |
| 135 | "PON": 0, |
| 136 | "OLT": 1, |
| 137 | "ONT": 2, |
| 138 | "ONU": 3, |
| 139 | "NNI": 4, |
| 140 | } |
| 141 | |
| 142 | func (x EventSubCategory_Types) String() string { |
| 143 | return proto.EnumName(EventSubCategory_Types_name, int32(x)) |
| 144 | } |
| 145 | |
| 146 | func (EventSubCategory_Types) EnumDescriptor() ([]byte, []int) { |
| 147 | return fileDescriptor_e63e6c07044fd2c4, []int{10, 0} |
| 148 | } |
| 149 | |
| 150 | type EventType_Types int32 |
| 151 | |
| 152 | const ( |
| 153 | EventType_CONFIG_EVENT EventType_Types = 0 |
| 154 | EventType_KPI_EVENT EventType_Types = 1 |
| 155 | EventType_KPI_EVENT2 EventType_Types = 2 |
| 156 | EventType_DEVICE_EVENT EventType_Types = 3 |
| 157 | ) |
| 158 | |
| 159 | var EventType_Types_name = map[int32]string{ |
| 160 | 0: "CONFIG_EVENT", |
| 161 | 1: "KPI_EVENT", |
| 162 | 2: "KPI_EVENT2", |
| 163 | 3: "DEVICE_EVENT", |
| 164 | } |
| 165 | |
| 166 | var EventType_Types_value = map[string]int32{ |
| 167 | "CONFIG_EVENT": 0, |
| 168 | "KPI_EVENT": 1, |
| 169 | "KPI_EVENT2": 2, |
| 170 | "DEVICE_EVENT": 3, |
| 171 | } |
| 172 | |
| 173 | func (x EventType_Types) String() string { |
| 174 | return proto.EnumName(EventType_Types_name, int32(x)) |
| 175 | } |
| 176 | |
| 177 | func (EventType_Types) EnumDescriptor() ([]byte, []int) { |
| 178 | return fileDescriptor_e63e6c07044fd2c4, []int{11, 0} |
| 179 | } |
| 180 | |
| 181 | type ConfigEventType struct { |
| 182 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 183 | XXX_unrecognized []byte `json:"-"` |
| 184 | XXX_sizecache int32 `json:"-"` |
| 185 | } |
| 186 | |
| 187 | func (m *ConfigEventType) Reset() { *m = ConfigEventType{} } |
| 188 | func (m *ConfigEventType) String() string { return proto.CompactTextString(m) } |
| 189 | func (*ConfigEventType) ProtoMessage() {} |
| 190 | func (*ConfigEventType) Descriptor() ([]byte, []int) { |
| 191 | return fileDescriptor_e63e6c07044fd2c4, []int{0} |
| 192 | } |
| 193 | |
| 194 | func (m *ConfigEventType) XXX_Unmarshal(b []byte) error { |
| 195 | return xxx_messageInfo_ConfigEventType.Unmarshal(m, b) |
| 196 | } |
| 197 | func (m *ConfigEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 198 | return xxx_messageInfo_ConfigEventType.Marshal(b, m, deterministic) |
| 199 | } |
| 200 | func (m *ConfigEventType) XXX_Merge(src proto.Message) { |
| 201 | xxx_messageInfo_ConfigEventType.Merge(m, src) |
| 202 | } |
| 203 | func (m *ConfigEventType) XXX_Size() int { |
| 204 | return xxx_messageInfo_ConfigEventType.Size(m) |
| 205 | } |
| 206 | func (m *ConfigEventType) XXX_DiscardUnknown() { |
| 207 | xxx_messageInfo_ConfigEventType.DiscardUnknown(m) |
| 208 | } |
| 209 | |
| 210 | var xxx_messageInfo_ConfigEventType proto.InternalMessageInfo |
| 211 | |
| 212 | type ConfigEvent struct { |
| 213 | Type ConfigEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.ConfigEventType_Types" json:"type,omitempty"` |
| 214 | Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` |
| 215 | Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` |
| 216 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 217 | XXX_unrecognized []byte `json:"-"` |
| 218 | XXX_sizecache int32 `json:"-"` |
| 219 | } |
| 220 | |
| 221 | func (m *ConfigEvent) Reset() { *m = ConfigEvent{} } |
| 222 | func (m *ConfigEvent) String() string { return proto.CompactTextString(m) } |
| 223 | func (*ConfigEvent) ProtoMessage() {} |
| 224 | func (*ConfigEvent) Descriptor() ([]byte, []int) { |
| 225 | return fileDescriptor_e63e6c07044fd2c4, []int{1} |
| 226 | } |
| 227 | |
| 228 | func (m *ConfigEvent) XXX_Unmarshal(b []byte) error { |
| 229 | return xxx_messageInfo_ConfigEvent.Unmarshal(m, b) |
| 230 | } |
| 231 | func (m *ConfigEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 232 | return xxx_messageInfo_ConfigEvent.Marshal(b, m, deterministic) |
| 233 | } |
| 234 | func (m *ConfigEvent) XXX_Merge(src proto.Message) { |
| 235 | xxx_messageInfo_ConfigEvent.Merge(m, src) |
| 236 | } |
| 237 | func (m *ConfigEvent) XXX_Size() int { |
| 238 | return xxx_messageInfo_ConfigEvent.Size(m) |
| 239 | } |
| 240 | func (m *ConfigEvent) XXX_DiscardUnknown() { |
| 241 | xxx_messageInfo_ConfigEvent.DiscardUnknown(m) |
| 242 | } |
| 243 | |
| 244 | var xxx_messageInfo_ConfigEvent proto.InternalMessageInfo |
| 245 | |
| 246 | func (m *ConfigEvent) GetType() ConfigEventType_Types { |
| 247 | if m != nil { |
| 248 | return m.Type |
| 249 | } |
| 250 | return ConfigEventType_add |
| 251 | } |
| 252 | |
| 253 | func (m *ConfigEvent) GetHash() string { |
| 254 | if m != nil { |
| 255 | return m.Hash |
| 256 | } |
| 257 | return "" |
| 258 | } |
| 259 | |
| 260 | func (m *ConfigEvent) GetData() string { |
| 261 | if m != nil { |
| 262 | return m.Data |
| 263 | } |
| 264 | return "" |
| 265 | } |
| 266 | |
| 267 | type KpiEventType struct { |
| 268 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 269 | XXX_unrecognized []byte `json:"-"` |
| 270 | XXX_sizecache int32 `json:"-"` |
| 271 | } |
| 272 | |
| 273 | func (m *KpiEventType) Reset() { *m = KpiEventType{} } |
| 274 | func (m *KpiEventType) String() string { return proto.CompactTextString(m) } |
| 275 | func (*KpiEventType) ProtoMessage() {} |
| 276 | func (*KpiEventType) Descriptor() ([]byte, []int) { |
| 277 | return fileDescriptor_e63e6c07044fd2c4, []int{2} |
| 278 | } |
| 279 | |
| 280 | func (m *KpiEventType) XXX_Unmarshal(b []byte) error { |
| 281 | return xxx_messageInfo_KpiEventType.Unmarshal(m, b) |
| 282 | } |
| 283 | func (m *KpiEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 284 | return xxx_messageInfo_KpiEventType.Marshal(b, m, deterministic) |
| 285 | } |
| 286 | func (m *KpiEventType) XXX_Merge(src proto.Message) { |
| 287 | xxx_messageInfo_KpiEventType.Merge(m, src) |
| 288 | } |
| 289 | func (m *KpiEventType) XXX_Size() int { |
| 290 | return xxx_messageInfo_KpiEventType.Size(m) |
| 291 | } |
| 292 | func (m *KpiEventType) XXX_DiscardUnknown() { |
| 293 | xxx_messageInfo_KpiEventType.DiscardUnknown(m) |
| 294 | } |
| 295 | |
| 296 | var xxx_messageInfo_KpiEventType proto.InternalMessageInfo |
| 297 | |
| 298 | // |
| 299 | // Struct to convey a dictionary of metric metadata. |
| 300 | type MetricMetaData struct { |
| 301 | Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` |
| 302 | Ts float64 `protobuf:"fixed64,2,opt,name=ts,proto3" json:"ts,omitempty"` |
| 303 | LogicalDeviceId string `protobuf:"bytes,3,opt,name=logical_device_id,json=logicalDeviceId,proto3" json:"logical_device_id,omitempty"` |
| 304 | // (equivalent to the DPID that ONOS has |
| 305 | // for the VOLTHA device without the |
| 306 | // 'of:' prefix |
| 307 | SerialNo string `protobuf:"bytes,4,opt,name=serial_no,json=serialNo,proto3" json:"serial_no,omitempty"` |
| 308 | DeviceId string `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` |
| 309 | Context map[string]string `protobuf:"bytes,6,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 310 | Uuid string `protobuf:"bytes,7,opt,name=uuid,proto3" json:"uuid,omitempty"` |
| 311 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 312 | XXX_unrecognized []byte `json:"-"` |
| 313 | XXX_sizecache int32 `json:"-"` |
| 314 | } |
| 315 | |
| 316 | func (m *MetricMetaData) Reset() { *m = MetricMetaData{} } |
| 317 | func (m *MetricMetaData) String() string { return proto.CompactTextString(m) } |
| 318 | func (*MetricMetaData) ProtoMessage() {} |
| 319 | func (*MetricMetaData) Descriptor() ([]byte, []int) { |
| 320 | return fileDescriptor_e63e6c07044fd2c4, []int{3} |
| 321 | } |
| 322 | |
| 323 | func (m *MetricMetaData) XXX_Unmarshal(b []byte) error { |
| 324 | return xxx_messageInfo_MetricMetaData.Unmarshal(m, b) |
| 325 | } |
| 326 | func (m *MetricMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 327 | return xxx_messageInfo_MetricMetaData.Marshal(b, m, deterministic) |
| 328 | } |
| 329 | func (m *MetricMetaData) XXX_Merge(src proto.Message) { |
| 330 | xxx_messageInfo_MetricMetaData.Merge(m, src) |
| 331 | } |
| 332 | func (m *MetricMetaData) XXX_Size() int { |
| 333 | return xxx_messageInfo_MetricMetaData.Size(m) |
| 334 | } |
| 335 | func (m *MetricMetaData) XXX_DiscardUnknown() { |
| 336 | xxx_messageInfo_MetricMetaData.DiscardUnknown(m) |
| 337 | } |
| 338 | |
| 339 | var xxx_messageInfo_MetricMetaData proto.InternalMessageInfo |
| 340 | |
| 341 | func (m *MetricMetaData) GetTitle() string { |
| 342 | if m != nil { |
| 343 | return m.Title |
| 344 | } |
| 345 | return "" |
| 346 | } |
| 347 | |
| 348 | func (m *MetricMetaData) GetTs() float64 { |
| 349 | if m != nil { |
| 350 | return m.Ts |
| 351 | } |
| 352 | return 0 |
| 353 | } |
| 354 | |
| 355 | func (m *MetricMetaData) GetLogicalDeviceId() string { |
| 356 | if m != nil { |
| 357 | return m.LogicalDeviceId |
| 358 | } |
| 359 | return "" |
| 360 | } |
| 361 | |
| 362 | func (m *MetricMetaData) GetSerialNo() string { |
| 363 | if m != nil { |
| 364 | return m.SerialNo |
| 365 | } |
| 366 | return "" |
| 367 | } |
| 368 | |
| 369 | func (m *MetricMetaData) GetDeviceId() string { |
| 370 | if m != nil { |
| 371 | return m.DeviceId |
| 372 | } |
| 373 | return "" |
| 374 | } |
| 375 | |
| 376 | func (m *MetricMetaData) GetContext() map[string]string { |
| 377 | if m != nil { |
| 378 | return m.Context |
| 379 | } |
| 380 | return nil |
| 381 | } |
| 382 | |
| 383 | func (m *MetricMetaData) GetUuid() string { |
| 384 | if m != nil { |
| 385 | return m.Uuid |
| 386 | } |
| 387 | return "" |
| 388 | } |
| 389 | |
| 390 | // |
| 391 | // Struct to convey a dictionary of metric->value pairs. Typically used in |
| 392 | // pure shared-timestamp or shared-timestamp + shared object prefix situations. |
| 393 | type MetricValuePairs struct { |
| 394 | // Metric / value pairs. |
| 395 | Metrics map[string]float32 `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"` |
| 396 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 397 | XXX_unrecognized []byte `json:"-"` |
| 398 | XXX_sizecache int32 `json:"-"` |
| 399 | } |
| 400 | |
| 401 | func (m *MetricValuePairs) Reset() { *m = MetricValuePairs{} } |
| 402 | func (m *MetricValuePairs) String() string { return proto.CompactTextString(m) } |
| 403 | func (*MetricValuePairs) ProtoMessage() {} |
| 404 | func (*MetricValuePairs) Descriptor() ([]byte, []int) { |
| 405 | return fileDescriptor_e63e6c07044fd2c4, []int{4} |
| 406 | } |
| 407 | |
| 408 | func (m *MetricValuePairs) XXX_Unmarshal(b []byte) error { |
| 409 | return xxx_messageInfo_MetricValuePairs.Unmarshal(m, b) |
| 410 | } |
| 411 | func (m *MetricValuePairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 412 | return xxx_messageInfo_MetricValuePairs.Marshal(b, m, deterministic) |
| 413 | } |
| 414 | func (m *MetricValuePairs) XXX_Merge(src proto.Message) { |
| 415 | xxx_messageInfo_MetricValuePairs.Merge(m, src) |
| 416 | } |
| 417 | func (m *MetricValuePairs) XXX_Size() int { |
| 418 | return xxx_messageInfo_MetricValuePairs.Size(m) |
| 419 | } |
| 420 | func (m *MetricValuePairs) XXX_DiscardUnknown() { |
| 421 | xxx_messageInfo_MetricValuePairs.DiscardUnknown(m) |
| 422 | } |
| 423 | |
| 424 | var xxx_messageInfo_MetricValuePairs proto.InternalMessageInfo |
| 425 | |
| 426 | func (m *MetricValuePairs) GetMetrics() map[string]float32 { |
| 427 | if m != nil { |
| 428 | return m.Metrics |
| 429 | } |
| 430 | return nil |
| 431 | } |
| 432 | |
| 433 | // |
| 434 | // Struct to group metadata for a metric (or group of metrics) with the key-value |
| 435 | // pairs of collected metrics |
| 436 | type MetricInformation struct { |
| 437 | Metadata *MetricMetaData `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` |
| 438 | Metrics map[string]float32 `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"` |
| 439 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 440 | XXX_unrecognized []byte `json:"-"` |
| 441 | XXX_sizecache int32 `json:"-"` |
| 442 | } |
| 443 | |
| 444 | func (m *MetricInformation) Reset() { *m = MetricInformation{} } |
| 445 | func (m *MetricInformation) String() string { return proto.CompactTextString(m) } |
| 446 | func (*MetricInformation) ProtoMessage() {} |
| 447 | func (*MetricInformation) Descriptor() ([]byte, []int) { |
| 448 | return fileDescriptor_e63e6c07044fd2c4, []int{5} |
| 449 | } |
| 450 | |
| 451 | func (m *MetricInformation) XXX_Unmarshal(b []byte) error { |
| 452 | return xxx_messageInfo_MetricInformation.Unmarshal(m, b) |
| 453 | } |
| 454 | func (m *MetricInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 455 | return xxx_messageInfo_MetricInformation.Marshal(b, m, deterministic) |
| 456 | } |
| 457 | func (m *MetricInformation) XXX_Merge(src proto.Message) { |
| 458 | xxx_messageInfo_MetricInformation.Merge(m, src) |
| 459 | } |
| 460 | func (m *MetricInformation) XXX_Size() int { |
| 461 | return xxx_messageInfo_MetricInformation.Size(m) |
| 462 | } |
| 463 | func (m *MetricInformation) XXX_DiscardUnknown() { |
| 464 | xxx_messageInfo_MetricInformation.DiscardUnknown(m) |
| 465 | } |
| 466 | |
| 467 | var xxx_messageInfo_MetricInformation proto.InternalMessageInfo |
| 468 | |
| 469 | func (m *MetricInformation) GetMetadata() *MetricMetaData { |
| 470 | if m != nil { |
| 471 | return m.Metadata |
| 472 | } |
| 473 | return nil |
| 474 | } |
| 475 | |
| 476 | func (m *MetricInformation) GetMetrics() map[string]float32 { |
| 477 | if m != nil { |
| 478 | return m.Metrics |
| 479 | } |
| 480 | return nil |
| 481 | } |
| 482 | |
| 483 | // |
| 484 | // Legacy KPI Event structured. In mid-August, the KPI event format was updated |
| 485 | // to a more easily parsable format. See VOL-1140 |
| 486 | // for more information. |
| 487 | type KpiEvent struct { |
| 488 | Type KpiEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.KpiEventType_Types" json:"type,omitempty"` |
| 489 | Ts float32 `protobuf:"fixed32,2,opt,name=ts,proto3" json:"ts,omitempty"` |
| 490 | Prefixes map[string]*MetricValuePairs `protobuf:"bytes,3,rep,name=prefixes,proto3" json:"prefixes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 491 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 492 | XXX_unrecognized []byte `json:"-"` |
| 493 | XXX_sizecache int32 `json:"-"` |
| 494 | } |
| 495 | |
| 496 | func (m *KpiEvent) Reset() { *m = KpiEvent{} } |
| 497 | func (m *KpiEvent) String() string { return proto.CompactTextString(m) } |
| 498 | func (*KpiEvent) ProtoMessage() {} |
| 499 | func (*KpiEvent) Descriptor() ([]byte, []int) { |
| 500 | return fileDescriptor_e63e6c07044fd2c4, []int{6} |
| 501 | } |
| 502 | |
| 503 | func (m *KpiEvent) XXX_Unmarshal(b []byte) error { |
| 504 | return xxx_messageInfo_KpiEvent.Unmarshal(m, b) |
| 505 | } |
| 506 | func (m *KpiEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 507 | return xxx_messageInfo_KpiEvent.Marshal(b, m, deterministic) |
| 508 | } |
| 509 | func (m *KpiEvent) XXX_Merge(src proto.Message) { |
| 510 | xxx_messageInfo_KpiEvent.Merge(m, src) |
| 511 | } |
| 512 | func (m *KpiEvent) XXX_Size() int { |
| 513 | return xxx_messageInfo_KpiEvent.Size(m) |
| 514 | } |
| 515 | func (m *KpiEvent) XXX_DiscardUnknown() { |
| 516 | xxx_messageInfo_KpiEvent.DiscardUnknown(m) |
| 517 | } |
| 518 | |
| 519 | var xxx_messageInfo_KpiEvent proto.InternalMessageInfo |
| 520 | |
| 521 | func (m *KpiEvent) GetType() KpiEventType_Types { |
| 522 | if m != nil { |
| 523 | return m.Type |
| 524 | } |
| 525 | return KpiEventType_slice |
| 526 | } |
| 527 | |
| 528 | func (m *KpiEvent) GetTs() float32 { |
| 529 | if m != nil { |
| 530 | return m.Ts |
| 531 | } |
| 532 | return 0 |
| 533 | } |
| 534 | |
| 535 | func (m *KpiEvent) GetPrefixes() map[string]*MetricValuePairs { |
| 536 | if m != nil { |
| 537 | return m.Prefixes |
| 538 | } |
| 539 | return nil |
| 540 | } |
| 541 | |
| 542 | type KpiEvent2 struct { |
| 543 | // Type of KPI Event |
| 544 | Type KpiEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.KpiEventType_Types" json:"type,omitempty"` |
| 545 | // Fields used when for slice: |
| 546 | Ts float64 `protobuf:"fixed64,2,opt,name=ts,proto3" json:"ts,omitempty"` |
| 547 | SliceData []*MetricInformation `protobuf:"bytes,3,rep,name=slice_data,json=sliceData,proto3" json:"slice_data,omitempty"` |
| 548 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 549 | XXX_unrecognized []byte `json:"-"` |
| 550 | XXX_sizecache int32 `json:"-"` |
| 551 | } |
| 552 | |
| 553 | func (m *KpiEvent2) Reset() { *m = KpiEvent2{} } |
| 554 | func (m *KpiEvent2) String() string { return proto.CompactTextString(m) } |
| 555 | func (*KpiEvent2) ProtoMessage() {} |
| 556 | func (*KpiEvent2) Descriptor() ([]byte, []int) { |
| 557 | return fileDescriptor_e63e6c07044fd2c4, []int{7} |
| 558 | } |
| 559 | |
| 560 | func (m *KpiEvent2) XXX_Unmarshal(b []byte) error { |
| 561 | return xxx_messageInfo_KpiEvent2.Unmarshal(m, b) |
| 562 | } |
| 563 | func (m *KpiEvent2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 564 | return xxx_messageInfo_KpiEvent2.Marshal(b, m, deterministic) |
| 565 | } |
| 566 | func (m *KpiEvent2) XXX_Merge(src proto.Message) { |
| 567 | xxx_messageInfo_KpiEvent2.Merge(m, src) |
| 568 | } |
| 569 | func (m *KpiEvent2) XXX_Size() int { |
| 570 | return xxx_messageInfo_KpiEvent2.Size(m) |
| 571 | } |
| 572 | func (m *KpiEvent2) XXX_DiscardUnknown() { |
| 573 | xxx_messageInfo_KpiEvent2.DiscardUnknown(m) |
| 574 | } |
| 575 | |
| 576 | var xxx_messageInfo_KpiEvent2 proto.InternalMessageInfo |
| 577 | |
| 578 | func (m *KpiEvent2) GetType() KpiEventType_Types { |
| 579 | if m != nil { |
| 580 | return m.Type |
| 581 | } |
| 582 | return KpiEventType_slice |
| 583 | } |
| 584 | |
| 585 | func (m *KpiEvent2) GetTs() float64 { |
| 586 | if m != nil { |
| 587 | return m.Ts |
| 588 | } |
| 589 | return 0 |
| 590 | } |
| 591 | |
| 592 | func (m *KpiEvent2) GetSliceData() []*MetricInformation { |
| 593 | if m != nil { |
| 594 | return m.SliceData |
| 595 | } |
| 596 | return nil |
| 597 | } |
| 598 | |
| 599 | // |
| 600 | // Describes the events specific to device |
| 601 | type DeviceEvent struct { |
| 602 | // Identifier of the originating resource of the event, for ex: device_id |
| 603 | ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` |
| 604 | // device_event_name indicates clearly the name of the device event |
| 605 | DeviceEventName string `protobuf:"bytes,2,opt,name=device_event_name,json=deviceEventName,proto3" json:"device_event_name,omitempty"` |
| 606 | // Textual explanation of the device event |
| 607 | Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` |
| 608 | // Key/Value storage for extra information that may give context to the event |
| 609 | Context map[string]string `protobuf:"bytes,4,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 610 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 611 | XXX_unrecognized []byte `json:"-"` |
| 612 | XXX_sizecache int32 `json:"-"` |
| 613 | } |
| 614 | |
| 615 | func (m *DeviceEvent) Reset() { *m = DeviceEvent{} } |
| 616 | func (m *DeviceEvent) String() string { return proto.CompactTextString(m) } |
| 617 | func (*DeviceEvent) ProtoMessage() {} |
| 618 | func (*DeviceEvent) Descriptor() ([]byte, []int) { |
| 619 | return fileDescriptor_e63e6c07044fd2c4, []int{8} |
| 620 | } |
| 621 | |
| 622 | func (m *DeviceEvent) XXX_Unmarshal(b []byte) error { |
| 623 | return xxx_messageInfo_DeviceEvent.Unmarshal(m, b) |
| 624 | } |
| 625 | func (m *DeviceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 626 | return xxx_messageInfo_DeviceEvent.Marshal(b, m, deterministic) |
| 627 | } |
| 628 | func (m *DeviceEvent) XXX_Merge(src proto.Message) { |
| 629 | xxx_messageInfo_DeviceEvent.Merge(m, src) |
| 630 | } |
| 631 | func (m *DeviceEvent) XXX_Size() int { |
| 632 | return xxx_messageInfo_DeviceEvent.Size(m) |
| 633 | } |
| 634 | func (m *DeviceEvent) XXX_DiscardUnknown() { |
| 635 | xxx_messageInfo_DeviceEvent.DiscardUnknown(m) |
| 636 | } |
| 637 | |
| 638 | var xxx_messageInfo_DeviceEvent proto.InternalMessageInfo |
| 639 | |
| 640 | func (m *DeviceEvent) GetResourceId() string { |
| 641 | if m != nil { |
| 642 | return m.ResourceId |
| 643 | } |
| 644 | return "" |
| 645 | } |
| 646 | |
| 647 | func (m *DeviceEvent) GetDeviceEventName() string { |
| 648 | if m != nil { |
| 649 | return m.DeviceEventName |
| 650 | } |
| 651 | return "" |
| 652 | } |
| 653 | |
| 654 | func (m *DeviceEvent) GetDescription() string { |
| 655 | if m != nil { |
| 656 | return m.Description |
| 657 | } |
| 658 | return "" |
| 659 | } |
| 660 | |
| 661 | func (m *DeviceEvent) GetContext() map[string]string { |
| 662 | if m != nil { |
| 663 | return m.Context |
| 664 | } |
| 665 | return nil |
| 666 | } |
| 667 | |
| 668 | // |
| 669 | // Identify the area of the system impacted by the event. |
| 670 | type EventCategory struct { |
| 671 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 672 | XXX_unrecognized []byte `json:"-"` |
| 673 | XXX_sizecache int32 `json:"-"` |
| 674 | } |
| 675 | |
| 676 | func (m *EventCategory) Reset() { *m = EventCategory{} } |
| 677 | func (m *EventCategory) String() string { return proto.CompactTextString(m) } |
| 678 | func (*EventCategory) ProtoMessage() {} |
| 679 | func (*EventCategory) Descriptor() ([]byte, []int) { |
| 680 | return fileDescriptor_e63e6c07044fd2c4, []int{9} |
| 681 | } |
| 682 | |
| 683 | func (m *EventCategory) XXX_Unmarshal(b []byte) error { |
| 684 | return xxx_messageInfo_EventCategory.Unmarshal(m, b) |
| 685 | } |
| 686 | func (m *EventCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 687 | return xxx_messageInfo_EventCategory.Marshal(b, m, deterministic) |
| 688 | } |
| 689 | func (m *EventCategory) XXX_Merge(src proto.Message) { |
| 690 | xxx_messageInfo_EventCategory.Merge(m, src) |
| 691 | } |
| 692 | func (m *EventCategory) XXX_Size() int { |
| 693 | return xxx_messageInfo_EventCategory.Size(m) |
| 694 | } |
| 695 | func (m *EventCategory) XXX_DiscardUnknown() { |
| 696 | xxx_messageInfo_EventCategory.DiscardUnknown(m) |
| 697 | } |
| 698 | |
| 699 | var xxx_messageInfo_EventCategory proto.InternalMessageInfo |
| 700 | |
| 701 | // |
| 702 | // Identify the functional category originating the event |
| 703 | type EventSubCategory struct { |
| 704 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 705 | XXX_unrecognized []byte `json:"-"` |
| 706 | XXX_sizecache int32 `json:"-"` |
| 707 | } |
| 708 | |
| 709 | func (m *EventSubCategory) Reset() { *m = EventSubCategory{} } |
| 710 | func (m *EventSubCategory) String() string { return proto.CompactTextString(m) } |
| 711 | func (*EventSubCategory) ProtoMessage() {} |
| 712 | func (*EventSubCategory) Descriptor() ([]byte, []int) { |
| 713 | return fileDescriptor_e63e6c07044fd2c4, []int{10} |
| 714 | } |
| 715 | |
| 716 | func (m *EventSubCategory) XXX_Unmarshal(b []byte) error { |
| 717 | return xxx_messageInfo_EventSubCategory.Unmarshal(m, b) |
| 718 | } |
| 719 | func (m *EventSubCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 720 | return xxx_messageInfo_EventSubCategory.Marshal(b, m, deterministic) |
| 721 | } |
| 722 | func (m *EventSubCategory) XXX_Merge(src proto.Message) { |
| 723 | xxx_messageInfo_EventSubCategory.Merge(m, src) |
| 724 | } |
| 725 | func (m *EventSubCategory) XXX_Size() int { |
| 726 | return xxx_messageInfo_EventSubCategory.Size(m) |
| 727 | } |
| 728 | func (m *EventSubCategory) XXX_DiscardUnknown() { |
| 729 | xxx_messageInfo_EventSubCategory.DiscardUnknown(m) |
| 730 | } |
| 731 | |
| 732 | var xxx_messageInfo_EventSubCategory proto.InternalMessageInfo |
| 733 | |
| 734 | // |
| 735 | // Identify the type of event |
| 736 | type EventType struct { |
| 737 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 738 | XXX_unrecognized []byte `json:"-"` |
| 739 | XXX_sizecache int32 `json:"-"` |
| 740 | } |
| 741 | |
| 742 | func (m *EventType) Reset() { *m = EventType{} } |
| 743 | func (m *EventType) String() string { return proto.CompactTextString(m) } |
| 744 | func (*EventType) ProtoMessage() {} |
| 745 | func (*EventType) Descriptor() ([]byte, []int) { |
| 746 | return fileDescriptor_e63e6c07044fd2c4, []int{11} |
| 747 | } |
| 748 | |
| 749 | func (m *EventType) XXX_Unmarshal(b []byte) error { |
| 750 | return xxx_messageInfo_EventType.Unmarshal(m, b) |
| 751 | } |
| 752 | func (m *EventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 753 | return xxx_messageInfo_EventType.Marshal(b, m, deterministic) |
| 754 | } |
| 755 | func (m *EventType) XXX_Merge(src proto.Message) { |
| 756 | xxx_messageInfo_EventType.Merge(m, src) |
| 757 | } |
| 758 | func (m *EventType) XXX_Size() int { |
| 759 | return xxx_messageInfo_EventType.Size(m) |
| 760 | } |
| 761 | func (m *EventType) XXX_DiscardUnknown() { |
| 762 | xxx_messageInfo_EventType.DiscardUnknown(m) |
| 763 | } |
| 764 | |
| 765 | var xxx_messageInfo_EventType proto.InternalMessageInfo |
| 766 | |
| 767 | // |
| 768 | // Identify the functional category originating the event |
| 769 | type EventHeader struct { |
| 770 | // Unique ID for this event. e.g. voltha.some_olt.1234 |
| 771 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 772 | // Refers to the functional area affect by the event |
| 773 | Category EventCategory_Types `protobuf:"varint,2,opt,name=category,proto3,enum=voltha.EventCategory_Types" json:"category,omitempty"` |
| 774 | // Refers to functional category of the event |
| 775 | SubCategory EventSubCategory_Types `protobuf:"varint,3,opt,name=sub_category,json=subCategory,proto3,enum=voltha.EventSubCategory_Types" json:"sub_category,omitempty"` |
| 776 | // Refers to the type of the event |
| 777 | Type EventType_Types `protobuf:"varint,4,opt,name=type,proto3,enum=voltha.EventType_Types" json:"type,omitempty"` |
| 778 | // The version identifier for this event type, thus allowing each |
| 779 | // event type to evolve independently. The version should be in the |
| 780 | // format “MAJOR.MINOR” format and minor changes must only be additive |
| 781 | // and non-breaking. |
| 782 | TypeVersion string `protobuf:"bytes,5,opt,name=type_version,json=typeVersion,proto3" json:"type_version,omitempty"` |
| 783 | // Timestamp at which the event was first raised. |
| 784 | // This represents the UTC time stamp since epoch (in seconds) when the |
| 785 | // the event was first raised from the source entity. |
| 786 | // If the source entity doesn't send the raised_ts, this shall be set |
| 787 | // to timestamp when the event was received. |
| 788 | RaisedTs *timestamp.Timestamp `protobuf:"bytes,6,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"` |
| 789 | // Timestamp at which the event was reported. |
| 790 | // This represents the UTC time stamp since epoch (in seconds) when the |
| 791 | // the event was reported (this time stamp is >= raised_ts). |
| 792 | // If the source entity that reported this event doesn't send the |
| 793 | // reported_ts, this shall be set to the same value as raised_ts. |
| 794 | ReportedTs *timestamp.Timestamp `protobuf:"bytes,7,opt,name=reported_ts,json=reportedTs,proto3" json:"reported_ts,omitempty"` |
| 795 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 796 | XXX_unrecognized []byte `json:"-"` |
| 797 | XXX_sizecache int32 `json:"-"` |
| 798 | } |
| 799 | |
| 800 | func (m *EventHeader) Reset() { *m = EventHeader{} } |
| 801 | func (m *EventHeader) String() string { return proto.CompactTextString(m) } |
| 802 | func (*EventHeader) ProtoMessage() {} |
| 803 | func (*EventHeader) Descriptor() ([]byte, []int) { |
| 804 | return fileDescriptor_e63e6c07044fd2c4, []int{12} |
| 805 | } |
| 806 | |
| 807 | func (m *EventHeader) XXX_Unmarshal(b []byte) error { |
| 808 | return xxx_messageInfo_EventHeader.Unmarshal(m, b) |
| 809 | } |
| 810 | func (m *EventHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 811 | return xxx_messageInfo_EventHeader.Marshal(b, m, deterministic) |
| 812 | } |
| 813 | func (m *EventHeader) XXX_Merge(src proto.Message) { |
| 814 | xxx_messageInfo_EventHeader.Merge(m, src) |
| 815 | } |
| 816 | func (m *EventHeader) XXX_Size() int { |
| 817 | return xxx_messageInfo_EventHeader.Size(m) |
| 818 | } |
| 819 | func (m *EventHeader) XXX_DiscardUnknown() { |
| 820 | xxx_messageInfo_EventHeader.DiscardUnknown(m) |
| 821 | } |
| 822 | |
| 823 | var xxx_messageInfo_EventHeader proto.InternalMessageInfo |
| 824 | |
| 825 | func (m *EventHeader) GetId() string { |
| 826 | if m != nil { |
| 827 | return m.Id |
| 828 | } |
| 829 | return "" |
| 830 | } |
| 831 | |
| 832 | func (m *EventHeader) GetCategory() EventCategory_Types { |
| 833 | if m != nil { |
| 834 | return m.Category |
| 835 | } |
| 836 | return EventCategory_COMMUNICATION |
| 837 | } |
| 838 | |
| 839 | func (m *EventHeader) GetSubCategory() EventSubCategory_Types { |
| 840 | if m != nil { |
| 841 | return m.SubCategory |
| 842 | } |
| 843 | return EventSubCategory_PON |
| 844 | } |
| 845 | |
| 846 | func (m *EventHeader) GetType() EventType_Types { |
| 847 | if m != nil { |
| 848 | return m.Type |
| 849 | } |
| 850 | return EventType_CONFIG_EVENT |
| 851 | } |
| 852 | |
| 853 | func (m *EventHeader) GetTypeVersion() string { |
| 854 | if m != nil { |
| 855 | return m.TypeVersion |
| 856 | } |
| 857 | return "" |
| 858 | } |
| 859 | |
| 860 | func (m *EventHeader) GetRaisedTs() *timestamp.Timestamp { |
| 861 | if m != nil { |
| 862 | return m.RaisedTs |
| 863 | } |
| 864 | return nil |
| 865 | } |
| 866 | |
| 867 | func (m *EventHeader) GetReportedTs() *timestamp.Timestamp { |
| 868 | if m != nil { |
| 869 | return m.ReportedTs |
| 870 | } |
| 871 | return nil |
| 872 | } |
| 873 | |
| 874 | // |
| 875 | // Event Structure |
| 876 | type Event struct { |
| 877 | // event header |
| 878 | Header *EventHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 879 | // oneof event types referred by EventType. |
| 880 | // |
| 881 | // Types that are valid to be assigned to EventType: |
| 882 | // *Event_ConfigEvent |
| 883 | // *Event_KpiEvent |
| 884 | // *Event_KpiEvent2 |
| 885 | // *Event_DeviceEvent |
| 886 | EventType isEvent_EventType `protobuf_oneof:"event_type"` |
| 887 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 888 | XXX_unrecognized []byte `json:"-"` |
| 889 | XXX_sizecache int32 `json:"-"` |
| 890 | } |
| 891 | |
| 892 | func (m *Event) Reset() { *m = Event{} } |
| 893 | func (m *Event) String() string { return proto.CompactTextString(m) } |
| 894 | func (*Event) ProtoMessage() {} |
| 895 | func (*Event) Descriptor() ([]byte, []int) { |
| 896 | return fileDescriptor_e63e6c07044fd2c4, []int{13} |
| 897 | } |
| 898 | |
| 899 | func (m *Event) XXX_Unmarshal(b []byte) error { |
| 900 | return xxx_messageInfo_Event.Unmarshal(m, b) |
| 901 | } |
| 902 | func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 903 | return xxx_messageInfo_Event.Marshal(b, m, deterministic) |
| 904 | } |
| 905 | func (m *Event) XXX_Merge(src proto.Message) { |
| 906 | xxx_messageInfo_Event.Merge(m, src) |
| 907 | } |
| 908 | func (m *Event) XXX_Size() int { |
| 909 | return xxx_messageInfo_Event.Size(m) |
| 910 | } |
| 911 | func (m *Event) XXX_DiscardUnknown() { |
| 912 | xxx_messageInfo_Event.DiscardUnknown(m) |
| 913 | } |
| 914 | |
| 915 | var xxx_messageInfo_Event proto.InternalMessageInfo |
| 916 | |
| 917 | func (m *Event) GetHeader() *EventHeader { |
| 918 | if m != nil { |
| 919 | return m.Header |
| 920 | } |
| 921 | return nil |
| 922 | } |
| 923 | |
| 924 | type isEvent_EventType interface { |
| 925 | isEvent_EventType() |
| 926 | } |
| 927 | |
| 928 | type Event_ConfigEvent struct { |
| 929 | ConfigEvent *ConfigEvent `protobuf:"bytes,2,opt,name=config_event,json=configEvent,proto3,oneof"` |
| 930 | } |
| 931 | |
| 932 | type Event_KpiEvent struct { |
| 933 | KpiEvent *KpiEvent `protobuf:"bytes,3,opt,name=kpi_event,json=kpiEvent,proto3,oneof"` |
| 934 | } |
| 935 | |
| 936 | type Event_KpiEvent2 struct { |
| 937 | KpiEvent2 *KpiEvent2 `protobuf:"bytes,4,opt,name=kpi_event2,json=kpiEvent2,proto3,oneof"` |
| 938 | } |
| 939 | |
| 940 | type Event_DeviceEvent struct { |
| 941 | DeviceEvent *DeviceEvent `protobuf:"bytes,5,opt,name=device_event,json=deviceEvent,proto3,oneof"` |
| 942 | } |
| 943 | |
| 944 | func (*Event_ConfigEvent) isEvent_EventType() {} |
| 945 | |
| 946 | func (*Event_KpiEvent) isEvent_EventType() {} |
| 947 | |
| 948 | func (*Event_KpiEvent2) isEvent_EventType() {} |
| 949 | |
| 950 | func (*Event_DeviceEvent) isEvent_EventType() {} |
| 951 | |
| 952 | func (m *Event) GetEventType() isEvent_EventType { |
| 953 | if m != nil { |
| 954 | return m.EventType |
| 955 | } |
| 956 | return nil |
| 957 | } |
| 958 | |
| 959 | func (m *Event) GetConfigEvent() *ConfigEvent { |
| 960 | if x, ok := m.GetEventType().(*Event_ConfigEvent); ok { |
| 961 | return x.ConfigEvent |
| 962 | } |
| 963 | return nil |
| 964 | } |
| 965 | |
| 966 | func (m *Event) GetKpiEvent() *KpiEvent { |
| 967 | if x, ok := m.GetEventType().(*Event_KpiEvent); ok { |
| 968 | return x.KpiEvent |
| 969 | } |
| 970 | return nil |
| 971 | } |
| 972 | |
| 973 | func (m *Event) GetKpiEvent2() *KpiEvent2 { |
| 974 | if x, ok := m.GetEventType().(*Event_KpiEvent2); ok { |
| 975 | return x.KpiEvent2 |
| 976 | } |
| 977 | return nil |
| 978 | } |
| 979 | |
| 980 | func (m *Event) GetDeviceEvent() *DeviceEvent { |
| 981 | if x, ok := m.GetEventType().(*Event_DeviceEvent); ok { |
| 982 | return x.DeviceEvent |
| 983 | } |
| 984 | return nil |
| 985 | } |
| 986 | |
| 987 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 988 | func (*Event) XXX_OneofWrappers() []interface{} { |
| 989 | return []interface{}{ |
| 990 | (*Event_ConfigEvent)(nil), |
| 991 | (*Event_KpiEvent)(nil), |
| 992 | (*Event_KpiEvent2)(nil), |
| 993 | (*Event_DeviceEvent)(nil), |
| 994 | } |
| 995 | } |
| 996 | |
| 997 | func init() { |
| 998 | proto.RegisterEnum("voltha.ConfigEventType_Types", ConfigEventType_Types_name, ConfigEventType_Types_value) |
| 999 | proto.RegisterEnum("voltha.KpiEventType_Types", KpiEventType_Types_name, KpiEventType_Types_value) |
| 1000 | proto.RegisterEnum("voltha.EventCategory_Types", EventCategory_Types_name, EventCategory_Types_value) |
| 1001 | proto.RegisterEnum("voltha.EventSubCategory_Types", EventSubCategory_Types_name, EventSubCategory_Types_value) |
| 1002 | proto.RegisterEnum("voltha.EventType_Types", EventType_Types_name, EventType_Types_value) |
| 1003 | proto.RegisterType((*ConfigEventType)(nil), "voltha.ConfigEventType") |
| 1004 | proto.RegisterType((*ConfigEvent)(nil), "voltha.ConfigEvent") |
| 1005 | proto.RegisterType((*KpiEventType)(nil), "voltha.KpiEventType") |
| 1006 | proto.RegisterType((*MetricMetaData)(nil), "voltha.MetricMetaData") |
| 1007 | proto.RegisterMapType((map[string]string)(nil), "voltha.MetricMetaData.ContextEntry") |
| 1008 | proto.RegisterType((*MetricValuePairs)(nil), "voltha.MetricValuePairs") |
| 1009 | proto.RegisterMapType((map[string]float32)(nil), "voltha.MetricValuePairs.MetricsEntry") |
| 1010 | proto.RegisterType((*MetricInformation)(nil), "voltha.MetricInformation") |
| 1011 | proto.RegisterMapType((map[string]float32)(nil), "voltha.MetricInformation.MetricsEntry") |
| 1012 | proto.RegisterType((*KpiEvent)(nil), "voltha.KpiEvent") |
| 1013 | proto.RegisterMapType((map[string]*MetricValuePairs)(nil), "voltha.KpiEvent.PrefixesEntry") |
| 1014 | proto.RegisterType((*KpiEvent2)(nil), "voltha.KpiEvent2") |
| 1015 | proto.RegisterType((*DeviceEvent)(nil), "voltha.DeviceEvent") |
| 1016 | proto.RegisterMapType((map[string]string)(nil), "voltha.DeviceEvent.ContextEntry") |
| 1017 | proto.RegisterType((*EventCategory)(nil), "voltha.EventCategory") |
| 1018 | proto.RegisterType((*EventSubCategory)(nil), "voltha.EventSubCategory") |
| 1019 | proto.RegisterType((*EventType)(nil), "voltha.EventType") |
| 1020 | proto.RegisterType((*EventHeader)(nil), "voltha.EventHeader") |
| 1021 | proto.RegisterType((*Event)(nil), "voltha.Event") |
| 1022 | } |
| 1023 | |
| 1024 | func init() { proto.RegisterFile("voltha_protos/events.proto", fileDescriptor_e63e6c07044fd2c4) } |
| 1025 | |
| 1026 | var fileDescriptor_e63e6c07044fd2c4 = []byte{ |
| 1027 | // 1135 bytes of a gzipped FileDescriptorProto |
| 1028 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xe3, 0x44, |
| 1029 | 0x14, 0x8e, 0x9d, 0x34, 0x3f, 0xc7, 0x69, 0xeb, 0xce, 0x22, 0x08, 0x59, 0xd8, 0x2d, 0x46, 0xa0, |
| 1030 | 0x6a, 0x57, 0x38, 0xc2, 0xac, 0xb4, 0x55, 0x57, 0x08, 0x76, 0x53, 0xb3, 0x35, 0x4b, 0x93, 0xe0, |
| 1031 | 0xa6, 0x45, 0x70, 0x13, 0x4d, 0xe3, 0x69, 0x62, 0x35, 0xc9, 0x58, 0x9e, 0x49, 0xb4, 0x7d, 0x00, |
| 1032 | 0xae, 0x79, 0x00, 0x1e, 0x81, 0xe7, 0xe0, 0x31, 0x10, 0x2f, 0xc1, 0x03, 0xa0, 0xf9, 0x71, 0x62, |
| 1033 | 0x97, 0xae, 0xf6, 0x62, 0xc5, 0x95, 0x67, 0xce, 0x9c, 0x6f, 0xe6, 0x3b, 0x67, 0xce, 0x77, 0xc6, |
| 1034 | 0xd0, 0x5e, 0xd1, 0x19, 0x9f, 0xe2, 0x51, 0x92, 0x52, 0x4e, 0x59, 0x87, 0xac, 0xc8, 0x82, 0x33, |
| 1035 | 0x57, 0xce, 0x50, 0x55, 0xad, 0xb5, 0x5b, 0x45, 0x9f, 0x39, 0xe1, 0x58, 0x79, 0xb4, 0x3f, 0x9a, |
| 1036 | 0x50, 0x3a, 0x99, 0x91, 0x0e, 0x4e, 0xe2, 0x0e, 0x5e, 0x2c, 0x28, 0xc7, 0x3c, 0xa6, 0x0b, 0x8d, |
| 1037 | 0x6f, 0x3f, 0xd4, 0xab, 0x72, 0x76, 0xb9, 0xbc, 0xea, 0xf0, 0x78, 0x4e, 0x18, 0xc7, 0xf3, 0x44, |
| 1038 | 0x39, 0x38, 0xcf, 0x60, 0xb7, 0x4b, 0x17, 0x57, 0xf1, 0xc4, 0x17, 0xc7, 0x0e, 0x6f, 0x12, 0xe2, |
| 1039 | 0x1c, 0xc0, 0x96, 0xf8, 0x32, 0x54, 0x83, 0x32, 0x8e, 0x22, 0xbb, 0x84, 0x00, 0xaa, 0x29, 0x99, |
| 1040 | 0xd3, 0x15, 0xb1, 0x0d, 0x31, 0x5e, 0x26, 0x11, 0xe6, 0xc4, 0x36, 0x9d, 0x29, 0x58, 0x39, 0x30, |
| 1041 | 0xfa, 0x12, 0x2a, 0xfc, 0x26, 0x21, 0x2d, 0x63, 0xdf, 0x38, 0xd8, 0xf1, 0x3e, 0x76, 0x15, 0x67, |
| 1042 | 0xf7, 0xd6, 0xfe, 0xae, 0xdc, 0x3c, 0x94, 0xae, 0x08, 0x41, 0x65, 0x8a, 0xd9, 0xb4, 0x65, 0xee, |
| 1043 | 0x1b, 0x07, 0x8d, 0x50, 0x8e, 0x85, 0x2d, 0xc2, 0x1c, 0xb7, 0xca, 0xca, 0x26, 0xc6, 0xce, 0x23, |
| 1044 | 0x68, 0xbe, 0x4a, 0xe2, 0x0d, 0xc7, 0x76, 0xc6, 0xb1, 0x01, 0x5b, 0x6c, 0x16, 0x8f, 0x89, 0x5d, |
| 1045 | 0x42, 0x55, 0x30, 0x39, 0xb3, 0x0d, 0xe7, 0x0f, 0x13, 0x76, 0x4e, 0x09, 0x4f, 0xe3, 0xf1, 0x29, |
| 1046 | 0xe1, 0xf8, 0x18, 0x73, 0x8c, 0xde, 0x83, 0x2d, 0x1e, 0xf3, 0x99, 0xa2, 0xd6, 0x08, 0xd5, 0x04, |
| 1047 | 0xed, 0x08, 0x80, 0x3c, 0xda, 0x08, 0x4d, 0xce, 0xd0, 0x23, 0xd8, 0x9b, 0xd1, 0x49, 0x3c, 0xc6, |
| 1048 | 0xb3, 0x51, 0x44, 0x56, 0xf1, 0x98, 0x8c, 0xe2, 0x48, 0xb3, 0xd8, 0xd5, 0x0b, 0xc7, 0xd2, 0x1e, |
| 1049 | 0x44, 0xe8, 0x3e, 0x34, 0x18, 0x49, 0x63, 0x3c, 0x1b, 0x2d, 0x68, 0xab, 0x22, 0x7d, 0xea, 0xca, |
| 1050 | 0xd0, 0xa3, 0x62, 0x71, 0xb3, 0xc1, 0x96, 0x5a, 0x8c, 0x32, 0xe4, 0xd7, 0x50, 0x1b, 0xd3, 0x05, |
| 1051 | 0x27, 0xaf, 0x79, 0xab, 0xba, 0x5f, 0x3e, 0xb0, 0xbc, 0x4f, 0xb3, 0x44, 0x15, 0x49, 0x8b, 0xbc, |
| 1052 | 0x09, 0x2f, 0x7f, 0xc1, 0xd3, 0x9b, 0x30, 0xc3, 0x88, 0xec, 0x2c, 0x97, 0x71, 0xd4, 0xaa, 0xa9, |
| 1053 | 0xec, 0x88, 0x71, 0xfb, 0x08, 0x9a, 0x79, 0x67, 0x64, 0x43, 0xf9, 0x9a, 0xdc, 0xe8, 0x60, 0xc5, |
| 1054 | 0x50, 0x24, 0x60, 0x85, 0x67, 0x4b, 0xa2, 0x13, 0xad, 0x26, 0x47, 0xe6, 0xa1, 0xe1, 0xfc, 0x66, |
| 1055 | 0x80, 0xad, 0x0e, 0xbe, 0x10, 0xb6, 0x01, 0x8e, 0x53, 0x86, 0xbe, 0x81, 0xda, 0x5c, 0xda, 0x58, |
| 1056 | 0xcb, 0x90, 0x1c, 0x3f, 0x2b, 0x72, 0xdc, 0xb8, 0x6a, 0x03, 0xd3, 0x2c, 0x35, 0x4a, 0x30, 0xca, |
| 1057 | 0x2f, 0xbc, 0x8d, 0x91, 0x99, 0x67, 0xf4, 0xa7, 0x01, 0x7b, 0x0a, 0x1c, 0x2c, 0xae, 0x68, 0x3a, |
| 1058 | 0x97, 0x05, 0x8d, 0x3c, 0xa8, 0x8b, 0xaa, 0x97, 0x95, 0x21, 0xb6, 0xb1, 0xbc, 0xf7, 0xef, 0xce, |
| 1059 | 0x5b, 0xb8, 0xf6, 0x43, 0xdf, 0x6e, 0xc2, 0x30, 0x65, 0x18, 0x9f, 0x17, 0x21, 0xb9, 0xfd, 0xff, |
| 1060 | 0x87, 0x38, 0xfe, 0x32, 0xa0, 0x9e, 0x15, 0x2d, 0x72, 0x0b, 0xda, 0x68, 0x67, 0x3c, 0xf2, 0x45, |
| 1061 | 0x5d, 0x10, 0xc6, 0xa6, 0x36, 0x4d, 0x59, 0x9b, 0x47, 0x50, 0x4f, 0x52, 0x72, 0x15, 0xbf, 0x26, |
| 1062 | 0xac, 0x55, 0x96, 0xb1, 0x3c, 0xb8, 0xbd, 0x87, 0x3b, 0xd0, 0x0e, 0x2a, 0x86, 0xb5, 0x7f, 0xfb, |
| 1063 | 0x1c, 0xb6, 0x0b, 0x4b, 0x77, 0x44, 0xe1, 0xe6, 0xa3, 0xb0, 0xbc, 0xd6, 0x9b, 0xae, 0x3b, 0x1f, |
| 1064 | 0xdf, 0xaf, 0x06, 0x34, 0xb2, 0xb3, 0xbd, 0x77, 0x08, 0x50, 0x89, 0xef, 0x10, 0x40, 0x0a, 0x79, |
| 1065 | 0xa4, 0xb5, 0x2f, 0x42, 0xfc, 0xf0, 0x8d, 0xd7, 0x15, 0x36, 0xa4, 0xb3, 0xb8, 0x6f, 0xe7, 0x1f, |
| 1066 | 0x03, 0x2c, 0xa5, 0x4b, 0x95, 0xea, 0x87, 0x60, 0xa5, 0x84, 0xd1, 0x65, 0xaa, 0xf4, 0xa7, 0xa2, |
| 1067 | 0x84, 0xcc, 0x14, 0x44, 0x42, 0xe7, 0x5a, 0x9e, 0xb2, 0xd7, 0x8e, 0x16, 0x78, 0x9e, 0x09, 0x63, |
| 1068 | 0x37, 0xda, 0x6c, 0xd4, 0xc3, 0x73, 0x82, 0xf6, 0xc1, 0x8a, 0x08, 0x1b, 0xa7, 0x71, 0x22, 0x8e, |
| 1069 | 0xd5, 0xdd, 0x20, 0x6f, 0x42, 0x47, 0x1b, 0x3d, 0x57, 0x24, 0xeb, 0xfd, 0x8c, 0x75, 0x8e, 0xd4, |
| 1070 | 0xdd, 0x62, 0x7e, 0x27, 0xe1, 0xae, 0x60, 0x5b, 0x6e, 0xdd, 0xc5, 0x9c, 0x4c, 0x68, 0x7a, 0xe3, |
| 1071 | 0x90, 0xac, 0x27, 0xee, 0xc1, 0x76, 0xb7, 0x7f, 0x7a, 0x7a, 0xde, 0x0b, 0xba, 0xcf, 0x87, 0x41, |
| 1072 | 0xbf, 0x67, 0x97, 0xd0, 0x2e, 0x58, 0x7e, 0xef, 0x22, 0x08, 0xfb, 0xbd, 0x53, 0xbf, 0x37, 0xb4, |
| 1073 | 0x0d, 0xb4, 0x0d, 0x0d, 0xff, 0xc7, 0xf3, 0x60, 0x20, 0xa7, 0x26, 0xb2, 0xa0, 0x76, 0xe6, 0x87, |
| 1074 | 0x17, 0x41, 0xd7, 0xb7, 0xcb, 0x68, 0x07, 0x60, 0x10, 0xf6, 0xbb, 0xfe, 0xd9, 0x59, 0xd0, 0x7b, |
| 1075 | 0x69, 0x57, 0x50, 0x13, 0xea, 0x67, 0x7e, 0xf7, 0x3c, 0x0c, 0x86, 0x3f, 0xdb, 0x5b, 0xce, 0x09, |
| 1076 | 0xd8, 0xf2, 0xdc, 0xb3, 0xe5, 0xe5, 0xfa, 0xe8, 0x27, 0xb9, 0x27, 0x63, 0x20, 0x0f, 0xac, 0x41, |
| 1077 | 0xb9, 0xff, 0x83, 0x38, 0x48, 0x0c, 0xe4, 0x11, 0x72, 0x70, 0x6e, 0x97, 0xc5, 0xa0, 0xd7, 0x0b, |
| 1078 | 0xec, 0x8a, 0xf3, 0x13, 0x34, 0x36, 0x1d, 0xfd, 0xfb, 0x6c, 0x0b, 0x1b, 0x9a, 0xdd, 0x7e, 0xef, |
| 1079 | 0xbb, 0xe0, 0xe5, 0xc8, 0xbf, 0x10, 0xe4, 0x4a, 0x82, 0xeb, 0xab, 0x41, 0xa0, 0xa7, 0x86, 0xa0, |
| 1080 | 0xb7, 0x9e, 0x7a, 0xb6, 0x29, 0x00, 0xc7, 0xbe, 0xa0, 0xae, 0x3d, 0xca, 0xce, 0xdf, 0x26, 0x58, |
| 1081 | 0x72, 0xe7, 0x13, 0x82, 0x23, 0x92, 0x8a, 0x5a, 0x5b, 0x17, 0x82, 0x19, 0x47, 0xe8, 0x29, 0xd4, |
| 1082 | 0xc7, 0x9a, 0xba, 0xcc, 0xeb, 0x8e, 0x77, 0x3f, 0xbb, 0xb3, 0x42, 0x4a, 0x75, 0xc1, 0xae, 0x9d, |
| 1083 | 0xd1, 0x73, 0x68, 0xb2, 0xe5, 0xe5, 0x68, 0x0d, 0x2e, 0x4b, 0xf0, 0x83, 0x02, 0x38, 0x97, 0x17, |
| 1084 | 0x8d, 0xb7, 0xd8, 0xc6, 0x84, 0x1e, 0x6b, 0x9d, 0x54, 0x24, 0xf4, 0x83, 0x02, 0xf4, 0x3f, 0x22, |
| 1085 | 0xf9, 0x04, 0x9a, 0xe2, 0x3b, 0x5a, 0x91, 0x94, 0x89, 0xf2, 0x53, 0x6f, 0x89, 0x25, 0x6c, 0x17, |
| 1086 | 0xca, 0x84, 0x9e, 0x42, 0x23, 0xc5, 0x31, 0x23, 0xd1, 0x88, 0xb3, 0x56, 0x55, 0xaa, 0xb7, 0xed, |
| 1087 | 0xaa, 0x57, 0xdf, 0xcd, 0x5e, 0x7d, 0x77, 0x98, 0xbd, 0xfa, 0x61, 0x5d, 0x39, 0x0f, 0x19, 0x7a, |
| 1088 | 0x26, 0x64, 0x92, 0xd0, 0x94, 0x2b, 0x68, 0xed, 0xad, 0x50, 0xc8, 0xdc, 0x87, 0xcc, 0xf9, 0xdd, |
| 1089 | 0x84, 0x2d, 0xa5, 0xb6, 0xc7, 0x50, 0x9d, 0xca, 0x2c, 0xeb, 0xae, 0x7c, 0xaf, 0x10, 0x91, 0xba, |
| 1090 | 0x80, 0x50, 0xbb, 0xa0, 0x43, 0x68, 0x8e, 0xe5, 0xdf, 0x80, 0x52, 0x9e, 0xee, 0x36, 0xf7, 0xee, |
| 1091 | 0xf8, 0x53, 0x38, 0x29, 0x85, 0xd6, 0x38, 0xf7, 0x6f, 0xd1, 0x81, 0xc6, 0x75, 0x12, 0x6b, 0x58, |
| 1092 | 0x59, 0xc2, 0xec, 0xdb, 0x3d, 0xe6, 0xa4, 0x14, 0xd6, 0xaf, 0xb3, 0x86, 0xeb, 0x01, 0xac, 0x01, |
| 1093 | 0x9e, 0xcc, 0xb6, 0xe5, 0xed, 0xdd, 0x46, 0x78, 0x27, 0xa5, 0xb0, 0x71, 0xbd, 0xee, 0x61, 0x87, |
| 1094 | 0xd0, 0xcc, 0x37, 0x06, 0x99, 0xee, 0x1c, 0xbd, 0x9c, 0x9e, 0x05, 0xbd, 0x5c, 0xab, 0x78, 0xd1, |
| 1095 | 0x04, 0x50, 0xbd, 0x44, 0x5c, 0xcd, 0x0b, 0x1f, 0xee, 0xd1, 0x74, 0xe2, 0xd2, 0x84, 0x2c, 0xc6, |
| 1096 | 0x34, 0x8d, 0x34, 0xfe, 0x17, 0x77, 0x12, 0xf3, 0xe9, 0xf2, 0xd2, 0x1d, 0xd3, 0x79, 0x27, 0x5b, |
| 1097 | 0xeb, 0xa8, 0xb5, 0x2f, 0xf4, 0x8f, 0xdd, 0xea, 0x49, 0x67, 0x42, 0xb5, 0xed, 0xb2, 0x2a, 0x8d, |
| 1098 | 0x5f, 0xfd, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x26, 0x26, 0x74, 0xd0, 0x21, 0x0a, 0x00, 0x00, |
| 1099 | } |