@perses-dev/alert-manager-plugin 0.1.0 → 0.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{AlertManager.f762e62c.js → AlertManager.c78c7631.js} +4 -4
- package/__mf/js/async/1299.b3dc5c89.js +1 -0
- package/__mf/js/async/1522.c41bc562.js +22 -0
- package/__mf/js/async/1616.e680a07f.js +1 -0
- package/__mf/js/async/1871.fe54ab4e.js +1 -0
- package/__mf/js/async/1969.d946615b.js +1 -0
- package/__mf/js/async/2218.51c7742c.js +2 -0
- package/__mf/js/async/2377.14dda722.js +1 -0
- package/__mf/js/async/2657.0066c1f3.js +1 -0
- package/__mf/js/async/3222.20ec9ee4.js +1 -0
- package/__mf/js/async/3910.b5d5ed03.js +1 -0
- package/__mf/js/async/392.11937443.js +2 -0
- package/__mf/js/async/3963.54b09d75.js +1 -0
- package/__mf/js/async/4121.cfc092b2.js +2 -0
- package/__mf/js/async/4133.2466cfcc.js +28 -0
- package/__mf/js/async/4213.9de2ae83.js +1 -0
- package/__mf/js/async/{4466.a8145edd.js → 4466.be399be0.js} +3 -3
- package/__mf/js/async/4481.a8fabc1a.js +2 -0
- package/__mf/js/async/4957.62663311.js +1 -0
- package/__mf/js/async/4978.a229b85b.js +1 -0
- package/__mf/js/async/5038.9c3ee144.js +2 -0
- package/__mf/js/async/5623.8c06770a.js +1 -0
- package/__mf/js/async/5968.fb0e7bc9.js +7 -0
- package/__mf/js/async/{7790.a75199e6.js.LICENSE.txt → 5968.fb0e7bc9.js.LICENSE.txt} +38 -0
- package/__mf/js/async/6274.45d7dcb4.js +2 -0
- package/__mf/js/async/6390.d5b9d294.js +2 -0
- package/__mf/js/async/6401.d44c37e4.js +1 -0
- package/__mf/js/async/6594.430d845a.js +2 -0
- package/__mf/js/async/663.8ae70b57.js +1 -0
- package/__mf/js/async/6911.1e492669.js +37 -0
- package/__mf/js/async/7177.e17b1f66.js +1 -0
- package/__mf/js/async/7192.e14724bd.js +1 -0
- package/__mf/js/async/7283.8f93ba0a.js +2 -0
- package/__mf/js/async/7862.fe1ed3c8.js +2 -0
- package/__mf/js/async/8470.9713c0c1.js +2 -0
- package/__mf/js/async/8697.9578c83e.js +1 -0
- package/__mf/js/async/8711.f5dcfad1.js +2 -0
- package/__mf/js/async/8816.6639efe5.js +1 -0
- package/__mf/js/async/8907.f08d5712.js +1 -0
- package/__mf/js/async/{9040.94717f28.js → 9040.b16cad40.js} +4 -4
- package/__mf/js/async/9184.c50ca9d4.js +1 -0
- package/__mf/js/async/9235.8d9a31b6.js +1 -0
- package/__mf/js/async/941.f680467a.js +2 -0
- package/__mf/js/async/9603.b2aeca71.js +1 -0
- package/__mf/js/async/9700.e1cf74e6.js +3 -0
- package/__mf/js/async/983.7e4d67d6.js +1 -0
- package/__mf/js/async/9836.c697c034.js +1 -0
- package/__mf/js/async/__federation_expose_AlertManagerAlertsExplorer.702ab2db.js +2 -0
- package/__mf/js/async/__federation_expose_AlertManagerAlertsQuery.0e832f57.js +1 -0
- package/__mf/js/async/__federation_expose_AlertManagerDatasource.9acf1c1d.js +2 -0
- package/__mf/js/async/__federation_expose_AlertManagerSilencesExplorer.537f52dd.js +2 -0
- package/__mf/js/async/__federation_expose_AlertManagerSilencesQuery.5c356656.js +2 -0
- package/__mf/js/async/__federation_expose_AlertTable.22c6f725.js +1 -0
- package/__mf/js/async/__federation_expose_SilenceTable.f7a7955f.js +2 -0
- package/__mf/js/async/__federation_expose_SilenceTable.f7a7955f.js.LICENSE.txt +9 -0
- package/__mf/js/async/lib-router.07082537.js +2 -0
- package/__mf/js/{main.a1362788.js → main.886f07a7.js} +2 -2
- package/lib/bootstrap.js +2 -2
- package/lib/components/ColumnsEditor.d.ts +1 -1
- package/lib/components/ColumnsEditor.d.ts.map +1 -1
- package/lib/components/ColumnsEditor.js +7 -7
- package/lib/components/ColumnsEditor.js.map +1 -1
- package/lib/components/LazyTextField.d.ts +1 -1
- package/lib/components/LazyTextField.d.ts.map +1 -1
- package/lib/components/LazyTextField.js +2 -2
- package/lib/components/LazyTextField.js.map +1 -1
- package/lib/components/MatcherEditor.d.ts +1 -1
- package/lib/components/MatcherEditor.d.ts.map +1 -1
- package/lib/components/MatcherEditor.js +4 -4
- package/lib/components/MatcherEditor.js.map +1 -1
- package/lib/components/MatchersList.d.ts +2 -2
- package/lib/components/MatchersList.d.ts.map +1 -1
- package/lib/components/MatchersList.js +1 -1
- package/lib/components/MatchersList.js.map +1 -1
- package/lib/components/SilenceForm.d.ts +2 -2
- package/lib/components/SilenceForm.d.ts.map +1 -1
- package/lib/components/SilenceForm.js +4 -4
- package/lib/components/SilenceForm.js.map +1 -1
- package/lib/components/StatusBadge.d.ts +1 -1
- package/lib/components/StatusBadge.d.ts.map +1 -1
- package/lib/components/StatusBadge.js +1 -1
- package/lib/components/StatusBadge.js.map +1 -1
- package/lib/components/index.js +5 -5
- package/lib/components/index.js.map +1 -1
- package/lib/explore/AlertManagerAlertsExplorer.d.ts +1 -1
- package/lib/explore/AlertManagerAlertsExplorer.d.ts.map +1 -1
- package/lib/explore/AlertManagerAlertsExplorer.js +5 -5
- package/lib/explore/AlertManagerAlertsExplorer.js.map +1 -1
- package/lib/explore/AlertManagerSilencesExplorer.d.ts +1 -1
- package/lib/explore/AlertManagerSilencesExplorer.d.ts.map +1 -1
- package/lib/explore/AlertManagerSilencesExplorer.js +10 -10
- package/lib/explore/AlertManagerSilencesExplorer.js.map +1 -1
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/model/alertmanager-client.d.ts +3 -3
- package/lib/model/alertmanager-client.d.ts.map +1 -1
- package/lib/model/alertmanager-client.js +4 -2
- package/lib/model/alertmanager-client.js.map +1 -1
- package/lib/model/alertmanager-selectors.d.ts +2 -2
- package/lib/model/alertmanager-selectors.d.ts.map +1 -1
- package/lib/model/alertmanager-selectors.js +1 -1
- package/lib/model/alertmanager-selectors.js.map +1 -1
- package/lib/model/index.js +3 -3
- package/lib/model/index.js.map +1 -1
- package/lib/plugins/AlertManagerDatasourceEditor.d.ts +2 -2
- package/lib/plugins/AlertManagerDatasourceEditor.d.ts.map +1 -1
- package/lib/plugins/AlertManagerDatasourceEditor.js +1 -1
- package/lib/plugins/AlertManagerDatasourceEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTable.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTable.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTable.js +5 -5
- package/lib/plugins/alert-table/AlertTable.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableColumnsEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableColumnsEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableColumnsEditor.js +4 -4
- package/lib/plugins/alert-table/AlertTableColumnsEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.js +4 -4
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableLabelsEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableLabelsEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableLabelsEditor.js +6 -6
- package/lib/plugins/alert-table/AlertTableLabelsEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableOptionsEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableOptionsEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableOptionsEditor.js +5 -5
- package/lib/plugins/alert-table/AlertTableOptionsEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTablePanel.d.ts +4 -4
- package/lib/plugins/alert-table/AlertTablePanel.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTablePanel.js +21 -21
- package/lib/plugins/alert-table/AlertTablePanel.js.map +1 -1
- package/lib/plugins/alert-table/alert-table-model.d.ts +1 -1
- package/lib/plugins/alert-table/alert-table-model.d.ts.map +1 -1
- package/lib/plugins/alert-table/alert-table-model.js +2 -2
- package/lib/plugins/alert-table/alert-table-model.js.map +1 -1
- package/lib/plugins/alert-table/alert-table-sorting.d.ts +2 -2
- package/lib/plugins/alert-table/alert-table-sorting.d.ts.map +1 -1
- package/lib/plugins/alert-table/alert-table-sorting.js +1 -1
- package/lib/plugins/alert-table/alert-table-sorting.js.map +1 -1
- package/lib/plugins/alert-table/label-colors.d.ts +1 -1
- package/lib/plugins/alert-table/label-colors.d.ts.map +1 -1
- package/lib/plugins/alert-table/label-colors.js.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.d.ts +2 -2
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.d.ts.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.js +3 -3
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.js.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.d.ts +2 -2
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.d.ts.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.js +7 -7
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.js.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.d.ts +3 -3
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.d.ts.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.js +2 -2
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.js.map +1 -1
- package/lib/plugins/alertmanager-datasource.d.ts +3 -3
- package/lib/plugins/alertmanager-datasource.d.ts.map +1 -1
- package/lib/plugins/alertmanager-datasource.js +2 -2
- package/lib/plugins/alertmanager-datasource.js.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.d.ts +2 -2
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.d.ts.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.js +3 -3
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.js.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.d.ts +2 -2
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.d.ts.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.js +7 -7
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.js.map +1 -1
- package/lib/plugins/alertmanager-silences-query/get-silences-data.d.ts +3 -3
- package/lib/plugins/alertmanager-silences-query/get-silences-data.d.ts.map +1 -1
- package/lib/plugins/alertmanager-silences-query/get-silences-data.js +2 -2
- package/lib/plugins/alertmanager-silences-query/get-silences-data.js.map +1 -1
- package/lib/plugins/index.js +16 -16
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTable.d.ts +2 -2
- package/lib/plugins/silence-table/SilenceTable.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTable.js +3 -3
- package/lib/plugins/silence-table/SilenceTable.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.d.ts +3 -3
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.js +5 -5
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.d.ts +3 -3
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.js +5 -5
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTablePanel.d.ts +4 -4
- package/lib/plugins/silence-table/SilenceTablePanel.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTablePanel.js +13 -13
- package/lib/plugins/silence-table/SilenceTablePanel.js.map +1 -1
- package/lib/plugins/silence-table/silence-table-model.d.ts +1 -1
- package/lib/plugins/silence-table/silence-table-model.d.ts.map +1 -1
- package/lib/plugins/silence-table/silence-table-model.js.map +1 -1
- package/lib/plugins/silence-table/silence-table-sorting.d.ts +2 -2
- package/lib/plugins/silence-table/silence-table-sorting.d.ts.map +1 -1
- package/lib/plugins/silence-table/silence-table-sorting.js +1 -1
- package/lib/plugins/silence-table/silence-table-sorting.js.map +1 -1
- package/lib/plugins/types.d.ts +3 -3
- package/lib/plugins/types.d.ts.map +1 -1
- package/lib/plugins/types.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/mf-manifest.json +283 -276
- package/mf-stats.json +289 -282
- package/package.json +14 -13
- package/__mf/js/async/1616.24f00c9d.js +0 -1
- package/__mf/js/async/1728.83bb9a7c.js +0 -1
- package/__mf/js/async/1871.23ff54b3.js +0 -1
- package/__mf/js/async/1969.a83b1b48.js +0 -1
- package/__mf/js/async/2218.7829c9d9.js +0 -2
- package/__mf/js/async/2377.f8875a4e.js +0 -1
- package/__mf/js/async/2657.fe8dd44f.js +0 -1
- package/__mf/js/async/2954.3ac1f636.js +0 -2
- package/__mf/js/async/392.7e11dd69.js +0 -2
- package/__mf/js/async/3963.fb6246d2.js +0 -1
- package/__mf/js/async/4121.ec666be2.js +0 -2
- package/__mf/js/async/4133.e94df4f8.js +0 -28
- package/__mf/js/async/4213.a0c4f2eb.js +0 -1
- package/__mf/js/async/4397.d399eecb.js +0 -2
- package/__mf/js/async/4397.d399eecb.js.LICENSE.txt +0 -37
- package/__mf/js/async/4732.e866a740.js +0 -1
- package/__mf/js/async/4788.49ffeac3.js +0 -1
- package/__mf/js/async/5038.269393e3.js +0 -2
- package/__mf/js/async/573.214f2003.js +0 -2
- package/__mf/js/async/6274.8c77cb1a.js +0 -2
- package/__mf/js/async/6390.3f6f279d.js +0 -2
- package/__mf/js/async/6401.1a59dbad.js +0 -1
- package/__mf/js/async/6593.acc8b704.js +0 -4
- package/__mf/js/async/6593.acc8b704.js.LICENSE.txt +0 -24
- package/__mf/js/async/6594.b02adfd9.js +0 -2
- package/__mf/js/async/663.5445c7e0.js +0 -1
- package/__mf/js/async/6854.1d628838.js +0 -1
- package/__mf/js/async/7177.27c86137.js +0 -1
- package/__mf/js/async/7192.ede9860b.js +0 -1
- package/__mf/js/async/733.22ab2a8a.js +0 -1
- package/__mf/js/async/7422.33d76364.js +0 -2
- package/__mf/js/async/7790.a75199e6.js +0 -7
- package/__mf/js/async/7862.556c038f.js +0 -2
- package/__mf/js/async/7984.49fa1156.js +0 -22
- package/__mf/js/async/804.23da0d30.js +0 -37
- package/__mf/js/async/8470.2df0db71.js +0 -2
- package/__mf/js/async/8697.c13c6603.js +0 -1
- package/__mf/js/async/8907.9e3edf43.js +0 -1
- package/__mf/js/async/9184.27a439a4.js +0 -1
- package/__mf/js/async/9235.00f9412f.js +0 -1
- package/__mf/js/async/941.d3bc6208.js +0 -2
- package/__mf/js/async/9634.3a366799.js +0 -1
- package/__mf/js/async/9836.cc839227.js +0 -1
- package/__mf/js/async/__federation_expose_AlertManagerAlertsExplorer.d4fb76c0.js +0 -2
- package/__mf/js/async/__federation_expose_AlertManagerAlertsQuery.9ea3093c.js +0 -1
- package/__mf/js/async/__federation_expose_AlertManagerDatasource.2fbf067c.js +0 -2
- package/__mf/js/async/__federation_expose_AlertManagerSilencesExplorer.d2527c12.js +0 -2
- package/__mf/js/async/__federation_expose_AlertManagerSilencesQuery.7aca31d3.js +0 -2
- package/__mf/js/async/__federation_expose_AlertTable.4a636b80.js +0 -1
- package/__mf/js/async/__federation_expose_SilenceTable.11259028.js +0 -1
- package/__mf/js/async/lib-router.19f64904.js +0 -2
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/components/ColumnsEditor.js +0 -271
- package/lib/cjs/components/LazyTextField.js +0 -50
- package/lib/cjs/components/MatcherEditor.js +0 -153
- package/lib/cjs/components/MatchersList.js +0 -46
- package/lib/cjs/components/SilenceForm.js +0 -205
- package/lib/cjs/components/StatusBadge.js +0 -71
- package/lib/cjs/components/index.js +0 -44
- package/lib/cjs/explore/AlertManagerAlertsExplorer.js +0 -79
- package/lib/cjs/explore/AlertManagerSilencesExplorer.js +0 -153
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -39
- package/lib/cjs/model/alertmanager-client.js +0 -128
- package/lib/cjs/model/alertmanager-selectors.js +0 -66
- package/lib/cjs/model/api-types.js +0 -22
- package/lib/cjs/model/index.js +0 -32
- package/lib/cjs/plugins/AlertManagerDatasourceEditor.js +0 -71
- package/lib/cjs/plugins/alert-table/AlertTable.js +0 -56
- package/lib/cjs/plugins/alert-table/AlertTableColumnsEditor.js +0 -110
- package/lib/cjs/plugins/alert-table/AlertTableDeduplicationEditor.js +0 -138
- package/lib/cjs/plugins/alert-table/AlertTableLabelsEditor.js +0 -277
- package/lib/cjs/plugins/alert-table/AlertTableOptionsEditor.js +0 -128
- package/lib/cjs/plugins/alert-table/AlertTablePanel.js +0 -773
- package/lib/cjs/plugins/alert-table/alert-table-model.js +0 -142
- package/lib/cjs/plugins/alert-table/alert-table-sorting.js +0 -205
- package/lib/cjs/plugins/alert-table/label-colors.js +0 -170
- package/lib/cjs/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.js +0 -51
- package/lib/cjs/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.js +0 -138
- package/lib/cjs/plugins/alertmanager-alerts-query/get-alerts-data.js +0 -124
- package/lib/cjs/plugins/alertmanager-datasource.js +0 -69
- package/lib/cjs/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.js +0 -45
- package/lib/cjs/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.js +0 -78
- package/lib/cjs/plugins/alertmanager-silences-query/get-silences-data.js +0 -64
- package/lib/cjs/plugins/index.js +0 -74
- package/lib/cjs/plugins/silence-table/SilenceTable.js +0 -42
- package/lib/cjs/plugins/silence-table/SilenceTableColumnsEditor.js +0 -137
- package/lib/cjs/plugins/silence-table/SilenceTableOptionsEditor.js +0 -63
- package/lib/cjs/plugins/silence-table/SilenceTablePanel.js +0 -345
- package/lib/cjs/plugins/silence-table/silence-table-model.js +0 -116
- package/lib/cjs/plugins/silence-table/silence-table-sorting.js +0 -68
- package/lib/cjs/plugins/types.js +0 -16
- package/lib/cjs/setup-tests.js +0 -18
- /package/__mf/css/async/{7790.85c2cbf6.css → 5968.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{7984.49fa1156.js.LICENSE.txt → 1522.c41bc562.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2218.7829c9d9.js.LICENSE.txt → 2218.51c7742c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.7e11dd69.js.LICENSE.txt → 392.11937443.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4121.ec666be2.js.LICENSE.txt → 4121.cfc092b2.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5038.269393e3.js.LICENSE.txt → 5038.9c3ee144.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.8c77cb1a.js.LICENSE.txt → 6274.45d7dcb4.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{573.214f2003.js.LICENSE.txt → 6390.d5b9d294.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6390.3f6f279d.js.LICENSE.txt → 6594.430d845a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6594.b02adfd9.js.LICENSE.txt → 7283.8f93ba0a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7862.556c038f.js.LICENSE.txt → 7862.fe1ed3c8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.2df0db71.js.LICENSE.txt → 8470.9713c0c1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7422.33d76364.js.LICENSE.txt → 8711.f5dcfad1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9040.94717f28.js.LICENSE.txt → 9040.b16cad40.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.d3bc6208.js.LICENSE.txt → 941.f680467a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerAlertsExplorer.d4fb76c0.js.LICENSE.txt → __federation_expose_AlertManagerAlertsExplorer.702ab2db.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerDatasource.2fbf067c.js.LICENSE.txt → __federation_expose_AlertManagerDatasource.9acf1c1d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerSilencesExplorer.d2527c12.js.LICENSE.txt → __federation_expose_AlertManagerSilencesExplorer.537f52dd.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerSilencesQuery.7aca31d3.js.LICENSE.txt → __federation_expose_AlertManagerSilencesQuery.5c356656.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.19f64904.js.LICENSE.txt → lib-router.07082537.js.LICENSE.txt} +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "AlertTableColumnsEditor", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return AlertTableColumnsEditor;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _material = require("@mui/material");
|
|
25
|
-
const _immer = require("immer");
|
|
26
|
-
const _react = require("react");
|
|
27
|
-
const _ColumnsEditor = require("../../components/ColumnsEditor");
|
|
28
|
-
const SORT_MODE_LABELS = {
|
|
29
|
-
alphabetical: 'Alphabetical',
|
|
30
|
-
numeric: 'Numeric',
|
|
31
|
-
severity: 'Severity (critical → other)',
|
|
32
|
-
status: 'Status (firing → resolved)'
|
|
33
|
-
};
|
|
34
|
-
function AlertTableColumnsEditor(props) {
|
|
35
|
-
const { value, onChange } = props;
|
|
36
|
-
const columns = value.columns ?? [];
|
|
37
|
-
const handleAddColumn = (0, _react.useCallback)(()=>{
|
|
38
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
39
|
-
if (!draft.columns) draft.columns = [];
|
|
40
|
-
draft.columns.push({
|
|
41
|
-
name: ''
|
|
42
|
-
});
|
|
43
|
-
}));
|
|
44
|
-
}, [
|
|
45
|
-
value,
|
|
46
|
-
onChange
|
|
47
|
-
]);
|
|
48
|
-
const handleRemoveColumn = (0, _react.useCallback)((index)=>{
|
|
49
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
50
|
-
draft.columns?.splice(index, 1);
|
|
51
|
-
}));
|
|
52
|
-
}, [
|
|
53
|
-
value,
|
|
54
|
-
onChange
|
|
55
|
-
]);
|
|
56
|
-
const handleUpdateColumn = (0, _react.useCallback)((index, updater)=>{
|
|
57
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
58
|
-
const column = draft.columns?.[index];
|
|
59
|
-
if (column) {
|
|
60
|
-
updater(column);
|
|
61
|
-
}
|
|
62
|
-
}));
|
|
63
|
-
}, [
|
|
64
|
-
value,
|
|
65
|
-
onChange
|
|
66
|
-
]);
|
|
67
|
-
const handleMoveUp = (0, _react.useCallback)((index)=>{
|
|
68
|
-
if (index <= 0) return;
|
|
69
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
70
|
-
if (!draft.columns) return;
|
|
71
|
-
const item = draft.columns.splice(index, 1)[0];
|
|
72
|
-
draft.columns.splice(index - 1, 0, item);
|
|
73
|
-
}));
|
|
74
|
-
}, [
|
|
75
|
-
value,
|
|
76
|
-
onChange
|
|
77
|
-
]);
|
|
78
|
-
const handleMoveDown = (0, _react.useCallback)((index)=>{
|
|
79
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
80
|
-
if (!draft.columns || index >= draft.columns.length - 1) return;
|
|
81
|
-
const item = draft.columns.splice(index, 1)[0];
|
|
82
|
-
draft.columns.splice(index + 1, 0, item);
|
|
83
|
-
}));
|
|
84
|
-
}, [
|
|
85
|
-
value,
|
|
86
|
-
onChange
|
|
87
|
-
]);
|
|
88
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColumnsEditor.ColumnsEditor, {
|
|
89
|
-
columns: columns,
|
|
90
|
-
description: "Status and Alert Name are always shown. Add extra columns below.",
|
|
91
|
-
sortModeLabels: SORT_MODE_LABELS,
|
|
92
|
-
defaultSortMode: "alphabetical",
|
|
93
|
-
getDisplayName: (col)=>col.header || col.name || 'New column',
|
|
94
|
-
getHeaderPlaceholder: (col)=>col.name || 'Column header',
|
|
95
|
-
onAdd: handleAddColumn,
|
|
96
|
-
onRemove: handleRemoveColumn,
|
|
97
|
-
onUpdate: handleUpdateColumn,
|
|
98
|
-
onMoveUp: handleMoveUp,
|
|
99
|
-
onMoveDown: handleMoveDown,
|
|
100
|
-
renderNameField: (col, index, onUpdate)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
101
|
-
label: "Label key",
|
|
102
|
-
value: col.name,
|
|
103
|
-
onChange: (e)=>onUpdate(index, (draft)=>{
|
|
104
|
-
draft.name = e.target.value;
|
|
105
|
-
}),
|
|
106
|
-
size: "small",
|
|
107
|
-
fullWidth: true
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "AlertTableDeduplicationEditor", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return AlertTableDeduplicationEditor;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _material = require("@mui/material");
|
|
25
|
-
const _components = require("@perses-dev/components");
|
|
26
|
-
const _immer = require("immer");
|
|
27
|
-
const _react = require("react");
|
|
28
|
-
const MODE_DESCRIPTIONS = {
|
|
29
|
-
none: 'No deduplication. All alerts from all datasources are shown as-is.',
|
|
30
|
-
fingerprint: 'Alerts with the same fingerprint from different datasources are merged. This is the default.',
|
|
31
|
-
labels: 'Alerts are considered duplicates when all specified label values match.'
|
|
32
|
-
};
|
|
33
|
-
function AlertTableDeduplicationEditor(props) {
|
|
34
|
-
const { value, onChange } = props;
|
|
35
|
-
const dedup = value.deduplication ?? {
|
|
36
|
-
mode: 'fingerprint'
|
|
37
|
-
};
|
|
38
|
-
const handleModeChange = (0, _react.useCallback)((mode)=>{
|
|
39
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
40
|
-
draft.deduplication = {
|
|
41
|
-
mode
|
|
42
|
-
};
|
|
43
|
-
if (mode === 'labels') {
|
|
44
|
-
draft.deduplication.labels = draft.deduplication.labels ?? [];
|
|
45
|
-
}
|
|
46
|
-
}));
|
|
47
|
-
}, [
|
|
48
|
-
value,
|
|
49
|
-
onChange
|
|
50
|
-
]);
|
|
51
|
-
const handleLabelsChange = (0, _react.useCallback)((_event, newLabels)=>{
|
|
52
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
53
|
-
if (!draft.deduplication) {
|
|
54
|
-
draft.deduplication = {
|
|
55
|
-
mode: 'labels'
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
draft.deduplication.labels = newLabels.length > 0 ? newLabels : undefined;
|
|
59
|
-
}));
|
|
60
|
-
}, [
|
|
61
|
-
value,
|
|
62
|
-
onChange
|
|
63
|
-
]);
|
|
64
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
65
|
-
children: [
|
|
66
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.OptionsEditorGroup, {
|
|
67
|
-
title: "Mode",
|
|
68
|
-
children: [
|
|
69
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.FormControl, {
|
|
70
|
-
size: "small",
|
|
71
|
-
fullWidth: true,
|
|
72
|
-
children: [
|
|
73
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.InputLabel, {
|
|
74
|
-
id: "dedup-mode-label",
|
|
75
|
-
children: "Deduplication Mode"
|
|
76
|
-
}),
|
|
77
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Select, {
|
|
78
|
-
labelId: "dedup-mode-label",
|
|
79
|
-
value: dedup.mode,
|
|
80
|
-
label: "Deduplication Mode",
|
|
81
|
-
onChange: (e)=>handleModeChange(e.target.value),
|
|
82
|
-
children: [
|
|
83
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
|
|
84
|
-
value: "none",
|
|
85
|
-
children: "None"
|
|
86
|
-
}),
|
|
87
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
|
|
88
|
-
value: "fingerprint",
|
|
89
|
-
children: "Fingerprint"
|
|
90
|
-
}),
|
|
91
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
|
|
92
|
-
value: "labels",
|
|
93
|
-
children: "Labels"
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
})
|
|
97
|
-
]
|
|
98
|
-
}),
|
|
99
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
100
|
-
variant: "body2",
|
|
101
|
-
color: "text.secondary",
|
|
102
|
-
sx: {
|
|
103
|
-
mt: 1
|
|
104
|
-
},
|
|
105
|
-
children: MODE_DESCRIPTIONS[dedup.mode]
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
}),
|
|
109
|
-
dedup.mode === 'labels' && /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorGroup, {
|
|
110
|
-
title: "Deduplication Labels",
|
|
111
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Autocomplete, {
|
|
112
|
-
multiple: true,
|
|
113
|
-
freeSolo: true,
|
|
114
|
-
options: [],
|
|
115
|
-
value: dedup.labels ?? [],
|
|
116
|
-
onChange: handleLabelsChange,
|
|
117
|
-
renderTags: (tagValues, getTagProps)=>tagValues.map((option, index)=>{
|
|
118
|
-
const { key, ...rest } = getTagProps({
|
|
119
|
-
index
|
|
120
|
-
});
|
|
121
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Chip, {
|
|
122
|
-
label: option,
|
|
123
|
-
size: "small",
|
|
124
|
-
variant: "outlined",
|
|
125
|
-
...rest
|
|
126
|
-
}, key);
|
|
127
|
-
}),
|
|
128
|
-
renderInput: (params)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
129
|
-
...params,
|
|
130
|
-
size: "small",
|
|
131
|
-
placeholder: "Type a label key and press Enter",
|
|
132
|
-
helperText: "Alerts with identical values for all listed labels are considered duplicates."
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
})
|
|
136
|
-
]
|
|
137
|
-
});
|
|
138
|
-
}
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "AlertTableLabelsEditor", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return AlertTableLabelsEditor;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _material = require("@mui/material");
|
|
25
|
-
const _components = require("@perses-dev/components");
|
|
26
|
-
const _immer = require("immer");
|
|
27
|
-
const _Delete = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Delete"));
|
|
28
|
-
const _Plus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Plus"));
|
|
29
|
-
const _react = require("react");
|
|
30
|
-
function _interop_require_default(obj) {
|
|
31
|
-
return obj && obj.__esModule ? obj : {
|
|
32
|
-
default: obj
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
const MODE_LABELS = {
|
|
36
|
-
auto: 'Auto (hash-derived colors)',
|
|
37
|
-
severity: 'Severity (built-in defaults)',
|
|
38
|
-
manual: 'Manual (overrides only)'
|
|
39
|
-
};
|
|
40
|
-
function LabelMappingEntry({ mapping, index, onUpdate, onRemove }) {
|
|
41
|
-
const handleAddOverride = (0, _react.useCallback)(()=>{
|
|
42
|
-
onUpdate(index, (draft)=>{
|
|
43
|
-
if (!draft.overrides) draft.overrides = [];
|
|
44
|
-
draft.overrides.push({
|
|
45
|
-
value: '',
|
|
46
|
-
isRegex: false,
|
|
47
|
-
color: '#1976d2'
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
}, [
|
|
51
|
-
index,
|
|
52
|
-
onUpdate
|
|
53
|
-
]);
|
|
54
|
-
const handleRemoveOverride = (0, _react.useCallback)((overrideIndex)=>{
|
|
55
|
-
onUpdate(index, (draft)=>{
|
|
56
|
-
draft.overrides?.splice(overrideIndex, 1);
|
|
57
|
-
});
|
|
58
|
-
}, [
|
|
59
|
-
index,
|
|
60
|
-
onUpdate
|
|
61
|
-
]);
|
|
62
|
-
const handleUpdateOverride = (0, _react.useCallback)((overrideIndex, field, fieldValue)=>{
|
|
63
|
-
onUpdate(index, (draft)=>{
|
|
64
|
-
const override = draft.overrides?.[overrideIndex];
|
|
65
|
-
if (override) {
|
|
66
|
-
if (field === 'isRegex') {
|
|
67
|
-
override.isRegex = fieldValue;
|
|
68
|
-
} else {
|
|
69
|
-
override[field] = fieldValue;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}, [
|
|
74
|
-
index,
|
|
75
|
-
onUpdate
|
|
76
|
-
]);
|
|
77
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
78
|
-
sx: {
|
|
79
|
-
border: 1,
|
|
80
|
-
borderColor: 'divider',
|
|
81
|
-
borderRadius: 1,
|
|
82
|
-
p: 2
|
|
83
|
-
},
|
|
84
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
85
|
-
spacing: 2,
|
|
86
|
-
children: [
|
|
87
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
88
|
-
direction: "row",
|
|
89
|
-
spacing: 1,
|
|
90
|
-
alignItems: "center",
|
|
91
|
-
justifyContent: "space-between",
|
|
92
|
-
children: [
|
|
93
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
94
|
-
variant: "subtitle2",
|
|
95
|
-
children: mapping.labelKey || 'New label'
|
|
96
|
-
}),
|
|
97
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
98
|
-
size: "small",
|
|
99
|
-
onClick: ()=>onRemove(index),
|
|
100
|
-
"aria-label": "Remove label mapping",
|
|
101
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Delete.default, {
|
|
102
|
-
fontSize: "small"
|
|
103
|
-
})
|
|
104
|
-
})
|
|
105
|
-
]
|
|
106
|
-
}),
|
|
107
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
108
|
-
label: "Label key",
|
|
109
|
-
value: mapping.labelKey,
|
|
110
|
-
onChange: (e)=>onUpdate(index, (draft)=>{
|
|
111
|
-
draft.labelKey = e.target.value;
|
|
112
|
-
}),
|
|
113
|
-
size: "small",
|
|
114
|
-
fullWidth: true
|
|
115
|
-
}),
|
|
116
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.FormControl, {
|
|
117
|
-
size: "small",
|
|
118
|
-
fullWidth: true,
|
|
119
|
-
children: [
|
|
120
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.InputLabel, {
|
|
121
|
-
id: `color-mode-label-${index}`,
|
|
122
|
-
children: "Mode"
|
|
123
|
-
}),
|
|
124
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Select, {
|
|
125
|
-
labelId: `color-mode-label-${index}`,
|
|
126
|
-
value: mapping.mode,
|
|
127
|
-
onChange: (e)=>onUpdate(index, (draft)=>{
|
|
128
|
-
draft.mode = e.target.value;
|
|
129
|
-
}),
|
|
130
|
-
label: "Mode",
|
|
131
|
-
children: Object.keys(MODE_LABELS).map((mode)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
|
|
132
|
-
value: mode,
|
|
133
|
-
children: MODE_LABELS[mode]
|
|
134
|
-
}, mode))
|
|
135
|
-
})
|
|
136
|
-
]
|
|
137
|
-
}),
|
|
138
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
139
|
-
children: [
|
|
140
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
141
|
-
variant: "body2",
|
|
142
|
-
color: "text.secondary",
|
|
143
|
-
sx: {
|
|
144
|
-
mb: 1
|
|
145
|
-
},
|
|
146
|
-
children: "Overrides"
|
|
147
|
-
}),
|
|
148
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
149
|
-
spacing: 1,
|
|
150
|
-
children: [
|
|
151
|
-
(mapping.overrides ?? []).map((override, overrideIndex)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
152
|
-
direction: "row",
|
|
153
|
-
spacing: 1,
|
|
154
|
-
alignItems: "center",
|
|
155
|
-
children: [
|
|
156
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
157
|
-
label: "Value / Pattern",
|
|
158
|
-
value: override.value,
|
|
159
|
-
onChange: (e)=>handleUpdateOverride(overrideIndex, 'value', e.target.value),
|
|
160
|
-
size: "small",
|
|
161
|
-
sx: {
|
|
162
|
-
flex: 1
|
|
163
|
-
}
|
|
164
|
-
}),
|
|
165
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormControlLabel, {
|
|
166
|
-
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Checkbox, {
|
|
167
|
-
checked: override.isRegex,
|
|
168
|
-
onChange: (e)=>handleUpdateOverride(overrideIndex, 'isRegex', e.target.checked),
|
|
169
|
-
size: "small"
|
|
170
|
-
}),
|
|
171
|
-
label: "Regex"
|
|
172
|
-
}),
|
|
173
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("input", {
|
|
174
|
-
type: "color",
|
|
175
|
-
value: override.color,
|
|
176
|
-
onChange: (e)=>handleUpdateOverride(overrideIndex, 'color', e.target.value),
|
|
177
|
-
style: {
|
|
178
|
-
width: 36,
|
|
179
|
-
height: 28,
|
|
180
|
-
border: 'none',
|
|
181
|
-
cursor: 'pointer'
|
|
182
|
-
}
|
|
183
|
-
}),
|
|
184
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
185
|
-
size: "small",
|
|
186
|
-
onClick: ()=>handleRemoveOverride(overrideIndex),
|
|
187
|
-
"aria-label": "Remove override",
|
|
188
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Delete.default, {
|
|
189
|
-
fontSize: "small"
|
|
190
|
-
})
|
|
191
|
-
})
|
|
192
|
-
]
|
|
193
|
-
}, overrideIndex)),
|
|
194
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
|
|
195
|
-
size: "small",
|
|
196
|
-
startIcon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Plus.default, {}),
|
|
197
|
-
onClick: handleAddOverride,
|
|
198
|
-
children: "Add override"
|
|
199
|
-
})
|
|
200
|
-
]
|
|
201
|
-
})
|
|
202
|
-
]
|
|
203
|
-
})
|
|
204
|
-
]
|
|
205
|
-
})
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
function AlertTableLabelsEditor(props) {
|
|
209
|
-
const { value, onChange } = props;
|
|
210
|
-
const mappings = value.labelColorMappings ?? [];
|
|
211
|
-
const handleAddMapping = (0, _react.useCallback)(()=>{
|
|
212
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
213
|
-
if (!draft.labelColorMappings) draft.labelColorMappings = [];
|
|
214
|
-
draft.labelColorMappings.push({
|
|
215
|
-
labelKey: '',
|
|
216
|
-
mode: 'auto'
|
|
217
|
-
});
|
|
218
|
-
}));
|
|
219
|
-
}, [
|
|
220
|
-
value,
|
|
221
|
-
onChange
|
|
222
|
-
]);
|
|
223
|
-
const handleRemoveMapping = (0, _react.useCallback)((index)=>{
|
|
224
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
225
|
-
draft.labelColorMappings?.splice(index, 1);
|
|
226
|
-
}));
|
|
227
|
-
}, [
|
|
228
|
-
value,
|
|
229
|
-
onChange
|
|
230
|
-
]);
|
|
231
|
-
const handleUpdateMapping = (0, _react.useCallback)((index, updater)=>{
|
|
232
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
233
|
-
const mapping = draft.labelColorMappings?.[index];
|
|
234
|
-
if (mapping) {
|
|
235
|
-
updater(mapping);
|
|
236
|
-
}
|
|
237
|
-
}));
|
|
238
|
-
}, [
|
|
239
|
-
value,
|
|
240
|
-
onChange
|
|
241
|
-
]);
|
|
242
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorGroup, {
|
|
243
|
-
title: "Label Color Mappings",
|
|
244
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
245
|
-
spacing: 2,
|
|
246
|
-
children: [
|
|
247
|
-
mappings.length === 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
248
|
-
variant: "body2",
|
|
249
|
-
color: "text.secondary",
|
|
250
|
-
children: "No label color mappings configured. Add one to color label values in the table."
|
|
251
|
-
}),
|
|
252
|
-
mappings.map((mapping, index)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
253
|
-
children: [
|
|
254
|
-
index > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Divider, {
|
|
255
|
-
sx: {
|
|
256
|
-
mb: 2
|
|
257
|
-
}
|
|
258
|
-
}),
|
|
259
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(LabelMappingEntry, {
|
|
260
|
-
mapping: mapping,
|
|
261
|
-
index: index,
|
|
262
|
-
onUpdate: handleUpdateMapping,
|
|
263
|
-
onRemove: handleRemoveMapping
|
|
264
|
-
})
|
|
265
|
-
]
|
|
266
|
-
}, index)),
|
|
267
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
|
|
268
|
-
variant: "outlined",
|
|
269
|
-
size: "small",
|
|
270
|
-
startIcon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Plus.default, {}),
|
|
271
|
-
onClick: handleAddMapping,
|
|
272
|
-
children: "Add label mapping"
|
|
273
|
-
})
|
|
274
|
-
]
|
|
275
|
-
})
|
|
276
|
-
});
|
|
277
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "AlertTableOptionsEditor", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return AlertTableOptionsEditor;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _material = require("@mui/material");
|
|
25
|
-
const _components = require("@perses-dev/components");
|
|
26
|
-
const _immer = require("immer");
|
|
27
|
-
const _react = require("react");
|
|
28
|
-
const _alerttablemodel = require("./alert-table-model");
|
|
29
|
-
const ACTION_LABELS = {
|
|
30
|
-
silence: 'Silence alert',
|
|
31
|
-
runbook: 'View runbook'
|
|
32
|
-
};
|
|
33
|
-
function AlertTableOptionsEditor(props) {
|
|
34
|
-
const { value, onChange } = props;
|
|
35
|
-
const effectiveActions = value.allowedActions ?? _alerttablemodel.ALL_ALERT_ACTIONS;
|
|
36
|
-
const groupBy = value.defaultGroupBy ?? [
|
|
37
|
-
'alertname'
|
|
38
|
-
];
|
|
39
|
-
const handleGroupByChange = (0, _react.useCallback)((_event, newValue)=>{
|
|
40
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
41
|
-
draft.defaultGroupBy = newValue.length > 0 ? newValue : undefined;
|
|
42
|
-
}));
|
|
43
|
-
}, [
|
|
44
|
-
value,
|
|
45
|
-
onChange
|
|
46
|
-
]);
|
|
47
|
-
const handleRunbookKeyChange = (0, _react.useCallback)((e)=>{
|
|
48
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
49
|
-
const trimmed = e.target.value.trim();
|
|
50
|
-
draft.runbookAnnotationKey = trimmed || undefined;
|
|
51
|
-
}));
|
|
52
|
-
}, [
|
|
53
|
-
value,
|
|
54
|
-
onChange
|
|
55
|
-
]);
|
|
56
|
-
const handleToggle = (0, _react.useCallback)((action, checked)=>{
|
|
57
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
58
|
-
const current = draft.allowedActions ?? [
|
|
59
|
-
..._alerttablemodel.ALL_ALERT_ACTIONS
|
|
60
|
-
];
|
|
61
|
-
if (checked) {
|
|
62
|
-
if (!current.includes(action)) current.push(action);
|
|
63
|
-
} else {
|
|
64
|
-
const idx = current.indexOf(action);
|
|
65
|
-
if (idx >= 0) current.splice(idx, 1);
|
|
66
|
-
}
|
|
67
|
-
draft.allowedActions = current;
|
|
68
|
-
}));
|
|
69
|
-
}, [
|
|
70
|
-
value,
|
|
71
|
-
onChange
|
|
72
|
-
]);
|
|
73
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
74
|
-
children: [
|
|
75
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorGroup, {
|
|
76
|
-
title: "Group By",
|
|
77
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Autocomplete, {
|
|
78
|
-
multiple: true,
|
|
79
|
-
freeSolo: true,
|
|
80
|
-
options: [],
|
|
81
|
-
value: groupBy,
|
|
82
|
-
onChange: handleGroupByChange,
|
|
83
|
-
renderTags: (tagValues, getTagProps)=>tagValues.map((option, index)=>{
|
|
84
|
-
const { key, ...rest } = getTagProps({
|
|
85
|
-
index
|
|
86
|
-
});
|
|
87
|
-
const isVariable = option.includes('$');
|
|
88
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Chip, {
|
|
89
|
-
label: option,
|
|
90
|
-
size: "small",
|
|
91
|
-
variant: isVariable ? 'filled' : 'outlined',
|
|
92
|
-
color: isVariable ? 'primary' : 'default',
|
|
93
|
-
...rest
|
|
94
|
-
}, key);
|
|
95
|
-
}),
|
|
96
|
-
renderInput: (params)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
97
|
-
...params,
|
|
98
|
-
size: "small",
|
|
99
|
-
placeholder: "Type a label key or $variable and press Enter",
|
|
100
|
-
helperText: "Label keys to group alerts by. Supports $variable interpolation."
|
|
101
|
-
})
|
|
102
|
-
})
|
|
103
|
-
}),
|
|
104
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorGroup, {
|
|
105
|
-
title: "Actions",
|
|
106
|
-
children: _alerttablemodel.ALL_ALERT_ACTIONS.map((action)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.FormControlLabel, {
|
|
107
|
-
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Checkbox, {
|
|
108
|
-
checked: effectiveActions.includes(action),
|
|
109
|
-
onChange: (e)=>handleToggle(action, e.target.checked),
|
|
110
|
-
size: "small"
|
|
111
|
-
}),
|
|
112
|
-
label: ACTION_LABELS[action]
|
|
113
|
-
}, action))
|
|
114
|
-
}),
|
|
115
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorGroup, {
|
|
116
|
-
title: "Runbook",
|
|
117
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
118
|
-
size: "small",
|
|
119
|
-
fullWidth: true,
|
|
120
|
-
value: value.runbookAnnotationKey ?? '',
|
|
121
|
-
onChange: handleRunbookKeyChange,
|
|
122
|
-
placeholder: "runbook_url",
|
|
123
|
-
helperText: "Annotation key used to extract the runbook URL. Defaults to runbook_url."
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
]
|
|
127
|
-
});
|
|
128
|
-
}
|