-
Notifications
You must be signed in to change notification settings - Fork 5
/
types.go
44 lines (37 loc) · 807 Bytes
/
types.go
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package main
import "github.com/brendanporter/quack"
type UnhealthyPingResult struct {
Target string
Latency float64
Time int64
MessageType string `json:"mt"`
}
type TraceResult struct {
Hops []quack.PingResult
MessageType string `json:"mt"`
}
type PathsResult struct {
Paths map[string]*PathStats
MessageType string `json:"mt"`
}
type HostsResult struct {
Hosts map[string]*HostStats
MessageType string `json:"mt"`
}
type HostStats struct {
HostName string
HostDNSName string
AvgLatency float64
MaxLatency float64
MinLatency float64
TripCount int
HighLatency100 int
HighLatency400 int
HighLatency700 int
}
type PathStats struct {
PathName string
MaxLatencyAvg float64
AvgLatency float64
TripCount int
}