import * as React from 'react' ; import { MetricSourceIntegration } from '../MetricSourceIntegration' ; import { MetricModalProps } from '../../components/config/AbstractMetricModal' ; import DatadogMetricModal from './DatadogMetricModal' ; import DatadogCanaryMetricSetQueryConfig from './DatadogCanaryMetricSetQueryConfig' ; import { string } from 'yup' ; export const DATADOG_SERVICE_TYPE = 'datadog' ; const schema = { customInlineTemplate : string ( ) . trim ( ) . required ( ) } ; const modalFactory = ( props ) => React . createElement ( DatadogMetricModal , props ) ; const Datadog = { type : DATADOG_SERVICE_TYPE , createMetricsModal : modalFactory , canaryMetricSetQueryConfigSchema : schema } ; export default Datadog ;