Skip to main content

Variable: DashboardSessionsChartSchema

const DashboardSessionsChartSchema: ZodObject<{
bucket_size_seconds: ZodNumber;
buckets: ZodArray<ZodObject<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">>, "many">;
}, "passthrough", ZodTypeAny, objectOutputType<{
bucket_size_seconds: ZodNumber;
buckets: ZodArray<ZodObject<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">>, "many">;
}, ZodTypeAny, "passthrough">, objectInputType<{
bucket_size_seconds: ZodNumber;
buckets: ZodArray<ZodObject<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
bucket_number: ZodNumber;
time: ZodString;
total: ZodNumber;
violating: ZodNumber;
detection_type_violation_breakdown: ZodArray<ZodObject<{
detection_type: ZodOptional<...>;
violation_breakdown: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ...;
violation_breakdown: ...;
}, ZodTypeAny, "passthrough">>, "many">;
violation_breakdown: ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">>, "many">;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/mgmt-dashboard-sessions.ts:37

Session-count time series, preserving timestamps and API bucket size.