Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 910ccb1

Browse files
michaelawyuJon Wayne Parrott
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(#1254)](GoogleCloudPlatform/python-docs-samples#1254)
1 parent 4100937 commit 910ccb1

File tree

4 files changed

+46
-15
lines changed

4 files changed

+46
-15
lines changed

samples/snippets/v3/api-client/README.rst

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Stackdriver Monitoring Python Samples
44
===============================================================================
55

6+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/api-client/README.rst
8+
9+
610
This directory contains samples for Stackdriver Monitoring. `Stackdriver Monitoring `_ collects metrics, events, and metadata from Google Cloud Platform, Amazon Web Services (AWS), hosted uptime probes, application instrumentation, and a variety of common application components including Cassandra, Nginx, Apache Web Server, Elasticsearch and many others. Stackdriver ingests that data and generates insights via dashboards, charts, and alerts.
711

812

@@ -54,6 +58,10 @@ Samples
5458
List resources
5559
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5660

61+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
62+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/api-client/list_resources.py;monitoring/api/v3/api-client/README.rst
63+
64+
5765

5866

5967
To run this sample:
@@ -63,25 +71,30 @@ To run this sample:
6371
$ python list_resources.py
6472
6573
usage: list_resources.py [-h] --project_id PROJECT_ID
66-
74+
6775
Sample command-line program for retrieving Stackdriver Monitoring API V3
6876
data.
69-
77+
7078
See README.md for instructions on setting up your development environment.
71-
79+
7280
To run locally:
73-
81+
7482
python list_resources.py --project_id=<YOUR-PROJECT-ID>
75-
83+
7684
optional arguments:
7785
-h, --help show this help message and exit
7886
--project_id PROJECT_ID
7987
Project ID you want to access.
8088
8189
90+
8291
Custom metrics
8392
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8493

94+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
95+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/api-client/custom_metric.py;monitoring/api/v3/api-client/README.rst
96+
97+
8598

8699

87100
To run this sample:
@@ -91,21 +104,21 @@ To run this sample:
91104
$ python custom_metric.py
92105
93106
usage: custom_metric.py [-h] --project_id PROJECT_ID
94-
107+
95108
Sample command-line program for writing and reading Stackdriver Monitoring
96109
API V3 custom metrics.
97-
110+
98111
Simple command-line program to demonstrate connecting to the Google
99112
Monitoring API to write custom metrics and read them back.
100-
113+
101114
See README.md for instructions on setting up your development environment.
102-
115+
103116
This example creates a custom metric based on a hypothetical GAUGE measurement.
104-
117+
105118
To run locally:
106-
119+
107120
python custom_metric.py --project_id=<YOUR-PROJECT-ID>
108-
121+
109122
optional arguments:
110123
-h, --help show this help message and exit
111124
--project_id PROJECT_ID
@@ -114,4 +127,5 @@ To run this sample:
114127
115128
116129
130+
117131
.. _Google Cloud SDK: https://cloud.google.com/sdk/

samples/snippets/v3/api-client/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ samples:
2323
- name: Custom metrics
2424
file: custom_metric.py
2525
show_help: true
26+
27+
folder: monitoring/api/v3/api-client

samples/snippets/v3/cloud-client/README.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Stackdriver Monitoring API Python Samples
44
===============================================================================
55

6+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/cloud-client/README.rst
8+
9+
610
This directory contains samples for Google Stackdriver Monitoring API. Stackdriver Monitoring collects metrics, events, and metadata from Google Cloud Platform, Amazon Web Services (AWS), hosted uptime probes, application instrumentation, and a variety of common application components including Cassandra, Nginx, Apache Web Server, Elasticsearch
711
and many others. Stackdriver ingests that data and generates insights
812
via dashboards, charts, and alerts.
@@ -56,6 +60,10 @@ Samples
5660
Quickstart
5761
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5862

63+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
64+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/cloud-client/quickstart.py;monitoring/api/v3/cloud-client/README.rst
65+
66+
5967

6068

6169
To run this sample:
@@ -68,6 +76,10 @@ To run this sample:
6876
Snippets
6977
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7078

79+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
80+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/cloud-client/snippets.py;monitoring/api/v3/cloud-client/README.rst
81+
82+
7183

7284

7385
To run this sample:
@@ -79,9 +91,9 @@ To run this sample:
7991
usage: snippets.py [-h]
8092
{create-metric-descriptor,list-metric-descriptors,get-metric-descriptor,delete-metric-descriptor,list-resources,get-resource,write-time-series,list-time-series,list-time-series-header,list-time-series-reduce,list-time-series-aggregate}
8193
...
82-
94+
8395
Demonstrates Monitoring API operations.
84-
96+
8597
positional arguments:
8698
{create-metric-descriptor,list-metric-descriptors,get-metric-descriptor,delete-metric-descriptor,list-resources,get-resource,write-time-series,list-time-series,list-time-series-header,list-time-series-reduce,list-time-series-aggregate}
8799
create-metric-descriptor
@@ -95,13 +107,14 @@ To run this sample:
95107
list-time-series-header
96108
list-time-series-reduce
97109
list-time-series-aggregate
98-
110+
99111
optional arguments:
100112
-h, --help show this help message and exit
101113
102114
103115
104116
117+
105118
The client library
106119
-------------------------------------------------------------------------------
107120

samples/snippets/v3/cloud-client/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ samples:
2424
show_help: true
2525

2626
cloud_client_library: true
27+
28+
folder: monitoring/api/v3/cloud-client

0 commit comments

Comments
 (0)