Skip to content

Commit a43a3db

Browse files
committed
update description
1 parent 06960f2 commit a43a3db

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

infra/tf/dataform_export/main.tf

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,19 @@ resource "google_bigquery_routine" "run_export_job" {
5454
routine_type = "SCALAR_FUNCTION"
5555
definition_body = ""
5656
description = <<EOT
57-
Export data from Google BigQuery.
58-
Example payload JSON: {"dataform_trigger": "tech_report_complete", "date": "2025-01-01", "name": "adoption", "type": "report"}
59-
EOT
57+
Export data from Google BigQuery.
58+
Example payload JSON:
59+
{
60+
"destination": "firestore",
61+
"config": {
62+
"databaseId": "tech-report-api-dev",
63+
"collectionName": "adoption",
64+
"collectionType": "report",
65+
"date": "2025-01-01"
66+
},
67+
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM reports.tech_report_adoption WHERE date = '2025-01-01'"
68+
}
69+
EOT
6070

6171
arguments {
6272
name = "payload"

0 commit comments

Comments
 (0)