blob: 621775ab8e1cc0a1a68c02eede65850ebf4f726f [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 {
50 UDropEvents *uint64 `json:"upstream_drop_events,omitempty"`
51 UOctets *uint64 `json:"upstream_octets,omitempty"`
52 UFrames *uint64 `json:"upstream_frames,omitempty"`
53 UBroadcastFrames *uint64 `json:"upstream_broadcast_frames,omitempty"`
54 UMulticastFrames *uint64 `json:"upstream_multicast_frames,omitempty"`
55 UCrcErroredFrames *uint64 `json:"upstream_crc_errored_frames,omitempty"`
56 UUndersizeFrames *uint64 `json:"upstream_undersize_frames,omitempty"`
57 UOversizeFrames *uint64 `json:"upstream_oversize_frames,omitempty"`
58 UFrames_64Octets *uint64 `json:"upstream_frames_64_octets,omitempty"`
59 UFrames_65To_127Octets *uint64 `json:"upstream_frames_65_to_127_octets,omitempty"`
60 UFrames_128To_255Octets *uint64 `json:"upstream_frames_128_to_255_octets,omitempty"`
61 UFrames_256To_511Octets *uint64 `json:"upstream_frames_256_to_511_octets,omitempty"`
62 UFrames_512To_1023Octets *uint64 `json:"upstream_frames_512_to_1023_octets,omitempty"`
63 UFrames_1024To_1518Octets *uint64 `json:"upstream_frames_1024_to_1518_octets,omitempty"`
64 DDropEvents *uint64 `json:"downstream_drop_events,omitempty"`
65 DOctets *uint64 `json:"downstream_octets,omitempty"`
66 DFrames *uint64 `json:"downstream_frames,omitempty"`
67 DBroadcastFrames *uint64 `json:"downstream_broadcast_frames,omitempty"`
68 DMulticastFrames *uint64 `json:"downstream_multicast_frames,omitempty"`
69 DCrcErroredFrames *uint64 `json:"downstream_crc_errored_frames,omitempty"`
70 DUndersizeFrames *uint64 `json:"downstream_undersize_frames,omitempty"`
71 DOversizeFrames *uint64 `json:"downstream_oversize_frames,omitempty"`
72 DFrames_64Octets *uint64 `json:"downstream_frames_64_octets,omitempty"`
73 DFrames_65To_127Octets *uint64 `json:"downstream_frames_65_to_127_octets,omitempty"`
74 DFrames_128To_255Octets *uint64 `json:"downstream_frames_128_to_255_octets,omitempty"`
75 DFrames_256To_511Octets *uint64 `json:"downstream_frames_256_to_511_octets,omitempty"`
76 DFrames_512To_1023Octets *uint64 `json:"downstream_frames_512_to_1023_octets,omitempty"`
77 DFrames_1024To_1518Octets *uint64 `json:"downstream_frames_1024_to_1518_octets,omitempty"`
78}