diff --git a/sysdig/resource_sysdig_monitor_alert_downtime.go b/sysdig/resource_sysdig_monitor_alert_downtime.go index a0ee83db..9f803e88 100644 --- a/sysdig/resource_sysdig_monitor_alert_downtime.go +++ b/sysdig/resource_sysdig_monitor_alert_downtime.go @@ -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, }, diff --git a/sysdig/resource_sysdig_monitor_alert_event.go b/sysdig/resource_sysdig_monitor_alert_event.go index 531feae4..cd245a61 100644 --- a/sysdig/resource_sysdig_monitor_alert_event.go +++ b/sysdig/resource_sysdig_monitor_alert_event.go @@ -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, }, diff --git a/sysdig/resource_sysdig_monitor_alert_metric.go b/sysdig/resource_sysdig_monitor_alert_metric.go index 13fea74a..6e90f0d8 100644 --- a/sysdig/resource_sysdig_monitor_alert_metric.go +++ b/sysdig/resource_sysdig_monitor_alert_metric.go @@ -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, }, diff --git a/sysdig/resource_sysdig_monitor_alert_promql.go b/sysdig/resource_sysdig_monitor_alert_promql.go index aa922084..356f4e67 100644 --- a/sysdig/resource_sysdig_monitor_alert_promql.go +++ b/sysdig/resource_sysdig_monitor_alert_promql.go @@ -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, }, diff --git a/website/docs/r/monitor_alert_downtime.md b/website/docs/r/monitor_alert_downtime.md index 9cfaf0a1..4a86ebc7 100644 --- a/website/docs/r/monitor_alert_downtime.md +++ b/website/docs/r/monitor_alert_downtime.md @@ -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 diff --git a/website/docs/r/monitor_alert_event.md b/website/docs/r/monitor_alert_event.md index c0cc78c5..e9d40203 100644 --- a/website/docs/r/monitor_alert_event.md +++ b/website/docs/r/monitor_alert_event.md @@ -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 diff --git a/website/docs/r/monitor_alert_metric.md b/website/docs/r/monitor_alert_metric.md index 5732a1c7..5305cb9f 100644 --- a/website/docs/r/monitor_alert_metric.md +++ b/website/docs/r/monitor_alert_metric.md @@ -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 diff --git a/website/docs/r/monitor_alert_promql.md b/website/docs/r/monitor_alert_promql.md index f93c9d55..7c845366 100644 --- a/website/docs/r/monitor_alert_promql.md +++ b/website/docs/r/monitor_alert_promql.md @@ -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