blob: 489bacf2e80f418cfa42ef1f9552cbfc71ff6dc3 [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// RtpPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity RTP performance monitoring history data
27const RtpPerformanceMonitoringHistoryDataClassID ClassID = ClassID(144)
28
29var rtpperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// RtpPerformanceMonitoringHistoryData (class ID #144)
32// This ME collects PM data related to an RTP session. Instances of this ME are created and deleted
33// 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 ME. (R,
44// setbycreate) (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// Rtp Errors
56// RTP errors: This attribute counts RTP packet errors. (R) (mandatory) (4-bytes)
57//
58// Packet Loss
59// Packet loss: This attribute represents the fraction of packets lost. This attribute is
60// calculated at the end of the 15-min interval, and is undefined under the get current data
61// action. The value 0 indicates no packet loss, scaling linearly to 0xFFFF FFFF to indicate 100%
62// packet loss (zero divided by zero is defined to be zero). (R) (mandatory) (4-bytes)
63//
64// Maximum Jitter
65// Maximum jitter: This attribute is a high water-mark that represents the maximum jitter
66// identified during the measured interval, expressed in RTP timestamp units. (R) (mandatory)
67// (4-bytes)
68//
69// Maximum Time Between Real_Time Transport Control Protocol Rtcp Packets
70// Maximum time between real-time transport control protocol (RTCP) packets: This attribute is a
71// high water-mark that represents the maximum time between RTCP packets during the measured
72// interval, in milliseconds. (R) (mandatory) (4-bytes)
73//
74// Buffer Underflows
75// Buffer underflows: This attribute counts the number of times the reassembly buffer underflows.
76// In the case of continuous underflow caused by a loss of IP packets, a single buffer underflow
77// should be counted. If the IW function is implemented with multiple buffers, such as a packet
78// level buffer and a bit level buffer, then the underflow of either buffer increments this
79// counter. (R) (mandatory) (4-bytes)
80//
81// Buffer Overflows
82// Buffer overflows: This attribute counts the number of times the reassembly buffer overflows. If
83// the IW function is implemented with multiple buffers, such as a packet level buffer and a bit
84// level buffer, then the overflow of either buffer increments this counter. (R) (mandatory)
85// (4-bytes)
86//
87type RtpPerformanceMonitoringHistoryData struct {
88 ManagedEntityDefinition
89 Attributes AttributeValueMap
90}
91
92func init() {
93 rtpperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
94 Name: "RtpPerformanceMonitoringHistoryData",
95 ClassID: 144,
96 MessageTypes: mapset.NewSetWith(
97 Create,
98 Delete,
99 Get,
100 Set,
101 ),
102 AllowedAttributeMask: 0xff00,
103 AttributeDefinitions: AttributeDefinitionMap{
104 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
105 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
106 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
107 3: Uint32Field("RtpErrors", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
108 4: Uint32Field("PacketLoss", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
109 5: Uint32Field("MaximumJitter", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
110 6: Uint32Field("MaximumTimeBetweenRealTimeTransportControlProtocolRtcpPackets", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
111 7: Uint32Field("BufferUnderflows", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
112 8: Uint32Field("BufferOverflows", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
113 },
114 Access: CreatedByOlt,
115 Support: UnknownSupport,
116 }
117}
118
119// NewRtpPerformanceMonitoringHistoryData (class ID 144) creates the basic
120// Managed Entity definition that is used to validate an ME of this type that
121// is received from or transmitted to the OMCC.
122func NewRtpPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
123 return NewManagedEntity(*rtpperformancemonitoringhistorydataBME, params...)
124}