Skip to content

Commit

Permalink
Add billable_units to notifications dataset (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels authored Oct 8, 2024
1 parent 9a33a39 commit 87a17b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aws/quicksight/dataset_notifications.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resource "aws_quicksight_data_set" "notifications" {
with notification_data as (
select
id as notification_id,
billable_units as notification_billable_units,
created_at as notification_created_at,
queue_name as notification_queue_name,
sent_at as notification_sent_at,
Expand All @@ -30,6 +31,7 @@ resource "aws_quicksight_data_set" "notifications" {
union
select
id as notification_id,
billable_units as notification_billable_units,
created_at as notification_created_at,
queue_name as notification_queue_name,
sent_at as notification_sent_at,
Expand Down Expand Up @@ -75,7 +77,7 @@ resource "aws_quicksight_data_set" "notifications" {
left outer join template_categories tc on tc.id = t.template_category_id
)
select
notification_id, notification_created_at, notification_sent_at, notification_status,
notification_id, notification_billable_units, notification_created_at, notification_sent_at, notification_status,
notification_queue_name, notification_type, notification_updated_at,
notification_reference, job_id, api_key_id, api_key_type,
s.*, t.*
Expand All @@ -88,6 +90,10 @@ resource "aws_quicksight_data_set" "notifications" {
name = "notification_id"
type = "STRING"
}
columns {
name = "notification_billable_units"
type = "INTEGER"
}
columns {
name = "notification_created_at"
type = "DATETIME"
Expand Down

0 comments on commit 87a17b7

Please sign in to comment.