-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Add is_present
function in MQE for check if the list metrics has value or not
#11627
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.
LGTM
oap-server/mqe-rt/src/main/java/org/apache/skywalking/mqe/rt/operation/LogicalFunctionOp.java
Show resolved
Hide resolved
FYI @Fine0830 You can see the response in the docs. The UI should only take type match and value is 1 as conditions to visualize the tab in the correct place, otherwise, set them disabled an the last |
|
||
Expression: | ||
```text | ||
is_present([<expression_1>, <expression_2>, ...]) |
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.
Are the expressions SINGLE VALUE or TIMER SERIES VALUE? Or either?
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.
Both are supported.
Following #11625, I think we need an MQE function to check whether the expression contains a value or not. If contains a value(meter value is
1
means has value), then we should show the tab.CHANGES
log.