kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
63 lines (58 loc) • 992 B
JavaScript
import _ from 'lodash';
exports.all = [
{
id: 'red',
title: 'Red',
icon: 'danger',
severity: 1000,
nicknames: [
'Danger Will Robinson! Danger!'
]
},
{
id: 'uninitialized',
title: 'Uninitialized',
icon: 'spinner',
severity: 900,
nicknames: [
'Initializing'
]
},
{
id: 'yellow',
title: 'Yellow',
icon: 'warning',
severity: 800,
nicknames: [
'S.N.A.F.U',
'I\'ll be back',
'brb'
]
},
{
id: 'green',
title: 'Green',
icon: 'success',
severity: 0,
nicknames: [
'Looking good'
]
},
{
id: 'disabled',
title: 'Disabled',
severity: -1,
icon: 'toggle-off',
nicknames: [
'Am I even a thing?'
]
}
];
exports.allById = _.indexBy(exports.all, 'id');
exports.defaults = {
icon: 'question',
severity: Infinity
};
exports.get = function (id) {
return exports.allById[id] || _.defaults({ id: id }, exports.defaults);
};