Skip to content

Commit b50c3e1

Browse files
anweshangcf-owl-bot[bot]bcoe
authored
docs(samples): add realtime report samples (#203)
* Adds runReport * Adds realtime report samples * Adds tests for methods * updates region tags * Modifies samples to be self contained rather than call print method in runReport * Modifies strings to formatted strings for consistency * Fix typo in region tag * changes link name in readme * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Removes changes to README * Removes changes to READMEs * removes merge conflicts with runReport.js * Fix lint error * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Benjamin E. Coe <[email protected]>
1 parent 5f9bc6c commit b50c3e1

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

packages/google-analytics-data/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-d
112112
| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
113113
| Quickstart_json_credentials | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart_json_credentials.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart_json_credentials.js,samples/README.md) |
114114
| Quickstart_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart_oauth2.js,samples/README.md) |
115-
| Realtime | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/realtime.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/realtime.js,samples/README.md) |
115+
| Run Realtime Report | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReport.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runRealtimeReport.js,samples/README.md) |
116+
| Run Realtime Report With Multiple Dimensions | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReportWithMultipleDimensions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runRealtimeReportWithMultipleDimensions.js,samples/README.md) |
117+
| Run Realtime Report With Multiple Metrics | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReportWithMultipleMetrics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runRealtimeReportWithMultipleMetrics.js,samples/README.md) |
116118
| Run Report | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReport.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReport.js,samples/README.md) |
117119
| Run Report With Aggregations | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithAggregations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithAggregations.js,samples/README.md) |
118120
| Run Report With Cohorts | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithCohorts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithCohorts.js,samples/README.md) |

packages/google-analytics-data/samples/README.md

+41-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
* [Quickstart](#quickstart)
1616
* [Quickstart_json_credentials](#quickstart_json_credentials)
1717
* [Quickstart_oauth2](#quickstart_oauth2)
18-
* [Realtime](#realtime)
18+
* [Run Realtime Report](#run-realtime-report)
19+
* [Run Realtime Report With Multiple Dimensions](#run-realtime-report-with-multiple-dimensions)
20+
* [Run Realtime Report With Multiple Metrics](#run-realtime-report-with-multiple-metrics)
1921
* [Run Report](#run-report)
2022
* [Run Report With Aggregations](#run-report-with-aggregations)
2123
* [Run Report With Cohorts](#run-report-with-cohorts)
@@ -90,16 +92,50 @@ __Usage:__
9092

9193

9294

93-
### Realtime
95+
### Run Realtime Report
9496

95-
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/realtime.js).
97+
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReport.js).
9698

97-
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/realtime.js,samples/README.md)
99+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runRealtimeReport.js,samples/README.md)
98100

99101
__Usage:__
100102

101103

102-
`node samples/realtime.js`
104+
`node samples/runRealtimeReport.js`
105+
106+
107+
-----
108+
109+
110+
111+
112+
### Run Realtime Report With Multiple Dimensions
113+
114+
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReportWithMultipleDimensions.js).
115+
116+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runRealtimeReportWithMultipleDimensions.js,samples/README.md)
117+
118+
__Usage:__
119+
120+
121+
`node samples/runRealtimeReportWithMultipleDimensions.js`
122+
123+
124+
-----
125+
126+
127+
128+
129+
### Run Realtime Report With Multiple Metrics
130+
131+
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReportWithMultipleMetrics.js).
132+
133+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runRealtimeReportWithMultipleMetrics.js,samples/README.md)
134+
135+
__Usage:__
136+
137+
138+
`node samples/runRealtimeReportWithMultipleMetrics.js`
103139

104140

105141
-----

0 commit comments

Comments
 (0)