-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[RCA] Fix equation for rule condition chart #193689
base: main
Are you sure you want to change the base?
[RCA] Fix equation for rule condition chart #193689
Conversation
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@@ -26,7 +26,7 @@ const genLensEqForCustomThresholdRule = (criterion: MetricExpression) => { | |||
(metric: CustomThresholdExpressionMetric) => | |||
(metricNameResolver[metric.name] = `${ | |||
AggMappingForLens[metric.aggType] ? AggMappingForLens[metric.aggType] : metric.aggType | |||
}(${metric.field ? metric.field : metric.filter ? metric.filter : ''})`) | |||
}(${metric.field ? metric.field : metric.filter ? `kql='${metric.filter}'` : ''})`) |
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.
Could you separate out this double ternary into two ternaries? Reading the double ternary is hard.
}(${metric.field ? metric.field : metric.filter ? `kql='${metric.filter}'` : ''})`) | |
const metricFilter = metric.filter ? `kql='${metric.filter}'` : ''; | |
... | |
}(${metric.field ? metric.field : metricFilter) |
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.
sure, updated in f7578a8
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @benakansara |
Resolves #193688