-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathmetric_types.go
More file actions
28 lines (25 loc) · 868 Bytes
/
metric_types.go
File metadata and controls
28 lines (25 loc) · 868 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
28
package statusio
import "time"
type Metric struct {
StatuspageID string `json:"statuspage_id"`
MetricID string `json:"metric_id"`
DayAvg float64 `json:"day_avg"`
DayStart int64 `json:"day_start"`
DayDates []time.Time `json:"day_dates"`
DayValues []float64 `json:"day_values"`
WeekAvg float64 `json:"week_avg"`
WeekStart int64 `json:"week_start"`
WeekDates []time.Time `json:"week_dates"`
WeekValues []float64 `json:"week_values"`
MonthAvg float64 `json:"month_avg"`
MonthStart int64 `json:"month_start"`
MonthDates []time.Time `json:"month_dates"`
MonthValues []float64 `json:"month_values"`
}
type MetricUpdateResponse struct {
Status struct {
Error string `json:"error"`
Message string `json:"message"`
} `json:"status"`
Result bool `json:"result"`
}