blob: d798af673f04157f96676026239d719470187ff0 [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}