blob: 457618638d72c7d45fede0288dfeeb347a4dcc3f [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17/*
18 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// RtpPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity RTP performance monitoring history data
30const RtpPerformanceMonitoringHistoryDataClassID ClassID = ClassID(144)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var rtpperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
34// RtpPerformanceMonitoringHistoryData (class ID #144)
35// This ME collects PM data related to an RTP session. Instances of this ME are created and deleted
36// by the OLT.
37//
38// For a complete discussion of generic PM architecture, refer to clause I.4.
39//
40// Relationships
41// An instance of this ME is associated with an instance of the PPTP POTS UNI ME.
42//
43// Attributes
44// Managed Entity Id
45// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
46// identical ID, this ME is implicitly linked to an instance of the PPTP POTS UNI ME. (R,
Matteo Scandolof9d43412021-01-12 11:11:34 -080047// setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070048//
49// Interval End Time
Matteo Scandolof9d43412021-01-12 11:11:34 -080050// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
51// (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070052//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080056// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070057//
58// Rtp Errors
Matteo Scandolof9d43412021-01-12 11:11:34 -080059// RTP errors: This attribute counts RTP packet errors. (R) (mandatory) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070060//
61// Packet Loss
62// Packet loss: This attribute represents the fraction of packets lost. This attribute is
Matteo Scandolof9d43412021-01-12 11:11:34 -080063// calculated at the end of the 15-min interval, and is undefined under the get current data
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070064// action. The value 0 indicates no packet loss, scaling linearly to 0xFFFF FFFF to indicate 100%
Matteo Scandolof9d43412021-01-12 11:11:34 -080065// packet loss (zero divided by zero is defined to be zero). (R) (mandatory) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070066//
67// Maximum Jitter
68// Maximum jitter: This attribute is a high water-mark that represents the maximum jitter
69// identified during the measured interval, expressed in RTP timestamp units. (R) (mandatory)
Matteo Scandolof9d43412021-01-12 11:11:34 -080070// (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070071//
72// Maximum Time Between Real_Time Transport Control Protocol Rtcp Packets
73// Maximum time between real-time transport control protocol (RTCP) packets: This attribute is a
74// high water-mark that represents the maximum time between RTCP packets during the measured
Matteo Scandolof9d43412021-01-12 11:11:34 -080075// interval, in milliseconds. (R) (mandatory) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070076//
77// Buffer Underflows
78// Buffer underflows: This attribute counts the number of times the reassembly buffer underflows.
79// In the case of continuous underflow caused by a loss of IP packets, a single buffer underflow
80// should be counted. If the IW function is implemented with multiple buffers, such as a packet
81// level buffer and a bit level buffer, then the underflow of either buffer increments this
Matteo Scandolof9d43412021-01-12 11:11:34 -080082// counter. (R) (mandatory) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070083//
84// Buffer Overflows
85// Buffer overflows: This attribute counts the number of times the reassembly buffer overflows. If
86// the IW function is implemented with multiple buffers, such as a packet level buffer and a bit
87// level buffer, then the overflow of either buffer increments this counter. (R) (mandatory)
Matteo Scandolof9d43412021-01-12 11:11:34 -080088// (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070089//
90type RtpPerformanceMonitoringHistoryData struct {
91 ManagedEntityDefinition
92 Attributes AttributeValueMap
93}
94
95func init() {
96 rtpperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
97 Name: "RtpPerformanceMonitoringHistoryData",
98 ClassID: 144,
99 MessageTypes: mapset.NewSetWith(
100 Create,
101 Delete,
102 Get,
103 Set,
104 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800105 AllowedAttributeMask: 0xff00,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700106 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -0800107 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
108 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
109 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
110 3: Uint32Field("RtpErrors", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
111 4: Uint32Field("PacketLoss", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
112 5: Uint32Field("MaximumJitter", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
113 6: Uint32Field("MaximumTimeBetweenRealTimeTransportControlProtocolRtcpPackets", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
114 7: Uint32Field("BufferUnderflows", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
115 8: Uint32Field("BufferOverflows", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
116 },
117 Access: CreatedByOlt,
118 Support: UnknownSupport,
119 Alarms: AlarmMap{
120 0: "RTP errors",
121 1: "Packet loss(Note 1)",
122 2: "Maximum jitter",
123 3: "Max time between RTCP packets",
124 4: "Buffer underflows",
125 5: "Buffer overflows",
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700126 },
127 }
128}
129
Matteo Scandolof9d43412021-01-12 11:11:34 -0800130// NewRtpPerformanceMonitoringHistoryData (class ID 144) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700131// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800132// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700133func NewRtpPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800134 return NewManagedEntity(*rtpperformancemonitoringhistorydataBME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700135}