-
Notifications
You must be signed in to change notification settings - Fork 249
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
Modifies since_value's validation to match rest API's requirements #144
Modifies since_value's validation to match rest API's requirements #144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review.
…eYson/terraform-provider-newrelic into bug/since-value-validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
…ation Modifies since_value's validation to match rest API's requirements
Issue
The rest API asserts that
since_value
isthe timeframe (in minutes) in which to evaluate the specified NRQL query. since_value must be between 1 and 20.
However, the provider does not allow the number to be above
5
.New Relic Documentation
nrql[since_value]
https://docs.newrelic.com/docs/alerts/rest-api-alerts/new-relic-alerts-rest-api/alerts-conditions-api-field-namesFor @SuperBadCode who said he needs it.
Found out after the fact that it resolves #131
Rationale for custom ValidateFunc
It appears as though the newrelic API expects since_value to be a
string
instead of anint
which prevents the use of validate.IntBetween