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