global: snapshot

This commit is contained in:
nym21
2026-01-20 23:05:21 +01:00
parent 9613fce919
commit 2edd9ed2d7
33 changed files with 1020 additions and 1108 deletions

View File

@@ -51,9 +51,11 @@ class BrkError extends Error {{
/**
* @template T
* @typedef {{Object}} MetricData
* @property {{number}} version - Version of the metric data
* @property {{number}} total - Total number of data points
* @property {{number}} start - Start index (inclusive)
* @property {{number}} end - End index (exclusive)
* @property {{string}} stamp - ISO 8601 timestamp of when the response was generated
* @property {{T[]}} data - The metric data
*/
/** @typedef {{MetricData<any>}} AnyMetricData */

View File

@@ -133,9 +133,11 @@ pub fn generate_endpoint_class(output: &mut String) {
output,
r#"class MetricData(TypedDict, Generic[T]):
"""Metric data with range information."""
version: int
total: int
start: int
end: int
stamp: str
data: List[T]