-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresult.go
More file actions
28 lines (24 loc) · 937 Bytes
/
result.go
File metadata and controls
28 lines (24 loc) · 937 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 types
import (
"time"
)
type ListHealthchecksResultsInput struct {
StartDate time.Time `query:"start-date" validate:"required"`
EndDate time.Time `query:"end-date" validate:"required"`
HealthcheckID string `query:"healthcheck-id" validate:"omitempty,uuid"`
Page int `query:"page" validate:"omitempty,min=1"`
Success *bool `query:"success"`
}
type HealthcheckResult struct {
ID string `json:"id"`
Success bool `json:"success"`
Labels map[string]string `json:"labels,omitempty"`
CreatedAt time.Time `json:"created-at"`
Summary string `json:"summary"`
Message string `json:"message"`
HealthcheckID string `json:"healthcheck-id"`
Duration int64 `json:"duration"`
}
type ListHealthchecksResultsOutput struct {
Result []HealthcheckResult `json:"result"`
}