Skip to content

Commit

Permalink
feat: add reasons to AirbyteStreamStatusTraceMessage (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
subodh1810 authored May 16, 2024
1 parent 6aa42fe commit fe0ada2
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
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

0 comments on commit fe0ada2

Please sign in to comment.