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

Commit ba90d4f

Browse files
slz250Takashi Matsuo
and
Takashi Matsuo
authored
Add request_method to create example. [(#3745)](GoogleCloudPlatform/python-docs-samples#3745)
Co-authored-by: Takashi Matsuo <[email protected]>
1 parent ae9b472 commit ba90d4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/snippets/v3/uptime-check-client/snippets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def create_uptime_check_config(project_name, host_name=None,
3030
config.monitored_resource.type = 'uptime_url'
3131
config.monitored_resource.labels.update(
3232
{'host': host_name or 'example.com'})
33+
config.http_check.request_method = monitoring_v3.enums.UptimeCheckConfig.HttpCheck.RequestMethod.GET
3334
config.http_check.path = '/'
3435
config.http_check.port = 80
3536
config.timeout.seconds = 10

0 commit comments

Comments
 (0)