Skip to content

Commit c3f1000

Browse files
committed
lint & docs
1 parent 6218c07 commit c3f1000

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

docs/data-sources/exploration_alert.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This data source allows you to get information about an Alert on an Exploration
3232
- `created_at` (String) The time when this alert was created.
3333
- `critical_alert` (Boolean) Mark as critical alert (bypasses quiet hours).
3434
- `email` (Boolean) Enable email notifications.
35-
- `escalation_target` (List of Object) The escalation target for this alert. Specify either team_id/team_name OR policy_id. (see [below for nested schema](#nestedatt--escalation_target))
35+
- `escalation_target` (List of Object) The escalation target for this alert. Specify either team_id/team_name OR policy_id/policy_name. (see [below for nested schema](#nestedatt--escalation_target))
3636
- `id` (String) The ID of this alert.
3737
- `incident_cause` (String) Incident description template (supports {{variable}} interpolation).
3838
- `incident_per_series` (Boolean) Create separate incidents per series.
@@ -58,5 +58,6 @@ This data source allows you to get information about an Alert on an Exploration
5858
Read-Only:
5959

6060
- `policy_id` (Number)
61+
- `policy_name` (String)
6162
- `team_id` (Number)
6263
- `team_name` (String)

docs/resources/exploration_alert.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ This resource allows you to create, modify, and delete Alerts on Explorations in
1818
### Required
1919

2020
- `alert_type` (String) The type of alert: 'threshold', 'relative', or 'anomaly_rrcf'.
21-
- `confirmation_period` (Number) The confirmation delay in seconds before triggering (required, >= 0).
2221
- `exploration_id` (String) The ID of the exploration this alert belongs to.
2322
- `name` (String) The name of this alert.
2423

@@ -29,9 +28,10 @@ This resource allows you to create, modify, and delete Alerts on Explorations in
2928
- `anomaly_trigger` (String) Anomaly trigger mode: 'any', 'higher', or 'lower' (only for 'anomaly_rrcf' type).
3029
- `call` (Boolean) Enable phone call notifications.
3130
- `check_period` (Number) How often to check the alert condition in seconds.
31+
- `confirmation_period` (Number) The confirmation delay in seconds before triggering (required, >= 0).
3232
- `critical_alert` (Boolean) Mark as critical alert (bypasses quiet hours).
3333
- `email` (Boolean) Enable email notifications.
34-
- `escalation_target` (Block List, Max: 1) The escalation target for this alert. Specify either team_id/team_name OR policy_id. (see [below for nested schema](#nestedblock--escalation_target))
34+
- `escalation_target` (Block List, Max: 1) The escalation target for this alert. Specify either team_id/team_name OR policy_id/policy_name. (see [below for nested schema](#nestedblock--escalation_target))
3535
- `incident_cause` (String) Incident description template (supports {{variable}} interpolation).
3636
- `incident_per_series` (Boolean) Create separate incidents per series.
3737
- `metadata` (Map of String) Custom metadata key-value pairs included in incident notifications.
@@ -61,5 +61,6 @@ This resource allows you to create, modify, and delete Alerts on Explorations in
6161
Optional:
6262

6363
- `policy_id` (Number) The Better Stack escalation policy ID.
64+
- `policy_name` (String) The Better Stack escalation policy name.
6465
- `team_id` (Number) The Better Stack team ID to escalate to.
6566
- `team_name` (String) The Better Stack team name to escalate to.

examples/advanced/main.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ data "logtail_metric" "level" {
5959
}
6060

6161
resource "logtail_source" "other" {
62-
name = "Terraform Advanced Source 2"
63-
platform = "http"
64-
data_region = "germany"
65-
source_group_id = logtail_source_group.group.id
62+
name = "Terraform Advanced Source 2"
63+
platform = "http"
64+
data_region = "germany"
65+
source_group_id = logtail_source_group.group.id
6666
}
6767

6868
# =============================================================================
@@ -181,7 +181,7 @@ resource "logtail_dashboard" "custom" {
181181

182182
# Bar chart with all options filled in, log filtering, no alert, all system variables, selected source
183183
resource "logtail_exploration" "bar_chart_full" {
184-
name = "Terraform Bar Chart Full Options"
184+
name = "Terraform Bar Chart Full Options"
185185
date_range_from = "now-24h"
186186
date_range_to = "now"
187187

@@ -227,13 +227,13 @@ resource "logtail_exploration" "multi_query_alerts" {
227227
chart_type = "line_chart"
228228
description = "Compare event counts from two sources"
229229
settings = jsonencode({
230-
unit = "shortened"
231-
decimal_places = 0
232-
legend = "shown_below"
233-
stacking = "dont_stack"
234-
time_column = "time"
235-
series_column = "series"
236-
value_columns = ["value"]
230+
unit = "shortened"
231+
decimal_places = 0
232+
legend = "shown_below"
233+
stacking = "dont_stack"
234+
time_column = "time"
235+
series_column = "series"
236+
value_columns = ["value"]
237237
})
238238
}
239239

examples/basic/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ resource "logtail_exploration" "error_logs" {
5050
}
5151

5252
variable {
53-
name = "source"
53+
name = "source"
5454
variable_type = "source"
55-
values = [logtail_source.this.id]
55+
values = [logtail_source.this.id]
5656
}
5757
}
5858

0 commit comments

Comments
 (0)