Skip to content

GetAPIStatisticsParams

Defined in: src/types/api_statistics.ts:41

Query parameters for retrieving API usage statistics.

optional aggregate?: string

Defined in: src/types/api_statistics.ts:55

Aggregation measure (e.g. count).


optional aggregation_interval?: string

Defined in: src/types/api_statistics.ts:57

Aggregation interval aligned with dashboard stats (e.g. day, week).


optional api?: string

Defined in: src/types/api_statistics.ts:49


optional api_path?: string

Defined in: src/types/api_statistics.ts:45

Filter by API path for GET /admin/api_stats (query key api_path).


optional end_time?: number

Defined in: src/types/api_statistics.ts:65

End of the time range as a Unix timestamp (seconds).


optional fw_version?: string

Defined in: src/types/api_statistics.ts:53

Filter by node firmware version.


optional group_by?: string

Defined in: src/types/api_statistics.ts:69

Group results (e.g. api_path, user).


optional method?: string

Defined in: src/types/api_statistics.ts:51

Filter by HTTP method.


optional num_records?: string | number

Defined in: src/types/api_statistics.ts:59

Maximum number of records to return per page.


optional start_id?: string

Defined in: src/types/api_statistics.ts:61

Pagination cursor from the previous response (next_id).


optional start_time?: number

Defined in: src/types/api_statistics.ts:63

Start of the time range as a Unix timestamp (seconds).


optional timezone?: string

Defined in: src/types/api_statistics.ts:67

Timezone for the statistics data.