Skip to content

Commit 3739451

Browse files
authored
fix(specs): add query params for observability (#1277)
1 parent 9f4ad8f commit 3739451

File tree

8 files changed

+39
-28
lines changed

8 files changed

+39
-28
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
eventStatus:
2+
name: status
3+
in: query
4+
description: Filter the status of the events.
5+
schema:
6+
type: array
7+
items:
8+
$ref: './schemas/event.yml#/EventStatus'
9+
10+
eventType:
11+
name: type
12+
in: query
13+
description: Filter the type of the events.
14+
schema:
15+
type: array
16+
items:
17+
$ref: './schemas/event.yml#/EventType'
18+
19+
runStatus:
20+
name: status
21+
in: query
22+
description: Filter the status of the runs.
23+
schema:
24+
type: array
25+
items:
26+
$ref: './schemas/run.yml#/RunStatus'
27+
28+
taskID:
29+
name: taskID
30+
in: query
31+
description: Filter by taskID.
32+
schema:
33+
type: string

specs/ingestion/common/schemas/event.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ EventStatus:
3030

3131
EventType:
3232
type: string
33-
enum: ['fetch', 'record', 'internal']
33+
enum: ['fetch', 'record', 'log']

specs/ingestion/common/schemas/run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Run:
6767

6868
RunStatus:
6969
type: string
70-
enum: ['created', 'started', 'finished']
70+
enum: ['created', 'started', 'idled', 'finished']
7171

7272
RunOutcome:
7373
type: string

specs/ingestion/common/schemas/source.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ SourceUpdateJson:
180180
required:
181181
- url
182182

183-
184183
SourceUpdateInput:
185184
oneOf:
186185
- $ref: '#/SourceUpdateCommercetools'
187186
- $ref: '#/SourceUpdateJson'
188-

specs/ingestion/paths/runs/events/events.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ get:
88
- $ref: '../../../common/parameters.yml#/runID'
99
- $ref: '../../../common/parameters.yml#/itemsPerPage'
1010
- $ref: '../../../common/parameters.yml#/page'
11+
- $ref: '../../../common/observabilityParameters.yml#/eventStatus'
12+
- $ref: '../../../common/observabilityParameters.yml#/eventType'
1113
responses:
1214
'200':
1315
description: OK
@@ -22,10 +24,7 @@ get:
2224
type: array
2325
items:
2426
$ref: '../../../common/schemas/event.yml#/Event'
25-
pagination:
26-
$ref: '../../../common/schemas/pagination.yml#/Pagination'
2727
required:
2828
- events
29-
- pagination
3029
'400':
3130
$ref: '../../../../common/responses/BadRequest.yml'

specs/ingestion/paths/runs/runs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ get:
77
parameters:
88
- $ref: '../../common/parameters.yml#/itemsPerPage'
99
- $ref: '../../common/parameters.yml#/page'
10+
- $ref: '../../common/observabilityParameters.yml#/runStatus'
11+
- $ref: '../../common/observabilityParameters.yml#/taskID'
1012
responses:
1113
'200':
1214
description: OK

specs/ingestion/paths/runs/tasks/taskID.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

specs/ingestion/spec.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,3 @@ paths:
8383
$ref: 'paths/runs/events/events.yml'
8484
/1/runs/{runID}/events/{eventID}:
8585
$ref: 'paths/runs/events/eventID.yml'
86-
/1/runs/tasks/{taskID}:
87-
$ref: 'paths/runs/tasks/taskID.yml'

0 commit comments

Comments
 (0)