metric enum Constrain every series to this metric. Omit for a mix.
Generate compact mock metric series and standalone points with exact intervals, bounded values, coherent trends and deterministic timestamps.
Generated test data for fixtures and development
| Parameter | Type | Default & allowed | Description |
|---|---|---|---|
metric | enum | allowed: cpuUsage | requestRate | latency | memoryUsage | temperature example: latency | Constrain every series to this metric. Omit for a mix. |
trend | enum | allowed: stable | rising | falling | spike example: rising | Constrain the value shape. Omit for mixed trend fixtures. |
interval | enum | default: 5m allowed: 1m | 5m | 1h example: 1m | Exact spacing between adjacent points. |
points | int | default: 12 allowed: 2 – 24 example: 24 | Exact number of points nested in every generated series. |
start | date | example: 2026-07-10T00:00:00.000Z | First point timestamp. Defaults to the current UTC day's start and is echoed in meta.params. |
environment | enum | default: development allowed: development | staging | production example: staging | Environment tag attached to the generated series. |
metric enum Constrain every series to this metric. Omit for a mix.
trend enum Constrain the value shape. Omit for mixed trend fixtures.
interval enum Exact spacing between adjacent points.
points int Exact number of points nested in every generated series.
start date First point timestamp. Defaults to the current UTC day's start and is echoed in meta.params.
environment enum Environment tag attached to the generated series.
| Parameter | Type | Default & allowed | Description |
|---|---|---|---|
count | int | default: 10 allowed: 1 – 100 example: 3 | How many records to generate (1–100). |
seed | int | example: 42 | Deterministic output: the same seed always returns the same records. Omit for random (the used seed is echoed in meta.seed). |
fields | list | example: seriesId,metric | Return only these fields (comma-separated). Mutually exclusive with 'exclude'. |
exclude | list | example: points | Return all fields except these (comma-separated). |
format | enum | default: json allowed: json | ndjson | csv example: csv | Response format: json envelope, ndjson (one record per line) or csv. |
pretty | boolean | default: false example: true | Pretty-print the JSON response. |
unwrap | boolean | default: false example: true | Drop the envelope: return the raw array/object without data/meta wrapper. |
count int How many records to generate (1–100).
seed int Deterministic output: the same seed always returns the same records. Omit for random (the used seed is echoed in meta.seed).
fields list Return only these fields (comma-separated). Mutually exclusive with 'exclude'.
exclude list Return all fields except these (comma-separated).
format enum Response format: json envelope, ndjson (one record per line) or csv.
pretty boolean Pretty-print the JSON response.
unwrap boolean Drop the envelope: return the raw array/object without data/meta wrapper.
| Field | Type | Description | Example |
|---|---|---|---|
seriesId | string | Unique fictional series identity prefixed ser_. | ser_0_a81c42f0 |
metric | string | cpuUsage, requestRate, latency, memoryUsage or temperature. | latency |
unit | string | Unit coherent with metric. | ms |
trend | string | Generated value-shape constraint. | rising |
interval | string | Exact point interval. | 5m |
startTime | string (ISO 8601) | Timestamp of points[0]. | 2026-07-10T00:00:00.000Z |
endTime | string (ISO 8601) | Timestamp of the final point. | 2026-07-10T00:55:00.000Z |
min | float | Minimum of the returned point values. | 121.4 |
max | float | Maximum of the returned point values. | 178.2 |
average | float | Arithmetic mean of returned point values, rounded to metric precision. | 149.8 |
tags | object | Small fictional environment and host tag set. | {"environment":"staging","host":"node-3"} |
points | object[] | Exact chronological timestamp/value pairs. | [{"timestamp":"2026-07-10T00:00:00.000Z","value":121.4}] |
seriesId string Unique fictional series identity prefixed ser_.
example: ser_0_a81c42f0
metric string cpuUsage, requestRate, latency, memoryUsage or temperature.
example: latency
unit string Unit coherent with metric.
example: ms
trend string Generated value-shape constraint.
example: rising
interval string Exact point interval.
example: 5m
startTime string (ISO 8601) Timestamp of points[0].
example: 2026-07-10T00:00:00.000Z
endTime string (ISO 8601) Timestamp of the final point.
example: 2026-07-10T00:55:00.000Z
min float Minimum of the returned point values.
example: 121.4
max float Maximum of the returned point values.
example: 178.2
average float Arithmetic mean of returned point values, rounded to metric precision.
example: 149.8
tags object Small fictional environment and host tag set.
example: {"environment":"staging","host":"node-3"}
points object[] Exact chronological timestamp/value pairs.
example: [{"timestamp":"2026-07-10T00:00:00.000Z","value":121.4}]
/api/time-series?metric=latency&trend=rising&interval=1m&points=24&seed=42&count=5 {
"data": [
{
"seriesId": "ser_0_d40fb158",
"metric": "latency",
"unit": "ms",
"trend": "rising",
"interval": "1m",
"startTime": "2026-07-30T00:00:00.000Z",
"endTime": "2026-07-30T00:23:00.000Z",
"min": 982.7,
"max": 1734.1,
"average": 1336.6,
"tags": {
"environment": "development",
"host": "node-1"
},
"points": [
{
"timestamp": "2026-07-30T00:00:00.000Z",
"value": 982.7
},
{
"timestamp": "2026-07-30T00:01:00.000Z",
"value": 1019.8
},
{
"timestamp": "2026-07-30T00:02:00.000Z",
"value": 1053.7
},
{
"timestamp": "2026-07-30T00:03:00.000Z",
"value": 1076.5
},
{
"timestamp": "2026-07-30T00:04:00.000Z",
"value": 1107.6
},
{
"timestamp": "2026-07-30T00:05:00.000Z",
…
"generatedAt": "2026-07-30T15:14:08.000Z"
}
} /api/time-series?metric=cpuUsage&trend=spike&environment=production&start=2026-07-10&count=10 {
"data": [
{
"seriesId": "ser_0_c85eac58",
"metric": "cpuUsage",
"unit": "%",
"trend": "spike",
"interval": "5m",
"startTime": "2026-07-10T00:00:00.000Z",
"endTime": "2026-07-10T00:55:00.000Z",
"min": 46.97,
"max": 84.11,
"average": 52.26,
"tags": {
"environment": "production",
"host": "node-1"
},
"points": [
{
"timestamp": "2026-07-10T00:00:00.000Z",
"value": 50
},
{
"timestamp": "2026-07-10T00:05:00.000Z",
"value": 49.6
},
{
"timestamp": "2026-07-10T00:10:00.000Z",
"value": 48.21
},
{
"timestamp": "2026-07-10T00:15:00.000Z",
"value": 49.26
},
{
"timestamp": "2026-07-10T00:20:00.000Z",
"value": 84.11
},
{
"timestamp": "2026-07-10T00:25:00.000Z",
…
"generatedAt": "2026-07-30T15:14:08.000Z"
}
} | Parameter | Type | Default & allowed | Description |
|---|---|---|---|
series | string | default: demo-series allowed: 1 – 48 example: checkout-latency | Safe series key echoed in every record; letters, digits, dot, underscore and hyphen only. |
metric | enum | default: latency allowed: cpuUsage | requestRate | latency | memoryUsage | temperature example: cpuUsage | Metric controlling value bounds and unit. |
interval | enum | default: 5m allowed: 1m | 5m | 1h example: 1h | Timestamp step between consecutive records. |
start | date | example: 2026-07-10T00:00:00.000Z | Timestamp of record index 0. Defaults to current UTC-day start. |
quality | enum | allowed: good | estimated | missing example: estimated | Constrain data quality. Missing forces value=null. |
series string Safe series key echoed in every record; letters, digits, dot, underscore and hyphen only.
metric enum Metric controlling value bounds and unit.
interval enum Timestamp step between consecutive records.
start date Timestamp of record index 0. Defaults to current UTC-day start.
quality enum Constrain data quality. Missing forces value=null.
| Parameter | Type | Default & allowed | Description |
|---|---|---|---|
count | int | default: 10 allowed: 1 – 100 example: 3 | How many records to generate (1–100). |
seed | int | example: 42 | Deterministic output: the same seed always returns the same records. Omit for random (the used seed is echoed in meta.seed). |
fields | list | example: pointId,seriesId | Return only these fields (comma-separated). Mutually exclusive with 'exclude'. |
exclude | list | example: tags | Return all fields except these (comma-separated). |
format | enum | default: json allowed: json | ndjson | csv example: csv | Response format: json envelope, ndjson (one record per line) or csv. |
pretty | boolean | default: false example: true | Pretty-print the JSON response. |
unwrap | boolean | default: false example: true | Drop the envelope: return the raw array/object without data/meta wrapper. |
count int How many records to generate (1–100).
seed int Deterministic output: the same seed always returns the same records. Omit for random (the used seed is echoed in meta.seed).
fields list Return only these fields (comma-separated). Mutually exclusive with 'exclude'.
exclude list Return all fields except these (comma-separated).
format enum Response format: json envelope, ndjson (one record per line) or csv.
pretty boolean Pretty-print the JSON response.
unwrap boolean Drop the envelope: return the raw array/object without data/meta wrapper.
| Field | Type | Description | Example |
|---|---|---|---|
pointId | string | Unique fixture point id containing the stable record index. | pt_0_31f0a82d |
seriesId | string | Validated caller-supplied series key. | checkout-latency |
metric | string | Selected metric. | latency |
unit | string | Unit coherent with metric. | ms |
timestamp | string (ISO 8601) | start plus recordIndex times interval. | 2026-07-10T00:05:00.000Z |
value nullable | float | Bounded metric value, or null when quality is missing. | 82.4 |
quality | string | good, estimated or missing. | good |
tags | object | Small stable fictional host and source tags. | {"host":"node-2","source":"mock"} |
pointId string Unique fixture point id containing the stable record index.
example: pt_0_31f0a82d
seriesId string Validated caller-supplied series key.
example: checkout-latency
metric string Selected metric.
example: latency
unit string Unit coherent with metric.
example: ms
timestamp string (ISO 8601) start plus recordIndex times interval.
example: 2026-07-10T00:05:00.000Z
value float nullable Bounded metric value, or null when quality is missing.
example: 82.4
quality string good, estimated or missing.
example: good
tags object Small stable fictional host and source tags.
example: {"host":"node-2","source":"mock"}
/api/time-series/points?series=checkout-latency&metric=latency&interval=1m&seed=42&count=20 {
"data": [
{
"pointId": "pt_0_a958016c",
"seriesId": "checkout-latency",
"metric": "latency",
"unit": "ms",
"timestamp": "2026-07-30T00:00:00.000Z",
"value": 1886.1,
"quality": "good",
"tags": {
"host": "node-1",
"source": "mock"
}
},
{
"pointId": "pt_1_078f248a",
"seriesId": "checkout-latency",
"metric": "latency",
"unit": "ms",
"timestamp": "2026-07-30T00:01:00.000Z",
"value": 1467.5,
"quality": "good",
"tags": {
"host": "node-2",
"source": "mock"
}
},
{
"pointId": "pt_2_15790902",
"seriesId": "checkout-latency",
"metric": "latency",
"unit": "ms",
"timestamp": "2026-07-30T00:02:00.000Z",
"value": 1603.4,
"quality": "estimated",
"tags": {
"host": "node-3",
"source": "mock"
}
…
"generatedAt": "2026-07-30T15:14:08.000Z"
}
} /api/time-series/points?series=demo.cpu&metric=cpuUsage&quality=missing&start=2026-07-10&count=12 {
"data": [
{
"pointId": "pt_0_7a958016",
"seriesId": "demo.cpu",
"metric": "cpuUsage",
"unit": "%",
"timestamp": "2026-07-10T00:00:00.000Z",
"value": null,
"quality": "missing",
"tags": {
"host": "node-1",
"source": "mock"
}
},
{
"pointId": "pt_1_0078f248",
"seriesId": "demo.cpu",
"metric": "cpuUsage",
"unit": "%",
"timestamp": "2026-07-10T00:05:00.000Z",
"value": null,
"quality": "missing",
"tags": {
"host": "node-2",
"source": "mock"
}
},
{
"pointId": "pt_2_d1579090",
"seriesId": "demo.cpu",
"metric": "cpuUsage",
"unit": "%",
"timestamp": "2026-07-10T00:10:00.000Z",
"value": null,
"quality": "missing",
"tags": {
"host": "node-3",
"source": "mock"
}
…
"generatedAt": "2026-07-30T15:14:08.000Z"
}
} Generates fictional time-series metric fixtures for charts, monitoring screens and ingestion tests. The root route returns one bounded series per record. Its points are strictly chronological at the requested interval, summary statistics are calculated from those exact values, and metric values stay inside documented domain ranges.
The trend parameter is structural rather than decorative: rising never decreases, falling never increases, stable stays near a generated baseline, and spike inserts one pronounced peak. points is capped at 24 so 100 complete series remain inside the public response budget.
/points creates flat ingestion fixtures for one caller-supplied series key. Point timestamps advance from start by exactly interval × recordIndex, so list order and identity stay stable when count grows. Missing-quality points deliberately return value=null; all other points carry a value within the chosen metric's range. Data is synthetic and is not sampled from a host, sensor or customer.
Yes. Adjacent points are separated by exactly the selected 1m, 5m or 1h interval.
Yes. Rising values never decrease and falling values never increase after response precision is applied.
A point with quality missing has value=null; good and estimated points always contain a bounded numeric value.
No. Series ids, values, tags and timestamps are generated mock fixtures and are not read from infrastructure or sensors.
Sparkline SVGs straight from a URL — plot 2–100 numbers as a line, area or bar chart with custom size, color and smoothing. No chart library needed.
Random integers or floats in any range — control decimal precision, draw guaranteed-unique values, and pin a seed for reproducible sequences.
Real calendar facts for any date — weekday, ISO week, day of year, quarter, leap year, days in month, weekend flag and Unix timestamp. Defaults to today.
Deterministic unit conversion across 14 categories — length, mass, pressure, energy, power, force, angle, time and more — with exact standard factors.
Generate FOCUS-column-named cloud billing rows whose list, contracted, effective and billed costs reconcile exactly, plus summary and commitment views.