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.action_log.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 |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
userId |
string |
Optional |
muId |
string |
Optional |
countryId |
string |
Optional |
actionType |
string |
Optional |
timestamp |
string |
Optional |
details |
object |
Optional |
.get_all()¶
Convenience: collect all action logs matching the given filters.
Signature¶
await client.action_log.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 |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
userId |
string |
Optional |
muId |
string |
Optional |
countryId |
string |
Optional |
actionType |
string |
Optional |
timestamp |
string |
Optional |
details |
object |
Optional |
.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.action_log.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 |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
userId |
string |
Optional |
muId |
string |
Optional |
countryId |
string |
Optional |
actionType |
string |
Optional |
timestamp |
string |
Optional |
details |
object |
Optional |
CursorPage[ActionLog]¶
| Field | Type | Required |
|---|---|---|
_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.action_log.invalidate_cache() -> 'None'