blob: dfda0d7fda4a5a61595da3c3a8739ea59fb83f85 [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// CallControlPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity Call control performance monitoring history data
27const CallControlPerformanceMonitoringHistoryDataClassID ClassID = ClassID(140)
28
29var callcontrolperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// CallControlPerformanceMonitoringHistoryData (class ID #140)
32// This ME collects PM data related to the call control channel. Instances of this ME are created
33// 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 PPTP POTS UNI ME.
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 PPTP POTS UNI. (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// Call Setup Failures
56// Call setup failures: This attribute counts call set-up failures. (R) (mandatory) (4-bytes)
57//
58// Call Setup Timer
59// Call setup timer: This attribute is a high water-mark that records the longest duration of a
60// single call set-up detected during this interval. Time is measured in milliseconds from the time
61// an initial set-up was requested by the subscriber until the time at which a response was
62// provided to the subscriber in the form of busy tone, audible ring tone, etc. (R) (mandatory)
63// (4-bytes)
64//
65// Call Terminate Failures
66// Call terminate failures: This attribute counts the number of calls that were terminated with
67// cause. (R) (mandatory) (4-bytes)
68//
69// Analog Port Releases
70// Analog port releases: This attribute counts the number of analogue port releases without
71// dialling detected (abandoned calls). (R) (mandatory) (4-bytes)
72//
73// Analog Port Off_Hook Timer
74// Analog port off-hook timer: This attribute is a high water-mark that records the longest period
75// of a single off-hook detected on the analogue port. Time is measured in milliseconds. (R)
76// (mandatory) (4-bytes)
77//
78type CallControlPerformanceMonitoringHistoryData struct {
79 ManagedEntityDefinition
80 Attributes AttributeValueMap
81}
82
83func init() {
84 callcontrolperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
85 Name: "CallControlPerformanceMonitoringHistoryData",
86 ClassID: 140,
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("CallSetupFailures", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
99 4: Uint32Field("CallSetupTimer", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
100 5: Uint32Field("CallTerminateFailures", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
101 6: Uint32Field("AnalogPortReleases", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
102 7: Uint32Field("AnalogPortOffHookTimer", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
103 },
104 Access: CreatedByOlt,
105 Support: UnknownSupport,
106 }
107}
108
109// NewCallControlPerformanceMonitoringHistoryData (class ID 140) 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 NewCallControlPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
113 return NewManagedEntity(*callcontrolperformancemonitoringhistorydataBME, params...)
114}