We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2684cd1 + f841ed1 commit c48a0f3Copy full SHA for c48a0f3
1 file changed
perfops/run.go
@@ -56,6 +56,7 @@ type (
56
Output interface{} `json:"output,omitempty"`
57
Message string `json:"message,omitempty"`
58
Finished interface{} `json:"finished"`
59
+ Timing *RunTiming `json:"timing,omitempty"`
60
}
61
62
// RunItem represents an item of an MTR or ping output.
@@ -72,6 +73,14 @@ type (
72
73
Items []*RunItem `json:"items,omitempty"`
74
75
76
+ // RunTiming represents the test timings.
77
+ RunTiming struct {
78
+ Total float64 `json:"total,omitempty,string"`
79
+ DNS float64 `json:"dns,omitempty,string"`
80
+ Connect float64 `json:"connect,omitempty,string"`
81
+ TTFB float64 `json:"ttfb,omityempty,string"`
82
+ }
83
+
84
// DNSPerfRequest represents the parameters for a DNS perf request.
85
DNSPerfRequest struct {
86
Target string `json:"target,omitempty"`
0 commit comments