redis
Get Database Traffic
Changed onThis endpoint reports where a database's traffic comes from over a period. Available for databases on a Pro plan or with the Production Pack.
get/redis/traffic/{id}
Request
- Base URLhttps://api.upstash.com/v2
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The ID of the database
Query parameters
periodstring
The period every figure covers: 1h, 3h, 12h, 1d, 3d, 7d or 30d. Defaults to 1d.
Response
Database traffic retrieved successfully
Example response
{
"period": "1d",
"client_network_window": "1d",
"client_networks": [
{
"prefix": "203.0.113.0/24",
"entry_region": "us-east-1"
}
],
"telemetry_window": "1d",
"telemetry": {
"sdks": [
{
"name": "@upstash/redis@1.34.0"
}
],
"platforms": [
{
"name": "@upstash/redis@1.34.0"
}
],
"runtimes": [
{
"name": "@upstash/redis@1.34.0"
}
]
},
"routes_window": "1d"
}Changes
- info
endpoint added
- info