Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions sysdig/resource_sysdig_monitor_alert_downtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ func resourceSysdigMonitorAlertDowntime() *schema.Resource {
timeout := 5 * time.Minute

return &schema.Resource{
CreateContext: resourceSysdigAlertDowntimeCreate,
UpdateContext: resourceSysdigAlertDowntimeUpdate,
ReadContext: resourceSysdigAlertDowntimeRead,
DeleteContext: resourceSysdigAlertDowntimeDelete,
DeprecationMessage: "\"sysdig_monitor_alert_downtime\" has been deprecated and will be removed in future releases, use \"sysdig_monitor_alert_v2_downtime\" instead",
CreateContext: resourceSysdigAlertDowntimeCreate,
UpdateContext: resourceSysdigAlertDowntimeUpdate,
ReadContext: resourceSysdigAlertDowntimeRead,
DeleteContext: resourceSysdigAlertDowntimeDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
9 changes: 5 additions & 4 deletions sysdig/resource_sysdig_monitor_alert_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ func resourceSysdigMonitorAlertEvent() *schema.Resource {
timeout := 5 * time.Minute

return &schema.Resource{
CreateContext: resourceSysdigAlertEventCreate,
UpdateContext: resourceSysdigAlertEventUpdate,
ReadContext: resourceSysdigAlertEventRead,
DeleteContext: resourceSysdigAlertEventDelete,
DeprecationMessage: "\"sysdig_monitor_alert_event\" has been deprecated and will be removed in future releases, use \"sysdig_monitor_alert_v2_event\" instead",
CreateContext: resourceSysdigAlertEventCreate,
UpdateContext: resourceSysdigAlertEventUpdate,
ReadContext: resourceSysdigAlertEventRead,
DeleteContext: resourceSysdigAlertEventDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
9 changes: 5 additions & 4 deletions sysdig/resource_sysdig_monitor_alert_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ func resourceSysdigMonitorAlertMetric() *schema.Resource {
timeout := 5 * time.Minute

return &schema.Resource{
CreateContext: resourceSysdigAlertMetricCreate,
UpdateContext: resourceSysdigAlertMetricUpdate,
ReadContext: resourceSysdigAlertMetricRead,
DeleteContext: resourceSysdigAlertMetricDelete,
DeprecationMessage: "\"sysdig_monitor_alert_metric\" has been deprecated and will be removed in future releases, use \"sysdig_monitor_alert_v2_metric\" instead",
CreateContext: resourceSysdigAlertMetricCreate,
UpdateContext: resourceSysdigAlertMetricUpdate,
ReadContext: resourceSysdigAlertMetricRead,
DeleteContext: resourceSysdigAlertMetricDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
9 changes: 5 additions & 4 deletions sysdig/resource_sysdig_monitor_alert_promql.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ func resourceSysdigMonitorAlertPromql() *schema.Resource {
timeout := 5 * time.Minute

return &schema.Resource{
CreateContext: resourceSysdigAlertPromqlCreate,
UpdateContext: resourceSysdigAlertPromqlUpdate,
ReadContext: resourceSysdigAlertPromqlRead,
DeleteContext: resourceSysdigAlertPromqlDelete,
DeprecationMessage: "\"sysdig_monitor_alert_promql\" has been deprecated and will be removed in future releases, use \"sysdig_monitor_alert_v2_prometheus\" instead",
CreateContext: resourceSysdigAlertPromqlCreate,
UpdateContext: resourceSysdigAlertPromqlUpdate,
ReadContext: resourceSysdigAlertPromqlRead,
DeleteContext: resourceSysdigAlertPromqlDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/monitor_alert_downtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Creates a Sysdig Monitor Downtime Alert. Monitor any type of entity - host, container, process, service, etc - and alert when the entity goes down.

~> **Deprecation Notice:** `sysdig_monitor_alert_downtime` has been deprecated and will be removed in future releases, use `sysdig_monitor_alert_v2_downtime` instead.

-> **Note:** Sysdig Terraform Provider is under rapid development at this point. If you experience any issue or discrepancy while using it, please make sure you have the latest version. If the issue persists, or you have a Feature Request to support an additional set of resources, please open a [new issue](https://github.com/sysdiglabs/terraform-provider-sysdig/issues/new) in the GitHub repository.

## Example Usage
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/monitor_alert_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Creates a Sysdig Monitor Event Alert. Monitor occurrences of specific events, an
number of occurrences violates a threshold. Useful for alerting on container, orchestration, and
service events like restarts and deployments.

~> **Deprecation Notice:** `sysdig_monitor_alert_event` has been deprecated and will be removed in future releases, use `sysdig_monitor_alert_v2_event` instead.

-> **Note:** Sysdig Terraform Provider is under rapid development at this point. If you experience any issue or discrepancy while using it, please make sure you have the latest version. If the issue persists, or you have a Feature Request to support an additional set of resources, please open a [new issue](https://github.com/sysdiglabs/terraform-provider-sysdig/issues/new) in the GitHub repository.

## Example Usage
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/monitor_alert_metric.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Creates a Sysdig Monitor Metric Threshold Alert. Monitor time-series metrics and alert if they violate user-defined thresholds.

~> **Deprecation Notice:** `sysdig_monitor_alert_metric` has been deprecated and will be removed in future releases, use `sysdig_monitor_alert_v2_metric` instead.

-> **Note:** Sysdig Terraform Provider is under rapid development at this point. If you experience any issue or discrepancy while using it, please make sure you have the latest version. If the issue persists, or you have a Feature Request to support an additional set of resources, please open a [new issue](https://github.com/sysdiglabs/terraform-provider-sysdig/issues/new) in the GitHub repository.

## Example Usage
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/monitor_alert_promql.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Creates a Sysdig Monitor Prometheus Alert. Monitor prometheus metrics and alert if they violate user-defined PromQL-based metric expression.

~> **Deprecation Notice:** `sysdig_monitor_alert_promql` has been deprecated and will be removed in future releases, use `sysdig_monitor_alert_v2_prometheus` instead.

-> **Note:** Sysdig Terraform Provider is under rapid development at this point. If you experience any issue or discrepancy while using it, please make sure you have the latest version. If the issue persists, or you have a Feature Request to support an additional set of resources, please open a [new issue](https://github.com/sysdiglabs/terraform-provider-sysdig/issues/new) in the GitHub repository.

## Example Usage
Expand Down
Loading