blob: e4dd0813fec2acd2ff7fa417a79ca79dd464453e [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// SipAgentPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity SIP agent performance monitoring history data
27const SipAgentPerformanceMonitoringHistoryDataClassID ClassID = ClassID(151)
28
29var sipagentperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// SipAgentPerformanceMonitoringHistoryData (class ID #151)
32// This ME collects PM data for the associated VoIP SIP agent. Instances of this ME are created and
33// deleted by the OLT.
34//
35// For a complete discussion of generic PM architecture, refer to clause I.4.
36//
37// Relationships
38// An instance of this ME is associated with a SIP agent config data or SIP config portal object.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the corresponding SIP agent config
44// data or to the SIP config portal. If a non-OMCI configuration method is used for VoIP, there can
45// be only one live ME instance, associated with the SIP config portal, and with ME ID 0. (R,
46// setbycreate) (mandatory) (2-bytes)
47//
48// Interval End Time
49// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
50// (mandatory) (1-byte)
51//
52// Threshold Data 1_2 Id
53// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
54// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
55// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
56//
57// Transactions
58// Transactions: This attribute counts the number of new transactions that were initiated. (R)
59// (optional) (4-bytes)
60//
61// Rx Invite Reqs
62// Rx invite reqs: This attribute counts received invite messages, including retransmissions. (R)
63// (optional) (4-bytes)
64//
65// Rx Invite Retrans
66// Rx invite retrans: This attribute counts received invite retransmission messages. (R) (optional)
67// (4-bytes)
68//
69// Rx Noninvite Reqs
70// Rx noninvite reqs: This attribute counts received non-invite messages, including
71// retransmissions. (R) (optional) (4-bytes)
72//
73// Rx Noninvite Retrans
74// Rx noninvite retrans: This attribute counts received non-invite retransmission messages. (R)
75// (optional) (4-bytes)
76//
77// Rx Response
78// Rx response: This attribute counts total responses received. (R) (optional) (4-bytes)
79//
80// Rx Response Retransmissions
81// Rx response retransmissions: This attribute counts total response retransmissions received. (R)
82// (optional) (4-bytes)
83//
84// Tx Invite Reqs
85// Tx invite reqs: This attribute counts transmitted invite messages, including retransmissions.
86// (R) (optional) (4-bytes)
87//
88// Tx Invite Retrans
89// Tx invite retrans: This attribute counts transmitted invite retransmission messages. (R)
90// (optional) (4-bytes)
91//
92// Tx Noninvite Reqs
93// Tx noninvite reqs: This attribute counts transmitted non-invite messages, including
94// retransmissions. (R) (optional) (4-bytes)
95//
96// Tx Noninvite Retrans
97// Tx noninvite retrans: This attribute counts transmitted non-invite retransmission messages. (R)
98// (optional) (4-bytes)
99//
100// Tx Response
101// Tx response: This attribute counts the total responses sent. (R) (optional) (4-bytes)
102//
103// Tx Response Retransmissions
104// Tx response retransmissions: This attribute counts total response retransmissions sent. (R)
105// (optional) (4-bytes)
106//
107type SipAgentPerformanceMonitoringHistoryData struct {
108 ManagedEntityDefinition
109 Attributes AttributeValueMap
110}
111
112func init() {
113 sipagentperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
114 Name: "SipAgentPerformanceMonitoringHistoryData",
115 ClassID: 151,
116 MessageTypes: mapset.NewSetWith(
117 Create,
118 Delete,
119 Get,
120 Set,
121 ),
122 AllowedAttributeMask: 0xfffe,
123 AttributeDefinitions: AttributeDefinitionMap{
124 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
125 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
126 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
127 3: Uint32Field("Transactions", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
128 4: Uint32Field("RxInviteReqs", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
129 5: Uint32Field("RxInviteRetrans", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
130 6: Uint32Field("RxNoninviteReqs", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6),
131 7: Uint32Field("RxNoninviteRetrans", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
132 8: Uint32Field("RxResponse", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
133 9: Uint32Field("RxResponseRetransmissions", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9),
134 10: Uint32Field("TxInviteReqs", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
135 11: Uint32Field("TxInviteRetrans", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
136 12: Uint32Field("TxNoninviteReqs", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
137 13: Uint32Field("TxNoninviteRetrans", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
138 14: Uint32Field("TxResponse", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
139 15: Uint32Field("TxResponseRetransmissions", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
140 },
141 Access: CreatedByOlt,
142 Support: UnknownSupport,
143 }
144}
145
146// NewSipAgentPerformanceMonitoringHistoryData (class ID 151) creates the basic
147// Managed Entity definition that is used to validate an ME of this type that
148// is received from or transmitted to the OMCC.
149func NewSipAgentPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
150 return NewManagedEntity(*sipagentperformancemonitoringhistorydataBME, params...)
151}