Skip to contents

Retrieve aggregated statistics for a user including volume count, file count, and data footprints. Returns NULL (204 No Content) when statistics have not been computed yet.

Usage

get_user_statistics(user_id, vb = options::opt("vb"), rq = NULL)

Arguments

user_id

User identifier. Must be a positive integer.

vb

Show verbose feedback. Defaults to options::opt("vb").

rq

An httr2 request object. Defaults to NULL.

Value

A list with user statistics including:

  • user_id: The user identifier

  • volumes_number: Number of volumes

  • files_number: Number of files

  • uploaded_data_footprint: Size of uploaded data in bytes

  • transcoded_data_footprint: Size of transcoded data in bytes

  • soft_deleted_uploaded_data_footprint: Size of soft-deleted uploaded data

  • soft_deleted_transcoded_data_footprint: Size of soft-deleted transcoded data

  • created_at: Timestamp when statistics were created

  • updated_at: Timestamp when statistics were last updated Returns NULL when statistics have not been computed or user is not found.