Skip to main content
POST
/
api
/
run
/
monitoring
/
performanceQueries
/
getPerformanceTrends
getPerformanceTrends
curl --request POST \
  --url https://connvo-dev.convex.cloud/api/run/monitoring/performanceQueries/getPerformanceTrends \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "args": {
    "bucketSizeMs": 123,
    "functionName": "<string>",
    "timeWindowMs": 123
  }
}'
{
  "status": "success",
  "errorMessage": "<string>",
  "errorData": {},
  "value": {
    "timeSeries": [
      {
        "avgLatency": 123,
        "callCount": 123,
        "errorCount": 123,
        "p95Latency": 123,
        "successRate": 123,
        "timestamp": 123
      }
    ],
    "trends": {
      "errorTrend": "improving",
      "latencyTrend": "improving",
      "throughputTrend": "increasing"
    }
  }
}

Authorizations

Authorization
string
header
required

Standard user authentication token issued via WorkOS. Provide as Authorization: Bearer <user-token>.

Body

application/json
args
object
required

Response

Convex executed your request and returned a result

status
enum<string>
required
Available options:
success,
error
errorMessage
string
errorData
object
value
object