#[Group('Admin API','Root administrator endpoints for managing panel configuration and resources.')]
#[Subgroup('Activity','Panel-wide activity log covering every actor and subject.')]
classActivityControllerextendsAdminApiController
{
/**
* Actions performed through the admin panel are namespaced with this prefix, which
* is what separates them from the customer activity shown on a server or account.
*/
publicconststringADMIN_EVENT_PREFIX='admin:';
/**
* List activity.
*/
#[Endpoint('List activity','Returns a paginated list of administrative activity. Only events in the "admin" namespace are returned; customer activity against a server or account is excluded.')]
#[QueryParam('filter[event]','string','Filter activity by event name.',required:false,example:'admin:server.build')]
#[QueryParam('filter[ip]','string','Filter activity by originating IP address.',required:false,example:'192.0.2.10')]
#[QueryParam('filter[user]','string','Filter activity by the username or email of the user that performed it.',required:false,example:'admin@example.com')]
#[QueryParam('filter[user_id]','integer','Filter activity to a single user by ID. Preferred over filter[user] when the exact user is known.',required:false,example:1)]
#[QueryParam('filter[event_name]','string','Filter activity to one exact event name. Preferred over filter[event], which matches substrings.',required:false,example:'admin:server.build')]
#[QueryParam('sort','string','Sort activity by timestamp. Prefix with "-" for descending order.',required:false,example:'-timestamp',enum:['timestamp','-timestamp'])]
#[QueryParam('page','integer','Page number to return.',required:false,example:1)]
#[QueryParam('per_page','integer','Results to return per page. The maximum is 100.',required:false,example:25)]
#[QueryParam('include','string','Comma-separated relationships to include. Supports actor.',required:false,example:'actor')]