Home
last modified time | relevance | path

Searched refs:alertManagerSourceName (Results 1 – 25 of 43) sorted by relevance

12

/dports/www/grafana8/grafana-8.3.6/public/app/features/alerting/unified/
H A DReceivers.tsx29 (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 DSilences.tsx22 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 DAmRoutes.tsx25 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 DAlertGroups.tsx23 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 Dactions.ts93 () => 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 Dreducers.ts32 (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 DuseAlertManagerSourceName.ts7 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 DAlertmanagerConfig.tsx27 …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 Dalertmanager.ts26 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 DNewReceiverView.tsx9 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 DEditReceiverView.tsx11 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 DNewTemplateView.tsx7 alertManagerSourceName: string;
10 export const NewTemplateView: FC<Props> = ({ config, alertManagerSourceName }) => {
11 return <TemplateForm config={config} alertManagerSourceName={alertManagerSourceName} />;
H A DEditTemplateView.tsx9 alertManagerSourceName: string;
12 export const EditTemplateView: FC<Props> = ({ config, templateName, alertManagerSourceName }) => {
23 alertManagerSourceName={alertManagerSourceName}
H A DGlobalConfigForm.tsx19 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 DAlertGroupsPanel.tsx23 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 DCloudReceiverForm.tsx19 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 DGrafanaReceiverForm.tsx29 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 DSilencesTable.tsx30 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 DNoSilencesCTA.tsx8 alertManagerSourceName: string;
11 export const NoSilencesSplash: FC<Props> = ({ alertManagerSourceName }) => {
17 buttonLink={makeAMLink('alerting/silence/new', alertManagerSourceName)}
H A DSilenceTableRow.tsx20 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 DAmRootRoute.tsx17 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 DAlertDetails.tsx10 alertManagerSourceName: string;
14 export const AlertDetails: FC<AmNotificationsAlertDetailsProps> = ({ alert, alertManagerSourceName
23 alertManagerSourceName
34 href={makeLabelBasedSilenceLink(alertManagerSourceName, alert.labels)}
H A DAlertGroupAlertsTable.tsx14 alertManagerSourceName: string;
20 export const AlertGroupAlertsTable = ({ alerts, alertManagerSourceName }: Props) => {
70 <AlertDetails alert={alert} alertManagerSourceName={alertManagerSourceName} />
H A DAlertGroup.tsx13 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 Dmisc.ts61 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);

12