@walkeros/server-destination-gcp 0.4.2 → 0.5.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p align="left">
2
- <a href="https://elbwalker.com">
3
- <img title="elbwalker" src="https://www.elbwalker.com/img/elbwalker_logo.png" width="256px"/>
2
+ <a href="https://www.walkeros.io">
3
+ <img title="elbwalker" src="https://www.walkeros.io/img/elbwalker_logo.png" width="256px"/>
4
4
  </a>
5
5
  </p>
6
6
 
@@ -21,20 +21,52 @@ Google Cloud's powerful data processing and machine learning capabilities.
21
21
  npm install @walkeros/server-destination-gcp
22
22
  ```
23
23
 
24
- ## Usage
24
+ ## Quick Start
25
+
26
+ Configure in your Flow JSON:
27
+
28
+ ```json
29
+ {
30
+ "version": 1,
31
+ "flows": {
32
+ "default": {
33
+ "server": {},
34
+ "destinations": {
35
+ "bigquery": {
36
+ "package": "@walkeros/server-destination-gcp",
37
+ "config": {
38
+ "settings": {
39
+ "projectId": "YOUR_PROJECT_ID",
40
+ "datasetId": "YOUR_DATASET_ID",
41
+ "tableId": "YOUR_TABLE_ID"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ ```
25
50
 
26
- Here's a basic example of how to use the GCP BigQuery destination:
51
+ Or programmatically:
27
52
 
28
53
  ```typescript
29
- import { elb } from '@walkeros/collector';
54
+ import { startFlow } from '@walkeros/collector';
30
55
  import { destinationBigQuery } from '@walkeros/server-destination-gcp';
31
56
 
32
- elb('walker destination', destinationBigQuery, {
33
- settings: {
34
- projectId: 'YOUR_PROJECT_ID',
35
- datasetId: 'YOUR_DATASET_ID',
36
- tableId: 'YOUR_TABLE_ID',
37
- },
57
+ const { elb } = await startFlow({
58
+ destinations: [
59
+ {
60
+ destination: destinationBigQuery,
61
+ config: {
62
+ settings: {
63
+ projectId: 'YOUR_PROJECT_ID',
64
+ datasetId: 'YOUR_DATASET_ID',
65
+ tableId: 'YOUR_TABLE_ID',
66
+ },
67
+ },
68
+ },
69
+ ],
38
70
  });
39
71
  ```
40
72
 
@@ -80,7 +112,16 @@ CREATE TABLE IF NOT EXISTS `YOUR_PROJECT.walkeros.events` (
80
112
 
81
113
  Object and array fields (`data`, `context`, `globals`, etc.) are JSON
82
114
  stringified. For custom schemas using the `data` mapping config, see the
83
- [full documentation](https://www.elbwalker.com/docs/destinations/server/gcp).
115
+ [full documentation](https://www.walkeros.io/docs/destinations/server/gcp).
116
+
117
+ ## Type Definitions
118
+
119
+ See [src/types/](./src/types/) for TypeScript interfaces.
120
+
121
+ ## Related
122
+
123
+ - [Website Documentation](https://www.walkeros.io/docs/destinations/server/gcp/)
124
+ - [Destination Interface](../../../core/src/types/destination.ts)
84
125
 
85
126
  ## Contribute
86
127