Skip to content

Commit 1ae5710

Browse files
committed
add new obs endpoint
1 parent ae61e19 commit 1ae5710

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

specs/ingestion/common/schemas/run.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ RunResponse:
1010
- runID
1111
- createdAt
1212

13+
RunListResponse:
14+
type: object
15+
additionalProperties: false
16+
properties:
17+
runs:
18+
type: array
19+
items:
20+
$ref: '#/Run'
21+
pagination:
22+
$ref: './pagination.yml#/Pagination'
23+
required:
24+
- runs
25+
- pagination
26+
1327
Run:
1428
type: object
1529
additionalProperties: false

specs/ingestion/paths/runs/runs.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ get:
1313
content:
1414
application/json:
1515
schema:
16-
title: listRunsResponse
17-
type: object
18-
additionalProperties: false
19-
properties:
20-
runs:
21-
type: array
22-
items:
23-
$ref: '../../common/schemas/run.yml#/Run'
24-
pagination:
25-
$ref: '../../common/schemas/pagination.yml#/Pagination'
26-
required:
27-
- runs
28-
- pagination
16+
$ref: '../../common/schemas/run.yml#/RunListResponse'
2917
'400':
3018
$ref: '../../../common/responses/BadRequest.yml'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
get:
2+
tags:
3+
- observability
4+
summary: Get a list of runs associated with a taskID.
5+
description: Get a list of runs associated with a taskID.
6+
operationId: getRunsByTaskID
7+
parameters:
8+
- $ref: '../../../common/parameters.yml#/taskID'
9+
- $ref: '../../../common/parameters.yml#/itemsPerPage'
10+
- $ref: '../../../common/parameters.yml#/page'
11+
responses:
12+
'200':
13+
description: OK
14+
content:
15+
application/json:
16+
schema:
17+
$ref: '../../../common/schemas/run.yml#/RunListResponse'
18+
'400':
19+
$ref: '../../../../common/responses/BadRequest.yml'

specs/ingestion/spec.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ paths:
7575
$ref: 'paths/runs/events/events.yml'
7676
/1/runs/{runID}/events/{eventID}:
7777
$ref: 'paths/runs/events/eventID.yml'
78+
/1/runs/tasks/{id}:
79+
$ref: 'path/runs/tasks/taskID.yml'

0 commit comments

Comments
 (0)