Skip to content

Commit e3e7c4e

Browse files
authored
chore(alerts): fix doc (#544)
1 parent 2158560 commit e3e7c4e

6 files changed

+6
-6
lines changed

sysdig/resource_sysdig_monitor_alert_v2_downtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func buildAlertV2DowntimeStruct(d *schema.ResourceData) *v2.AlertV2Downtime {
192192
if d.HasChange("trigger_after_minutes") {
193193
// GetOk returns true even if the value is stored only in the state and not in the user config:
194194
// to avoid applying a trigger_after_minutes old value from the state even if the user removed it from the config
195-
// we use HasChange that is true only if the use has changed (or created) it - and so it must be in the config
195+
// we use HasChange that is true only if the user has changed (or created) it - and so it must be in the config
196196
if attr, ok := d.GetOk("trigger_after_minutes"); ok && attr != nil {
197197
config.Range = minutesToSeconds(d.Get("trigger_after_minutes").(int))
198198
}

sysdig/resource_sysdig_monitor_alert_v2_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func buildAlertV2EventStruct(d *schema.ResourceData) (*v2.AlertV2Event, error) {
220220
if d.HasChange("trigger_after_minutes") {
221221
// GetOk returns true even if the value is stored only in the state and not in the user config:
222222
// to avoid applying a trigger_after_minutes old value from the state even if the user removed it from the config
223-
// we use HasChange that is true only if the use has changed (or created) it - and so it must be in the config
223+
// we use HasChange that is true only if the user has changed (or created) it - and so it must be in the config
224224
if attr, ok := d.GetOk("trigger_after_minutes"); ok && attr != nil {
225225
config.Range = minutesToSeconds(d.Get("trigger_after_minutes").(int))
226226
}

sysdig/resource_sysdig_monitor_alert_v2_metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func buildAlertV2MetricStruct(d *schema.ResourceData) (*v2.AlertV2Metric, error)
239239
if d.HasChange("trigger_after_minutes") {
240240
// GetOk returns true even if the value is stored only in the state and not in the user config:
241241
// to avoid applying a trigger_after_minutes old value from the state even if the user removed it from the config
242-
// we use HasChange that is true only if the use has changed (or created) it - and so it must be in the config
242+
// we use HasChange that is true only if the user has changed (or created) it - and so it must be in the config
243243
if attr, ok := d.GetOk("trigger_after_minutes"); ok && attr != nil {
244244
config.Range = minutesToSeconds(d.Get("trigger_after_minutes").(int))
245245
}

sysdig/resource_sysdig_monitor_alert_v2_prometheus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func buildAlertV2PrometheusStruct(d *schema.ResourceData) *v2.AlertV2Prometheus
174174
if d.HasChange("trigger_after_minutes") {
175175
// GetOk returns true even if the value is stored only in the state and not in the user config:
176176
// to avoid applying a trigger_after_minutes old value from the state even if the user removed it from the config
177-
// we use HasChange that is true only if the use has changed (or created) it - and so it must be in the config
177+
// we use HasChange that is true only if the user has changed (or created) it - and so it must be in the config
178178
if attr, ok := d.GetOk("trigger_after_minutes"); ok && attr != nil {
179179
config.Duration = minutesToSeconds(d.Get("trigger_after_minutes").(int))
180180
}

website/docs/r/monitor_alert_v2_form_based_prometheus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: |-
88

99
# Resource: sysdig_monitor_alert_v2_form_based_prometheus
1010

11-
-> **Note:** Note: Form Based Prometheus Alerts are now part of Threshold Alerts. The Terraform resource remains `sysdig_monitor_alert_v2_form_based_prometheus` for backwards compatibility.
11+
-> **Note:** Form Based Prometheus Alerts are now part of Threshold Alerts. The Terraform resource remains `sysdig_monitor_alert_v2_form_based_prometheus` for backwards compatibility.
1212

1313
Threshold Alerts configured with PromQL allow you to monitor your infrastructure by comparing any PromQL expression against user-defined thresholds.
1414

website/docs/r/monitor_alert_v2_metric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: |-
88

99
# Resource: sysdig_monitor_alert_v2_metric
1010

11-
-> **Note:**: Metric Alerts have been renamed to Threshold Alerts. The Terraform resource remains `sysdig_monitor_alert_v2_metric` for backwards compatibility.
11+
-> **Note:** Metric Alerts have been renamed to Threshold Alerts. The Terraform resource remains `sysdig_monitor_alert_v2_metric` for backwards compatibility.
1212

1313
Monitor your infrastructure by comparing any metric against user-defined thresholds.
1414

0 commit comments

Comments
 (0)