Skip to content

Commit c27d965

Browse files
committed
SUMO-207948, updated documentation for connection and monitor resource for resolution payload feature
1 parent 2f360ec commit c27d965

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
FEATURES:
33
* **New Resource:** sumologic_cse_first_seen_rule (GH-476)
44
* Add new optional `min_data_points` field to metrics monitor trigger_conditions (GH-464)
5+
* Add new optional `resolution_payload` field to connection resource and `resolution_payload_override` field to notifications section of monitor resource (GH-482)
56

67
BUG FIXES:
78
* Added validations to fail if no trigger conditions defined in monitor resource (GH-463)

website/docs/r/connection.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ resource "sumologic_connection" "connection" {
3232
"num_records" : "{{NumRawResults}}",
3333
"search_results" : "{{AggregateResultsJson}}"
3434
}
35+
JSON
36+
resolution_payload = <<JSON
37+
{
38+
"client" : "Sumo Logic",
39+
"eventType" : "{{Name}}",
40+
"description" : "{{Description}}",
41+
"search_url" : "{{QueryUrl}}",
42+
}
3543
JSON
3644
webhook_type = "Webhook"
3745
}
@@ -48,6 +56,7 @@ The following arguments are supported:
4856
- `headers` - (Optional) Map of access authorization headers.
4957
- `custom_headers` - (Optional) Map of custom webhook headers
5058
- `default_payload` - (Required) Default payload of the webhook.
59+
- `resolution_payload` - (Optional) Resolution payload of the webhook.
5160
- `connection_subtype` - (Optional) The subtype of the connection. Valid values are `Incident` and `Event`. NOTE: This is only used for the `ServiceNow` webhook type.
5261
- `webhook_type` - (Optional) Type of webhook. Valid values are `AWSLambda`, `Azure`, `Datadog`, `HipChat`, `Jira`, `PagerDuty`, `Slack`, `Webhook`, `NewRelic`, `MicrosoftTeams`, `ServiceNow`, and `SumoCloudSOAR`. Default: `Webhook`
5362

website/docs/r/monitor.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ resource "sumologic_monitor" "tf_logs_monitor_2" {
289289
"client": "Sumo Logic",
290290
"client_url": "{{QueryUrl}}"
291291
}
292+
JSON
293+
resolution_payload_override = <<JSON
294+
{
295+
"service_key": "your_pagerduty_api_integration_key",
296+
"event_type": "trigger",
297+
"description": "Alert: Resolved {{TriggerType}} for Monitor {{Name}}",
298+
"client": "Sumo Logic",
299+
"client_url": "{{QueryUrl}}"
300+
}
292301
JSON
293302
}
294303
run_for_trigger_types = ["Critical", "ResolvedCritical"]

0 commit comments

Comments
 (0)