Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add reasons to AirbyteStreamStatusTraceMessage #74

Merged
merged 7 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ definitions:
- ANALYTICS
emitted_at:
description: "the time in ms that the message was emitted"
# TODO : This should have been an integer instead of a number, need to fix this
type: number
error:
description: "error trace message: the error object"
Expand Down Expand Up @@ -315,6 +316,30 @@ definitions:
- RUNNING # Stream has read its first byte/message
- COMPLETE # Stream has completed executing without interruption or error
- INCOMPLETE # Stream has stopped due to an interruption or error
AirbyteStreamStatusReasonType:
type: string
description: >
Type of reason
enum:
- RATE_LIMITED
AirbyteStreamStatusRateLimitedReason:
type: object
description: Rate Limited Information
properties:
quota_reset:
description: "Optional time in ms representing when the API quota is going to be reset"
type: integer
AirbyteStreamStatusReason:
type: object
required:
- type
description: >
The reason associated with the status of the stream.
properties:
type:
"$ref": "#/definitions/AirbyteStreamStatusReasonType"
rate_limited:
"$ref": "#/definitions/AirbyteStreamStatusRateLimitedReason"
AirbyteStreamStatusTraceMessage:
type: object
additionalProperties: true
Expand All @@ -328,6 +353,11 @@ definitions:
status:
description: "The current status of the stream"
"$ref": "#/definitions/AirbyteStreamStatus"
reasons:
description: "The reasons associated with the status of the stream"
type: array
items:
"$ref": "#/definitions/AirbyteStreamStatusReason"
AirbyteAnalyticsTraceMessage:
type: object
additionalProperties: true
Expand Down Expand Up @@ -367,6 +397,7 @@ definitions:
- CONNECTOR_CONFIG
emitted_at:
description: "the time in ms that the message was emitted"
# TODO : This should have been an integer instead of a number, need to fix this
type: number
connectorConfig:
description: "connector config orchestrator message: the updated config for the platform to store for this connector"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ definitions:
- STREAM_STATUS
- ANALYTICS
emitted_at:
# TODO : This should have been an integer instead of a number, need to fix this
description: "the time in ms that the message was emitted"
type: number
error:
Expand Down Expand Up @@ -316,6 +317,30 @@ definitions:
- RUNNING # Stream has read its first byte/message
- COMPLETE # Stream has completed executing without interruption or error
- INCOMPLETE # Stream has stopped due to an interruption or error
AirbyteStreamStatusReasonType:
type: string
description: >
Type of reason
enum:
- RATE_LIMITED
AirbyteStreamStatusRateLimitedReason:
type: object
description: Rate Limited Information
properties:
quota_reset:
description: "Optional time in ms representing when the API quota is going to be reset"
type: integer
AirbyteStreamStatusReason:
type: object
required:
- type
description: >
The reason associated with the status of the stream.
properties:
type:
"$ref": "#/definitions/AirbyteStreamStatusReasonType"
rate_limited:
"$ref": "#/definitions/AirbyteStreamStatusRateLimitedReason"
AirbyteStreamStatusTraceMessage:
type: object
additionalProperties: true
Expand All @@ -329,6 +354,11 @@ definitions:
status:
description: "The current status of the stream"
"$ref": "#/definitions/AirbyteStreamStatus"
reasons:
description: "The reasons associated with the status of the stream"
type: array
items:
"$ref": "#/definitions/AirbyteStreamStatusReason"
AirbyteAnalyticsTraceMessage:
type: object
additionalProperties: true
Expand Down Expand Up @@ -368,6 +398,7 @@ definitions:
- CONNECTOR_CONFIG
emitted_at:
description: "the time in ms that the message was emitted"
# TODO : This should have been an integer instead of a number, need to fix this
type: number
connectorConfig:
description: "connector config orchestrator message: the updated config for the platform to store for this connector"
Expand Down
Loading