blob: 0759e1ca105ef0c9f03a9d7e144e23f780e8c1ae [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
Andrea Campanella7167ebb2020-02-24 09:56:38 +010017 /*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
30const SipAgentPerformanceMonitoringHistoryDataClassID ClassID = ClassID(151)
31
32var sipagentperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
34// SipAgentPerformanceMonitoringHistoryData (class ID #151)
35// 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
45// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
46// identical ID, this ME is implicitly linked to an instance of the corresponding SIP agent config
47// data or to the SIP config portal. If a non-OMCI configuration method is used for VoIP, there can
48// be only one live ME instance, associated with the SIP config portal, and with ME ID 0. (R,
49// setbycreate) (mandatory) (2-bytes)
50//
51// Interval End Time
52// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
53// (mandatory) (1-byte)
54//
55// Threshold Data 1_2 Id
56// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
57// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
58// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
59//
60// Transactions
61// Transactions: This attribute counts the number of new transactions that were initiated. (R)
62// (optional) (4-bytes)
63//
64// Rx Invite Reqs
65// Rx invite reqs: This attribute counts received invite messages, including retransmissions. (R)
66// (optional) (4-bytes)
67//
68// Rx Invite Retrans
69// Rx invite retrans: This attribute counts received invite retransmission messages. (R) (optional)
70// (4-bytes)
71//
72// Rx Noninvite Reqs
73// Rx noninvite reqs: This attribute counts received non-invite messages, including
74// retransmissions. (R) (optional) (4-bytes)
75//
76// Rx Noninvite Retrans
77// Rx noninvite retrans: This attribute counts received non-invite retransmission messages. (R)
78// (optional) (4-bytes)
79//
80// Rx Response
81// Rx response: This attribute counts total responses received. (R) (optional) (4-bytes)
82//
83// Rx Response Retransmissions
84// Rx response retransmissions: This attribute counts total response retransmissions received. (R)
85// (optional) (4-bytes)
86//
87// Tx Invite Reqs
88// Tx invite reqs: This attribute counts transmitted invite messages, including retransmissions.
89// (R) (optional) (4-bytes)
90//
91// Tx Invite Retrans
92// Tx invite retrans: This attribute counts transmitted invite retransmission messages. (R)
93// (optional) (4-bytes)
94//
95// Tx Noninvite Reqs
96// Tx noninvite reqs: This attribute counts transmitted non-invite messages, including
97// retransmissions. (R) (optional) (4-bytes)
98//
99// Tx Noninvite Retrans
100// Tx noninvite retrans: This attribute counts transmitted non-invite retransmission messages. (R)
101// (optional) (4-bytes)
102//
103// Tx Response
104// Tx response: This attribute counts the total responses sent. (R) (optional) (4-bytes)
105//
106// Tx Response Retransmissions
107// Tx response retransmissions: This attribute counts total response retransmissions sent. (R)
108// (optional) (4-bytes)
109//
110type SipAgentPerformanceMonitoringHistoryData struct {
111 ManagedEntityDefinition
112 Attributes AttributeValueMap
113}
114
115func init() {
116 sipagentperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
117 Name: "SipAgentPerformanceMonitoringHistoryData",
118 ClassID: 151,
119 MessageTypes: mapset.NewSetWith(
120 Create,
121 Delete,
122 Get,
123 Set,
124 ),
125 AllowedAttributeMask: 0xfffe,
126 AttributeDefinitions: AttributeDefinitionMap{
127 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
128 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
129 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
130 3: Uint32Field("Transactions", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
131 4: Uint32Field("RxInviteReqs", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
132 5: Uint32Field("RxInviteRetrans", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
133 6: Uint32Field("RxNoninviteReqs", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6),
134 7: Uint32Field("RxNoninviteRetrans", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
135 8: Uint32Field("RxResponse", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
136 9: Uint32Field("RxResponseRetransmissions", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9),
137 10: Uint32Field("TxInviteReqs", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
138 11: Uint32Field("TxInviteRetrans", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
139 12: Uint32Field("TxNoninviteReqs", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
140 13: Uint32Field("TxNoninviteRetrans", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
141 14: Uint32Field("TxResponse", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
142 15: Uint32Field("TxResponseRetransmissions", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
143 },
144 Access: CreatedByOlt,
145 Support: UnknownSupport,
146 }
147}
148
149// NewSipAgentPerformanceMonitoringHistoryData (class ID 151) creates the basic
150// Managed Entity definition that is used to validate an ME of this type that
151// is received from or transmitted to the OMCC.
152func NewSipAgentPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
153 return NewManagedEntity(*sipagentperformancemonitoringhistorydataBME, params...)
154}