Appearance
Variable: DefinitionStats
ts
const DefinitionStats: z.ZodDiscriminatedUnion<[z.ZodObject<{
days: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
errors: z.ZodNumber;
evaluated: z.ZodNumber;
hits: z.ZodNumber;
key: z.ZodString;
}, z.core.$strip>>;
kind: z.ZodLiteral<"rule">;
}, z.core.$strip>, z.ZodObject<{
days: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
autoDecidedPct: z.ZodNullable<z.ZodNumber>;
decided: z.ZodNumber;
failed: z.ZodNumber;
key: z.ZodString;
runs: z.ZodNumber;
volumePerDay: z.ZodNumber;
}, z.core.$strip>>;
kind: z.ZodLiteral<"workflow">;
}, z.core.$strip>, z.ZodObject<{
days: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
completionPct: z.ZodNullable<z.ZodNumber>;
key: z.ZodString;
medianDurationMs: z.ZodNullable<z.ZodNumber>;
started: z.ZodNumber;
submitted: z.ZodNumber;
}, z.core.$strip>>;
kind: z.ZodLiteral<"collection_flow">;
}, z.core.$strip>], "kind">;GET /stats/definitions: activity per key over the last days days, newest data included; keys without activity in the window are absent. Where each key is used is GET /definitions/usage.