We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the snippet example:
{ "opsgenie": { "customerKey": "the-key", "teams": ["teams"], "recipients": "the-recipients", "source": "alert-source", "overwrite_quiet_hours": true, "tags": ["sensu"] } }
Tags is an array of strings and in this line it's appending the config['opsgenie']['tags'] into tags array
config['opsgenie']['tags']
Which creates: "tags":[["sensu"],"OverwriteQuietHours","critical"]
"tags":[["sensu"],"OverwriteQuietHours","critical"]
It should be: tags + json_config['tags'] if json_config['tags']
tags + json_config['tags'] if json_config['tags']
Alerts are rejected by OpsGenie API with the message: HTTP 422 Unprocessable Entity
HTTP 422 Unprocessable Entity
The text was updated successfully, but these errors were encountered:
Issue sensu-plugins#29: Use the correct operator for concatenating ar…
b59da6d
…rays of tags.
Issue #29: Use the correct operator for concatenating arrays of tags. (…
3b657d2
…#30) * Issue #29: Use the correct operator for concatenating arrays of tags. * Appease Rubocop.
No branches or pull requests
Using the snippet example:
Tags is an array of strings and in this line it's appending the
config['opsgenie']['tags']
into tags arrayWhich creates:
"tags":[["sensu"],"OverwriteQuietHours","critical"]
It should be:
tags + json_config['tags'] if json_config['tags']
Alerts are rejected by OpsGenie API with the message:
HTTP 422 Unprocessable Entity
The text was updated successfully, but these errors were encountered: