blob: 2d59f4eec11bc163692654ad03ad3fc22b3cd916 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const SipAgentPerformanceMonitoringHistoryDataClassId ClassID = ClassID(151)
25
26var sipagentperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// SipAgentPerformanceMonitoringHistoryData (class ID #151)
29// This ME collects PM data for the associated VoIP SIP agent. Instances of this ME are created and
30// deleted by the OLT.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with a SIP agent config data or SIP config portal object.
36//
37// Attributes
38// Managed Entity Id
39// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
40// identical ID, this ME is implicitly linked to an instance of the corresponding SIP agent config
41// data or to the SIP config portal. If a non-OMCI configuration method is used for VoIP, there can
42// be only one live ME instance, associated with the SIP config portal, and with ME ID 0. (R,
43// setbycreate) (mandatory) (2 bytes)
44//
45// Interval End Time
46// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
47// (mandatory) (1 byte)
48//
49// Threshold Data 1_2 Id
50// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
51// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
52// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
53//
54// Transactions
55// Transactions: This attribute counts the number of new transactions that were initiated. (R)
56// (optional) (4 bytes)
57//
58// Rx Invite Reqs
59// Rx invite reqs: This attribute counts received invite messages, including retransmissions. (R)
60// (optional) (4 bytes)
61//
62// Rx Invite Retrans
63// Rx invite retrans: This attribute counts received invite retransmission messages. (R) (optional)
64// (4 bytes)
65//
66// Rx Noninvite Reqs
67// Rx noninvite reqs: This attribute counts received non-invite messages, including
68// retransmissions. (R) (optional) (4 bytes)
69//
70// Rx Noninvite Retrans
71// Rx noninvite retrans: This attribute counts received non-invite retransmission messages. (R)
72// (optional) (4 bytes)
73//
74// Rx Response
75// Rx response: This attribute counts total responses received. (R) (optional) (4 bytes)
76//
77// Rx Response Retransmissions
78// Rx response retransmissions: This attribute counts total response retransmissions received. (R)
79// (optional) (4 bytes)
80//
81// Tx Invite Reqs
82// Tx invite reqs: This attribute counts transmitted invite messages, including retransmissions.
83// (R) (optional) (4 bytes)
84//
85// Tx Invite Retrans
86// Tx invite retrans: This attribute counts transmitted invite retransmission messages. (R)
87// (optional) (4 bytes)
88//
89// Tx Noninvite Reqs
90// Tx noninvite reqs: This attribute counts transmitted non-invite messages, including
91// retransmissions. (R) (optional) (4 bytes)
92//
93// Tx Noninvite Retrans
94// Tx noninvite retrans: This attribute counts transmitted non-invite retransmission messages. (R)
95// (optional) (4 bytes)
96//
97// Tx Response
98// Tx response: This attribute counts the total responses sent. (R) (optional) (4 bytes)
99//
100// Tx Response Retransmissions
101// Tx response retransmissions: This attribute counts total response retransmissions sent. (R)
102// (optional) (4 bytes)
103//
104type SipAgentPerformanceMonitoringHistoryData struct {
105 ManagedEntityDefinition
106 Attributes AttributeValueMap
107}
108
109func init() {
110 sipagentperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
111 Name: "SipAgentPerformanceMonitoringHistoryData",
112 ClassID: 151,
113 MessageTypes: mapset.NewSetWith(
114 Create,
115 Delete,
116 Get,
117 Set,
118 ),
119 AllowedAttributeMask: 0XFFFE,
120 AttributeDefinitions: AttributeDefinitionMap{
121 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
122 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
123 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
124 3: Uint32Field("Transactions", 0, mapset.NewSetWith(Read), false, false, true, false, 3),
125 4: Uint32Field("RxInviteReqs", 0, mapset.NewSetWith(Read), false, false, true, false, 4),
126 5: Uint32Field("RxInviteRetrans", 0, mapset.NewSetWith(Read), false, false, true, false, 5),
127 6: Uint32Field("RxNoninviteReqs", 0, mapset.NewSetWith(Read), false, false, true, false, 6),
128 7: Uint32Field("RxNoninviteRetrans", 0, mapset.NewSetWith(Read), false, false, true, false, 7),
129 8: Uint32Field("RxResponse", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
130 9: Uint32Field("RxResponseRetransmissions", 0, mapset.NewSetWith(Read), false, false, true, false, 9),
131 10: Uint32Field("TxInviteReqs", 0, mapset.NewSetWith(Read), false, false, true, false, 10),
132 11: Uint32Field("TxInviteRetrans", 0, mapset.NewSetWith(Read), false, false, true, false, 11),
133 12: Uint32Field("TxNoninviteReqs", 0, mapset.NewSetWith(Read), false, false, true, false, 12),
134 13: Uint32Field("TxNoninviteRetrans", 0, mapset.NewSetWith(Read), false, false, true, false, 13),
135 14: Uint32Field("TxResponse", 0, mapset.NewSetWith(Read), false, false, true, false, 14),
136 15: Uint32Field("TxResponseRetransmissions", 0, mapset.NewSetWith(Read), false, false, true, false, 15),
137 },
138 }
139}
140
141// NewSipAgentPerformanceMonitoringHistoryData (class ID 151 creates the basic
142// Managed Entity definition that is used to validate an ME of this type that
143// is received from the wire, about to be sent on the wire.
144func NewSipAgentPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
145 return NewManagedEntity(sipagentperformancemonitoringhistorydataBME, params...)
146}