Logs

Get project log activity

Changed on

Retrieve bucketed log counts for one resource type in the project. Set resource.type to function, frontend, or database. Add resource.ids to filter to one or more resources, and add resource.deployments.ids to count deployment logs instead of runtime logs for functions and frontends. Deployment logs are not supported for databases. Database logs are a SUPERAGENT feature; resource.type=database from a HOBBY project owner returns 403. The activity window is limited to the plan's retention window (HOBBY: 1 day, SUPERAGENT: 30 days); older start times are clamped to that window. Buckets are aligned to UTC clock intervals and count events in the half-open window [start_time, end_time).

post/projects/{id}/logs/activity

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

Request body

LogActivityRequest required

Activity request for bucketed log counts.

resource, union required

Resource selectors for project log reads.

q, string

Optional activity query. Supports quoted text, implicit AND, AND/OR/NOT, parentheses, and fields such as level, region, invocation.id, resource.id, resource.name, function, frontend, database, and body.

start_time, string date-time

Start of the window, inclusive. Defaults to 24 hours before end_time.

end_time, string date-time

End of the window, exclusive. Defaults to now.

bucket_count, integer

Maximum number of buckets. Defaults to 24. Volcano picks the smallest bucket width from 1s, 2s, 5s, 10s, 15s, 30s, 1m, 2m, 5m, 10m, 15m, 30m, 1h, 2h, 3h, 6h, 12h, 1d, or a whole number of days that covers the window in at most this many buckets. Bucket edges fall on UTC multiples of the width, so they stay fixed as the window moves, and the response can contain fewer buckets. 1 returns one bucket that spans exactly the window.

Response

Successful response

LogActivityResponse required

Bucketed runtime log activity.

data, LogActivityBucket[] required
total, integer required

Total events counted across all buckets.

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • info

      added the new optional request property resource/oneOf[#/components/schemas/LogFunctionRequestResource]/kind

    • breaking

      added the new path request parameter id

    21 more changes in this revision