Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | /* |
| 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 | package generated |
| 21 | |
| 22 | import "github.com/deckarep/golang-set" |
| 23 | |
| 24 | const RtpPerformanceMonitoringHistoryDataClassId ClassID = ClassID(144) |
| 25 | |
| 26 | var rtpperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 27 | |
| 28 | // RtpPerformanceMonitoringHistoryData (class ID #144) |
| 29 | // This ME collects PM data related to an RTP session. Instances of this ME are created and deleted |
| 30 | // 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 ME. (R, |
| 41 | // setbycreate) (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 | // Rtp Errors |
| 53 | // RTP errors: This attribute counts RTP packet errors. (R) (mandatory) (4 bytes) |
| 54 | // |
| 55 | // Packet Loss |
| 56 | // Packet loss: This attribute represents the fraction of packets lost. This attribute is |
| 57 | // calculated at the end of the 15 min interval, and is undefined under the get current data |
| 58 | // action. The value 0 indicates no packet loss, scaling linearly to 0xFFFF FFFF to indicate 100% |
| 59 | // packet loss (zero divided by zero is defined to be zero). (R) (mandatory) (4 bytes) |
| 60 | // |
| 61 | // Maximum Jitter |
| 62 | // Maximum jitter: This attribute is a high water-mark that represents the maximum jitter |
| 63 | // identified during the measured interval, expressed in RTP timestamp units. (R) (mandatory) |
| 64 | // (4 bytes) |
| 65 | // |
| 66 | // Maximum Time Between Real_Time Transport Control Protocol Rtcp Packets |
| 67 | // Maximum time between real-time transport control protocol (RTCP) packets: This attribute is a |
| 68 | // high water-mark that represents the maximum time between RTCP packets during the measured |
| 69 | // interval, in milliseconds. (R) (mandatory) (4 bytes) |
| 70 | // |
| 71 | // Buffer Underflows |
| 72 | // Buffer underflows: This attribute counts the number of times the reassembly buffer underflows. |
| 73 | // In the case of continuous underflow caused by a loss of IP packets, a single buffer underflow |
| 74 | // should be counted. If the IW function is implemented with multiple buffers, such as a packet |
| 75 | // level buffer and a bit level buffer, then the underflow of either buffer increments this |
| 76 | // counter. (R) (mandatory) (4 bytes) |
| 77 | // |
| 78 | // Buffer Overflows |
| 79 | // Buffer overflows: This attribute counts the number of times the reassembly buffer overflows. If |
| 80 | // the IW function is implemented with multiple buffers, such as a packet level buffer and a bit |
| 81 | // level buffer, then the overflow of either buffer increments this counter. (R) (mandatory) |
| 82 | // (4 bytes) |
| 83 | // |
| 84 | type RtpPerformanceMonitoringHistoryData struct { |
| 85 | ManagedEntityDefinition |
| 86 | Attributes AttributeValueMap |
| 87 | } |
| 88 | |
| 89 | func init() { |
| 90 | rtpperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 91 | Name: "RtpPerformanceMonitoringHistoryData", |
| 92 | ClassID: 144, |
| 93 | MessageTypes: mapset.NewSetWith( |
| 94 | Create, |
| 95 | Delete, |
| 96 | Get, |
| 97 | Set, |
| 98 | ), |
| 99 | AllowedAttributeMask: 0XFF00, |
| 100 | AttributeDefinitions: AttributeDefinitionMap{ |
| 101 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 102 | 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1), |
| 103 | 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2), |
| 104 | 3: Uint32Field("RtpErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 3), |
| 105 | 4: Uint32Field("PacketLoss", 0, mapset.NewSetWith(Read), false, false, false, false, 4), |
| 106 | 5: Uint32Field("MaximumJitter", 0, mapset.NewSetWith(Read), false, false, false, false, 5), |
| 107 | 6: Uint32Field("MaximumTimeBetweenRealTimeTransportControlProtocolRtcpPackets", 0, mapset.NewSetWith(Read), false, false, false, false, 6), |
| 108 | 7: Uint32Field("BufferUnderflows", 0, mapset.NewSetWith(Read), false, false, false, false, 7), |
| 109 | 8: Uint32Field("BufferOverflows", 0, mapset.NewSetWith(Read), false, false, false, false, 8), |
| 110 | }, |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | // NewRtpPerformanceMonitoringHistoryData (class ID 144 creates the basic |
| 115 | // Managed Entity definition that is used to validate an ME of this type that |
| 116 | // is received from the wire, about to be sent on the wire. |
| 117 | func NewRtpPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 118 | return NewManagedEntity(rtpperformancemonitoringhistorydataBME, params...) |
| 119 | } |