Skip to content

Resource ActionLogResource

CrucifiedPain edited this page Jun 26, 2026 · 11 revisions

ActionLogResource (client.action_log)

Endpoints: • actionLog.getPaginated (cursor-paginated)

.collect_all()

Fetch all items across all pages concurrently using parallel time-slicing.

Signature

await client.actionlog.collect_all(**kwargs: 'typing.Any') -> 'list[ActionLog]'

Parameters

Name Type Default
kwargs Any *Required*

.get_all()

Convenience: collect all action logs matching the given filters.

Signature

await client.actionlog.get_all(**kwargs: 'Any') -> 'list[ActionLog]'

Parameters

Name Type Default
kwargs Any *Required*

.get_many()

Get paginated action logs with optional filtering.

Args: limit: Number of results per page (1-100, default 20). cursor: Pagination cursor for the next page. user_id: Filter by user ID. mu_id: Filter by military unit ID. country_id: Filter by country ID. action_type: Filter by action type.

Signature

await client.actionlog.get_many(*, limit: 'int' = 20, cursor: 'str | None' = None, user_id: 'str | None' = None, mu_id: 'str | None' = None, country_id: 'str | None' = None, action_type: 'ActionLogActionType | str | None' = None, auto_items: 'bool' = False, max_pages: 'int | float' = inf, cursor_end: 'str | None' = None) -> 'CursorPage[ActionLog] | AsyncIterator[ActionLog]'

Parameters

Name Type Default
limit int 20
cursor `str None`
user_id `str None`
mu_id `str None`
country_id `str None`
action_type `ActionLogActionType str
auto_items bool False
max_pages `int float`
cursor_end `str None`

.invalidate_cache()

Clear the SWR cache for all resources.

Signature

await client.actionlog.invalidate_cache() -> 'None'

Clone this wiki locally