mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
chore(slo): improve burn rate rule reason (#154260)
This commit is contained in:
parent
3948f61ef2
commit
c6b54d18c6
1 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import numeral from '@elastic/numeral';
|
||||
import {
|
||||
ALERT_EVALUATION_THRESHOLD,
|
||||
ALERT_EVALUATION_VALUE,
|
||||
|
@ -14,9 +14,9 @@ import {
|
|||
} from '@kbn/rule-data-utils';
|
||||
import { LifecycleRuleExecutor } from '@kbn/rule-registry-plugin/server';
|
||||
import { ExecutorType } from '@kbn/alerting-plugin/server';
|
||||
|
||||
import { addSpaceIdToPath } from '@kbn/spaces-plugin/server';
|
||||
import { IBasePath } from '@kbn/core/server';
|
||||
|
||||
import { Duration, toDurationUnit } from '../../../domain/models';
|
||||
import { DefaultSLIClient, KibanaSavedObjectsSLORepository } from '../../../services/slo';
|
||||
import { computeBurnRate } from '../../../domain/services';
|
||||
|
@ -171,9 +171,9 @@ function buildReason(
|
|||
'The burn rate for the past {longWindowDuration} is {longWindowBurnRate} and for the past {shortWindowDuration} is {shortWindowBurnRate}. Alert when above {burnRateThreshold} for both windows',
|
||||
values: {
|
||||
longWindowDuration: longWindowDuration.format(),
|
||||
longWindowBurnRate,
|
||||
longWindowBurnRate: numeral(longWindowBurnRate).format('0.[00]'),
|
||||
shortWindowDuration: shortWindowDuration.format(),
|
||||
shortWindowBurnRate,
|
||||
shortWindowBurnRate: numeral(shortWindowBurnRate).format('0.[00]'),
|
||||
burnRateThreshold: params.burnRateThreshold,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue