Skip to content

Time-Series

Terminal window
curl -X POST https://magnusdb.dev/api/ts/write \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataset": "server_metrics",
"points": [
{
"timestamp": "2024-01-15T10:00:00Z",
"tags": {"host": "web-01", "region": "us-east"},
"fields": {"cpu": 0.72, "memory_mb": 512}
}
]
}'
Terminal window
curl -X POST https://magnusdb.dev/api/ts/query \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataset": "server_metrics",
"from": "2024-01-15T00:00:00Z",
"to": "2024-01-15T23:59:59Z",
"filter": {"host": "web-01"},
"granularity": "1h"
}'

Backed by Cloudflare Analytics Engine — optimized for high-cardinality, high-throughput writes at the edge.