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 TcpUdpPerformanceMonitoringHistoryDataClassId ClassID = ClassID(342) |
| 25 | |
| 26 | var tcpudpperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 27 | |
| 28 | // TcpUdpPerformanceMonitoringHistoryData (class ID #342) |
| 29 | // This ME collects PM data related to a TCP or UDP port. Instances of this ME are created and |
| 30 | // 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 TCP/UDP config data 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 TCP/UDP config data 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 | // Socket Failed |
| 53 | // Socket failed: This attribute is incremented when an attempt to create a socket associated with |
| 54 | // a port fails. (R) (mandatory) (2 bytes) |
| 55 | // |
| 56 | // Listen Failed |
| 57 | // Listen failed: This attribute is incremented when an attempt by a service to listen for a |
| 58 | // request on a port fails. (R) (mandatory) (2 bytes) |
| 59 | // |
| 60 | // Bind Failed |
| 61 | // Bind failed: This attribute is incremented when an attempt by a service to bind to a port fails. |
| 62 | // (R) (mandatory) (2 bytes) |
| 63 | // |
| 64 | // Accept Failed |
| 65 | // Accept failed: This attribute is incremented when an attempt to accept a connection on a port |
| 66 | // fails. (R) (mandatory) (2 bytes) |
| 67 | // |
| 68 | // Select Failed |
| 69 | // Select failed: This attribute is incremented when an attempt to perform a select on a group of |
| 70 | // ports fails. (R) (mandatory) (2 bytes) |
| 71 | // |
| 72 | type TcpUdpPerformanceMonitoringHistoryData struct { |
| 73 | ManagedEntityDefinition |
| 74 | Attributes AttributeValueMap |
| 75 | } |
| 76 | |
| 77 | func init() { |
| 78 | tcpudpperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 79 | Name: "TcpUdpPerformanceMonitoringHistoryData", |
| 80 | ClassID: 342, |
| 81 | MessageTypes: mapset.NewSetWith( |
| 82 | Create, |
| 83 | Delete, |
| 84 | Get, |
| 85 | Set, |
| 86 | ), |
| 87 | AllowedAttributeMask: 0XFE00, |
| 88 | AttributeDefinitions: AttributeDefinitionMap{ |
| 89 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 90 | 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1), |
| 91 | 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2), |
| 92 | 3: Uint16Field("SocketFailed", 0, mapset.NewSetWith(Read), false, false, false, false, 3), |
| 93 | 4: Uint16Field("ListenFailed", 0, mapset.NewSetWith(Read), false, false, false, false, 4), |
| 94 | 5: Uint16Field("BindFailed", 0, mapset.NewSetWith(Read), false, false, false, false, 5), |
| 95 | 6: Uint16Field("AcceptFailed", 0, mapset.NewSetWith(Read), false, false, false, false, 6), |
| 96 | 7: Uint16Field("SelectFailed", 0, mapset.NewSetWith(Read), false, false, false, false, 7), |
| 97 | }, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // NewTcpUdpPerformanceMonitoringHistoryData (class ID 342 creates the basic |
| 102 | // Managed Entity definition that is used to validate an ME of this type that |
| 103 | // is received from the wire, about to be sent on the wire. |
| 104 | func NewTcpUdpPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 105 | return NewManagedEntity(tcpudpperformancemonitoringhistorydataBME, params...) |
| 106 | } |