-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Actionable Observability] Add links to navigate from alerts table to…
… rule (#118035) [Actionable Observability] Add links to navigate from alerts table and flyout to rule generate it
- Loading branch information
1 parent
9c0016f
commit 29981ad
Showing
9 changed files
with
244 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export { paths } from './paths'; | ||
export { translations } from './translations'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const paths = { | ||
observability: { | ||
alerts: '/app/observability/alerts', | ||
}, | ||
management: { | ||
rules: '/app/management/insightsAndAlerting/triggersActions/rules', | ||
ruleDetails: (ruleId: string) => | ||
`/app/management/insightsAndAlerting/triggersActions/rule/${encodeURI(ruleId)}`, | ||
alertDetails: (alertId: string) => | ||
`/app/management/insightsAndAlerting/triggersActions/alert/${encodeURI(alertId)}`, | ||
}, | ||
}; |
104 changes: 104 additions & 0 deletions
104
x-pack/plugins/observability/public/config/translations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
export const translations = { | ||
alertsTable: { | ||
viewDetailsTextLabel: i18n.translate('xpack.observability.alertsTable.viewDetailsTextLabel', { | ||
defaultMessage: 'View details', | ||
}), | ||
viewInAppTextLabel: i18n.translate('xpack.observability.alertsTable.viewInAppTextLabel', { | ||
defaultMessage: 'View in app', | ||
}), | ||
moreActionsTextLabel: i18n.translate('xpack.observability.alertsTable.moreActionsTextLabel', { | ||
defaultMessage: 'More actions', | ||
}), | ||
notEnoughPermissions: i18n.translate('xpack.observability.alertsTable.notEnoughPermissions', { | ||
defaultMessage: 'Additional privileges required', | ||
}), | ||
statusColumnDescription: i18n.translate( | ||
'xpack.observability.alertsTGrid.statusColumnDescription', | ||
{ | ||
defaultMessage: 'Alert Status', | ||
} | ||
), | ||
lastUpdatedColumnDescription: i18n.translate( | ||
'xpack.observability.alertsTGrid.lastUpdatedColumnDescription', | ||
{ | ||
defaultMessage: 'Last updated', | ||
} | ||
), | ||
durationColumnDescription: i18n.translate( | ||
'xpack.observability.alertsTGrid.durationColumnDescription', | ||
{ | ||
defaultMessage: 'Duration', | ||
} | ||
), | ||
reasonColumnDescription: i18n.translate( | ||
'xpack.observability.alertsTGrid.reasonColumnDescription', | ||
{ | ||
defaultMessage: 'Reason', | ||
} | ||
), | ||
actionsTextLabel: i18n.translate('xpack.observability.alertsTable.actionsTextLabel', { | ||
defaultMessage: 'Actions', | ||
}), | ||
loadingTextLabel: i18n.translate('xpack.observability.alertsTable.loadingTextLabel', { | ||
defaultMessage: 'loading alerts', | ||
}), | ||
footerTextLabel: i18n.translate('xpack.observability.alertsTable.footerTextLabel', { | ||
defaultMessage: 'alerts', | ||
}), | ||
showingAlertsTitle: (totalAlerts: number) => | ||
i18n.translate('xpack.observability.alertsTable.showingAlertsTitle', { | ||
values: { totalAlerts }, | ||
defaultMessage: '{totalAlerts, plural, =1 {alert} other {alerts}}', | ||
}), | ||
viewRuleDetailsButtonText: i18n.translate( | ||
'xpack.observability.alertsTable.viewRuleDetailsButtonText', | ||
{ | ||
defaultMessage: 'View rule details', | ||
} | ||
), | ||
}, | ||
alertsFlyout: { | ||
statusLabel: i18n.translate('xpack.observability.alertsFlyout.statusLabel', { | ||
defaultMessage: 'Status', | ||
}), | ||
lastUpdatedLabel: i18n.translate('xpack.observability.alertsFlyout.lastUpdatedLabel', { | ||
defaultMessage: 'Last updated', | ||
}), | ||
durationLabel: i18n.translate('xpack.observability.alertsFlyout.durationLabel', { | ||
defaultMessage: 'Duration', | ||
}), | ||
expectedValueLabel: i18n.translate('xpack.observability.alertsFlyout.expectedValueLabel', { | ||
defaultMessage: 'Expected value', | ||
}), | ||
actualValueLabel: i18n.translate('xpack.observability.alertsFlyout.actualValueLabel', { | ||
defaultMessage: 'Actual value', | ||
}), | ||
ruleTypeLabel: i18n.translate('xpack.observability.alertsFlyout.ruleTypeLabel', { | ||
defaultMessage: 'Rule type', | ||
}), | ||
reasonTitle: i18n.translate('xpack.observability.alertsFlyout.reasonTitle', { | ||
defaultMessage: 'Reason', | ||
}), | ||
viewRulesDetailsLinkText: i18n.translate( | ||
'xpack.observability.alertsFlyout.viewRulesDetailsLinkText', | ||
{ | ||
defaultMessage: 'View rule details', | ||
} | ||
), | ||
documentSummaryTitle: i18n.translate('xpack.observability.alertsFlyout.documentSummaryTitle', { | ||
defaultMessage: 'Document Summary', | ||
}), | ||
viewInAppButtonText: i18n.translate('xpack.observability.alertsFlyout.viewInAppButtonText', { | ||
defaultMessage: 'View in app', | ||
}), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.