You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Datadog recently seems to have changed the response of monitors with notify_no_data false and we always receive "no_data_timeframe = 0 -> 10" plan in spite of the fact we don't make any changes.
This commit will resolve
https://github.com/terraform-providers/terraform-provider-datadog/issues/383.
Datadog seemed the response of monitors recently changed.
For example, if I execute the following script:
```sh
for monitor_id in $OLD_MONITOR_ID $RECENT_CHANGED_MONITOR_ID; do
curl -s -X GET \
-H "DD-API-KEY: ${DATADOG_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DATADOG_APP_KEY}" \
-d "group_states=all" \
"https://api.datadoghq.com/api/v1/monitor/${monitor_id}" | \
jq '{modified, options: .options | {notify_no_data, no_data_timeframe}}'
done
```
The output is like below:
```
{
"modified": "2019-09-17T08:08:32.094503+00:00",
"options": {
"notify_no_data": false,
"no_data_timeframe": 10
}
}
{
"modified": "2020-01-07T14:06:55.889061+00:00",
"options": {
"notify_no_data": false,
"no_data_timeframe": null
}
}
```
Datadog recently seems to have changed the response of monitors with notify_no_data false and we always receive "no_data_timeframe = 0 -> 10" plan in spite of the fact we don't make any changes.
Terraform Version
Terraform v0.12.6
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/abicky/efe68a2d0a1cb28ee7e245217731d4db
Expected Behavior
We receive an output like below:
Actual Behavior
We receive an output like below:
Steps to Reproduce
terraform apply
terraform plan
References
The text was updated successfully, but these errors were encountered: