blob: 39601799109f3cb3b48e8f91883d08737987ceff [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * 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 Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * 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 Chawlaac1f5ad2021-02-04 21:21:54 +053017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * 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
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// SipAgentPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity SIP agent performance monitoring history data
mpagenko836a1fd2021-11-01 16:12:42 +000030const SipAgentPerformanceMonitoringHistoryDataClassID = ClassID(151) // 0x0097
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var sipagentperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// SipAgentPerformanceMonitoringHistoryData (Class ID: #151 / 0x0097)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME collects PM data for the associated VoIP SIP agent. Instances of this ME are created and
36// 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 a SIP agent config data or SIP config portal object.
42//
43// Attributes
44// Managed Entity Id
mpagenko836a1fd2021-11-01 16:12:42 +000045// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
46// implicitly linked to an instance of the corresponding SIP agent config data or to the SIP config
47// portal. If a non-OMCI configuration method is used for VoIP, there can be only one live ME
48// instance, associated with the SIP config portal, and with ME ID 0. (R, setbycreate) (mandatory)
49// (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000050//
51// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000052// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000053//
54// Threshold Data 1_2 Id
55// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
56// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
57// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
58//
59// Transactions
mpagenko836a1fd2021-11-01 16:12:42 +000060// This attribute counts the number of new transactions that were initiated. (R) (optional)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000061// (4-bytes)
62//
mpagenko836a1fd2021-11-01 16:12:42 +000063// Rx Invite Reqs
64// This attribute counts received invite messages, including retransmissions. (R) (optional)
65// (4-bytes)
66//
67// Rx Invite Retrans
68// This attribute counts received invite retransmission messages. (R) (optional) (4-bytes)
69//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000070// Rx Noninvite Reqs
mpagenko836a1fd2021-11-01 16:12:42 +000071// This attribute counts received non-invite messages, including retransmissions. (R) (optional)
72// (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000073//
74// Rx Noninvite Retrans
mpagenko836a1fd2021-11-01 16:12:42 +000075// This attribute counts received non-invite retransmission messages. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000076//
77// Rx Response
mpagenko836a1fd2021-11-01 16:12:42 +000078// This attribute counts total responses received. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000079//
80// Rx Response Retransmissions
mpagenko836a1fd2021-11-01 16:12:42 +000081// This attribute counts total response retransmissions received. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000082//
83// Tx Invite Reqs
mpagenko836a1fd2021-11-01 16:12:42 +000084// This attribute counts transmitted invite messages, including retransmissions. (R) (optional)
85// (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000086//
87// Tx Invite Retrans
mpagenko836a1fd2021-11-01 16:12:42 +000088// This attribute counts transmitted invite retransmission messages. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000089//
90// Tx Noninvite Reqs
mpagenko836a1fd2021-11-01 16:12:42 +000091// This attribute counts transmitted non-invite messages, including retransmissions. (R) (optional)
92// (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000093//
94// Tx Noninvite Retrans
mpagenko836a1fd2021-11-01 16:12:42 +000095// This attribute counts transmitted non-invite retransmission messages. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000096//
97// Tx Response
mpagenko836a1fd2021-11-01 16:12:42 +000098// This attribute counts the total responses sent. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000099//
100// Tx Response Retransmissions
mpagenko836a1fd2021-11-01 16:12:42 +0000101// This attribute counts total response retransmissions sent. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000102//
103type SipAgentPerformanceMonitoringHistoryData struct {
104 ManagedEntityDefinition
105 Attributes AttributeValueMap
106}
107
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000108// Attribute name constants
109
110const SipAgentPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime"
111const SipAgentPerformanceMonitoringHistoryData_ThresholdData12Id = "ThresholdData12Id"
112const SipAgentPerformanceMonitoringHistoryData_Transactions = "Transactions"
113const SipAgentPerformanceMonitoringHistoryData_RxInviteReqs = "RxInviteReqs"
114const SipAgentPerformanceMonitoringHistoryData_RxInviteRetrans = "RxInviteRetrans"
115const SipAgentPerformanceMonitoringHistoryData_RxNoninviteReqs = "RxNoninviteReqs"
116const SipAgentPerformanceMonitoringHistoryData_RxNoninviteRetrans = "RxNoninviteRetrans"
117const SipAgentPerformanceMonitoringHistoryData_RxResponse = "RxResponse"
118const SipAgentPerformanceMonitoringHistoryData_RxResponseRetransmissions = "RxResponseRetransmissions"
119const SipAgentPerformanceMonitoringHistoryData_TxInviteReqs = "TxInviteReqs"
120const SipAgentPerformanceMonitoringHistoryData_TxInviteRetrans = "TxInviteRetrans"
121const SipAgentPerformanceMonitoringHistoryData_TxNoninviteReqs = "TxNoninviteReqs"
122const SipAgentPerformanceMonitoringHistoryData_TxNoninviteRetrans = "TxNoninviteRetrans"
123const SipAgentPerformanceMonitoringHistoryData_TxResponse = "TxResponse"
124const SipAgentPerformanceMonitoringHistoryData_TxResponseRetransmissions = "TxResponseRetransmissions"
125
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000126func init() {
127 sipagentperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
128 Name: "SipAgentPerformanceMonitoringHistoryData",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000129 ClassID: SipAgentPerformanceMonitoringHistoryDataClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000130 MessageTypes: mapset.NewSetWith(
131 Create,
132 Delete,
133 Get,
134 Set,
Girish Gowdra5c5aaf42021-02-17 19:40:50 -0800135 GetCurrentData,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000136 ),
137 AllowedAttributeMask: 0xfffe,
138 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000139 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
140 1: ByteField(SipAgentPerformanceMonitoringHistoryData_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
141 2: Uint16Field(SipAgentPerformanceMonitoringHistoryData_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
142 3: Uint32Field(SipAgentPerformanceMonitoringHistoryData_Transactions, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
143 4: Uint32Field(SipAgentPerformanceMonitoringHistoryData_RxInviteReqs, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
144 5: Uint32Field(SipAgentPerformanceMonitoringHistoryData_RxInviteRetrans, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
145 6: Uint32Field(SipAgentPerformanceMonitoringHistoryData_RxNoninviteReqs, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6),
146 7: Uint32Field(SipAgentPerformanceMonitoringHistoryData_RxNoninviteRetrans, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
147 8: Uint32Field(SipAgentPerformanceMonitoringHistoryData_RxResponse, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
148 9: Uint32Field(SipAgentPerformanceMonitoringHistoryData_RxResponseRetransmissions, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9),
149 10: Uint32Field(SipAgentPerformanceMonitoringHistoryData_TxInviteReqs, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
150 11: Uint32Field(SipAgentPerformanceMonitoringHistoryData_TxInviteRetrans, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
151 12: Uint32Field(SipAgentPerformanceMonitoringHistoryData_TxNoninviteReqs, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
152 13: Uint32Field(SipAgentPerformanceMonitoringHistoryData_TxNoninviteRetrans, CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
153 14: Uint32Field(SipAgentPerformanceMonitoringHistoryData_TxResponse, CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
154 15: Uint32Field(SipAgentPerformanceMonitoringHistoryData_TxResponseRetransmissions, CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000155 },
156 Access: CreatedByOlt,
157 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530158 Alarms: AlarmMap{
159 0: "SIPAMD Rx invite req",
160 1: "SIPAMD Rx invite req retransmission",
161 2: "SIPAMD Rx noninvite req",
162 3: "SIPAMD Rx noninvite req retransmission",
163 4: "SIPAMD Rx response",
164 5: "SIPAMD Rx response retransmission",
165 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000166 }
167}
168
169// NewSipAgentPerformanceMonitoringHistoryData (class ID 151) creates the basic
170// Managed Entity definition that is used to validate an ME of this type that
171// is received from or transmitted to the OMCC.
172func NewSipAgentPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
173 return NewManagedEntity(*sipagentperformancemonitoringhistorydataBME, params...)
174}