Skip to content

Commit

Permalink
Update Alerta server config settings
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Mar 21, 2019
1 parent 0d84e93 commit b8f552f
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,18 +259,11 @@ SEVERITY_MAP = {
'Not classified': 6,
'unknown' : 9
}
```

Add the following to the Alerta web console `config.js` file:
DEFAULT_NORMAL_SEVERITY = 'OK'
DEFAULT_PREVIOUS_SEVERITY = 'Not classified'

```javascript
'use strict';
angular.module('config', [])
.constant('config', {
'endpoint' : "/api",
'provider' : "basic",
'colors' : {
'severity': {
COLOR_MAP = {
'severity': {
'Disaster' : '#E45959',
'High' : '#E97659',
'Average' : '#FFA059',
Expand All @@ -279,19 +272,8 @@ angular.module('config', [])
'Not classified': '#97AAB3',
'OK' : '#59DB8F',
'unknown' : '#BA2222'
}
},
'severity' : {
'Disaster' : 0,
'High' : 1,
'Average' : 2,
'Warning' : 3,
'Information' : 4,
'OK' : 5,
'Not classified': 6,
'unknown' : 9
}
});
}
```

![zabbix-severity-colors](/docs/images/zabbix-severity-colors.png?raw=true)
Expand Down Expand Up @@ -333,4 +315,4 @@ References
License
-------

Copyright (c) 2013-2016 Nick Satterly. Available under the MIT License.
Copyright (c) 2013-2019 Nick Satterly. Available under the MIT License.

0 comments on commit b8f552f

Please sign in to comment.