blob: b0188a51d811d13c92a0a3056c240f5ee5c65474 [file] [log] [blame]
Himani Chawla40acc122021-05-26 18:52:29 +05301/*
2 * Copyright 2021-present Ciena Corporation
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 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package model
17
18type OnuStats struct {
19 IntfId *uint32 `json:"intfid,omitempty"`
20 OnuId *uint32 `json:"onuid,omitempty"`
21 PositiveDrift *uint64 `json:"positivedrift,omitempty"`
22 NegativeDrift *uint64 `json:"negativedrift,omitempty"`
23 DelimiterMissDetection *uint64 `json:"delimitermissdetection,omitempty"`
24 BipErrors *uint64 `json:"biperrors,omitempty"`
25 BipUnits *uint64 `json:"bipunits,omitempty"`
26 FecCorrectedSymbols *uint64 `json:"feccorrectedsymbols,omitempty"`
27 FecCodewordsCorrected *uint64 `json:"feccodewordscorrected,omitempty"`
28 FecCodewordsUncorrectable *uint64 `json:"feccodewordsuncorrectable,omitempty"`
29 FecCodewords *uint64 `json:"feccodewords,omitempty"`
30 FecCorrectedUnits *uint64 `json:"feccorrectedunits,omitempty"`
31 XgemKeyErrors *uint64 `json:"xgemkeyerrors,omitempty"`
32 XgemLoss *uint64 `json:"xgemloss,omitempty"`
33 RxPloamsError *uint64 `json:"rxploamserror,omitempty"`
34 RxPloamsNonIdle *uint64 `json:"rxploamsnonidle,omitempty"`
35 RxOmci *uint64 `json:"rxomci,omitempty"`
36 TxOmci *uint64 `json:"txomci,omitempty"`
37 RxOmciPacketsCrcError *uint64 `json:"rxomcipacketscrcerror,omitempty"`
38 RxBytes *uint64 `json:"rxbytes,omitempty"`
39 RxPackets *uint64 `json:"rxpackets,omitempty"`
40 TxBytes *uint64 `json:"txbytes,omitempty"`
41 TxPackets *uint64 `json:"txpackets,omitempty"`
42 BerReported *uint64 `json:"berreported,omitempty"`
43 LcdgErrors *uint64 `json:"lcdgerrors,omitempty"`
44 RdiErrors *uint64 `json:"rdierrors,omitempty"`
45 // reported timestamp in seconds since epoch
46 Timestamp *uint32 `json:"timestamp,omitempty"`
47}
Himani Chawla553a1392021-06-10 23:39:17 +053048
49type OnuEthernetFrameExtendedPm struct {
Himani Chawlabac0f892021-08-25 17:14:06 +053050 PmFormat string `json:"pm_format"`
Himani Chawla553a1392021-06-10 23:39:17 +053051 UDropEvents *uint64 `json:"upstream_drop_events,omitempty"`
52 UOctets *uint64 `json:"upstream_octets,omitempty"`
53 UFrames *uint64 `json:"upstream_frames,omitempty"`
54 UBroadcastFrames *uint64 `json:"upstream_broadcast_frames,omitempty"`
55 UMulticastFrames *uint64 `json:"upstream_multicast_frames,omitempty"`
56 UCrcErroredFrames *uint64 `json:"upstream_crc_errored_frames,omitempty"`
57 UUndersizeFrames *uint64 `json:"upstream_undersize_frames,omitempty"`
58 UOversizeFrames *uint64 `json:"upstream_oversize_frames,omitempty"`
59 UFrames_64Octets *uint64 `json:"upstream_frames_64_octets,omitempty"`
60 UFrames_65To_127Octets *uint64 `json:"upstream_frames_65_to_127_octets,omitempty"`
61 UFrames_128To_255Octets *uint64 `json:"upstream_frames_128_to_255_octets,omitempty"`
62 UFrames_256To_511Octets *uint64 `json:"upstream_frames_256_to_511_octets,omitempty"`
63 UFrames_512To_1023Octets *uint64 `json:"upstream_frames_512_to_1023_octets,omitempty"`
64 UFrames_1024To_1518Octets *uint64 `json:"upstream_frames_1024_to_1518_octets,omitempty"`
65 DDropEvents *uint64 `json:"downstream_drop_events,omitempty"`
66 DOctets *uint64 `json:"downstream_octets,omitempty"`
67 DFrames *uint64 `json:"downstream_frames,omitempty"`
68 DBroadcastFrames *uint64 `json:"downstream_broadcast_frames,omitempty"`
69 DMulticastFrames *uint64 `json:"downstream_multicast_frames,omitempty"`
70 DCrcErroredFrames *uint64 `json:"downstream_crc_errored_frames,omitempty"`
71 DUndersizeFrames *uint64 `json:"downstream_undersize_frames,omitempty"`
72 DOversizeFrames *uint64 `json:"downstream_oversize_frames,omitempty"`
73 DFrames_64Octets *uint64 `json:"downstream_frames_64_octets,omitempty"`
74 DFrames_65To_127Octets *uint64 `json:"downstream_frames_65_to_127_octets,omitempty"`
75 DFrames_128To_255Octets *uint64 `json:"downstream_frames_128_to_255_octets,omitempty"`
76 DFrames_256To_511Octets *uint64 `json:"downstream_frames_256_to_511_octets,omitempty"`
77 DFrames_512To_1023Octets *uint64 `json:"downstream_frames_512_to_1023_octets,omitempty"`
78 DFrames_1024To_1518Octets *uint64 `json:"downstream_frames_1024_to_1518_octets,omitempty"`
79}