-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
24 lines (20 loc) · 1.02 KB
/
types.go
File metadata and controls
24 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package unstructured
import "time"
// DagNodeConnectionCheck represents a connection check result for a DAG node (source or destination connector).
type DagNodeConnectionCheck struct {
ID string `json:"id"`
Status ConnectionCheckStatus `json:"status"`
Reason *string `json:"reason,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
ReportedAt *string `json:"reported_at,omitempty"`
}
// ConnectionCheckStatus represents the status of a connection check (scheduled, success, or failure).
type ConnectionCheckStatus string
const (
// ConnectionCheckStatusScheduled indicates the connection check is scheduled.
ConnectionCheckStatusScheduled ConnectionCheckStatus = "SCHEDULED"
// ConnectionCheckStatusSuccess indicates the connection check succeeded.
ConnectionCheckStatusSuccess ConnectionCheckStatus = "SUCCESS"
// ConnectionCheckStatusFailure indicates the connection check failed.
ConnectionCheckStatusFailure ConnectionCheckStatus = "FAILURE"
)