mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
16 lines
361 B
TypeScript
16 lines
361 B
TypeScript
///<reference path="../../headers/common.d.ts" />
|
|
|
|
var alertSeverityIconMap = {
|
|
"ok": "icon-gf-online alert-icon-online",
|
|
"warning": "icon-gf-warn alert-icon-warn",
|
|
"critical": "icon-gf-critical alert-icon-critical",
|
|
};
|
|
|
|
function getSeverityIconClass(alertState) {
|
|
return alertSeverityIconMap[alertState];
|
|
}
|
|
|
|
export default {
|
|
getSeverityIconClass,
|
|
};
|