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 \| null
__v integer \| null
userId string \| null
muId string \| null
countryId string \| null
actionType string \| null
timestamp string \| null
details object \| null

.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 \| null
__v integer \| null
userId string \| null
muId string \| null
countryId string \| null
actionType string \| null
timestamp string \| null
details object \| null

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

Return Models

ActionLog

A single action log entry from actionLog.getPaginated.

Field Type Required Description
_id string \| null
__v integer \| null
userId string \| null
muId string \| null
countryId string \| null
actionType string \| null
timestamp string \| null
details object \| null

CursorPage[ActionLog]

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

.invalidate_cache()

Clear the SWR cache for all resources.

Signature

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

Clone this wiki locally