/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiFlyout, EuiFlyoutBody, EuiFlyoutFooter, EuiFlyoutHeader, EuiText, EuiLink, EuiSteps, } from '@elastic/eui'; import React from 'react'; import { EuiIcon } from '@elastic/eui'; import { Monitor } from '../../../../models/interfaces'; import { AlertsButton } from '../AlertsButton/AlertsButton'; import { BASE_DOCS_LINK } from '../../../..//utils/constants'; type AlertsFlyoutProps = { detectorId: string; detectorName: string; detectorInterval: number; unit: string; monitor?: Monitor; onClose(): void; resultIndex?: string; }; const alertSteps = [ { title: 'Create a monitor', children: (

A monitor queries a detector on a specific schedule. In Alerting, choose "Define using anomaly detector".

), }, { title: 'Define triggers and actions', children: (

Triggers specify the thresholds for anomalies to generate alerts. Actions specify the alert message and destination.

), }, { title: 'View alerts from detector and monitor', children: (

View anomaly detector alerts on the anomaly history graph. See details of all alerts over time from the monitor.

), }, ]; export const AlertsFlyout = (props: AlertsFlyoutProps) => { return (

Alerts

Anomaly detector alerts are powered by the {' '} Alerting plugin . If you don't see Alerting in your navigation panel, install it first and follow the instructions below to set up alerts.

Explore Alerting
); };