Reorder alert constants for legibility

pull/10616/head
Jared Scheib 2017-07-21 17:54:55 -07:00
parent 5676fb20cd
commit 335bb6f821
1 changed files with 27 additions and 27 deletions

View File

@ -35,19 +35,6 @@ export const OPERATORS = [
export const PERIODS = ['1m', '5m', '10m', '30m', '1h', '2h', '24h']
export const CHANGES = ['change', '% change']
export const SHIFTS = ['1m', '5m', '10m', '30m', '1h', '2h', '24h']
export const ALERTS = [
'alerta',
'hipchat',
'opsgenie',
'pagerduty',
'pushover',
'sensu',
'slack',
'smtp',
'talk',
'telegram',
'victorops',
]
export const DEFAULT_RULE_ID = 'DEFAULT_RULE_ID'
@ -82,6 +69,19 @@ export const RULE_MESSAGE_TEMPLATES = {
}
export const DEFAULT_ALERTS = ['http', 'tcp', 'exec', 'log']
export const ALERTS = [
'alerta',
'hipchat',
'opsgenie',
'pagerduty',
'pushover',
'sensu',
'slack',
'smtp',
'talk',
'telegram',
'victorops',
]
export const RULE_ALERT_OPTIONS = {
http: {
@ -108,20 +108,6 @@ export const RULE_ALERT_OPTIONS = {
placeholder: 'Ex: /tmp/alerts.log',
},
},
smtp: {
args: {
label: 'Email Addresses (Separated by Spaces):',
placeholder:
'Ex: benedict@domain.com delaney@domain.com susan@domain.com',
},
details: {placeholder: 'Email body text goes here'},
},
slack: {
args: {
label: 'Send alerts to Slack channel:',
placeholder: '#alerts',
},
},
alerta: {
args: {
label: 'Paste Alerta TICKscript:',
@ -141,6 +127,20 @@ export const RULE_ALERT_OPTIONS = {
{name: 'sound', label: 'Sound:', placeholder: 'alien'},
],
},
slack: {
args: {
label: 'Send alerts to Slack channel:',
placeholder: '#alerts',
},
},
smtp: {
args: {
label: 'Email Addresses (Separated by Spaces):',
placeholder:
'Ex: benedict@domain.com delaney@domain.com susan@domain.com',
},
details: {placeholder: 'Email body text goes here'},
},
}
export const ALERT_NODES_ACCESSORS = {