UNPKG

@netdata/charts

Version:

Netdata frontend SDK and chart utilities

28 lines (27 loc) 604 B
var E = 1; // the database value is empty var O = 2; // the database value is marked as reset (overflown/reset) var P = 4; // the database provides partial data about this point (used in group-by) export var enums = { E: E, O: O, P: P }; export var parts = Object.keys(enums); export var check = function check(bit, annotation) { return bit & annotation; }; export var colors = { P: "RGB(126, 189, 194)", O: "RGB(243, 223, 162)", E: "RGB(232, 185, 219)" }; export var priorities = { E: 0, P: 1, O: 2 }; export var labels = { E: "Empty data", P: "Partial data", O: "Overflow" };