-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.go
More file actions
27 lines (20 loc) · 743 Bytes
/
api.go
File metadata and controls
27 lines (20 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
import "github.com/kszafran/junction-2018/models"
type CiscoHealth *models.GetClientDetailResponseResponseTopologyNodesItems0
type ClientHealth struct {
Name string `json:"name,omitempty"`
MAC string `json:"mac,omitempty"`
Type string `json:"type,omitempty"`
Sensors SensorReadings `json:"data_history,omitempty"`
CiscoHealth CiscoHealth `json:"cisco_health_data"`
}
type SensorReadings map[string][]Reading
type Reading struct {
Date int64 `json:"date"`
Value string `json:"value"`
}
type Elements []*models.PathResponseResultResponseNetworkElementsInfoItems0
type PathTrace struct {
Duration int64 `json:"duration"`
Elements Elements `json:"elements"`
}