...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package types
17
18 import (
19 "github.com/chaos-mesh/chaos-mesh/api/v1alpha1"
20 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/core"
21 "github.com/chaos-mesh/chaos-mesh/pkg/status"
22 )
23
24
25 type Archive = core.ObjectBase
26
27
32 type ArchiveDetail struct {
33 Archive
34 KubeObject core.KubeObjectDesc `json:"kube_object"`
35 }
36
37
38 type Experiment struct {
39 core.ObjectBase
40 Status status.ChaosStatus `json:"status"`
41 FailedMessage string `json:"failed_message,omitempty"`
42 }
43
44
49 type ExperimentDetail struct {
50 Experiment
51 KubeObject core.KubeObjectDesc `json:"kube_object"`
52 }
53
54
55 type PhysicalMachine struct {
56 Name string `json:"name"`
57 Namespace string `json:"namespace"`
58 Address string `json:"address"`
59 }
60
61
62 type Pod struct {
63 IP string `json:"ip"`
64 Name string `json:"name"`
65 Namespace string `json:"namespace"`
66 State string `json:"state"`
67 }
68
69
70 type Schedule struct {
71 core.ObjectBase
72 Status status.ScheduleStatus `json:"status"`
73 }
74
75
80 type ScheduleDetail struct {
81 Schedule
82 ExperimentUIDs []string `json:"experiment_uids"`
83 KubeObject core.KubeObjectDesc `json:"kube_object"`
84 }
85
86 type StatusCheckTemplateBase struct {
87 Namespace string `json:"namespace"`
88 Name string `json:"name"`
89 UID string `json:"uid"`
90 Description string `json:"description,omitempty"`
91 Created string `json:"created_at"`
92 }
93
94
99 type StatusCheckTemplateDetail struct {
100 StatusCheckTemplateBase `json:",inline,omitempty"`
101 Spec v1alpha1.StatusCheckTemplate `json:"spec"`
102 }
103
104 type StatusCheckTemplate struct {
105 Namespace string `json:"namespace"`
106 Name string `json:"name"`
107 Description string `json:"description,omitempty"`
108 Spec v1alpha1.StatusCheckTemplate `json:"spec"`
109 }
110