From 229523c24f300afa80d37d6b3519e9ef13ecd12f Mon Sep 17 00:00:00 2001 From: nsano-rururu Date: Wed, 4 Aug 2021 22:50:16 +0900 Subject: [PATCH 1/6] Kibana Discover 7.14 support --- src/components/config/ConfigKibanaDiscover.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/config/ConfigKibanaDiscover.vue b/src/components/config/ConfigKibanaDiscover.vue index b492f96c..0ea76367 100644 --- a/src/components/config/ConfigKibanaDiscover.vue +++ b/src/components/config/ConfigKibanaDiscover.vue @@ -216,6 +216,9 @@ export default { }, { code: '7.13', name: '7.13' + }, { + code: '7.14', + name: '7.14' }], }; }, From f521f8c7396d0b4c3b7da2e831cb50da398a577b Mon Sep 17 00:00:00 2001 From: nsano-rururu Date: Thu, 5 Aug 2021 00:03:27 +0900 Subject: [PATCH 2/6] scan_entire_timeframe support --- .../config/ConfigScanEntireTimeframe.vue | 48 +++++++++++++++++++ src/components/config/alert/ConfigAlert.vue | 6 +++ src/registration.js | 2 + src/store/config/alert.js | 8 ++++ src/store/config/index.js | 16 +++++++ 5 files changed, 80 insertions(+) create mode 100644 src/components/config/ConfigScanEntireTimeframe.vue diff --git a/src/components/config/ConfigScanEntireTimeframe.vue b/src/components/config/ConfigScanEntireTimeframe.vue new file mode 100644 index 00000000..8308f78b --- /dev/null +++ b/src/components/config/ConfigScanEntireTimeframe.vue @@ -0,0 +1,48 @@ + + + diff --git a/src/components/config/alert/ConfigAlert.vue b/src/components/config/alert/ConfigAlert.vue index 1d643350..62c543a7 100644 --- a/src/components/config/alert/ConfigAlert.vue +++ b/src/components/config/alert/ConfigAlert.vue @@ -73,6 +73,12 @@ + + + + + + diff --git a/src/registration.js b/src/registration.js index b6c2e84a..f9ca5891 100644 --- a/src/registration.js +++ b/src/registration.js @@ -21,6 +21,7 @@ import ConfigPriority from '@/components/config/ConfigPriority.vue'; import ConfigDescription from '@/components/config/ConfigDescription.vue'; import ConfigSettings from '@/components/config/ConfigSettings.vue'; import ConfigCondition from '@/components/config/ConfigCondition.vue'; +import ConfigScanEntireTimeframe from '@/components/config/ConfigScanEntireTimeframe.vue'; Vue.component('Bulb', Bulb); Vue.component('DateTime', DateTime); @@ -34,6 +35,7 @@ Vue.component('ConfigOwner', ConfigOwner); Vue.component('ConfigPriority', ConfigPriority); Vue.component('ConfigDescription', ConfigDescription); Vue.component('ConfigCondition', ConfigCondition); +Vue.component('ConfigScanEntireTimeframe', ConfigScanEntireTimeframe); Vue.component('DefinitionTable', DefinitionTable); Vue.component('ElastalertTimePicker', ElastalertTimePicker); Vue.component('ESChart', ESChart); diff --git a/src/store/config/alert.js b/src/store/config/alert.js index 0d8ad200..2699f596 100644 --- a/src/store/config/alert.js +++ b/src/store/config/alert.js @@ -139,6 +139,9 @@ function initialState() { useOwner: false, configOwner: '', + /* scanEntireTimeframe */ + scanEntireTimeframe: false, + /* Jira */ jiraProject: '', jiraIssueType: '', @@ -1217,6 +1220,11 @@ export default { state.kibanaDiscoverColumns[index] = entry; }, + /* scan_entire_timeframe */ + UPDATE_SCAN_ENTIRE_TIMEFRAME(state, scanEntireTimeframe) { + state.scanEntireTimeframe = scanEntireTimeframe; + }, + UPDATE_REALERT(state, realert) { state.realert = realert; }, diff --git a/src/store/config/index.js b/src/store/config/index.js index 1326d30b..bd54d5ee 100644 --- a/src/store/config/index.js +++ b/src/store/config/index.js @@ -204,6 +204,9 @@ export default { commit('alert/UPDATE_KIBANA_DISCOVER_FROM_TIMEDELTA', config.kibana_discover_from_timedelta); commit('alert/UPDATE_KIBANA_DISCOVER_TO_TIMEDELTA', config.kibana_discover_to_timedelta); + /* scan_entire_timeframe */ + commit('alert/UPDATE_SCAN_ENTIRE_TIMEFRAME', config.scan_entire_timeframe); + /* Description */ commit('alert/UPDATE_DESCRIPTION', config.description); @@ -1723,6 +1726,17 @@ export default { return config; }, + // scan_entire_timeframe + scanEntireTimeframe(state) { + let config = {}; + + if (state.alert.scanEntireTimeframe) { + config.scan_entire_timeframe = state.alert.scanEntireTimeframe; + } + + return config; + }, + // Priority priority(state) { let config = {}; @@ -2396,6 +2410,8 @@ export default { config = { ...config, ...getters.owner }; + config = { ...config, ...getters.scanEntireTimeframe }; + // Sort the keys in the object so it appears alphabetically in the UI let conf = {}; From c056b227f5d13547ada8e716888d3f63cbe7883c Mon Sep 17 00:00:00 2001 From: nsano-rururu Date: Sun, 15 Aug 2021 19:20:47 +0900 Subject: [PATCH 3/6] Split up ConfigAlert into multiple files --- config/elastalert.yaml | 4 +- src/components/config/ConfigCondition.vue | 10 +- src/components/config/alert/ConfigAlert.vue | 4123 +---------------- .../config/alert/ConfigAlertAlerta.vue | 327 ++ .../config/alert/ConfigAlertAmazonSes.vue | 284 ++ .../config/alert/ConfigAlertAmazonSns.vue | 136 + .../config/alert/ConfigAlertChatwork.vue | 65 + .../config/alert/ConfigAlertCommand.vue | 191 + .../config/alert/ConfigAlertDatadog.vue | 57 + .../config/alert/ConfigAlertDiscord.vue | 163 + .../config/alert/ConfigAlertEmail.vue | 310 ++ .../config/alert/ConfigAlertExotel.vue | 113 + .../config/alert/ConfigAlertGitter.vue | 136 + .../config/alert/ConfigAlertGoogleChat.vue | 138 + .../config/alert/ConfigAlertHttpPost.vue | 104 + .../config/alert/ConfigAlertJira.vue | 78 + .../config/alert/ConfigAlertLineNotify.vue | 46 + .../config/alert/ConfigAlertMattermost.vue | 430 ++ .../config/alert/ConfigAlertMsTeams.vue | 120 + .../config/alert/ConfigAlertPagerTree.vue | 89 + .../config/alert/ConfigAlertRocketChat.vue | 358 ++ .../config/alert/ConfigAlertServiceNow.vue | 257 + .../config/alert/ConfigAlertSlack.vue | 549 +++ .../config/alert/ConfigAlertStomp.vue | 141 + .../config/alert/ConfigAlertTelegram.vue | 101 + .../config/alert/ConfigAlertTheHive.vue | 273 ++ .../config/alert/ConfigAlertTwilio.vue | 132 + .../config/alert/ConfigAlertVictorOps.vue | 155 + .../config/alert/ConfigAlertZabbix.vue | 95 + src/registration.js | 52 + 30 files changed, 5070 insertions(+), 3967 deletions(-) create mode 100644 src/components/config/alert/ConfigAlertAlerta.vue create mode 100644 src/components/config/alert/ConfigAlertAmazonSes.vue create mode 100644 src/components/config/alert/ConfigAlertAmazonSns.vue create mode 100644 src/components/config/alert/ConfigAlertChatwork.vue create mode 100644 src/components/config/alert/ConfigAlertCommand.vue create mode 100644 src/components/config/alert/ConfigAlertDatadog.vue create mode 100644 src/components/config/alert/ConfigAlertDiscord.vue create mode 100644 src/components/config/alert/ConfigAlertEmail.vue create mode 100644 src/components/config/alert/ConfigAlertExotel.vue create mode 100644 src/components/config/alert/ConfigAlertGitter.vue create mode 100644 src/components/config/alert/ConfigAlertGoogleChat.vue create mode 100644 src/components/config/alert/ConfigAlertHttpPost.vue create mode 100644 src/components/config/alert/ConfigAlertJira.vue create mode 100644 src/components/config/alert/ConfigAlertLineNotify.vue create mode 100644 src/components/config/alert/ConfigAlertMattermost.vue create mode 100644 src/components/config/alert/ConfigAlertMsTeams.vue create mode 100644 src/components/config/alert/ConfigAlertPagerTree.vue create mode 100644 src/components/config/alert/ConfigAlertRocketChat.vue create mode 100644 src/components/config/alert/ConfigAlertServiceNow.vue create mode 100644 src/components/config/alert/ConfigAlertSlack.vue create mode 100644 src/components/config/alert/ConfigAlertStomp.vue create mode 100644 src/components/config/alert/ConfigAlertTelegram.vue create mode 100644 src/components/config/alert/ConfigAlertTheHive.vue create mode 100644 src/components/config/alert/ConfigAlertTwilio.vue create mode 100644 src/components/config/alert/ConfigAlertVictorOps.vue create mode 100644 src/components/config/alert/ConfigAlertZabbix.vue diff --git a/config/elastalert.yaml b/config/elastalert.yaml index efc230f5..02cdd1c6 100644 --- a/config/elastalert.yaml +++ b/config/elastalert.yaml @@ -9,12 +9,12 @@ es_port: 9200 # Any .yaml file will be loaded as a rule rules_folder: rules -# How often ElastAlert will query elasticsearch +# How often ElastAlert 2 will query elasticsearch # The unit can be anything from weeks to seconds run_every: seconds: 60 -# ElastAlert will buffer results from the most recent +# ElastAlert 2 will buffer results from the most recent # period of time, in case some log sources are not in real time buffer_time: minutes: 1 diff --git a/src/components/config/ConfigCondition.vue b/src/components/config/ConfigCondition.vue index d9ccddbf..3d7df9bf 100644 --- a/src/components/config/ConfigCondition.vue +++ b/src/components/config/ConfigCondition.vue @@ -669,7 +669,7 @@ :disabled="useTermsQuery" @input="refreshOptionsPop" /> - + + @@ -67,30 +68,35 @@ + + + + + @@ -119,10 +125,10 @@ Telegram - JIRA + Jira - GOOGLE CHAT + Google Chat LineNotify @@ -200,3690 +206,308 @@ class="m-s-lg" /> + - - - - - - - - - - - - - - - - - - Danger - - - Warning - - - Good - - - - - - - - none - - - full - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + Email - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + HTTP - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - + + - - - - - - - - - basic - - - card - - - - -
- - - - - - - - - - - - - - - - - - - -
+
+ - - - - - + + - - - - - - - - - - - - - - Danger - - - Warning - - - Good - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - Command ({{ command.length }}) - - Command ({{ command.length }}) - - - - - - - - - - - - - + + - - - - - - - - - - Error - - - Info - - - - - - - - + + - - Profile - - - NotProfile - - -
- - - - - - - - - - - - - - - - -
-
- - - - - - - - -
+
+ - - - Profile - - - NotProfile - - -
- - - - - - - - - - - - -
-
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ - - - - - - - - - - - - - - - - - - - + + - - SMS - - - Copilot - - - - - - - - - - - - - - - - - -
- - - - -
- -
- - - - -
+
+ - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - INFO - - - WARNING - - - ACKNOWLEDGEMENT - - - CRITICAL - - - RECOVERY - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - Tags ({{ hiveAlertConfigTags.length }}) - - Tags ({{ hiveAlertConfigTags.length }}) - - - - - - - - - - - - - Waiting - - - InProgress - - - Cancel - - - Completed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tags ({{ alertaTags.length }}) - - Tags ({{ alertaTags.length }}) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Danger - - - Warning - - - Good - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/src/components/config/alert/ConfigAlertAmazonSes.vue b/src/components/config/alert/ConfigAlertAmazonSes.vue new file mode 100644 index 00000000..2e18aaf7 --- /dev/null +++ b/src/components/config/alert/ConfigAlertAmazonSes.vue @@ -0,0 +1,284 @@ +. + + + + diff --git a/src/components/config/alert/ConfigAlertAmazonSns.vue b/src/components/config/alert/ConfigAlertAmazonSns.vue new file mode 100644 index 00000000..5a63e72b --- /dev/null +++ b/src/components/config/alert/ConfigAlertAmazonSns.vue @@ -0,0 +1,136 @@ +. + + + + diff --git a/src/components/config/alert/ConfigAlertChatwork.vue b/src/components/config/alert/ConfigAlertChatwork.vue new file mode 100644 index 00000000..0d8a43a8 --- /dev/null +++ b/src/components/config/alert/ConfigAlertChatwork.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertCommand.vue b/src/components/config/alert/ConfigAlertCommand.vue new file mode 100644 index 00000000..5042e8a6 --- /dev/null +++ b/src/components/config/alert/ConfigAlertCommand.vue @@ -0,0 +1,191 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertDatadog.vue b/src/components/config/alert/ConfigAlertDatadog.vue new file mode 100644 index 00000000..5345fdfa --- /dev/null +++ b/src/components/config/alert/ConfigAlertDatadog.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertDiscord.vue b/src/components/config/alert/ConfigAlertDiscord.vue new file mode 100644 index 00000000..dc4725ac --- /dev/null +++ b/src/components/config/alert/ConfigAlertDiscord.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertEmail.vue b/src/components/config/alert/ConfigAlertEmail.vue new file mode 100644 index 00000000..a7006549 --- /dev/null +++ b/src/components/config/alert/ConfigAlertEmail.vue @@ -0,0 +1,310 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertExotel.vue b/src/components/config/alert/ConfigAlertExotel.vue new file mode 100644 index 00000000..b89b3bae --- /dev/null +++ b/src/components/config/alert/ConfigAlertExotel.vue @@ -0,0 +1,113 @@ +. + + + + diff --git a/src/components/config/alert/ConfigAlertGitter.vue b/src/components/config/alert/ConfigAlertGitter.vue new file mode 100644 index 00000000..a0e0e15b --- /dev/null +++ b/src/components/config/alert/ConfigAlertGitter.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertGoogleChat.vue b/src/components/config/alert/ConfigAlertGoogleChat.vue new file mode 100644 index 00000000..0cd905c2 --- /dev/null +++ b/src/components/config/alert/ConfigAlertGoogleChat.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertHttpPost.vue b/src/components/config/alert/ConfigAlertHttpPost.vue new file mode 100644 index 00000000..e6a99683 --- /dev/null +++ b/src/components/config/alert/ConfigAlertHttpPost.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertJira.vue b/src/components/config/alert/ConfigAlertJira.vue new file mode 100644 index 00000000..bdb6b7c7 --- /dev/null +++ b/src/components/config/alert/ConfigAlertJira.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertLineNotify.vue b/src/components/config/alert/ConfigAlertLineNotify.vue new file mode 100644 index 00000000..d8ec2125 --- /dev/null +++ b/src/components/config/alert/ConfigAlertLineNotify.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertMattermost.vue b/src/components/config/alert/ConfigAlertMattermost.vue new file mode 100644 index 00000000..6f574159 --- /dev/null +++ b/src/components/config/alert/ConfigAlertMattermost.vue @@ -0,0 +1,430 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertMsTeams.vue b/src/components/config/alert/ConfigAlertMsTeams.vue new file mode 100644 index 00000000..e7400f3b --- /dev/null +++ b/src/components/config/alert/ConfigAlertMsTeams.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertPagerTree.vue b/src/components/config/alert/ConfigAlertPagerTree.vue new file mode 100644 index 00000000..a03c9aed --- /dev/null +++ b/src/components/config/alert/ConfigAlertPagerTree.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertRocketChat.vue b/src/components/config/alert/ConfigAlertRocketChat.vue new file mode 100644 index 00000000..53ee9810 --- /dev/null +++ b/src/components/config/alert/ConfigAlertRocketChat.vue @@ -0,0 +1,358 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertServiceNow.vue b/src/components/config/alert/ConfigAlertServiceNow.vue new file mode 100644 index 00000000..50962b0b --- /dev/null +++ b/src/components/config/alert/ConfigAlertServiceNow.vue @@ -0,0 +1,257 @@ +. + + + + diff --git a/src/components/config/alert/ConfigAlertSlack.vue b/src/components/config/alert/ConfigAlertSlack.vue new file mode 100644 index 00000000..d3e0fc2a --- /dev/null +++ b/src/components/config/alert/ConfigAlertSlack.vue @@ -0,0 +1,549 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertStomp.vue b/src/components/config/alert/ConfigAlertStomp.vue new file mode 100644 index 00000000..8bab617b --- /dev/null +++ b/src/components/config/alert/ConfigAlertStomp.vue @@ -0,0 +1,141 @@ +. + + + + diff --git a/src/components/config/alert/ConfigAlertTelegram.vue b/src/components/config/alert/ConfigAlertTelegram.vue new file mode 100644 index 00000000..2b7d002d --- /dev/null +++ b/src/components/config/alert/ConfigAlertTelegram.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertTheHive.vue b/src/components/config/alert/ConfigAlertTheHive.vue new file mode 100644 index 00000000..b8ac8c66 --- /dev/null +++ b/src/components/config/alert/ConfigAlertTheHive.vue @@ -0,0 +1,273 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertTwilio.vue b/src/components/config/alert/ConfigAlertTwilio.vue new file mode 100644 index 00000000..6b072b72 --- /dev/null +++ b/src/components/config/alert/ConfigAlertTwilio.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertVictorOps.vue b/src/components/config/alert/ConfigAlertVictorOps.vue new file mode 100644 index 00000000..d0bda66e --- /dev/null +++ b/src/components/config/alert/ConfigAlertVictorOps.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/src/components/config/alert/ConfigAlertZabbix.vue b/src/components/config/alert/ConfigAlertZabbix.vue new file mode 100644 index 00000000..5b6f84f3 --- /dev/null +++ b/src/components/config/alert/ConfigAlertZabbix.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/registration.js b/src/registration.js index f9ca5891..b01c2c62 100644 --- a/src/registration.js +++ b/src/registration.js @@ -14,6 +14,32 @@ import ElastalertTimeView from '@/components/ElastalertTimeView'; import ConfigQuery from '@/components/config/ConfigQuery.vue'; import ConfigAggregation from '@/components/config/ConfigAggregation.vue'; import ConfigAlert from '@/components/config/alert/ConfigAlert.vue'; +import ConfigAlertAlerta from '@/components/config/alert/ConfigAlertAlerta.vue'; +import ConfigAlertAmazonSes from '@/components/config/alert/ConfigAlertAmazonSes.vue'; +import ConfigAlertAmazonSns from '@/components/config/alert/ConfigAlertAmazonSns.vue'; +import ConfigAlertChatwork from '@/components/config/alert/ConfigAlertChatwork.vue'; +import ConfigAlertCommand from '@/components/config/alert/ConfigAlertCommand.vue'; +import ConfigAlertDatadog from '@/components/config/alert/ConfigAlertDatadog.vue'; +import ConfigAlertDiscord from '@/components/config/alert/ConfigAlertDiscord.vue'; +import ConfigAlertEmail from '@/components/config/alert/ConfigAlertEmail.vue'; +import ConfigAlertExotel from '@/components/config/alert/ConfigAlertExotel.vue'; +import ConfigAlertGitter from '@/components/config/alert/ConfigAlertGitter.vue'; +import ConfigAlertGoogleChat from '@/components/config/alert/ConfigAlertGoogleChat.vue'; +import ConfigAlertHttpPost from '@/components/config/alert/ConfigAlertHttpPost.vue'; +import ConfigAlertJira from '@/components/config/alert/ConfigAlertJira.vue'; +import ConfigAlertLineNotify from '@/components/config/alert/ConfigAlertLineNotify.vue'; +import ConfigAlertMattermost from '@/components/config/alert/ConfigAlertMattermost.vue'; +import ConfigAlertMsTeams from '@/components/config/alert/ConfigAlertMsTeams.vue'; +import ConfigAlertPagerTree from '@/components/config/alert/ConfigAlertPagerTree.vue'; +import ConfigAlertRocketChat from '@/components/config/alert/ConfigAlertRocketChat.vue'; +import ConfigAlertServiceNow from '@/components/config/alert/ConfigAlertServiceNow.vue'; +import ConfigAlertSlack from '@/components/config/alert/ConfigAlertSlack.vue'; +import ConfigAlertStomp from '@/components/config/alert/ConfigAlertStomp.vue'; +import ConfigAlertTelegram from '@/components/config/alert/ConfigAlertTelegram.vue'; +import ConfigAlertTheHive from '@/components/config/alert/ConfigAlertTheHive.vue'; +import ConfigAlertTwilio from '@/components/config/alert/ConfigAlertTwilio.vue'; +import ConfigAlertVictorOps from '@/components/config/alert/ConfigAlertVictorOps.vue'; +import ConfigAlertZabbix from '@/components/config/alert/ConfigAlertZabbix.vue'; import ConfigKibanaDiscover from '@/components/config/ConfigKibanaDiscover.vue'; import ConfigTimeWindowFeature from '@/components/config/ConfigTimeWindowFeature.vue'; import ConfigOwner from '@/components/config/ConfigOwner.vue'; @@ -27,6 +53,32 @@ Vue.component('Bulb', Bulb); Vue.component('DateTime', DateTime); Vue.component('ConfigQuery', ConfigQuery); Vue.component('ConfigAlert', ConfigAlert); +Vue.component('ConfigAlertAlerta', ConfigAlertAlerta); +Vue.component('ConfigAlertAmazonSes', ConfigAlertAmazonSes); +Vue.component('ConfigAlertAmazonSns', ConfigAlertAmazonSns); +Vue.component('ConfigAlertChatwork', ConfigAlertChatwork); +Vue.component('ConfigAlertCommand', ConfigAlertCommand); +Vue.component('ConfigAlertDatadog', ConfigAlertDatadog); +Vue.component('ConfigAlertDiscord', ConfigAlertDiscord); +Vue.component('ConfigAlertEmail', ConfigAlertEmail); +Vue.component('ConfigAlertExotel', ConfigAlertExotel); +Vue.component('ConfigAlertGitter', ConfigAlertGitter); +Vue.component('ConfigAlertGoogleChat', ConfigAlertGoogleChat); +Vue.component('ConfigAlertHttpPost', ConfigAlertHttpPost); +Vue.component('ConfigAlertJira', ConfigAlertJira); +Vue.component('ConfigAlertLineNotify', ConfigAlertLineNotify); +Vue.component('ConfigAlertMattermost', ConfigAlertMattermost); +Vue.component('ConfigAlertMsTeams', ConfigAlertMsTeams); +Vue.component('ConfigAlertPagerTree', ConfigAlertPagerTree); +Vue.component('ConfigAlertRocketChat', ConfigAlertRocketChat); +Vue.component('ConfigAlertServiceNow', ConfigAlertServiceNow); +Vue.component('ConfigAlertSlack', ConfigAlertSlack); +Vue.component('ConfigAlertStomp', ConfigAlertStomp); +Vue.component('ConfigAlertTelegram', ConfigAlertTelegram); +Vue.component('ConfigAlertTheHive', ConfigAlertTheHive); +Vue.component('ConfigAlertTwilio', ConfigAlertTwilio); +Vue.component('ConfigAlertVictorOps', ConfigAlertVictorOps); +Vue.component('ConfigAlertZabbix', ConfigAlertZabbix); Vue.component('ConfigAggregation', ConfigAggregation); Vue.component('ConfigSettings', ConfigSettings); Vue.component('ConfigKibanaDiscover', ConfigKibanaDiscover); From 508037b72dcc2475f879d21e61011cb4f2361086 Mon Sep 17 00:00:00 2001 From: nsano-rururu Date: Sun, 15 Aug 2021 23:27:25 +0900 Subject: [PATCH 4/6] Split up ConfigAlert into multiple files (2) --- .../config/ConfigLimitExcecution.vue | 72 +++++++++++++++++++ src/components/config/alert/ConfigAlert.vue | 49 +------------ .../config/alert/ConfigAlertMsTeams.vue | 33 +++++++-- .../config/alert/ConfigAlertRocketChat.vue | 10 ++- src/registration.js | 2 + 5 files changed, 113 insertions(+), 53 deletions(-) create mode 100644 src/components/config/ConfigLimitExcecution.vue diff --git a/src/components/config/ConfigLimitExcecution.vue b/src/components/config/ConfigLimitExcecution.vue new file mode 100644 index 00000000..1fd635c9 --- /dev/null +++ b/src/components/config/ConfigLimitExcecution.vue @@ -0,0 +1,72 @@ + + + diff --git a/src/components/config/alert/ConfigAlert.vue b/src/components/config/alert/ConfigAlert.vue index ef011731..b4a21344 100644 --- a/src/components/config/alert/ConfigAlert.vue +++ b/src/components/config/alert/ConfigAlert.vue @@ -44,27 +44,8 @@ - - - - - - - - - -
-
- {{ limitExcecution }} -
-
- {{ limitExcecution }} -
-
+ +
@@ -414,7 +395,6 @@