mirror of
https://github.com/prymitive/karma
synced 2026-05-21 04:33:07 +00:00
35 lines
709 B
JavaScript
35 lines
709 B
JavaScript
import moment from "moment";
|
|
|
|
const EmptyAPIResponse = () => ({
|
|
status: "success",
|
|
timestamp: moment().toISOString(),
|
|
version: "fakeVersion",
|
|
upstreams: {
|
|
counters: { total: 1, healthy: 1, failed: 0 },
|
|
instances: [{ name: "default", uri: "file:///mock", error: "" }]
|
|
},
|
|
silences: { default: {} },
|
|
groups: {},
|
|
totalAlerts: 0,
|
|
colors: {},
|
|
filters: [
|
|
{
|
|
text: "label=value",
|
|
name: "label",
|
|
matcher: "=",
|
|
value: "value",
|
|
hits: 0,
|
|
isValid: true
|
|
}
|
|
],
|
|
counters: {},
|
|
settings: {
|
|
staticColorLabels: ["job"],
|
|
annotationsDefaultHidden: false,
|
|
annotationsHidden: [],
|
|
annotationsVisible: []
|
|
}
|
|
});
|
|
|
|
export { EmptyAPIResponse };
|