diff --git a/docs/resources/alert.md b/docs/resources/alert.md index 42219659..a61af19f 100644 --- a/docs/resources/alert.md +++ b/docs/resources/alert.md @@ -11,7 +11,7 @@ Provides a [Lightstep alert](https://api-docs.lightstep.com/reference/listalerts Visit [Lightstep's documentation](https://docs.lightstep.com/docs/about-alerts) for conceptual information about alerts and alert templates. -## Example Usage +## Example Usage (single alert) ```hcl resource "lightstep_alert" "beemo-requests" { @@ -19,7 +19,7 @@ resource "lightstep_alert" "beemo-requests" { name = "Frontend latency" expression { - is_multi = true + is_multi = false is_no_data = true operand = "above" thresholds { @@ -46,6 +46,67 @@ EOT } ``` +## Example Usage (composite alert) + +```hcl +resource "lightstep_alert" "high_error_rate_with_sustained_traffic" { + project_name = var.project + name = "Error rates are high for my operation with sustained traffic" + description = <