/* * 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 from 'react'; import { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; import { Fragment } from 'react'; import { Detector } from '../../../../models/interfaces'; export interface DetectorFeatureRequiredProps { detector: Detector; onSwitchToConfiguration(): void; } export const DetectorFeatureRequired = ( props: DetectorFeatureRequiredProps ) => { return ( Features are required to run a detector} body={

Specify index fields that you want to find anomalies for by defining features. Once you define the features, you can preview your anomalies from a sample feature output.

} actions={[ View detector configuration , ]} /> ); };