Skip to content

Commit

Permalink
feat(specs): add startDate and endDate parameters to Ingestion API (
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jun 13, 2023
1 parent c63ec0a commit 81401ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions specs/ingestion/common/observabilityParameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,23 @@ eventSortKeys:
type: string
description: Used to sort the Event list endpoint.
enum: [status, type, publishedAt]

startDate:
name: startDate
in: query
description: >
The start date (in RFC3339 format) of the runs fetching window.
Defaults to 'now'-7 days if omitted. The timespan between `startDate` and `endDate` must be smaller than 7 days.
schema:
type: string

endDate:
name: endDate
in: query
description: >
The end date (in RFC3339 format) of the runs fetching window.
Defaults to 'now' days if omitted. The timespan between `startDate` and `endDate` must be smaller than 7 days.
schema:
type: string
2 changes: 2 additions & 0 deletions specs/ingestion/paths/runs/runs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ get:
- $ref: '../../common/observabilityParameters.yml#/taskID'
- $ref: '../../common/observabilityParameters.yml#/runSort'
- $ref: '../../common/parameters.yml#/order'
- $ref: '../../common/observabilityParameters.yml#/startDate'
- $ref: '../../common/observabilityParameters.yml#/endDate'
responses:
'200':
description: OK
Expand Down

0 comments on commit 81401ee

Please sign in to comment.