Skip to content

Gets a project's function combined statistics

get/v1/projects/{ref}/analytics/endpoints/functions.combined-stats

The fine-grained token must include the following permissions to access this endpoint:

  • analytics_usage_read

Path parameters

  • ref
    Required
    string

    Project ref

Query parameters

  • interval
    Required
    enum
  • function_id
    Required
    string

Response codes

  • 200
  • 401
  • 403
  • 429
  • 500

Response (200)

{
"result": [
null
],
"error": "lorem"
}
{
"type": "object",
"properties": {
"result": {
"type": "array",
"items": {}
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"code": {
"type": "number"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"domain": {
"type": "string"
},
"location": {
"type": "string"
},
"locationType": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"domain",
"location",
"locationType",
"message",
"reason"
]
}
},
"message": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"code",
"errors",
"message",
"status"
]
}
]
}
}
}