/* * 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 React, { Fragment } from 'react'; import { EuiIcon, EuiLink, EuiToolTip, EuiTitle } from '@elastic/eui'; import { Monitor } from '../../../../models/interfaces'; import { getAlertingMonitorListLink } from '../../../../utils/utils'; import { formatNumber } from '../../../utils/helpers'; interface AnomalyStatProps { title: any; description: any; } export const AnomalyStat = (props: AnomalyStatProps) => { return (
{props.description}{' '}
{props.totalAlerts === undefined || props.isLoading ? '-' : props.totalAlerts}{' '}
{props.monitor ? (
Alert{' '}