GeezerVison is showing github.com — chore(logging) Removing all references to Stackdriver (#14023) · fosky94/python-docs-samples@d4bd17f
File treeExpand file treeCollapse file tree Open diff view settings tips-avoid-infinite-retries
pubsub/streaming-analytics trace/trace-python-sample-opentelemetry
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: functions/ocr/app/main.py +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -69,7 +69,7 @@ def detect_text(bucket: str, filename: str) -> None: | 69 | 69 | filename: name of the file to be read. | 70 | 70 |
| 71 | 71 | Returns: | 72 | | - None; the output is written to stdout and Stackdriver Logging. | | 72 | + None; the output is written to stdout and Cloud Logging. | 73 | 73 | """ | 74 | 74 | print("Looking for text in image {}".format(filename)) | 75 | 75 |
| @@ -123,7 +123,7 @@ def process_image(file_info: dict, context: dict) -> None: | 123 | 123 | context: a dictionary containing metadata about the event. | 124 | 124 |
| 125 | 125 | Returns: | 126 | | - None; the output is written to stdout and Stackdriver Logging. | | 126 | + None; the output is written to stdout and Cloud Logging. | 127 | 127 | """ | 128 | 128 | bucket = validate_message(file_info, "bucket") | 129 | 129 | name = validate_message(file_info, "name") | @@ -148,7 +148,7 @@ def translate_text(event: dict, context: dict) -> None: | 148 | 148 | context: a dictionary containing metadata about the event. | 149 | 149 |
| 150 | 150 | Returns: | 151 | | - None; the output is written to stdout and Stackdriver Logging. | | 151 | + None; the output is written to stdout and Cloud Logging. | 152 | 152 | """ | 153 | 153 | if event.get("data"): | 154 | 154 | message_data = base64.b64decode(event["data"]).decode("utf-8") | @@ -189,7 +189,7 @@ def save_result(event: dict, context: dict) -> None: | 189 | 189 | context: a dictionary containing metadata about the event. | 190 | 190 |
| 191 | 191 | Returns: | 192 | | - None; the output is written to stdout and Stackdriver Logging. | | 192 | + None; the output is written to stdout and Cloud Logging. | 193 | 193 | """ | 194 | 194 | if event.get("data"): | 195 | 195 | message_data = base64.b64decode(event["data"]).decode("utf-8") | |
Collapse file Copy file name to clipboardExpand all lines: functions/tips-retry/main.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ def retry_or_not(data, context): | 27 | 27 | data (dict): The event payload. | 28 | 28 | context (google.cloud.functions.Context): The event metadata. | 29 | 29 | Returns: | 30 | | - None; output is written to Stackdriver Logging | | 30 | + None; output is written to Cloud Logging | 31 | 31 | """ | 32 | 32 |
| 33 | 33 | # Retry based on a user-defined parameter | |
Collapse file Copy file name to clipboardExpand all lines: functions/v2/tips-avoid-infinite-retries/main.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,7 @@ def avoid_infinite_retries(cloud_event): | 29 | 29 | Args: | 30 | 30 | cloud_event: The cloud event associated with the current trigger | 31 | 31 | Returns: | 32 | | - None; output is written to Stackdriver Logging | | 32 | + None; output is written to Cloud Logging | 33 | 33 | """ | 34 | 34 | timestamp = cloud_event["time"] | 35 | 35 |
| |
Collapse file Copy file name to clipboardExpand all lines: functions/v2/tips-retry/main.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ def retry_or_not(cloud_event): | 31 | 31 | Args: | 32 | 32 | cloud_event: The cloud event with a Pub/Sub data payload | 33 | 33 | Returns: | 34 | | - None; output is written to Stackdriver Logging | | 34 | + None; output is written to Cloud Logging | 35 | 35 | """ | 36 | 36 |
| 37 | 37 | # The Pub/Sub event payload is passed as the CloudEvent's data payload. | |
Collapse file Copy file name to clipboardExpand all lines: monitoring/api/v3/api-client/README.rst +5-5Lines changed: 5 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | .. This file is automatically generated. Do not edit this file directly. | 2 | 2 |
| 3 | | -Stackdriver Monitoring Python Samples | | 3 | +Cloud Monitoring Python Samples | 4 | 4 | =============================================================================== | 5 | 5 |
| 6 | 6 | .. image:: https://gstatic.com/cloudssh/images/open-btn.png | 7 | 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 | 8 |
| 9 | 9 |
| 10 | | -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. | | 10 | +This directory contains samples for Cloud Monitoring. `Cloud 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. Cloud Monitoring ingests that data and generates insights via dashboards, charts, and alerts. | 11 | 11 |
| 12 | 12 |
| 13 | 13 |
| 14 | 14 |
| 15 | | -.. _Stackdriver Monitoring: https://cloud.google.com/monitoring/docs | | 15 | +.. _Cloud Monitoring: https://cloud.google.com/monitoring/docs | 16 | 16 |
| 17 | 17 | Setup | 18 | 18 | ------------------------------------------------------------------------------- | @@ -78,7 +78,7 @@ To run this sample: | 78 | 78 |
| 79 | 79 | usage: list_resources.py [-h] --project_id PROJECT_ID | 80 | 80 |
| 81 | | - Sample command-line program for retrieving Stackdriver Monitoring API V3 | | 81 | + Sample command-line program for retrieving Cloud Monitoring API V3 | 82 | 82 | data. | 83 | 83 |
| 84 | 84 | See README.md for instructions on setting up your development environment. | @@ -111,7 +111,7 @@ To run this sample: | 111 | 111 |
| 112 | 112 | usage: custom_metric.py [-h] --project_id PROJECT_ID | 113 | 113 |
| 114 | | - Sample command-line program for writing and reading Stackdriver Monitoring | | 114 | + Sample command-line program for writing and reading Cloud Monitoring | 115 | 115 | API V3 custom metrics. | 116 | 116 |
| 117 | 117 | Simple command-line program to demonstrate connecting to the Google | |
Collapse file Copy file name to clipboardExpand all lines: monitoring/api/v3/api-client/README.rst.in +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | # This file is used to generate README.rst | 2 | 2 |
| 3 | 3 | product: | 4 | | - name: Stackdriver Monitoring | 5 | | - short_name: Stackdriver Monitoring | | 4 | + name: Cloud Monitoring | | 5 | + short_name: Cloud Monitoring | 6 | 6 | url: https://cloud.google.com/monitoring/docs | 7 | 7 | description: > | 8 | | - `Stackdriver Monitoring `_ collects metrics, events, and metadata from | | 8 | + `Cloud Monitoring `_ collects metrics, events, and metadata from | 9 | 9 | Google Cloud Platform, Amazon Web Services (AWS), hosted uptime probes, | 10 | 10 | application instrumentation, and a variety of common application components | 11 | 11 | including Cassandra, Nginx, Apache Web Server, Elasticsearch and many | 12 | | - others. Stackdriver ingests that data and generates insights via | | 12 | + others. Cloud Monitoring ingests that data and generates insights via | 13 | 13 | dashboards, charts, and alerts. | 14 | 14 |
| 15 | 15 | setup: | |
Collapse file Copy file name to clipboardExpand all lines: monitoring/api/v3/api-client/list_resources.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 13 | 13 | # See the License for the specific language governing permissions and | 14 | 14 | # limitations under the License. | 15 | 15 |
| 16 | | -"""Sample command-line program for retrieving Stackdriver Monitoring API V3 | | 16 | +"""Sample command-line program for retrieving Cloud Monitoring API V3 | 17 | 17 | data. | 18 | 18 |
| 19 | 19 | See README.md for instructions on setting up your development environment. | |
Collapse file Copy file name to clipboardExpand all lines: monitoring/snippets/v3/alerts-client/README.rst +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | .. This file is automatically generated. Do not edit this file directly. | 2 | 2 |
| 3 | | -Google Stackdriver Alerting API Python Samples | | 3 | +Google Cloud Monitoring Alerting API Python Samples | 4 | 4 | =============================================================================== | 5 | 5 |
| 6 | 6 | .. image:: https://gstatic.com/cloudssh/images/open-btn.png | 7 | 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/alerts-client/README.rst | 8 | 8 |
| 9 | 9 |
| 10 | | -This directory contains samples for Google Stackdriver Alerting 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 and many others. Stackdriver's Alerting API allows you to create, delete, and make back up copies of your alert policies. | | 10 | +This directory contains samples for Google Cloud Monitoring Alerting API. Cloud 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. Cloud Monitoring's Alerting API allows you to create, delete, and make back up copies of your alert policies. | 11 | 11 |
| 12 | 12 |
| 13 | 13 |
| 14 | 14 |
| 15 | | -.. _Google Stackdriver Alerting API: https://cloud.google.com/monitoring/alerts/ | | 15 | +.. _Google Cloud Monitoring Alerting API: https://cloud.google.com/monitoring/alerts/ | 16 | 16 |
| 17 | 17 | To run the sample, you need to enable the API at: https://console.cloud.google.com/apis/library/monitoring.googleapis.com | 18 | 18 |
| |
Collapse file Copy file name to clipboardExpand all lines: monitoring/snippets/v3/alerts-client/README.rst.in +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | # This file is used to generate README.rst | 2 | 2 |
| 3 | 3 | product: | 4 | | - name: Google Stackdriver Alerting API | 5 | | - short_name: Stackdriver Alerting API | | 4 | + name: Google Cloud Monitoring Alerting API | | 5 | + short_name: Cloud Monitoring Alerting API | 6 | 6 | url: https://cloud.google.com/monitoring/alerts/ | 7 | 7 | description: > | 8 | | - Stackdriver Monitoring collects metrics, events, and metadata from Google | | 8 | + Cloud Monitoring collects metrics, events, and metadata from Google | 9 | 9 | Cloud Platform, Amazon Web Services (AWS), hosted uptime probes, | 10 | 10 | application instrumentation, and a variety of common application | 11 | 11 | components including Cassandra, Nginx, Apache Web Server, Elasticsearch | 12 | | - and many others. Stackdriver's Alerting API allows you to create, | | 12 | + and many others. Cloud Monitoring's Alerting API allows you to create, | 13 | 13 | delete, and make back up copies of your alert policies. | 14 | 14 |
| 15 | 15 | required_api_url: https://console.cloud.google.com/apis/library/monitoring.googleapis.com | |
Collapse file Copy file name to clipboardExpand all lines: monitoring/snippets/v3/cloud-client/README.rst +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | .. This file is automatically generated. Do not edit this file directly. | 2 | 2 |
| 3 | | -Google Stackdriver Monitoring API Python Samples | | 3 | +Google Cloud Monitoring API Python Samples | 4 | 4 | =============================================================================== | 5 | 5 |
| 6 | 6 | .. image:: https://gstatic.com/cloudssh/images/open-btn.png | 7 | 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 | 8 |
| 9 | 9 |
| 10 | | -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 | 11 | | - and many others. Stackdriver ingests that data and generates insights | | 10 | +This directory contains samples for Google Cloud Monitoring API. Cloud 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 | | 11 | + and many others. Cloud Monitoring ingests that data and generates insights | 12 | 12 | via dashboards, charts, and alerts. | 13 | 13 |
| 14 | 14 |
| 15 | 15 |
| 16 | 16 |
| 17 | | -.. _Google Stackdriver Monitoring API: https://cloud.google.com/monitoring/docs/ | | 17 | +.. _Google Cloud Monitoring API: https://cloud.google.com/monitoring/docs/ | 18 | 18 |
| 19 | 19 | To run the sample, you need to enable the API at: https://console.cloud.google.com/apis/library/monitoring.googleapis.com | 20 | 20 |
| |
|