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

Commit

Permalink
Add request_method to create example. [(#3745)](GoogleCloudPlatform/p…
Browse files Browse the repository at this point in the history
…ython-docs-samples#3745)

Co-authored-by: Takashi Matsuo <[email protected]>
  • Loading branch information
slz250 and Takashi Matsuo authored May 13, 2020
1 parent ae9b472 commit ba90d4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/snippets/v3/uptime-check-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def create_uptime_check_config(project_name, host_name=None,
config.monitored_resource.type = 'uptime_url'
config.monitored_resource.labels.update(
{'host': host_name or 'example.com'})
config.http_check.request_method = monitoring_v3.enums.UptimeCheckConfig.HttpCheck.RequestMethod.GET
config.http_check.path = '/'
config.http_check.port = 80
config.timeout.seconds = 10
Expand Down

0 comments on commit ba90d4f

Please sign in to comment.