Replies: 3 comments
-
You have only a Resource, and you're trying to directly return a Result. You're missing the Metric and its Context for evaluating what condition it's in. Please have a look at the First Steps section of the manual. The examples there are also distributed with the source code, and you can use those to play around with. Extending the Hello World example ( |
Beta Was this translation helpful? Give feedback.
-
hmmm I do not understand how can I make the different states here:
I dont have thresholds etc, only if foo then ok, if bar then critical etc... an example would be really cool... |
Beta Was this translation helpful? Give feedback.
-
I'm I on the right way? :)
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
how can I make a simple check with something like this:
if a == 1 return Ok
if a == 2 return Critical
can you make a such example?
I've already tried this:
I get this error: AttributeError: 'Ok' object has no attribute 'context'
What I'm doing wrong?
TiA
Beta Was this translation helpful? Give feedback.
All reactions