sites
Site Metrics
Retrieve time series metrics for a given site.
post/sites/{id}/metrics
Request
- Base URLhttps://my.pressable.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Request body
Response
Successful Response
Example response
{
"message": "Success",
"data": {
"id": 1,
"name": "my-pressable-net",
"displayName": "my-pressable-net",
"url": "https://my-presssable-net.mystagingwebsite.com",
"search": {
"startAt": 1741175460,
"endAt": 1741190220,
"resolution": 180,
"metrics": [
"requests_persec",
"response_bytes_persec"
],
"dimensions": [
"page_is_cached"
]
},
"periods": [
{
"timestamp": 1741177800,
"page_is_cached": {
"requests_persec": {
"false": 0.016666666666666666
},
"response_bytes_persec": {
"false": 82.07222222222222
}
}
},
{
"timestamp": 1741178340,
"page_is_cached": {
"requests_persec": {
"false": 0.005555555555555556
},
"response_bytes_persec": {
"false": 81.72777777777777
}
}
},
{
"timestamp": 1741179240,
"page_is_cached": {
"requests_persec": {
"false": 0.011111111111111112
},
"response_bytes_persec": {
"false": 81.7388888888889
}
}
}
]
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.