[SEBA-293] Agg swith portstats
Change-Id: Ie11fe348d60841fda1fdb52ba57c3accf063ce10
diff --git a/types.go b/types.go
index 1e29fbe..b3ecd59 100644
--- a/types.go
+++ b/types.go
@@ -59,8 +59,23 @@
Metadata *Metadata `json:"metadata"`
}
-type KPI struct {
+type VolthaKPI struct {
Type string `json:"type"`
Timestamp float64 `json:"ts"`
SliceDatas []*SliceData `json:"slice_data"`
}
+
+type OnosPort struct {
+ PortID string `json:"portId"`
+ RxPackets float64 `json:"pktRx"`
+ TxPackets float64 `json:"pktTx"`
+ RxBytes float64 `json:"bytesRx"`
+ TxBytes float64 `json:"bytesTx"`
+ RxPacketsDrop float64 `json:"pktRxDrp"`
+ TxPacketsDrop float64 `json:"pktTxDrp"`
+}
+
+type OnosKPI struct {
+ DeviceID string `json:"deviceId"`
+ Ports []*OnosPort `json:"ports"`
+}