blob: 42527d2977448de3c170e1e02fea3369edcc515d [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 CallControlPerformanceMonitoringHistoryDataClassId ClassID = ClassID(140)
25
26var callcontrolperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// CallControlPerformanceMonitoringHistoryData (class ID #140)
29// This ME collects PM data related to the call control channel. Instances of this ME are created
30// 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 PPTP POTS UNI ME.
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 PPTP POTS UNI. (R, setbycreate)
41// (mandatory) (2 bytes)
42//
43// Interval End Time
44// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
45// (mandatory) (1 byte)
46//
47// Threshold Data 1_2 Id
48// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
49// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
50// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
51//
52// Call Setup Failures
53// Call setup failures: This attribute counts call set-up failures. (R) (mandatory) (4 bytes)
54//
55// Call Setup Timer
56// Call setup timer: This attribute is a high water-mark that records the longest duration of a
57// single call set-up detected during this interval. Time is measured in milliseconds from the time
58// an initial set-up was requested by the subscriber until the time at which a response was
59// provided to the subscriber in the form of busy tone, audible ring tone, etc. (R) (mandatory)
60// (4 bytes)
61//
62// Call Terminate Failures
63// Call terminate failures: This attribute counts the number of calls that were terminated with
64// cause. (R) (mandatory) (4 bytes)
65//
66// Analog Port Releases
67// Analog port releases: This attribute counts the number of analogue port releases without
68// dialling detected (abandoned calls). (R) (mandatory) (4 bytes)
69//
70// Analog Port Off_Hook Timer
71// Analog port off-hook timer: This attribute is a high water-mark that records the longest period
72// of a single off-hook detected on the analogue port. Time is measured in milliseconds. (R)
73// (mandatory) (4 bytes)
74//
75type CallControlPerformanceMonitoringHistoryData struct {
76 ManagedEntityDefinition
77 Attributes AttributeValueMap
78}
79
80func init() {
81 callcontrolperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
82 Name: "CallControlPerformanceMonitoringHistoryData",
83 ClassID: 140,
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("CallSetupFailures", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
96 4: Uint32Field("CallSetupTimer", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
97 5: Uint32Field("CallTerminateFailures", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
98 6: Uint32Field("AnalogPortReleases", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
99 7: Uint32Field("AnalogPortOffHookTimer", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
100 },
101 }
102}
103
104// NewCallControlPerformanceMonitoringHistoryData (class ID 140 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 NewCallControlPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
108 return NewManagedEntity(callcontrolperformancemonitoringhistorydataBME, params...)
109}