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*

Return Models

ActionLog

A single action log entry from actionLog.getPaginated.

Field Type Required Description
_id string Optional
__v integer Optional
userId string Optional The user id.
muId string Optional The mu id.
countryId string Optional The country id.
actionType string Optional The action type.
timestamp string Optional The timestamp.
details object Optional The details.

.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*

Return Models

ActionLog

A single action log entry from actionLog.getPaginated.

Field Type Required Description
_id string Optional
__v integer Optional
userId string Optional The user id.
muId string Optional The mu id.
countryId string Optional The country id.
actionType string Optional The action type.
timestamp string Optional The timestamp.
details object Optional The details.

.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 None
auto_items bool False
max_pages int | float inf
cursor_end str None

Return Models

ActionLog

A single action log entry from actionLog.getPaginated.

Field Type Required Description
_id string Optional
__v integer Optional
userId string Optional The user id.
muId string Optional The mu id.
countryId string Optional The country id.
actionType string Optional The action type.
timestamp string Optional The timestamp.
details object Optional The details.

CursorPage[ActionLog]

Field Type Required Description
_id string Optional
__v integer Optional
items array[ActionLog] Required
nextCursor string Optional
hasMore boolean Optional

.invalidate_cache()

Clear the SWR cache for all resources.

Signature

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

Clone this wiki locally