diff --git a/mongodbatlas/resource_mongodbatlas_alert_configuration.go b/mongodbatlas/resource_mongodbatlas_alert_configuration.go index e830ff0e9d..78576f7af4 100644 --- a/mongodbatlas/resource_mongodbatlas_alert_configuration.go +++ b/mongodbatlas/resource_mongodbatlas_alert_configuration.go @@ -126,23 +126,6 @@ func resourceMongoDBAtlasAlertConfiguration() *schema.Resource { "units": { Type: schema.TypeString, Optional: true, - ValidateFunc: validation.StringInSlice([]string{ - "RAW", - "BITS", - "BYTES", - "KILOBITS", - "KILOBYTES", - "MEGABITS", - "MEGABYTES", - "GIGABITS", - "GIGABYTES", - "TERABYTES", - "PETABYTES", - "MILLISECONDS", - "SECONDS", - "MINUTES", - "HOURS", - "DAYS"}, false), }, "mode": { Type: schema.TypeString, diff --git a/website/docs/d/alert_configuration.html.markdown b/website/docs/d/alert_configuration.html.markdown index 1040da2556..72a895cbc5 100644 --- a/website/docs/d/alert_configuration.html.markdown +++ b/website/docs/d/alert_configuration.html.markdown @@ -155,24 +155,7 @@ The threshold that causes an alert to be triggered. Required if `event_type_name * `threshold` - Threshold value outside of which an alert will be triggered. * `units` - The units for the threshold value. Depends on the type of metric. - Accepted values are: - - `RAW` - - `BITS` - - `BYTES` - - `KILOBITS` - - `KILOBYTES` - - `MEGABITS` - - `MEGABYTES` - - `GIGABITS` - - `GIGABYTES` - - `TERABYTES` - - `PETABYTES` - - `MILLISECONDS` - - `SECONDS` - - `MINUTES` - - `HOURS` - - `DAYS` - + Refer to the [MongoDB API Alert Configuration documentation](https://www.mongodb.com/docs/atlas/reference/api/alert-configurations-get-config/#request-body-parameters) for a list of accepted values. * `mode` - This must be set to AVERAGE. Atlas computes the current metric value as an average. ### Threshold Config (`threshold_config`) @@ -183,23 +166,7 @@ The threshold that causes an alert to be triggered. Required if `event_type_name * `threshold` - Threshold value outside of which an alert will be triggered. * `units` - The units for the threshold value. Depends on the type of metric. - Accepted values are: - - `RAW` - - `BITS` - - `BYTES` - - `KILOBITS` - - `KILOBYTES` - - `MEGABITS` - - `MEGABYTES` - - `GIGABITS` - - `GIGABYTES` - - `TERABYTES` - - `PETABYTES` - - `MILLISECONDS` - - `SECONDS` - - `MINUTES` - - `HOURS` - - `DAYS` + Refer to the [MongoDB API Alert Configuration documentation](https://www.mongodb.com/docs/atlas/reference/api/alert-configurations-get-config/#request-body-parameters) for a list of accepted values. ### Notifications Notifications to send when an alert condition is detected. diff --git a/website/docs/r/alert_configuration.html.markdown b/website/docs/r/alert_configuration.html.markdown index feed4a978d..82659073c0 100644 --- a/website/docs/r/alert_configuration.html.markdown +++ b/website/docs/r/alert_configuration.html.markdown @@ -178,23 +178,7 @@ The threshold that causes an alert to be triggered. Required if `event_type_name * `threshold` - Threshold value outside of which an alert will be triggered. * `units` - The units for the threshold value. Depends on the type of metric. - Accepted values are: - - `RAW` - - `BITS` - - `BYTES` - - `KILOBITS` - - `KILOBYTES` - - `MEGABITS` - - `MEGABYTES` - - `GIGABITS` - - `GIGABYTES` - - `TERABYTES` - - `PETABYTES` - - `MILLISECONDS` - - `SECONDS` - - `MINUTES` - - `HOURS` - - `DAYS` + Refer to the [MongoDB API Alert Configuration documentation](https://www.mongodb.com/docs/atlas/reference/api/alert-configurations-get-config/#request-body-parameters) for a list of accepted values. * `mode` - This must be set to AVERAGE. Atlas computes the current metric value as an average. @@ -206,23 +190,7 @@ The threshold that causes an alert to be triggered. Required if `event_type_name * `threshold` - Threshold value outside of which an alert will be triggered. * `units` - The units for the threshold value. Depends on the type of metric. - Accepted values are: - - `RAW` - - `BITS` - - `BYTES` - - `KILOBITS` - - `KILOBYTES` - - `MEGABITS` - - `MEGABYTES` - - `GIGABITS` - - `GIGABYTES` - - `TERABYTES` - - `PETABYTES` - - `MILLISECONDS` - - `SECONDS` - - `MINUTES` - - `HOURS` - - `DAYS` + Refer to the [MongoDB API Alert Configuration documentation](https://www.mongodb.com/docs/atlas/reference/api/alert-configurations-get-config/#request-body-parameters) for a list of accepted values. ### Notifications List of notifications to send when an alert condition is detected.