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KACnCC,EAlBR,SAAoCJ,GAClC,OAAOnC,EAAAA,EAAAA,cACJwC,GACqCL,EAAuBnG,KAAKC,GAAOA,EAAGH,OACvC2G,SAASD,IAE9C,CAACL,IAY6BO,CAA2BP,GAErDQ,GAAS3C,EAAAA,EAAAA,cACZ5J,IACMmM,EAAwBnM,KAGzBA,IAA2B6C,EAAAA,IAC7B2J,EAAAA,EAAAA,OAAaC,EAAAA,IACbR,EAAkB,CAAE,CAACS,EAAAA,IAA8B,SAEnDF,EAAAA,EAAAA,IAAUC,EAAAA,GAAqCzM,GAC/CiM,EAAkB,CAAE,CAACS,EAAAA,IAA8B1M,QAGvD,CAACiM,EAAmBE,IAGhBQ,EAAcX,EAAYU,EAAAA,IAEhC,GAAIC,GAAsC,iBAAhBA,EACxB,OAAIR,EAAwBQ,GACnB,CAACA,EAAaJ,GAGd,MAACK,EAAWL,GAIvB,MAAMM,EAAcL,EAAAA,EAAAA,IAAUC,EAAAA,IAC9B,OAAII,GAAsC,iBAAhBA,GAA4BV,EAAwBU,IAC5EN,EAAOM,GACA,CAACA,EAAaN,IAGnBJ,EAAwBtJ,EAAAA,IACnB,CAACA,EAAAA,GAA2B0J,GAG9B,MAACK,EAAWL,K,0DC7Dd,SAASxM,EAA6B+M,GAC3C,OAAO/K,EAAAA,EAAAA,UAAQ,KAAMgL,EAAAA,EAAAA,IAAuCD,IAAa,CAACA","sources":["webpack://grafana/./public/app/features/alerting/unified/components/admin/AlertmanagerConfig.tsx","webpack://grafana/./public/app/features/alerting/unified/hooks/useExternalAmSelector.ts","webpack://grafana/./public/app/features/alerting/unified/components/admin/AddAlertManagerModal.tsx","webpack://grafana/./public/app/features/alerting/unified/components/admin/ExternalAlertmanagers.tsx","webpack://grafana/./public/app/features/alerting/unified/Admin.tsx","webpack://grafana/./public/app/features/alerting/unified/components/AlertingPageWrapper.tsx","webpack://grafana/./public/app/features/alerting/unified/hooks/useAlertManagerSourceName.ts","webpack://grafana/./public/app/features/alerting/unified/hooks/useAlertManagerSources.ts"],"sourcesContent":["import { css } from '@emotion/css';\nimport React, { useEffect, useState, useMemo } from 'react';\nimport { useDispatch } from 'react-redux';\n\nimport { GrafanaTheme2 } from '@grafana/data';\nimport { Alert, Button, ConfirmModal, TextArea, HorizontalGroup, Field, Form, useStyles2 } from '@grafana/ui';\n\nimport { useAlertManagerSourceName } from '../../hooks/useAlertManagerSourceName';\nimport { useAlertManagersByPermission } from '../../hooks/useAlertManagerSources';\nimport { useUnifiedAlertingSelector } from '../../hooks/useUnifiedAlertingSelector';\nimport {\n deleteAlertManagerConfigAction,\n fetchAlertManagerConfigAction,\n updateAlertManagerConfigAction,\n} from '../../state/actions';\nimport { GRAFANA_RULES_SOURCE_NAME, isVanillaPrometheusAlertManagerDataSource } from '../../utils/datasource';\nimport { initialAsyncRequestState } from '../../utils/redux';\nimport { AlertManagerPicker } from '../AlertManagerPicker';\n\ninterface FormValues {\n configJSON: string;\n}\n\nexport default function AlertmanagerConfig(): JSX.Element {\n const dispatch = useDispatch();\n const alertManagers = useAlertManagersByPermission('notification');\n const [alertManagerSourceName, setAlertManagerSourceName] = useAlertManagerSourceName(alertManagers);\n\n const [showConfirmDeleteAMConfig, setShowConfirmDeleteAMConfig] = useState(false);\n const { loading: isDeleting } = useUnifiedAlertingSelector((state) => state.deleteAMConfig);\n const { loading: isSaving } = useUnifiedAlertingSelector((state) => state.saveAMConfig);\n const readOnly = alertManagerSourceName ? isVanillaPrometheusAlertManagerDataSource(alertManagerSourceName) : false;\n const styles = useStyles2(getStyles);\n\n const configRequests = useUnifiedAlertingSelector((state) => state.amConfigs);\n\n const {\n result: config,\n loading: isLoadingConfig,\n error: loadingError,\n } = (alertManagerSourceName && configRequests[alertManagerSourceName]) || initialAsyncRequestState;\n\n useEffect(() => {\n if (alertManagerSourceName) {\n dispatch(fetchAlertManagerConfigAction(alertManagerSourceName));\n }\n }, [alertManagerSourceName, dispatch]);\n\n const resetConfig = () => {\n if (alertManagerSourceName) {\n dispatch(deleteAlertManagerConfigAction(alertManagerSourceName));\n }\n setShowConfirmDeleteAMConfig(false);\n };\n\n const defaultValues = useMemo(\n (): FormValues => ({\n configJSON: config ? JSON.stringify(config, null, 2) : '',\n }),\n [config]\n );\n\n const loading = isDeleting || isLoadingConfig || isSaving;\n\n const onSubmit = (values: FormValues) => {\n if (alertManagerSourceName && config) {\n dispatch(\n updateAlertManagerConfigAction({\n newConfig: JSON.parse(values.configJSON),\n oldConfig: config,\n alertManagerSourceName,\n successMessage: 'Alertmanager configuration updated.',\n refetch: true,\n })\n );\n }\n };\n\n return (\n
Url | \nStatus | \nAction | \n
---|---|---|
\n {am.url}\n {am.actualUrl ? (\n | \n \n | \n \n | \n