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

Operators #33

Open
vabastiil opened this issue Mar 22, 2017 · 1 comment
Open

Operators #33

vabastiil opened this issue Mar 22, 2017 · 1 comment

Comments

@vabastiil
Copy link

Thank you for the great job with this project!

It would be nice to have option to use and operators.
It would produce critical only if both conditions are met.

Something like that:
-c "key1,1:10 & key2,1:5"
-c "key1,1:10" & -c "key2,1:5"

CRITICAL:
{
"key1": 1000,
"key2":6
}

NOT Critical:
{
"key1": 1000,
"key2":4
}

@UnitedMarsupials-zz
Copy link

UnitedMarsupials-zz commented Nov 7, 2017

Seconded! We'd like to be able to construct Boolean expressions too. For example, one of our checks interrogates Travis CI's status JSON.

Usually their status.description is All Systems Operational, but some times it drops to Partially Degraded Service, which triggers an unnecessary alert for us. Wish, we could specify both strings as acceptable...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants