mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
Closes #156534 ## Summary This PR adds the alertDetailsUrl to the infra rules. The value of this variable is a link to the `observability > alerts` page filtered for this instance of alert.  Here is an example of this action variable: |alertDetailsUrl as action variable|Result of action| |---|---| || **Note** - I will change this field to `kibana.alert.url` in another [ticket](https://github.com/elastic/kibana/issues/158359) ## 🧪 How to test - Ensure that `server.publicBaseUrl` is configured in kibana.dev.yml - Create a metric threshold/inventory/logs rule and use the `context.alertDetailsUrl` in action for this rule - After an alert is triggered, open the link provided by alertDetailsUrl and make sure that the alert is filtered correctly - Check the time range, it should be set for 5 mins before the alert start time --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
19 lines
592 B
TypeScript
19 lines
592 B
TypeScript
/*
|
|
* 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 { createTestConfig } from '../common/config';
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default createTestConfig('observability', {
|
|
disabledPlugins: [],
|
|
license: 'trial',
|
|
ssl: true,
|
|
enableActionsProxy: true,
|
|
publicBaseUrl: true,
|
|
testFiles: [require.resolve('.')],
|
|
useDedicatedTaskRunner: true,
|
|
});
|