kibana-riya
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
51 lines (43 loc) • 1.06 kB
JavaScript
;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_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 = _lodash2['default'].indexBy(exports.all, 'id');
exports.defaults = {
icon: 'question',
severity: Infinity
};
exports.get = function (id) {
return exports.allById[id] || _lodash2['default'].defaults({ id: id }, exports.defaults);
};