From efbea4feb1a15047666b39cd57030151dd240fc4 Mon Sep 17 00:00:00 2001 From: michaelawyu Date: Thu, 7 Dec 2017 10:34:29 -0800 Subject: [PATCH] Added "Open in Cloud Shell" buttons to README files [(#1254)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1254) --- samples/metricscaler/README.rst | 15 ++++++++++++--- samples/metricscaler/README.rst.in | 2 ++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/samples/metricscaler/README.rst b/samples/metricscaler/README.rst index 1a99119ab..81ae674ba 100644 --- a/samples/metricscaler/README.rst +++ b/samples/metricscaler/README.rst @@ -3,6 +3,10 @@ Google Cloud Bigtable Python Samples =============================================================================== +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/metricscaler/README.rst + + This directory contains samples for Google Cloud Bigtable. `Google Cloud Bigtable`_ is Google's NoSQL Big Data database service. It's the same database that powers many core Google services, including Search, Analytics, Maps, and Gmail. @@ -58,6 +62,10 @@ Samples Metricscaling example +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/metricscaler/metricscaler.py;bigtable/metricscaler/README.rst + + To run this sample: @@ -70,13 +78,13 @@ To run this sample: [--low_cpu_threshold LOW_CPU_THRESHOLD] [--short_sleep SHORT_SLEEP] [--long_sleep LONG_SLEEP] bigtable_instance bigtable_cluster - + Scales Cloud Bigtable clusters based on CPU usage. - + positional arguments: bigtable_instance ID of the Cloud Bigtable instance to connect to. bigtable_cluster ID of the Cloud Bigtable cluster to connect to. - + optional arguments: -h, --help show this help message and exit --high_cpu_threshold HIGH_CPU_THRESHOLD @@ -95,6 +103,7 @@ To run this sample: + The client library ------------------------------------------------------------------------------- diff --git a/samples/metricscaler/README.rst.in b/samples/metricscaler/README.rst.in index 09b1a295a..44a548e4c 100644 --- a/samples/metricscaler/README.rst.in +++ b/samples/metricscaler/README.rst.in @@ -25,3 +25,5 @@ samples: show_help: true cloud_client_library: true + +folder: bigtable/metricscaler \ No newline at end of file