@@ -10,35 +10,35 @@ import (
10
10
11
11
type (
12
12
AuditConfigValidation struct {
13
- Enabled bool `yaml :"enabled"`
14
- Metrics * bool `yaml :"metrics"`
15
- Query * string `yaml :"query,omitempty"`
16
- Timespan * string `yaml :"timespan,omitempty"`
17
- Workspaces * []string `yaml :"workspaces,omitempty"`
18
- AdditionalWorkspaces * []string `yaml :"additionalWorkspaces,omitempty"`
19
- Rules []* AuditConfigValidationRule `yaml :"rules,omitempty"`
20
- Prometheus AuditConfigValidationPrometheus `yaml :"prometheus,omitempty"`
21
- Report AuditConfigValidationReport `yaml :"report,omitempty"`
22
- Mapping * map [string ]string `yaml :"mapping,omitempty"`
23
- Enrich bool `yaml :"enrich,omitempty"`
24
- ScopeRules map [string ][]* AuditConfigValidationRule `yaml :"scopeRules,omitempty"`
13
+ Enabled bool `json :"enabled"`
14
+ Metrics * bool `json :"metrics"`
15
+ Query * string `json :"query,omitempty"`
16
+ Timespan * string `json :"timespan,omitempty"`
17
+ Workspaces * []string `json :"workspaces,omitempty"`
18
+ AdditionalWorkspaces * []string `json :"additionalWorkspaces,omitempty"`
19
+ Rules []* AuditConfigValidationRule `json :"rules,omitempty"`
20
+ Prometheus AuditConfigValidationPrometheus `json :"prometheus,omitempty"`
21
+ Report AuditConfigValidationReport `json :"report,omitempty"`
22
+ Mapping * map [string ]string `json :"mapping,omitempty"`
23
+ Enrich bool `json :"enrich,omitempty"`
24
+ ScopeRules map [string ][]* AuditConfigValidationRule `json :"scopeRules,omitempty"`
25
25
}
26
26
27
27
AuditConfigValidationPrometheus struct {
28
- Labels map [string ]string `yaml :"labels,omitempty"`
28
+ Labels map [string ]string `json :"labels,omitempty"`
29
29
}
30
30
31
31
AuditConfigValidationReport struct {
32
32
Filter struct {
33
- Status string `yaml :"status,omitempty"`
34
- Resource string `yaml :"resource,omitempty"`
35
- Rule string `yaml :"rule,omitempty"`
36
- } `yaml :"filter,omitempty"`
33
+ Status string `json :"status,omitempty"`
34
+ Resource string `json :"resource,omitempty"`
35
+ Rule string `json :"rule,omitempty"`
36
+ } `json :"filter,omitempty"`
37
37
38
38
Settings struct {
39
- GroupBy string `yaml :"groupBy,omitempty"`
40
- Fields string `yaml :"fields,omitempty"`
41
- } `yaml :"settings,omitempty"`
39
+ GroupBy string `json :"groupBy,omitempty"`
40
+ Fields string `json :"fields,omitempty"`
41
+ } `json :"settings,omitempty"`
42
42
}
43
43
)
44
44
0 commit comments