-
Notifications
You must be signed in to change notification settings - Fork 662
/
event.go
40 lines (37 loc) · 1.47 KB
/
event.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
package types
// workflow data
type WorkflowEvent struct {
EventType string `json:"event_type"`
UID string `json:"uid"`
Namespace string `json:"namespace"`
Name string `json:"name"`
CreationTimestamp string `json:"creationTimestamp"`
Phase string `json:"phase"`
StartedAt string `json:"startedAt"`
FinishedAt string `json:"finishedAt"`
Nodes map[string]Node `json:"nodes"`
}
// each node/step data
type Node struct {
Name string `json:"name"`
Phase string `json:"phase"`
StartedAt string `json:"startedAt"`
FinishedAt string `json:"finishedAt"`
Children []string `json:"children"`
Type string `json:"type"`
ChaosExp *ChaosData `json:"chaosData,omitempty"`
}
// chaos data
type ChaosData struct {
EngineUID string `json:"engineUID"`
EngineName string `json:"engineName"`
Namespace string `json:"namespace"`
ExperimentName string `json:"experimentName"`
ExperimentStatus string `json:"experimentStatus"`
LastUpdatedAt string `json:"lastUpdatedAt"`
ExperimentVerdict string `json:"experimentVerdict"`
ExperimentPod string `json:"experimentPod"`
RunnerPod string `json:"runnerPod"`
ProbeSuccessPercentage string `json:"probeSuccessPercentage"`
FailStep string `json:"failStep"`
}