Authorizations
Standard user authentication token issued via WorkOS. Provide as Authorization: Bearer <user-token>.
Body
application/json
curl --request POST \
--url https://connvo-dev.convex.cloud/api/run/monitoring/performanceQueries/getPerformanceMetrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"args": {
"functionName": "<string>",
"limit": 123,
"timeWindowMs": 123
}
}'{
"status": "success",
"errorMessage": "<string>",
"errorData": {},
"value": {
"aggregatedStats": {
"avgExecutionTime": 123,
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123,
"sloBreaches": 123,
"successRate": 123
},
"metrics": [
{
"errorType": "<string>",
"executionTimeMs": 123,
"functionName": "<string>",
"success": true,
"timestamp": 123,
"traceId": "<string>"
}
],
"sloCompliance": {
"currentP95": 123,
"currentP99": 123,
"queryP95Compliant": true,
"queryP99Compliant": true,
"targetP95": 123,
"targetP99": 123
}
}
}Real-time performance metrics query
curl --request POST \
--url https://connvo-dev.convex.cloud/api/run/monitoring/performanceQueries/getPerformanceMetrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"args": {
"functionName": "<string>",
"limit": 123,
"timeWindowMs": 123
}
}'{
"status": "success",
"errorMessage": "<string>",
"errorData": {},
"value": {
"aggregatedStats": {
"avgExecutionTime": 123,
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123,
"sloBreaches": 123,
"successRate": 123
},
"metrics": [
{
"errorType": "<string>",
"executionTimeMs": 123,
"functionName": "<string>",
"success": true,
"timestamp": 123,
"traceId": "<string>"
}
],
"sloCompliance": {
"currentP95": 123,
"currentP99": 123,
"queryP95Compliant": true,
"queryP99Compliant": true,
"targetP95": 123,
"targetP99": 123
}
}
}Standard user authentication token issued via WorkOS. Provide as Authorization: Bearer <user-token>.
Show child attributes