Skip to content

Commit

Permalink
Merge pull request #66 from logicmonitor/DEV-120566-EscalationChain
Browse files Browse the repository at this point in the history
Documentation Update for Escalation Chain
  • Loading branch information
lm-madhvi authored Aug 1, 2023
2 parents d420ba4 + 330aca4 commit 7179e1b
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 4 deletions.
17 changes: 17 additions & 0 deletions website/docs/index_html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,23 @@ resource "logicmonitor_device_group" "my_device_group" {
# create a new LogicMonitor escalation chain
resource "logicmonitor_escalation_chain" "my_escalation_chain" {
name = "LogicMonitor Escalation Chain"
destinations = [
{
period = [{
week_days = 2
timezone = "UTC"
start_minutes = 10
end_minutes = 15
}],
stages = [{
type = "Admin"
addr = "unicornsparkles@rainbow.io"
method = "EMAIL"
contact = "78362637"
}]
type = "timebased"
}
]
description = "LM Escalation Chain testing"
throttling_alerts = 40
enable_throttling = true
Expand Down
48 changes: 44 additions & 4 deletions website/docs/r/escalation_chain_html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ Provides a LogicMonitor escalation chain resource. This can be used to create an
# Create a LogicMonitor escalation chain
resource "logicmonitor_escalation_chain" "my_escalation_chain" {
description = "For alerts escalated to the NOC Team"
destinations = [
{
period = [{
week_days = 2
timezone = "UTC"
start_minutes = 10
end_minutes = 15
}],
stages = [{
type = "Admin"
addr = "unicornsparkles@rainbow.io"
method = "EMAIL"
contact = "78362637"
}]
type = "timebased"
}
]
cc_destinations = [
{
method = "EMAIL"
contact = "string"
type = "Admin"
addr = "unicornsparkles@rainbow.io"
}
]
enable_throttling = true
name = "NOC Team"
throttling_alerts = 40
Expand All @@ -26,14 +51,29 @@ resource "logicmonitor_escalation_chain" "my_escalation_chain" {

The following arguments are **required**:
* `destinations` -
* `name` -
+ `period` -
+ `weekDays` - the list of week day of this period (required)
+ `timezone` - the timezone for this period (required)
+ `startMinutes` - the start minute of this period (required)
+ `endMinutes` - the end minute of this period (required)
+ `stages` - (required)
+ `addr` - the user name if method = admin, or the email address if method = arbitrary
+ `contact` - contact details, email address or phone number
+ `method` (required) - Admin | Arbitrary, where Admin = a user, and Arbitrary = an arbitrary email
+ `type` (required) - email | sms | voice, where type must be email if method = arbitrary
+ `type` - single (required)
* `name` - the chain name

The following arguments are **optional**:
* `cc_destinations` -
+ `addr` - the user name if method = admin, or the email address if method = arbitrary
+ `contact` - contact details, email address or phone number
+ `method` (required) - Admin | Arbitrary, where Admin = a user, and Arbitrary = an arbitrary email
+ `type` (required) - email | sms | voice, where type must be email if method = arbitrary
* `description` -
* `enable_throttling` -
* `throttling_alerts` -
* `throttling_period` -
* `enable_throttling` - if throttle needs to be enabled then true if not then false.
* `throttling_alerts` - max number of alert can send during a throttle period
* `throttling_period` - the throttle period

## Import

Expand Down

0 comments on commit 7179e1b

Please sign in to comment.