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

Compare strings containing numbers as alert values #4705

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

rauchy
Copy link
Contributor

@rauchy rauchy commented Mar 3, 2020

What type of PR is this? (check all applicable)

  • Bug Fix

Description

As described in #4561, alert triggers might be off when alert thresholds and values are strings ("600" > "5000" is True), so in this PR, when the alert value is a string which contains a number, both value and threshold will be converted to a float for the comparison.

Related Tickets & Documents

Closes #4561 .

@rauchy rauchy requested a review from arikfr March 3, 2020 10:54
@arikfr arikfr merged commit 791a0b3 into master Mar 4, 2020
@arikfr arikfr deleted the allow-string-numbers-as-alert-values branch March 4, 2020 10:40
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.

Alerts: possible issue when query result value is a string number
2 participants