Skip to content

Commit

Permalink
RAI-13363 Tracking more data stream status (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
wienleung authored Jun 27, 2023
1 parent 948efcc commit b159be0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## v0.5.5-alpha
* Updating Snowflake integration data stream status body

## v0.5.4-alpha
* Add Snowflake role in database link definition

Expand Down
17 changes: 12 additions & 5 deletions rai/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,16 @@ type deleteSnowflakeDataStreamRequest struct {
}

type SnowflakeDataStreamStatus struct {
ID string `json:"id"`
SnowflakeUnloadStart int64 `json:"snowflakeUnloadStart"` // time of stream actions started from snowflake
RaiLoadEnd int64 `json:"raiLoadEnd"` // time of stream actions complete
Name string `json:"name"` // integration + dataStream name
Account string `json:"account"`
ID string `json:"id"`
LatestReceived *DataStreamBatch `json:"latestReceived"` // latest batch sent from SF
LatestProcessed *DataStreamBatch `json:"latestProcessed"` // latest batch fully processed (loaded into RAI)
Name string `json:"name"` // integration + dataStream name
Account string `json:"account"`
}

type DataStreamBatch struct {
SnowflakeUnloadTime int64 `json:"sfUnloadTime"` // when this batch started unloading from SF
OperationEndTime int64 `json:"operationEndTime"` // time when the step being described ended
Rows int64 `json:"rows"` // total rows
Bytes int64 `json:"bytes"` // total bytes
}

0 comments on commit b159be0

Please sign in to comment.