seba-631-632: exporter enhancements for logger and topics
Change-Id: If10e56a7ccfce758712ea02df9656d4f413dbf84
diff --git a/types.go b/types.go
index b3ecd59..8cb41ff 100644
--- a/types.go
+++ b/types.go
@@ -14,8 +14,33 @@
package main
-// KPI Events format
+// configuration
+type BrokerInfo struct {
+ Name string `yaml: name`
+ Host string `yaml: host`
+ Description string `yaml: description`
+ Topics []string `yaml: topics`
+}
+type LoggerInfo struct {
+ LogLevel string `yaml: loglevel`
+ Host string `yaml: host`
+}
+
+type TargetInfo struct {
+ Type string `yaml: type`
+ Name string `yaml: name`
+ Port int `yaml: port`
+ Description string `yaml: description`
+}
+
+type Config struct {
+ Broker BrokerInfo `yaml: broker`
+ Logger LoggerInfo `yaml: logger`
+ Target TargetInfo `yaml: "target"`
+}
+
+// KPI Events format
type Metrics struct {
TxBytes float64 `json:"tx_bytes"`
TxPackets float64 `json:"tx_packets"`
@@ -79,3 +104,8 @@
DeviceID string `json:"deviceId"`
Ports []*OnosPort `json:"ports"`
}
+
+type ImporterKPI struct {
+ DeviceID string `json: "deviceId"`
+ // TODO: add metrics data
+}
\ No newline at end of file