lumen.metrics.query ​
Raw point inspection only; agents should prefer answer or aggregate and pass a small limit.
Query raw metric points from Lumen.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-lumen |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID to scope the query. |
metric_name | string | Yes | — | Metric name or wildcard pattern. |
project | string | No | — | Project filter; supports Lumen wildcards. |
service_name | string | No | — | Exact service_name filter. |
from | string | No | — | ISO 8601 lower time bound. |
to | string | No | — | ISO 8601 upper time bound. |
filters | list | No | — | Dimension filters as strings like attrs.env:prod or resource_attrs.namespace:default. |
limit | integer | No | — | Maximum raw points to return; default 25, capped at 100. |
offset | integer | No | — | Pagination offset. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
items | list | Yes | — | Raw metric points. |
limit | integer | Yes | — | — |
offset | integer | Yes | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
done | Yes | Yes | Yes | — | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "lumen.metrics.query",
"initial_data": {
"organization_uuid": "value",
"metric_name": "value"
}
}