/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/ |
H A D | Receivers.tsx | 29 (alertManagerSourceName && configRequests[alertManagerSourceName]) || initialAsyncRequestState; 35 if (alertManagerSourceName && shouldLoadConfig) { 38 }, [alertManagerSourceName, dispatch, shouldLoadConfig]); 44 }, [alertManagerSourceName, dispatch, receiverTypes]); 48 if (!alertManagerSourceName) { 55 current={alertManagerSourceName} 71 <NewTemplateView config={config} alertManagerSourceName={alertManagerSourceName} /> 77 alertManagerSourceName={alertManagerSourceName} 85 <NewReceiverView config={config} alertManagerSourceName={alertManagerSourceName} /> 91 alertManagerSourceName={alertManagerSourceName} [all …]
|
H A D | Silences.tsx | 22 const alertsRequest = alertManagerSourceName 23 ? alertsRequests[alertManagerSourceName] || initialAsyncRequestState 31 if (alertManagerSourceName) { 32 dispatch(fetchSilencesAction(alertManagerSourceName)); 33 dispatch(fetchAmAlertsAction(alertManagerSourceName)); 41 }, [alertManagerSourceName, dispatch]); 44 (alertManagerSourceName && silences[alertManagerSourceName]) || initialAsyncRequestState; 48 if (!alertManagerSourceName) { 72 alertManagerSourceName={alertManagerSourceName} 76 <SilencesEditor alertManagerSourceName={alertManagerSourceName} /> [all …]
|
H A D | AmRoutes.tsx | 25 const [alertManagerSourceName, setAlertManagerSourceName] = useAlertManagerSourceName(); 27 …const readOnly = alertManagerSourceName ? isVanillaPrometheusAlertManagerDataSource(alertManagerSo… 32 if (alertManagerSourceName) { 33 dispatch(fetchAlertManagerConfigAction(alertManagerSourceName)); 35 }, [alertManagerSourceName, dispatch]); 42 (alertManagerSourceName && amConfigs[alertManagerSourceName]) || initialAsyncRequestState; 66 alertManagerSourceName, 88 alertManagerSourceName: alertManagerSourceName!, 95 if (!alertManagerSourceName) { 101 <AlertManagerPicker current={alertManagerSourceName} onChange={setAlertManagerSourceName} /> [all …]
|
H A D | AlertGroups.tsx | 23 const [alertManagerSourceName] = useAlertManagerSourceName(); 31 alertGroups[alertManagerSourceName || ''] ?? initialAsyncRequestState; 38 if (alertManagerSourceName) { 39 dispatch(fetchAlertGroupsAction(alertManagerSourceName)); 47 }, [dispatch, alertManagerSourceName]); 66 <AlertGroup alertManagerSourceName={alertManagerSourceName || ''} group={group} />
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/state/ |
H A D | actions.ts | 93 () => fetchAlertManagerConfig(alertManagerSourceName), 103 alertManagerSourceName !== GRAFANA_RULES_SOURCE_NAME 145 (alertManagerSourceName: string): Promise<Silence[]> => { 469 alertManagerSourceName: string; property 518 dispatch(fetchSilencesAction(alertManagerSourceName)); 519 dispatch(fetchAmAlertsAction(alertManagerSourceName)); 524 alertManagerSourceName: string; 568 alertManagerSourceName, 599 alertManagerSourceName, 660 await deleteAlertManagerConfig(alertManagerSourceName); [all …]
|
H A D | reducers.ts | 32 (alertManagerSourceName) => alertManagerSourceName 34 …eateAsyncMapSlice('silences', fetchSilencesAction, (alertManagerSourceName) => alertManagerSourceN… 44 …eateAsyncMapSlice('amAlerts', fetchAmAlertsAction, (alertManagerSourceName) => alertManagerSourceN… 50 (alertManagerSourceName) => alertManagerSourceName
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/hooks/ |
H A D | useAlertManagerSourceName.ts | 7 function isAlertManagerSource(alertManagerSourceName: string): boolean { 9 alertManagerSourceName === GRAFANA_RULES_SOURCE_NAME || 10 !!getAlertManagerDataSources().find((ds) => ds.name === alertManagerSourceName) 18 export function useAlertManagerSourceName(): [string | undefined, (alertManagerSourceName: string) … 22 (alertManagerSourceName: string) => { 23 if (!isAlertManagerSource(alertManagerSourceName)) { 26 if (alertManagerSourceName === GRAFANA_RULES_SOURCE_NAME) { 30 store.set(ALERTMANAGER_NAME_LOCAL_STORAGE_KEY, alertManagerSourceName); 31 updateQueryParams({ [ALERTMANAGER_NAME_QUERY_KEY]: alertManagerSourceName });
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/components/admin/ |
H A D | AlertmanagerConfig.tsx | 27 …const readOnly = alertManagerSourceName ? isVanillaPrometheusAlertManagerDataSource(alertManagerSo… 33 (alertManagerSourceName && configRequests[alertManagerSourceName]) || initialAsyncRequestState; 36 if (alertManagerSourceName) { 37 dispatch(fetchAlertManagerConfigAction(alertManagerSourceName)); 39 }, [alertManagerSourceName, dispatch]); 42 if (alertManagerSourceName) { 43 dispatch(deleteAlertManagerConfigAction(alertManagerSourceName)); 58 if (alertManagerSourceName && config) { 63 alertManagerSourceName, 84 {alertManagerSourceName && config && ( [all …]
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/api/ |
H A D | alertmanager.ts | 26 url: `/api/alertmanager/${getDatasourceAPIId(alertManagerSourceName)}/config/api/v1/alerts`, 38 alertManagerSourceName === GRAFANA_RULES_SOURCE_NAME && 51 alertManagerSourceName: string, 57 url: `/api/alertmanager/${getDatasourceAPIId(alertManagerSourceName)}/config/api/v1/alerts`, 65 export async function deleteAlertManagerConfig(alertManagerSourceName: string): Promise<void> { 69 url: `/api/alertmanager/${getDatasourceAPIId(alertManagerSourceName)}/config/api/v1/alerts`, 76 export async function fetchSilences(alertManagerSourceName: string): Promise<Silence[]> { 79 url: `/api/alertmanager/${getDatasourceAPIId(alertManagerSourceName)}/api/v2/silences`, 153 export async function fetchStatus(alertManagerSourceName: string): Promise<AlertmanagerStatus> { 156 url: `/api/alertmanager/${getDatasourceAPIId(alertManagerSourceName)}/api/v2/status`, [all …]
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/components/receivers/ |
H A D | NewReceiverView.tsx | 9 alertManagerSourceName: string; 12 export const NewReceiverView: FC<Props> = ({ alertManagerSourceName, config }) => { 13 if (alertManagerSourceName === GRAFANA_RULES_SOURCE_NAME) { 14 return <GrafanaReceiverForm alertManagerSourceName={alertManagerSourceName} config={config} />; 16 return <CloudReceiverForm alertManagerSourceName={alertManagerSourceName} config={config} />;
|
H A D | EditReceiverView.tsx | 11 alertManagerSourceName: string; 14 export const EditReceiverView: FC<Props> = ({ config, receiverName, alertManagerSourceName }) => { 24 if (alertManagerSourceName === GRAFANA_RULES_SOURCE_NAME) { 25 …return <GrafanaReceiverForm config={config} alertManagerSourceName={alertManagerSourceName} existi… 27 …return <CloudReceiverForm config={config} alertManagerSourceName={alertManagerSourceName} existing…
|
H A D | NewTemplateView.tsx | 7 alertManagerSourceName: string; 10 export const NewTemplateView: FC<Props> = ({ config, alertManagerSourceName }) => { 11 return <TemplateForm config={config} alertManagerSourceName={alertManagerSourceName} />;
|
H A D | EditTemplateView.tsx | 9 alertManagerSourceName: string; 12 export const EditTemplateView: FC<Props> = ({ config, templateName, alertManagerSourceName }) => { 23 alertManagerSourceName={alertManagerSourceName}
|
H A D | GlobalConfigForm.tsx | 19 alertManagerSourceName: string; 28 export const GlobalConfigForm: FC<Props> = ({ config, alertManagerSourceName }) => { 32 const readOnly = isVanillaPrometheusAlertManagerDataSource(alertManagerSourceName); 61 alertManagerSourceName, 63 redirectPath: makeAMLink('/alerting/notifications', alertManagerSourceName), 103 href={makeAMLink('alerting/notifications', alertManagerSourceName)}
|
/dports/www/grafana8/grafana-8.3.6/public/app/plugins/panel/alertGroups/ |
H A D | AlertGroupsPanel.tsx | 23 const alertManagerSourceName = props.options.alertmanager; 26 const results: AlertmanagerGroup[] = alertGroups[alertManagerSourceName || '']?.result || []; 33 if (alertManagerSourceName) { 34 dispatch(fetchAlertGroupsAction(alertManagerSourceName)); 42 }, [dispatch, alertManagerSourceName]); 54 alertManagerSourceName={alertManagerSourceName}
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/components/receivers/form/ |
H A D | CloudReceiverForm.tsx | 19 alertManagerSourceName: string; 33 export const CloudReceiverForm: FC<Props> = ({ existing, alertManagerSourceName, config }) => { 35 const isVanillaAM = isVanillaPrometheusAlertManagerDataSource(alertManagerSourceName); 51 alertManagerSourceName, 53 redirectPath: makeAMLink('/alerting/notifications', alertManagerSourceName), 75 alertManagerSourceName={alertManagerSourceName}
|
H A D | GrafanaReceiverForm.tsx | 29 alertManagerSourceName: string; 43 export const GrafanaReceiverForm: FC<Props> = ({ existing, alertManagerSourceName, config }) => { 72 alertManagerSourceName: GRAFANA_RULES_SOURCE_NAME, 89 alertManagerSourceName, 117 alertManagerSourceName={alertManagerSourceName}
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/components/silences/ |
H A D | SilencesTable.tsx | 30 alertManagerSourceName: string; 33 const SilencesTable: FC<Props> = ({ silences, alertManagerAlerts, alertManagerSourceName }) => { 43 const columns = useColumns(alertManagerSourceName); 65 <Link href={makeAMLink('/alerting/silence/new', alertManagerSourceName)}> 92 {!silences.length && <NoSilencesSplash alertManagerSourceName={alertManagerSourceName} />} 166 function useColumns(alertManagerSourceName: string) { 171 dispatch(expireSilenceAction(alertManagerSourceName, id)); 226 … <Link href={makeAMLink(`/alerting/silence/${silence.id}/edit`, alertManagerSourceName)}> 237 to={makeAMLink(`/alerting/silence/${silence.id}/edit`, alertManagerSourceName)} 249 }, [alertManagerSourceName, dispatch, styles]);
|
H A D | NoSilencesCTA.tsx | 8 alertManagerSourceName: string; 11 export const NoSilencesSplash: FC<Props> = ({ alertManagerSourceName }) => { 17 buttonLink={makeAMLink('alerting/silence/new', alertManagerSourceName)}
|
H A D | SilenceTableRow.tsx | 20 alertManagerSourceName: string; 23 const SilenceTableRow: FC<Props> = ({ silence, className, silencedAlerts, alertManagerSourceName })… 36 dispatch(expireSilenceAction(alertManagerSourceName, silence.id)); 62 … <Link href={makeAMLink(`/alerting/silence/${silence.id}/edit`, alertManagerSourceName)}> 72 to={makeAMLink(`/alerting/silence/${silence.id}/edit`, alertManagerSourceName)}
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/components/amroutes/ |
H A D | AmRootRoute.tsx | 17 alertManagerSourceName: string; 27 alertManagerSourceName, 31 const isReadOnly = isVanillaPrometheusAlertManagerDataSource(alertManagerSourceName); 51 alertManagerSourceName={alertManagerSourceName}
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/components/alert-groups/ |
H A D | AlertDetails.tsx | 10 alertManagerSourceName: string; 14 export const AlertDetails: FC<AmNotificationsAlertDetailsProps> = ({ alert, alertManagerSourceName … 23 alertManagerSourceName 34 href={makeLabelBasedSilenceLink(alertManagerSourceName, alert.labels)}
|
H A D | AlertGroupAlertsTable.tsx | 14 alertManagerSourceName: string; 20 export const AlertGroupAlertsTable = ({ alerts, alertManagerSourceName }: Props) => { 70 <AlertDetails alert={alert} alertManagerSourceName={alertManagerSourceName} />
|
H A D | AlertGroup.tsx | 13 alertManagerSourceName: string; 16 export const AlertGroup = ({ alertManagerSourceName, group }: Props) => { 37 …{!isCollapsed && <AlertGroupAlertsTable alertManagerSourceName={alertManagerSourceName} alerts={gr…
|
/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/utils/ |
H A D | misc.ts | 61 export function makeRuleBasedSilenceLink(alertManagerSourceName: string, rule: CombinedRule) { 67 return makeLabelBasedSilenceLink(alertManagerSourceName, labels); 70 export function makeLabelBasedSilenceLink(alertManagerSourceName: string, labels: Labels) { 72 silenceUrlParams.append('alertmanager', alertManagerSourceName);
|