-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline_check.go
37 lines (31 loc) · 1.04 KB
/
pipeline_check.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
package types
import (
"time"
)
// PipelineCheck type for pipeline level checks.
type PipelineCheck struct {
Check
ID string `json:"id" yaml:"id"`
CreatedAt time.Time `json:"createdAt" yaml:"createdAt"`
UpdatedAt time.Time `json:"updatedAt" yaml:"updatedAt"`
}
// CreatePipelineCheck request payload for creating a core_instance check.
type CreatePipelineCheck Check
// PipelineChecksParams request payload for querying the core_instance checks.
type PipelineChecksParams struct {
Last *uint
Before *string
}
// PipelineChecks paginated list.
type PipelineChecks struct {
Items []PipelineCheck `json:"items" yaml:"items"`
EndCursor *string `json:"endCursor" yaml:"endCursor"`
}
// UpdatePipelineCheck request payload for updating a core_instance check.
type UpdatePipelineCheck struct {
Protocol *PipelinePortProtocol `json:"protocol"`
Status *CheckStatus `json:"status"`
Retries *uint `json:"retries"`
Host *string `json:"host"`
Port *uint `json:"port"`
}