mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
chore(slo): add link to slo details page from alert (#155320)
This commit is contained in:
parent
4e8e6cd2f7
commit
79969fbf2c
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import { lazy } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { ALERT_REASON } from '@kbn/rule-data-utils';
|
||||
|
||||
import { SLO_ID_FIELD } from '../../common/field_names/infra_metrics';
|
||||
import { ConfigSchema } from '../plugin';
|
||||
import { ObservabilityRuleTypeRegistry } from './create_observability_rule_type_registry';
|
||||
import { SLO_BURN_RATE_RULE_ID } from '../../common/constants';
|
||||
|
@ -25,7 +26,7 @@ export const registerObservabilityRuleTypes = (
|
|||
format: ({ fields }) => {
|
||||
return {
|
||||
reason: fields[ALERT_REASON] ?? '-',
|
||||
link: '/app/observability/slos',
|
||||
link: `/app/observability/slos/${fields[SLO_ID_FIELD]}`,
|
||||
};
|
||||
},
|
||||
iconClass: 'bell',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue