Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * Copyright 2020-present Open Networking Foundation |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 4 | * |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 8 | * |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 10 | * |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
Himani Chawla | ac1f5ad | 2021-02-04 21:21:54 +0530 | [diff] [blame] | 17 | /* |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 18 | * NOTE: This file was generated, manual edits will be overwritten! |
| 19 | * |
| 20 | * Generated by 'goCodeGenerator.py': |
| 21 | * https://github.com/cboling/OMCI-parser/README.md |
| 22 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // CallControlPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity Call control performance monitoring history data |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 30 | const CallControlPerformanceMonitoringHistoryDataClassID = ClassID(140) // 0x008c |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 31 | |
| 32 | var callcontrolperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 33 | |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 34 | // CallControlPerformanceMonitoringHistoryData (Class ID: #140 / 0x008c) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 35 | // This ME collects PM data related to the call control channel. Instances of this ME are created |
| 36 | // and deleted by the OLT. |
| 37 | // |
| 38 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 39 | // |
| 40 | // Relationships |
| 41 | // An instance of this ME is associated with an instance of the PPTP POTS UNI ME. |
| 42 | // |
| 43 | // Attributes |
| 44 | // Managed Entity Id |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 45 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 46 | // implicitly linked to an instance of the PPTP POTS UNI. (R, setbycreate) (mandatory) (2-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 47 | // |
| 48 | // Interval End Time |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 49 | // This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 50 | // |
| 51 | // Threshold Data 1_2 Id |
| 52 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that |
| 53 | // contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold |
| 54 | // data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 55 | // |
| 56 | // Call Setup Failures |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 57 | // This attribute counts call set-up failures. (R) (mandatory) (4-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 58 | // |
| 59 | // Call Setup Timer |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 60 | // This attribute is a high water-mark that records the longest duration of a single call set-up |
| 61 | // detected during this interval. Time is measured in milliseconds from the time an initial set-up |
| 62 | // was requested by the subscriber until the time at which a response was provided to the |
| 63 | // subscriber in the form of busy tone, audible ring tone, etc. (R) (mandatory) (4-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 64 | // |
| 65 | // Call Terminate Failures |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 66 | // This attribute counts the number of calls that were terminated with cause. (R) (mandatory) |
| 67 | // (4-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 68 | // |
| 69 | // Analog Port Releases |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 70 | // This attribute counts the number of analogue port releases without dialling detected (abandoned |
| 71 | // calls). (R) (mandatory) (4-bytes) |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 72 | // |
| 73 | // Analog Port Off_Hook Timer |
| 74 | // Analog port off-hook timer: This attribute is a high water-mark that records the longest period |
| 75 | // of a single off-hook detected on the analogue port. Time is measured in milliseconds. (R) |
| 76 | // (mandatory) (4-bytes) |
| 77 | // |
| 78 | type CallControlPerformanceMonitoringHistoryData struct { |
| 79 | ManagedEntityDefinition |
| 80 | Attributes AttributeValueMap |
| 81 | } |
| 82 | |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 83 | // Attribute name constants |
| 84 | |
| 85 | const CallControlPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime" |
| 86 | const CallControlPerformanceMonitoringHistoryData_ThresholdData12Id = "ThresholdData12Id" |
| 87 | const CallControlPerformanceMonitoringHistoryData_CallSetupFailures = "CallSetupFailures" |
| 88 | const CallControlPerformanceMonitoringHistoryData_CallSetupTimer = "CallSetupTimer" |
| 89 | const CallControlPerformanceMonitoringHistoryData_CallTerminateFailures = "CallTerminateFailures" |
| 90 | const CallControlPerformanceMonitoringHistoryData_AnalogPortReleases = "AnalogPortReleases" |
| 91 | const CallControlPerformanceMonitoringHistoryData_AnalogPortOffHookTimer = "AnalogPortOffHookTimer" |
| 92 | |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 93 | func init() { |
| 94 | callcontrolperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 95 | Name: "CallControlPerformanceMonitoringHistoryData", |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 96 | ClassID: CallControlPerformanceMonitoringHistoryDataClassID, |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 97 | MessageTypes: mapset.NewSetWith( |
| 98 | Create, |
| 99 | Delete, |
| 100 | Get, |
| 101 | Set, |
Girish Gowdra | 5c5aaf4 | 2021-02-17 19:40:50 -0800 | [diff] [blame] | 102 | GetCurrentData, |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 103 | ), |
| 104 | AllowedAttributeMask: 0xfe00, |
| 105 | AttributeDefinitions: AttributeDefinitionMap{ |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 106 | 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 107 | 1: ByteField(CallControlPerformanceMonitoringHistoryData_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 108 | 2: Uint16Field(CallControlPerformanceMonitoringHistoryData_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 109 | 3: Uint32Field(CallControlPerformanceMonitoringHistoryData_CallSetupFailures, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 110 | 4: Uint32Field(CallControlPerformanceMonitoringHistoryData_CallSetupTimer, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 111 | 5: Uint32Field(CallControlPerformanceMonitoringHistoryData_CallTerminateFailures, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 112 | 6: Uint32Field(CallControlPerformanceMonitoringHistoryData_AnalogPortReleases, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 113 | 7: Uint32Field(CallControlPerformanceMonitoringHistoryData_AnalogPortOffHookTimer, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 114 | }, |
| 115 | Access: CreatedByOlt, |
| 116 | Support: UnknownSupport, |
Himani Chawla | ac1f5ad | 2021-02-04 21:21:54 +0530 | [diff] [blame] | 117 | Alarms: AlarmMap{ |
| 118 | 0: "CCPM call set-up fail", |
| 119 | 1: "CCPM set-up timeout", |
| 120 | 2: "CCPM call terminate", |
| 121 | 3: "CCPM port release with no dialling", |
| 122 | 4: "CCPM port offhook timeout", |
| 123 | }, |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 124 | } |
| 125 | } |
| 126 | |
| 127 | // NewCallControlPerformanceMonitoringHistoryData (class ID 140) creates the basic |
| 128 | // Managed Entity definition that is used to validate an ME of this type that |
| 129 | // is received from or transmitted to the OMCC. |
| 130 | func NewCallControlPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 131 | return NewManagedEntity(*callcontrolperformancemonitoringhistorydataBME, params...) |
| 132 | } |