blob: 08fc82e1598f7d5750c1929fb22c199f465f9851 [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// SipCallInitiationPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity SIP call initiation performance monitoring history data
27const SipCallInitiationPerformanceMonitoringHistoryDataClassID ClassID = ClassID(152)
28
29var sipcallinitiationperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// SipCallInitiationPerformanceMonitoringHistoryData (class ID #152)
32// This ME collects PM data related to call initiations of a VoIP SIP agent. Instances of this ME
33// are created and 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 an instance of the SIP agent config data or SIP config
39// portal ME.
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
44// identical ID, this ME is implicitly linked to an instance of the SIP agent config data or the
45// SIP config portal ME. If a nonOMCI configuration method is used for VoIP, there can be only one
46// live ME instance, associated with the SIP config portal, and with ME ID 0. (R, setbycreate)
47// (mandatory) (2-bytes)
48//
49// Interval End Time
50// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
51// (mandatory) (1-byte)
52//
53// Threshold Data 1_2 Id
54// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
55// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
56// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
57//
58// Failed To Connect Counter
59// Failed to connect counter: This attribute counts the number of times that the SIP UA failed to
60// reach/connect its TCP/UDP peer during SIP call initiations. (R) (mandatory) (4-bytes)
61//
62// Failed To Validate Counter
63// Failed to validate counter: This attribute counts the number of times that the SIP UA failed to
64// validate its peer during SIP call initiations. (R) (mandatory) (4-bytes)
65//
66// Timeout Counter
67// Timeout counter: This attribute counts the number of times that the SIP UA timed out during SIP
68// call initiations. (R) (mandatory) (4-bytes)
69//
70// Failure Received Counter
71// Failure received counter: This attribute counts the number of times that the SIP UA received a
72// failure error code during SIP call initiations. (R) (mandatory) (4-bytes)
73//
74// Failed To Authenticate Counter
75// Failed to authenticate counter: This attribute counts the number of times that the SIP UA failed
76// to authenticate itself during SIP call initiations. (R) (mandatory) (4-bytes)
77//
78type SipCallInitiationPerformanceMonitoringHistoryData struct {
79 ManagedEntityDefinition
80 Attributes AttributeValueMap
81}
82
83func init() {
84 sipcallinitiationperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
85 Name: "SipCallInitiationPerformanceMonitoringHistoryData",
86 ClassID: 152,
87 MessageTypes: mapset.NewSetWith(
88 Create,
89 Delete,
90 Get,
91 Set,
92 ),
93 AllowedAttributeMask: 0xfe00,
94 AttributeDefinitions: AttributeDefinitionMap{
95 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
96 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
97 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
98 3: Uint32Field("FailedToConnectCounter", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
99 4: Uint32Field("FailedToValidateCounter", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
100 5: Uint32Field("TimeoutCounter", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
101 6: Uint32Field("FailureReceivedCounter", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
102 7: Uint32Field("FailedToAuthenticateCounter", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
103 },
104 Access: CreatedByOlt,
105 Support: UnknownSupport,
106 }
107}
108
109// NewSipCallInitiationPerformanceMonitoringHistoryData (class ID 152) creates the basic
110// Managed Entity definition that is used to validate an ME of this type that
111// is received from or transmitted to the OMCC.
112func NewSipCallInitiationPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
113 return NewManagedEntity(*sipcallinitiationperformancemonitoringhistorydataBME, params...)
114}