Merged
Conversation
| "urgency": Optional(Property{ | ||
| Types: []string{"string"}, | ||
| }), | ||
| "channels": Optional(ArrayOf(ChatChannelSlimV2.Schema())), |
Contributor
There was a problem hiding this comment.
Does this mean channels goes in a separate table?
Contributor
Author
There was a problem hiding this comment.
No, it shouldn't (see explanation below). Based on this, maybe we'd want events to be a separate table, but it'd require adding a reference to the escalation ID.
In Singer taps:
- Only top-level streams become separate tables (e.g., escalations, incidents, users)
- Nested objects and arrays within a stream are stored as JSON/structured data within that same table
In this case:
- escalations is the stream/table
- events is an array field within the escalations table
- channels is a nested array within each event object
So the data structure in your data warehouse would look like:
escalations table:
- id
- title
- status
- events (JSON array containing:
- id
- event
- occurred_at
- channels (nested JSON array)
- users (nested JSON array)
)
- ... other fields
Most data warehouses (Snowflake, BigQuery, Redshift) handle nested JSON well, so this structure allows you to query channels using JSON path expressions without needing
separate tables and joins.
isaacseymour
approved these changes
Jun 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds Singer tap support for the new Escalations API, allowing users to export escalation data to their data warehouses.
Changes
Regenerated client code from the latest OpenAPI spec to include Escalations V2 endpoints
Added model definitions for escalation data structures:
🌊 New Stream
📚 Documentation
🔑 Environment Variable Support
Your own testing