Skip to content

Commit

Permalink
Fix markdown formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdafydd committed Mar 3, 2020
1 parent 27ad7ae commit 0625b05
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions website/docs/r/monitor_scheduled_query_rules_alert.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "example" {
description = "Alert when total results cross threshold"
enabled = true
# Count all requests with server error result code grouped into 5-minute bins
query = <<-QUERY
query = <<-QUERY
requests
| where tolong(resultCode) >= 500
| summarize count() by bin(timestamp, 5m)
QUERY
severity = 1
frequency = 5
time_window = 30
severity = 1
frequency = 5
time_window = 30
trigger {
operator = "GreaterThan"
threshold = 3
Expand All @@ -76,14 +76,14 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "example" {
description = "Query results grouped into AggregatedValue; alert when results cross threshold"
enabled = true
# Count all requests with server error result code grouped into 5-minute bins by HTTP operation
query = <<-QUERY
query = <<-QUERY
requests
| where tolong(resultCode) >= 500
| summarize AggregatedValue = count() by operation_Name, bin(timestamp, 5m)
QUERY
severity = 1
frequency = 5
time_window = 30
severity = 1
frequency = 5
time_window = 30
trigger {
operator = "GreaterThan"
threshold = 3
Expand Down Expand Up @@ -112,17 +112,17 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "example2" {
description = "Query may access data within multiple resources"
enabled = true
# Count requests in multiple log resources and group into 5-minute bins by HTTP operation
query = format(<<-QUERY
query = format(<<-QUERY
let a=requests
| where toint(resultCode) >= 500
| extend fail=1; let b=app('%s').requests
| where toint(resultCode) >= 500 | extend fail=1; a
| join b on fail
QUERY
, azurerm_application_insights.example2.id)
severity = 1
frequency = 5
time_window = 30
, azurerm_application_insights.example2.id)
severity = 1
frequency = 5
time_window = 30
trigger {
operator = "GreaterThan"
threshold = 3
Expand Down

0 comments on commit 0625b05

Please sign in to comment.