Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(infra_alert_condition): add violation_close_timer to newrelic_infra_alert_condition resource #370

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

sanderblue
Copy link
Contributor

Resolves: #156

@ghost ghost added the size/XL label Jan 29, 2020
@sanderblue sanderblue force-pushed the feat/infra-violation-close-timer branch 2 times, most recently from 5a946ac to d2d9442 Compare January 31, 2020 02:43
@sanderblue sanderblue marked this pull request as ready for review January 31, 2020 02:47
@sanderblue sanderblue force-pushed the feat/infra-violation-close-timer branch from d2d9442 to 24079b7 Compare January 31, 2020 03:32
@zlesnr
Copy link
Contributor

zlesnr commented Jan 31, 2020

Looks good to me. The interface casting bits look a bit strange, but the tests are passing.

@ctrombley ctrombley force-pushed the feat/infra-violation-close-timer branch from 24079b7 to cc14ab4 Compare February 5, 2020 22:57
@ctrombley ctrombley merged commit 276f20c into master Feb 5, 2020
@ctrombley ctrombley deleted the feat/infra-violation-close-timer branch February 5, 2020 23:26
@samjgalbraith
Copy link

samjgalbraith commented May 5, 2020

I'm trying to use this attribute in 1.17.1 and it's not working for violation_close_timer = 0. It just sets the value to default (24) on all newrelic_infra_alert_condition resources upon create. Running apply again, the resource realizes the mismatch and plans to change the violation_close_timer 24 => 0. Executing the plan, however, fails to actually change the value, so there's a perpetual state mismatch. There's no way to have no violation close timer except to ignore the attribute and manually set it on each alarm condition outside of Terraform

@samjgalbraith
Copy link

^ I've opened an issue #553

kidk pushed a commit to aminoz007/terraform-provider-newrelic that referenced this pull request Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

newrelic_infra_alert_condition support for violation_close_timer
4 participants