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

Commit dcf074a

Browse files
feat: add uptime check feature; increase default timeout (via synth) (#15)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2020-04-21 06:20:20,409 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. On branch autosynth nothing to commit, working tree clean 2020-04-21 06:20:20,485 synthtool > Ensuring dependencies. 2020-04-21 06:20:20,490 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098 Status: Image is up to date for googleapis/artman:latest 2020-04-21 06:20:21,861 synthtool > Cloning googleapis. 2020-04-21 06:20:22,197 synthtool > Running generator for google/monitoring/artman_monitoring.yaml. 2020-04-21 06:20:50,669 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3. 2020-04-21 06:20:50,670 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/group_service.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/group_service.proto 2020-04-21 06:20:50,670 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/metric.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/metric.proto 2020-04-21 06:20:50,670 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/alert_service.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/alert_service.proto 2020-04-21 06:20:50,671 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/dropped_labels.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/dropped_labels.proto 2020-04-21 06:20:50,671 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/group.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/group.proto 2020-04-21 06:20:50,671 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/common.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/common.proto 2020-04-21 06:20:50,671 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/notification.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/notification.proto 2020-04-21 06:20:50,672 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/metric_service.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/metric_service.proto 2020-04-21 06:20:50,672 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/service.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/service.proto 2020-04-21 06:20:50,672 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/service_service.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/service_service.proto 2020-04-21 06:20:50,672 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/alert.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/alert.proto 2020-04-21 06:20:50,672 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/uptime_service.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/uptime_service.proto 2020-04-21 06:20:50,673 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/mutation_record.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/mutation_record.proto 2020-04-21 06:20:50,673 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/uptime.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/uptime.proto 2020-04-21 06:20:50,673 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/span_context.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/span_context.proto 2020-04-21 06:20:50,674 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/notification_service.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto/notification_service.proto 2020-04-21 06:20:50,674 synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/monitoring-v3/google/cloud/monitoring_v3/proto. 2020-04-21 06:20:50,722 synthtool > Replaced 'def .*\\(([^\\)]+)\n.*metadata=None\\):\n\\s+"""(.*\n)*?\\s+"""\n' in google/cloud/monitoring_v3/gapic/notification_channel_service_client.py. 2020-04-21 06:20:50,722 synthtool > Replaced 'def .*\\(([^\\)]+)\n.*metadata=None\\):\n\\s+"""(.*\n)*?\\s+"""\n' in google/cloud/monitoring_v3/gapic/uptime_check_service_client.py. 2020-04-21 06:20:50,723 synthtool > Replaced 'def .*\\(([^\\)]+)\n.*metadata=None\\):\n\\s+"""(.*\n)*?\\s+"""\n' in google/cloud/monitoring_v3/gapic/group_service_client.py. 2020-04-21 06:20:50,723 synthtool > Replaced 'def .*\\(([^\\)]+)\n.*metadata=None\\):\n\\s+"""(.*\n)*?\\s+"""\n' in google/cloud/monitoring_v3/gapic/alert_policy_service_client.py. 2020-04-21 06:20:50,724 synthtool > Replaced 'def .*\\(([^\\)]+)\n.*metadata=None\\):\n\\s+"""(.*\n)*?\\s+"""\n' in google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py. 2020-04-21 06:20:50,724 synthtool > Replaced 'def .*\\(([^\\)]+)\n.*metadata=None\\):\n\\s+"""(.*\n)*?\\s+"""\n' in google/cloud/monitoring_v3/gapic/metric_service_client.py. 2020-04-21 06:20:50,725 synthtool > Replaced '(^.*$\\n)*' in google/cloud/monitoring_v3/proto/common_pb2.py. 2020-04-21 06:20:50,726 synthtool > No replacements made in google/cloud/monitoring_v3/gapic/alert_policy_service_client.py for pattern then a new `\[CONDITION_ID\]` is created. , maybe replacement is no longer needed? 2020-04-21 06:20:50,726 synthtool > Replaced ' ::\n\n' in google/cloud/monitoring_v3/gapic/alert_policy_service_client.py. 2020-04-21 06:20:50,728 synthtool > No replacements made in google/cloud/monitoring_v3/proto/metric_service_pb2.py for pattern ^(\s+)have an ``id`` label: :: resource.type = .*, maybe replacement is no longer needed? 2020-04-21 06:20:50,729 synthtool > Replaced 'from google.cloud.monitoring_v3.gapic import notification_channel_service_client\n' in google/cloud/monitoring_v3/__init__.py. 2020-04-21 06:20:50,729 synthtool > Replaced 'notification_channel_service_client.NotificationChannelServiceClient' in google/cloud/monitoring_v3/__init__.py. 2020-04-21 06:20:50,730 synthtool > Template argument 'system_test_dependencies' is deprecated.Use 'system_test_local_dependencies' or 'system_test_external_dependencies'instead. .coveragerc .flake8 .github/CONTRIBUTING.md .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .gitignore .kokoro/build.sh .kokoro/continuous/common.cfg .kokoro/continuous/continuous.cfg .kokoro/docs/common.cfg .kokoro/docs/docs.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/presubmit.cfg .kokoro/publish-docs.sh .kokoro/release.sh .kokoro/release/common.cfg .kokoro/release/release.cfg .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.rst LICENSE MANIFEST.in docs/_static/custom.css docs/_templates/layout.html docs/conf.py.j2 noxfile.py.j2 renovate.json setup.cfg Running session blacken Creating virtual environment (virtualenv) using python3.6 in .nox/blacken pip install black==19.3b0 black docs google tests noxfile.py setup.py reformatted /tmpfs/src/git/autosynth/working_repo/google/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/docs/conf.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/alert_policy_service_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/group_service_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/metric_service_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/notification_channel_service_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/group_service_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/service_monitoring_service_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/transports/alert_policy_service_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/metric_service_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/transports/service_monitoring_service_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/uptime_check_service_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/common_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/alert_service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/group_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/group_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/common_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/alert_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/mutation_record_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/group_service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/metric_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/notification_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/notification_service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/metric_service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/span_context_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/service_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/service_service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/types.py reformatted /tmpfs/src/git/autosynth/working_repo/noxfile.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/uptime_service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/system/gapic/v3/test_system_metric_service_v3.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v3/test_alert_policy_service_client_v3.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v3/test_group_service_client_v3.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/monitoring_v3/proto/uptime_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v3/test_metric_service_client_v3.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v3/test_notification_channel_service_client_v3.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v3/test_uptime_check_service_client_v3.py All done! ✨ 🍰 ✨ 65 files reformatted, 10 files left unchanged. Session blacken was successful. 2020-04-21 06:21:02,019 synthtool > Wrote metadata to synth.metadata. ``` </details>
1 parent 80ec64d commit dcf074a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4493
-2002
lines changed

.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[run]
319
branch = True

.flake8

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[flake8]
319
ignore = E203, E266, E501, W503

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better!
1111
Please run down the following list and make sure you've tried the usual "quick fixes":
1212

1313
- Search the issues already opened: https://github.com/googleapis/python-monitoring/issues
14-
- Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python
15-
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python
14+
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
1615

1716
If you are still having issues, please be sure to include as much information as possible:
1817

CONTRIBUTING.rst

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions: 2.7,
25-
3.5, 3.6, and 3.7 on both UNIX and Windows.
25+
3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -214,26 +214,18 @@ We support:
214214
- `Python 3.5`_
215215
- `Python 3.6`_
216216
- `Python 3.7`_
217+
- `Python 3.8`_
217218

218219
.. _Python 3.5: https://docs.python.org/3.5/
219220
.. _Python 3.6: https://docs.python.org/3.6/
220221
.. _Python 3.7: https://docs.python.org/3.7/
222+
.. _Python 3.8: https://docs.python.org/3.8/
221223

222224

223225
Supported versions can be found in our ``noxfile.py`` `config`_.
224226

225227
.. _config: https://github.com/googleapis/python-monitoring/blob/master/noxfile.py
226228

227-
We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_
228-
and lack of continuous integration `support`_.
229-
230-
.. _Python 2.5: https://docs.python.org/2.5/
231-
.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/
232-
.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/
233-
234-
We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no
235-
longer supported by the core development team.
236-
237229
Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.
238230

239231
We also explicitly decided to support Python 3 beginning with version
@@ -247,7 +239,6 @@ We also explicitly decided to support Python 3 beginning with version
247239
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
248240
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
249241
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
250-
.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995
251242

252243
**********
253244
Versioning

MANIFEST.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
include README.rst LICENSE
319
recursive-include google *.json *.proto

docs/gapic/v3/api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Client for Stackdriver Monitoring API
2-
=====================================
1+
Client for Cloud Monitoring API
2+
===============================
33

44
.. automodule:: google.cloud.monitoring_v3
55
:members:

docs/gapic/v3/types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Types for Stackdriver Monitoring API Client
2-
===========================================
1+
Types for Cloud Monitoring API Client
2+
=====================================
33

44
.. automodule:: google.cloud.monitoring_v3.types
55
:members:

google/cloud/monitoring_v3/gapic/alert_policy_service_client.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,10 @@ def list_alert_policies(
262262
... pass
263263
264264
Args:
265-
name (str): The project whose alert policies are to be listed. The format is
265+
name (str): Required. The project whose alert policies are to be listed. The format
266+
is:
266267
267-
projects/[PROJECT_ID]
268+
projects/[PROJECT_ID_OR_NUMBER]
268269
269270
Note that this field names the parent container in which the alerting
270271
policies to be listed are stored. To retrieve a single alerting policy
@@ -372,9 +373,9 @@ def get_alert_policy(
372373
>>> response = client.get_alert_policy(name)
373374
374375
Args:
375-
name (str): The alerting policy to retrieve. The format is
376+
name (str): Required. The alerting policy to retrieve. The format is:
376377
377-
projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
378+
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
378379
retry (Optional[google.api_core.retry.Retry]): A retry object used
379380
to retry requests. If ``None`` is specified, requests will
380381
be retried using a default configuration.
@@ -450,17 +451,20 @@ def create_alert_policy(
450451
>>> response = client.create_alert_policy(name, alert_policy)
451452
452453
Args:
453-
name (str): The project in which to create the alerting policy. The format is
454-
``projects/[PROJECT_ID]``.
454+
name (str): Required. The project in which to create the alerting policy. The format
455+
is:
456+
457+
projects/[PROJECT_ID_OR_NUMBER]
455458
456459
Note that this field names the parent container in which the alerting
457460
policy will be written, not the name of the created policy. The alerting
458461
policy that is returned will have a name that contains a normalized
459462
representation of this name as a prefix but adds a suffix of the form
460-
``/alertPolicies/[POLICY_ID]``, identifying the policy in the container.
461-
alert_policy (Union[dict, ~google.cloud.monitoring_v3.types.AlertPolicy]): The requested alerting policy. You should omit the ``name`` field in
462-
this policy. The name will be returned in the new policy, including a
463-
new [ALERT\_POLICY\_ID] value.
463+
``/alertPolicies/[ALERT_POLICY_ID]``, identifying the policy in the
464+
container.
465+
alert_policy (Union[dict, ~google.cloud.monitoring_v3.types.AlertPolicy]): Required. The requested alerting policy. You should omit the ``name``
466+
field in this policy. The name will be returned in the new policy,
467+
including a new ``[ALERT_POLICY_ID]`` value.
464468
465469
If a dict is provided, it must be of the same form as the protobuf
466470
message :class:`~google.cloud.monitoring_v3.types.AlertPolicy`
@@ -537,9 +541,9 @@ def delete_alert_policy(
537541
>>> client.delete_alert_policy(name)
538542
539543
Args:
540-
name (str): The alerting policy to delete. The format is:
544+
name (str): Required. The alerting policy to delete. The format is:
541545
542-
projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
546+
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
543547
544548
For more information, see ``AlertPolicy``.
545549
retry (Optional[google.api_core.retry.Retry]): A retry object used

0 commit comments

Comments
 (0)