Skip to content

Commit d1fade7

Browse files
committed
feat: add component checks attribute for system template
1 parent 7b76b6b commit d1fade7

File tree

4 files changed

+3554
-21
lines changed

4 files changed

+3554
-21
lines changed

api/v1/system_types.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@ type SystemTemplate struct {
1414
Status SystemTemplateStatus `json:"status,omitempty"`
1515
}
1616
type SystemTemplateSpec struct {
17-
Type string `json:"type,omitempty"`
18-
Id *Template `json:"id,omitempty"` //nolint
19-
Schedule string `json:"schedule,omitempty"`
20-
Tooltip string `json:"tooltip,omitempty"`
21-
Icon string `json:"icon,omitempty"`
22-
Text string `json:"text,omitempty"`
23-
Label string `json:"label,omitempty"`
24-
Owner Owner `json:"owner,omitempty"`
25-
Components []ComponentSpec `json:"components,omitempty"`
26-
Properties Properties `json:"properties,omitempty"`
27-
Configs []Config `json:"configs,omitempty"`
17+
Type string `json:"type,omitempty"`
18+
Id *Template `json:"id,omitempty"` //nolint
19+
Schedule string `json:"schedule,omitempty"`
20+
Tooltip string `json:"tooltip,omitempty"`
21+
Icon string `json:"icon,omitempty"`
22+
Text string `json:"text,omitempty"`
23+
Label string `json:"label,omitempty"`
24+
Owner Owner `json:"owner,omitempty"`
25+
Components []ComponentSpec `json:"components,omitempty"`
26+
Properties Properties `json:"properties,omitempty"`
27+
Configs []Config `json:"configs,omitempty"`
28+
ComponentChecks ComponentChecks `json:"checks,omitempty"`
2829
}
2930

3031
func (s SystemTemplate) IsEmpty() bool {

0 commit comments

Comments
 (0)