diff --git a/armotypes/configtypes.go b/armotypes/configtypes.go index 2439bcb..19a4b2c 100644 --- a/armotypes/configtypes.go +++ b/armotypes/configtypes.go @@ -12,6 +12,7 @@ type Settings struct { PostureControlInputs map[string][]string `json:"postureControlInputs"` PostureScanConfig PostureScanConfig `json:"postureScanConfig"` VulnerabilityScanConfig VulnerabilityScanConfig `json:"vulnerabilityScanConfig"` + SlackConfigurations SlackSettings `json:"slackConfigurations,omitempty"` } type PostureScanConfig struct { diff --git a/armotypes/customerslackconfigurations.go b/armotypes/customerslackconfigurations.go new file mode 100644 index 0000000..eb94b5d --- /dev/null +++ b/armotypes/customerslackconfigurations.go @@ -0,0 +1,23 @@ +package armotypes + +type SlackSettings struct { + Token string `json:"token"` + Alert2Channel `json:",inline"` + Notifications `json:"notifications"` +} + +type Alert2Channel struct { + Critical []SlackChannel `json:"criticalChannels"` + Error []SlackChannel `json:"errorChannels"` + Info []SlackChannel `json:"infoChannels"` +} + +type SlackChannel struct { + ChannelID string `json:"channelID"` + ChannelName string `json:"channelName"` +} + +type Notifications struct { + PostureScan []string `json:"postureScan"` + PostureScoreAboveLastScan []string `json:"postureScoreAboveLastScan"` +}