-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
51 lines (41 loc) · 1 KB
/
model.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
45
46
47
48
49
50
51
package main
type Status struct {
Elasticsearch string `json:"elasticsearch" yaml:"redis"`
Redis bool `json:"redis" yaml:"redis"`
}
type Process struct {
MemoryUsed int `json:"memory_used" yaml:"memory_used"`
}
type CheckHealthResponse struct {
Status Status `json:"status" yaml:"status"`
Process Process `json:"process" yaml:"process"`
}
type TestSuite struct {
TestCalls map[int]TestCalls
}
type TestCalls []TestCall
type TestCallsReport struct {
N int `yaml:"n"`
AverageTime int `yaml:"average_time"`
MinimumTime int `yaml:"min_time"`
MaximumTime int `yaml:"max_time"`
AverageMemory int `yaml:"average_memory"`
}
type TestCall struct {
User User
Resp CheckHealthResponse `yaml:"resp"`
From int64 `yaml:"from"`
To int64 `yaml:"to"`
}
type User struct {
Id int
ActiveFrom int
ActiveTo int
}
type TestDuration struct {
Duration int
}
type Scenario struct {
Calls []TestCall `yaml:"calls"`
CallReports map[int]TestCallsReport `yaml:"report"`
}