Keep a history of integration figures and draw it on each integration's page
The numbers integrations report (queries and blocked share, queue and missing items, speeds, photos, documents, failed runs, firing rules, targets down, monthly cost and more) are kept about every quarter of an hour for five weeks, then as hours and days for up to two years, taken from each integration's stored reading. Every card on the 14 integration pages gets a Show the history button with a chart per figure, how it changed and its lowest and highest. A stretch when the integration could not be read is a gap. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4f3a54189
commit
e7f23ba13f
30 files changed
+10532
-1
No files matched your search
@@ -50,6 +50,7 @@ export default function TimeChart({
|
||||
bars = false,
|
||||
barColor,
|
||||
format,
|
||||
axisFormat,
|
||||
empty = "No history in this stretch yet.",
|
||||
}: {
|
||||
series: ChartSeries[];
|
||||
@@ -64,6 +65,8 @@ export default function TimeChart({
|
||||
bars?: boolean;
|
||||
barColor?: (v: number) => string;
|
||||
format?: (v: number) => string;
|
||||
/** How the figures down the left edge are written, where the readout's own (`format`) is too long for the margin ("340 GB" reads, "340000000000" does not). */
|
||||
axisFormat?: (v: number) => string;
|
||||
empty?: string;
|
||||
}) {
|
||||
const H = compact ? 116 : 250;
|
||||
@@ -161,7 +164,7 @@ export default function TimeChart({
|
||||
<g key={v}>
|
||||
<line x1={PAD.left} x2={W - PAD.right} y1={y(v)} y2={y(v)} stroke="currentColor" strokeOpacity={v === 0 ? 0.4 : 0.15} />
|
||||
<text x={PAD.left - 6} y={y(v) + 4} textAnchor="end" fontSize="11" fill="currentColor" fillOpacity="0.7">
|
||||
{unit === "%" ? `${v}%` : unit === "value" ? `${Math.round(v * 10) / 10}` : `${Math.round(v)}`}
|
||||
{axisFormat ? axisFormat(v) : unit === "%" ? `${v}%` : unit === "value" ? `${Math.round(v * 10) / 10}` : `${Math.round(v)}`}
|
||||
</text>
|
||||
</g>
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user