blob: dd55c8238432bbb5c771c1cf2619b0a28c970d4a [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 MgcPerformanceMonitoringHistoryDataClassId ClassID = ClassID(156)
25
26var mgcperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// MgcPerformanceMonitoringHistoryData (class ID #156)
29// The MGC monitoring data ME provides run-time statistics for an active MGC association. Instances
30// of this ME are created 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 MGC config data or MGC config
36// portal ME.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
41// identical ID, this ME is implicitly linked to an instance of the associated MGC config data or
42// to the MGC config portal ME. If a non-OMCI configuration method is used for VoIP, there can be
43// only one live ME instance, associated with the MGC config portal, and with ME ID 0. (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// Received Messages
56// Received messages: This attribute counts the number of received Megaco messages on this
57// association, as defined by [ITUT H.341]. (R) (mandatory) (4 bytes)
58//
59// Received Octets
60// Received octets: This attribute counts the total number of octets received on this association,
61// as defined by [ITU-T H.341]. (R) (mandatory) (4 bytes)
62//
63// Sent Messages
64// Sent messages: This attribute counts the total number of Megaco messages sent over this
65// association, as defined by [ITU-T H.341]. (R) (mandatory) (4 bytes)
66//
67// Sent Octets
68// Sent octets: This attribute counts the total number of octets sent over this association, as
69// defined by [ITU-T H.341]. (R) (mandatory) (4 bytes)
70//
71// Protocol Errors
72// (R) (mandatory) (4 bytes)
73//
74// Transport Losses
75// Transport losses: This attribute counts the total number of transport losses (e.g., socket
76// problems) detected on this association. A link loss is defined as loss of communication with the
77// remote entity due to hardware/transient problems, or problems in related software. (R)
78// (mandatory) (4 bytes)
79//
80// Last Detected Event
81// (R) (mandatory) (1 byte)
82//
83// Last Detected Event Time
84// Last detected event time: This attribute reports the time in seconds since the last event on
85// this association was detected, as defined by [ITU-T H.341]. (R) (mandatory) (4 bytes)
86//
87// Last Detected Reset Time
88// Last detected reset time: This attribute reports the time in seconds since these statistics were
89// last reset, as defined by [ITU-T H.341]. Under normal circumstances, a get action on this
90// attribute would return 900 s to indicate a completed 15 min interval. (R) (mandatory) (4 bytes)
91//
92type MgcPerformanceMonitoringHistoryData struct {
93 ManagedEntityDefinition
94 Attributes AttributeValueMap
95}
96
97func init() {
98 mgcperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
99 Name: "MgcPerformanceMonitoringHistoryData",
100 ClassID: 156,
101 MessageTypes: mapset.NewSetWith(
102 Create,
103 Delete,
104 Get,
105 Set,
106 ),
107 AllowedAttributeMask: 0XFFE0,
108 AttributeDefinitions: AttributeDefinitionMap{
109 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
110 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
111 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
112 3: Uint32Field("ReceivedMessages", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
113 4: Uint32Field("ReceivedOctets", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
114 5: Uint32Field("SentMessages", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
115 6: Uint32Field("SentOctets", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
116 7: Uint32Field("ProtocolErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
117 8: Uint32Field("TransportLosses", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
118 9: ByteField("LastDetectedEvent", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
119 10: Uint32Field("LastDetectedEventTime", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
120 11: Uint32Field("LastDetectedResetTime", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
121 },
122 }
123}
124
125// NewMgcPerformanceMonitoringHistoryData (class ID 156 creates the basic
126// Managed Entity definition that is used to validate an ME of this type that
127// is received from the wire, about to be sent on the wire.
128func NewMgcPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
129 return NewManagedEntity(mgcperformancemonitoringhistorydataBME, params...)
130}