Skip to content

Commit c8f010e

Browse files
committed
Add statistics endpoints
1 parent f65dcb0 commit c8f010e

File tree

1 file changed

+232
-0
lines changed

1 file changed

+232
-0
lines changed

team_admin_account_operations.yaml

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ tags:
3030
description: Retrieve team info and update team settings
3131
- name: Activities & Logs
3232
description: Retrieve team activities and logs
33+
- name: Statistics
34+
description: Retrieve statistics about system activities
3335
- name: Customizing
3436
description: Customize team appearance
3537
- name: SAML
@@ -69,6 +71,14 @@ components:
6971
type: string
7072
description: Exact name or a part of the name of the base, case insensitive.
7173
example: "Example"
74+
dtable_uuid:
75+
name: dtable_uuid
76+
in: query
77+
schema:
78+
type: string
79+
pattern: '^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$'
80+
description: The unique identifier of a base.
81+
example: 5c264e76-0e5a-448a-9f34-580b551364ca
7282
ignore_asset:
7383
name: ignore_asset
7484
in: query
@@ -2203,6 +2213,228 @@ paths:
22032213
owner: 314bd2ed8d9741b08852916907dc7dd5@auth.local
22042214
warnings: null
22052215
total_count: 2
2216+
2217+
# Statistics
2218+
/api/v2.1/org/{org_id}/admin/statistics/admin-logs/by-day/:
2219+
get:
2220+
tags:
2221+
- Statistics
2222+
summary: Admin Logs (by Day)
2223+
operationId: getAdminLogStatisticsByDay
2224+
description: Returns statistics about admin logs grouped by day.
2225+
security:
2226+
- AccountTokenAuth: []
2227+
parameters:
2228+
- $ref: "#/components/parameters/org_id"
2229+
- $ref: "#/components/parameters/start"
2230+
- $ref: "#/components/parameters/end"
2231+
- $ref: "#/components/parameters/page"
2232+
- $ref: "#/components/parameters/per_page"
2233+
responses:
2234+
"200":
2235+
description: OK
2236+
content:
2237+
application/json:
2238+
schema:
2239+
type: object
2240+
example:
2241+
results:
2242+
- date: '2025-10-29'
2243+
number_of_operations: 2
2244+
base_operations: 1
2245+
group_operations: 0
2246+
user_operations: 1
2247+
- date: '2025-10-30'
2248+
number_of_operations: 5
2249+
base_operations: 3
2250+
group_operations: 1
2251+
user_operations: 1
2252+
- date: '2025-10-31'
2253+
number_of_operations: 2
2254+
base_operations: 0
2255+
group_operations: 1
2256+
user_operations: 1
2257+
total_count: 3
2258+
/api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-day/:
2259+
get:
2260+
tags:
2261+
- Statistics
2262+
summary: Automation Logs (by Day)
2263+
operationId: getAutomationLogStatisticsByDay
2264+
description: Returns statistics about automation logs grouped by day.
2265+
security:
2266+
- AccountTokenAuth: []
2267+
parameters:
2268+
- $ref: "#/components/parameters/org_id"
2269+
- $ref: "#/components/parameters/dtable_uuid"
2270+
- $ref: "#/components/parameters/start"
2271+
- $ref: "#/components/parameters/end"
2272+
- $ref: "#/components/parameters/page"
2273+
- $ref: "#/components/parameters/per_page"
2274+
responses:
2275+
"200":
2276+
description: OK
2277+
content:
2278+
application/json:
2279+
schema:
2280+
type: object
2281+
example:
2282+
results:
2283+
- trigger_date: '2025-11-27'
2284+
number_of_executions: 10
2285+
successful_executions: 9
2286+
unsuccessful_executions: 1
2287+
- trigger_date: '2025-11-28'
2288+
number_of_executions: 2
2289+
successful_executions: 2
2290+
unsuccessful_executions: 0
2291+
total_count: 2
2292+
/api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-base/:
2293+
get:
2294+
tags:
2295+
- Statistics
2296+
summary: Automation Logs (by Base)
2297+
operationId: getAutomationLogStatisticsByBase
2298+
description: Returns statistics about automation logs grouped by base.
2299+
security:
2300+
- AccountTokenAuth: []
2301+
parameters:
2302+
- $ref: "#/components/parameters/org_id"
2303+
- $ref: "#/components/parameters/start"
2304+
- $ref: "#/components/parameters/end"
2305+
- $ref: "#/components/parameters/page"
2306+
- $ref: "#/components/parameters/per_page"
2307+
responses:
2308+
"200":
2309+
description: OK
2310+
content:
2311+
application/json:
2312+
schema:
2313+
type: object
2314+
example:
2315+
results:
2316+
- dtable_uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd
2317+
number_of_executions: 2
2318+
successful_executions: 2
2319+
unsuccessful_executions: 0
2320+
- dtable_uuid: e97bb668-da36-484c-8ac9-8aa9e0564f4c
2321+
number_of_executions: 5
2322+
successful_executions: 4
2323+
unsuccessful_executions: 1
2324+
total_count: 2
2325+
/api/v2.1/org/{org_id}/admin/statistics/login-logs/by-day/:
2326+
get:
2327+
tags:
2328+
- Statistics
2329+
summary: Login Logs (by Day)
2330+
operationId: getLoginLogStatisticsByDay
2331+
description: Returns statistics about login logs grouped by day.
2332+
security:
2333+
- AccountTokenAuth: []
2334+
parameters:
2335+
- $ref: "#/components/parameters/org_id"
2336+
- $ref: "#/components/parameters/start"
2337+
- $ref: "#/components/parameters/end"
2338+
- $ref: "#/components/parameters/page"
2339+
- $ref: "#/components/parameters/per_page"
2340+
responses:
2341+
"200":
2342+
description: OK
2343+
content:
2344+
application/json:
2345+
schema:
2346+
type: object
2347+
example:
2348+
results:
2349+
- date: '2025-11-27'
2350+
number_of_attempts: 15
2351+
successful_attempts: 14
2352+
unsuccessful_attempts: 1
2353+
- date: '2025-11-28'
2354+
number_of_attempts: 2
2355+
successful_attempts: 1
2356+
unsuccessful_attempts: 1
2357+
total_count: 2
2358+
/api/v2.1/org/{org_id}/admin/statistics/python-runs/by-day/:
2359+
get:
2360+
tags:
2361+
- Statistics
2362+
summary: Python Runs (by Day)
2363+
operationId: getPythonRunStatisticsByDay
2364+
description: Returns statistics about python runs grouped by day.
2365+
security:
2366+
- AccountTokenAuth: []
2367+
parameters:
2368+
- $ref: "#/components/parameters/org_id"
2369+
- $ref: "#/components/parameters/dtable_uuid"
2370+
- $ref: "#/components/parameters/start"
2371+
- $ref: "#/components/parameters/end"
2372+
- $ref: "#/components/parameters/page"
2373+
- $ref: "#/components/parameters/per_page"
2374+
responses:
2375+
"200":
2376+
description: OK
2377+
content:
2378+
application/json:
2379+
schema:
2380+
type: object
2381+
example:
2382+
results:
2383+
- date: '2025-11-27'
2384+
number_of_runs: 8
2385+
total_run_time: 5
2386+
triggered_by_automation_rule: 0
2387+
triggered_manually: 8
2388+
successful_runs: 3
2389+
unsuccessful_runs: 5
2390+
- date: '2025-11-28'
2391+
number_of_runs: 4
2392+
total_run_time: 22
2393+
triggered_by_automation_rule: 0
2394+
triggered_manually: 4
2395+
successful_runs: 4
2396+
unsuccessful_runs: 0
2397+
total_count: 2
2398+
/api/v2.1/org/{org_id}/admin/statistics/python-runs/by-base/:
2399+
get:
2400+
tags:
2401+
- Statistics
2402+
summary: Python Runs (by Base)
2403+
operationId: getPythonRunStatisticsByBase
2404+
description: Returns statistics about python runs grouped by base.
2405+
security:
2406+
- AccountTokenAuth: []
2407+
parameters:
2408+
- $ref: "#/components/parameters/org_id"
2409+
- $ref: "#/components/parameters/start"
2410+
- $ref: "#/components/parameters/end"
2411+
- $ref: "#/components/parameters/page"
2412+
- $ref: "#/components/parameters/per_page"
2413+
responses:
2414+
"200":
2415+
description: OK
2416+
content:
2417+
application/json:
2418+
schema:
2419+
type: object
2420+
example:
2421+
results:
2422+
- base_uuid: 4202f7ad-3168-4bf4-b1e4-01aee6782f94
2423+
number_of_runs: 8
2424+
total_run_time: 5
2425+
triggered_by_automation_rule: 0
2426+
triggered_manually: 8
2427+
successful_runs: 3
2428+
unsuccessful_runs: 5
2429+
- base_uuid: ca490121-cea3-4a04-8e25-ac72b03a61e0
2430+
number_of_runs: 4
2431+
total_run_time: 22
2432+
triggered_by_automation_rule: 0
2433+
triggered_manually: 4
2434+
successful_runs: 4
2435+
unsuccessful_runs: 0
2436+
total_count: 2
2437+
22062438
/api/v2.1/org/{org_id}/admin/org-logo/:
22072439
post:
22082440
tags:

0 commit comments

Comments
 (0)