You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* split to cloud run job
* some docs
* lint
* linter off
* path moved
* clean before build
* cleanup
* no wrapper subscription
* local test
* cleanup
* wrapped subscription events
Copy file name to clipboardExpand all lines: infra/README.md
+57-37
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,10 @@
1
1
# Infrastructure for the HTTP Archive data pipeline
2
2
3
-
## Cloud function for triggering Dataform workflows
3
+
## Cloud Function for triggering Dataform workflows
4
4
5
5
[dataformTrigger](https://console.cloud.google.com/functions/details/us-central1/dataformTrigger?env=gen2&authuser=7&project=httparchive) Cloud Run Function
6
6
7
-
This function may be triggered by a PubSub message or Cloud Scheduler and triggers a Dataform workflow based on the trigger configuration provided.
8
-
9
-
### Trigger configuration
7
+
This function may be triggered by a PubSub message or Cloud Scheduler and invokes a Dataform workflow based on the provided configuration.
10
8
11
9
Trigger types:
12
10
@@ -16,7 +14,7 @@ Trigger types:
16
14
17
15
See [available trigger configurations](https://github.com/HTTPArchive/dataform/blob/main/src/index.js#L4).
18
16
19
-
Request body example with trigger name:
17
+
Request body example:
20
18
21
19
```json
22
20
{
@@ -26,7 +24,7 @@ Request body example with trigger name:
26
24
}
27
25
```
28
26
29
-
Trigger for local development:
27
+
Request example for local development:
30
28
31
29
```bash
32
30
curl -X POST http://localhost:8080/ \
@@ -38,25 +36,23 @@ curl -X POST http://localhost:8080/ \
38
36
}'
39
37
```
40
38
41
-
## Cloud Function for report data exports
39
+
## Cloud Function for triggering data exports
42
40
43
41
[exportReport](https://console.cloud.google.com/functions/details/us-central1/bqExport?env=gen2&authuser=7&project=httparchive) Cloud Run Function
44
42
45
-
This function exports reports data to GCS or Firestore.
43
+
This function triggers a job to export data to GCS or Firestore.
0 commit comments