Skip to content

Commit cb80cb1

Browse files
authored
fix(api): change alert_source Aws to AWS (#1376)
1 parent 29dc321 commit cb80cb1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

api/_examples/alert-rules/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func main() {
4040
ResourceGroups: []string{"TECHALLY_000000000000AAAAAAAAAAAAAAAAAAAA"},
4141
EventCategories: []string{"Compliance"},
4242
AlertCategories: []string{"Policy"},
43-
AlertSources: []string{"Aws"},
43+
AlertSources: []string{"AWS"},
4444
}
4545

4646
myAlertRule := api.NewAlertRule("MyTestAlertRule",

api/alert_rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type AlertRulesService struct {
3232
}
3333

3434
// Valid inputs for AlertRule Source property
35-
var AlertRuleSources = []string{"Agent", "Aws", "Azure", "Gcp", "K8s"}
35+
var AlertRuleSources = []string{"Agent", "AWS", "Azure", "Gcp", "K8s"}
3636

3737
// Valid inputs for AlertRule Categories property
3838
var AlertRuleCategories = []string{"Anomaly", "Policy", "Composite"}

api/alert_rules_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func TestAlertRuleUpdate(t *testing.T) {
227227
Severities: api.AlertRuleSeverities{api.AlertRuleSeverityHigh},
228228
ResourceGroups: []string{"TECHALLY_100000000000AAAAAAAAAAAAAAAAAAAB"},
229229
EventCategories: []string{"Compliance", "SystemCall"},
230-
AlertSources: []string{"Aws", "Agent", "K8s"},
230+
AlertSources: []string{"AWS", "Agent", "K8s"},
231231
AlertCategories: []string{"Policy", "Anomaly"},
232232
},
233233
)
@@ -242,7 +242,7 @@ func TestAlertRuleUpdate(t *testing.T) {
242242
assert.Equal(t, intgGUID, response.Data.Guid)
243243
assert.Contains(t, response.Data.Filter.EventCategories, "Compliance", "SystemCall")
244244
assert.Contains(t, response.Data.Filter.AlertCategories, "Policy", "Anomaly")
245-
assert.Contains(t, response.Data.Filter.AlertSources, "Aws", "Agent", "K8s")
245+
assert.Contains(t, response.Data.Filter.AlertSources, "AWS", "Agent", "K8s")
246246
assert.Contains(t, response.Data.Filter.ResourceGroups, "TECHALLY_100000000000AAAAAAAAAAAAAAAAAAAB")
247247
assert.Contains(t, response.Data.Channels, "TECHALLY_000000000000AAAAAAAAAAAAAAAAAAAA")
248248
}
@@ -316,7 +316,7 @@ func singleMockAlertRule(id string) string {
316316
"Anomaly"
317317
],
318318
"source": [
319-
"Aws",
319+
"AWS",
320320
"Agent",
321321
"K8s"
322322
]

0 commit comments

Comments
 (0)