UNPKG

@kitten-science/kitten-analysts

Version:
23 lines 806 B
import { ucfirst } from "@kitten-science/kitten-scientists/tools/Format.js"; import { gaugeFactory } from "./factory.js"; export const kg_unicorns_sacrificed = (cache, remote) => gaugeFactory({ cache, remote, help: "How many unicorns you have sacrificed so far.", name: "kg_unicorns_sacrificed", labelNames: ["client_type", "guid", "label", "location", "type"], require: "getStatistics", extract(client_type, guid, location, element, subject) { if (element.name !== "unicornsSacrificed") { return; } subject.set({ client_type, guid, label: ucfirst(element.label), location, type: element.type, }, element.value); }, }); //# sourceMappingURL=kg_unicorns_sacrificed.js.map