• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="monitoring_v3.html">Stackdriver Monitoring API</a> . <a href="monitoring_v3.projects.html">projects</a> . <a href="monitoring_v3.projects.uptimeCheckConfigs.html">uptimeCheckConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#create">create(parent, body, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a new uptime check configuration.</p>
80<p class="toc_element">
81  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes an uptime check configuration. Note that this method will fail if the uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion.</p>
83<p class="toc_element">
84  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets a single uptime check configuration.</p>
86<p class="toc_element">
87  <code><a href="#list">list(parent, pageToken=None, x__xgafv=None, pageSize=None)</a></code></p>
88<p class="firstline">Lists the existing valid uptime check configurations for the project, leaving out any invalid configurations.</p>
89<p class="toc_element">
90  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93  <code><a href="#patch">patch(name, body, updateMask=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Updates an uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via "updateMask". Returns the updated configuration.</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="create">create(parent, body, x__xgafv=None)</code>
98  <pre>Creates a new uptime check configuration.
99
100Args:
101  parent: string, The project in which to create the uptime check. The format  is projects/[PROJECT_ID]. (required)
102  body: object, The request body. (required)
103    The object takes the form of:
104
105{ # This message configures which resources and services to monitor for availability.
106    "resourceGroup": { # The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. # The group resource associated with the configuration.
107      "resourceType": "A String", # The resource type of the group members.
108      "groupId": "A String", # The group of resources being monitored. Should be only the group_id, not projects/<project_id>/groups/<group_id>.
109    },
110    "displayName": "A String", # A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.
111    "name": "A String", # A unique resource name for this UptimeCheckConfig. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the uptime check configuration; on create, the resource name is assigned by the server and included in the response.
112    "tcpCheck": { # Information required for a TCP uptime check request. # Contains information needed to make a TCP check.
113      "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL. Required.
114    },
115    "period": "A String", # How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
116    "selectedRegions": [ # The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
117      "A String",
118    ],
119    "monitoredResource": { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": # The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks:  uptime_url  gce_instance  gae_app  aws_ec2_instance  aws_elb_load_balancer
120        # { "type": "gce_instance",
121        #   "labels": { "instance_id": "12345678901234",
122        #               "zone": "us-central1-a" }}
123      "labels": { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id", and "zone".
124        "a_key": "A String",
125      },
126      "type": "A String", # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types and Logging resource types.
127    },
128    "httpCheck": { # Information involved in an HTTP/HTTPS uptime check request. # Contains information needed to make an HTTP or HTTPS check.
129      "useSsl": True or False, # If true, use HTTPS instead of HTTP to run the check.
130      "headers": { # The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
131        "a_key": "A String",
132      },
133      "authInfo": { # A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. # The authentication information. Optional when creating an HTTP check; defaults to empty.
134        "username": "A String", # The username to authenticate.
135        "password": "A String", # The password to authenticate.
136      },
137      "maskHeaders": True or False, # Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
138      "path": "A String", # The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/"). If the provided path does not begin with "/", it will be prepended automatically.
139      "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
140    },
141    "internalCheckers": [ # The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.
142      { # An internal checker allows uptime checks to run on private/internal GCP resources.
143        "displayName": "A String", # The checker's human-readable name. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
144        "name": "A String", # A unique resource name for this InternalChecker. The format is:projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker.
145        "gcpZone": "A String", # The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.
146        "state": "A String", # The current operational state of the internal checker.
147        "peerProjectId": "A String", # The GCP project_id where the internal checker lives. Not necessary the same as the workspace project.
148        "network": "A String", # The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").
149      },
150    ],
151    "timeout": "A String", # The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.
152    "contentMatchers": [ # The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response's content. This field is optional and should only be specified if a content match is required.
153      { # Used to perform string matching. It allows substring and regular expressions, together with their negations.
154        "content": "A String", # String or regex content to match (max 1024 bytes)
155      },
156    ],
157  }
158
159  x__xgafv: string, V1 error format.
160    Allowed values
161      1 - v1 error format
162      2 - v2 error format
163
164Returns:
165  An object of the form:
166
167    { # This message configures which resources and services to monitor for availability.
168      "resourceGroup": { # The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. # The group resource associated with the configuration.
169        "resourceType": "A String", # The resource type of the group members.
170        "groupId": "A String", # The group of resources being monitored. Should be only the group_id, not projects/<project_id>/groups/<group_id>.
171      },
172      "displayName": "A String", # A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.
173      "name": "A String", # A unique resource name for this UptimeCheckConfig. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the uptime check configuration; on create, the resource name is assigned by the server and included in the response.
174      "tcpCheck": { # Information required for a TCP uptime check request. # Contains information needed to make a TCP check.
175        "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL. Required.
176      },
177      "period": "A String", # How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
178      "selectedRegions": [ # The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
179        "A String",
180      ],
181      "monitoredResource": { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": # The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks:  uptime_url  gce_instance  gae_app  aws_ec2_instance  aws_elb_load_balancer
182          # { "type": "gce_instance",
183          #   "labels": { "instance_id": "12345678901234",
184          #               "zone": "us-central1-a" }}
185        "labels": { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id", and "zone".
186          "a_key": "A String",
187        },
188        "type": "A String", # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types and Logging resource types.
189      },
190      "httpCheck": { # Information involved in an HTTP/HTTPS uptime check request. # Contains information needed to make an HTTP or HTTPS check.
191        "useSsl": True or False, # If true, use HTTPS instead of HTTP to run the check.
192        "headers": { # The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
193          "a_key": "A String",
194        },
195        "authInfo": { # A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. # The authentication information. Optional when creating an HTTP check; defaults to empty.
196          "username": "A String", # The username to authenticate.
197          "password": "A String", # The password to authenticate.
198        },
199        "maskHeaders": True or False, # Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
200        "path": "A String", # The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/"). If the provided path does not begin with "/", it will be prepended automatically.
201        "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
202      },
203      "internalCheckers": [ # The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.
204        { # An internal checker allows uptime checks to run on private/internal GCP resources.
205          "displayName": "A String", # The checker's human-readable name. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
206          "name": "A String", # A unique resource name for this InternalChecker. The format is:projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker.
207          "gcpZone": "A String", # The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.
208          "state": "A String", # The current operational state of the internal checker.
209          "peerProjectId": "A String", # The GCP project_id where the internal checker lives. Not necessary the same as the workspace project.
210          "network": "A String", # The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").
211        },
212      ],
213      "timeout": "A String", # The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.
214      "contentMatchers": [ # The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response's content. This field is optional and should only be specified if a content match is required.
215        { # Used to perform string matching. It allows substring and regular expressions, together with their negations.
216          "content": "A String", # String or regex content to match (max 1024 bytes)
217        },
218      ],
219    }</pre>
220</div>
221
222<div class="method">
223    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
224  <pre>Deletes an uptime check configuration. Note that this method will fail if the uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion.
225
226Args:
227  name: string, The uptime check configuration to delete. The format  is projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]. (required)
228  x__xgafv: string, V1 error format.
229    Allowed values
230      1 - v1 error format
231      2 - v2 error format
232
233Returns:
234  An object of the form:
235
236    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
237      # service Foo {
238      #   rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
239      # }
240      # The JSON representation for Empty is empty JSON object {}.
241  }</pre>
242</div>
243
244<div class="method">
245    <code class="details" id="get">get(name, x__xgafv=None)</code>
246  <pre>Gets a single uptime check configuration.
247
248Args:
249  name: string, The uptime check configuration to retrieve. The format  is projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]. (required)
250  x__xgafv: string, V1 error format.
251    Allowed values
252      1 - v1 error format
253      2 - v2 error format
254
255Returns:
256  An object of the form:
257
258    { # This message configures which resources and services to monitor for availability.
259      "resourceGroup": { # The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. # The group resource associated with the configuration.
260        "resourceType": "A String", # The resource type of the group members.
261        "groupId": "A String", # The group of resources being monitored. Should be only the group_id, not projects/<project_id>/groups/<group_id>.
262      },
263      "displayName": "A String", # A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.
264      "name": "A String", # A unique resource name for this UptimeCheckConfig. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the uptime check configuration; on create, the resource name is assigned by the server and included in the response.
265      "tcpCheck": { # Information required for a TCP uptime check request. # Contains information needed to make a TCP check.
266        "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL. Required.
267      },
268      "period": "A String", # How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
269      "selectedRegions": [ # The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
270        "A String",
271      ],
272      "monitoredResource": { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": # The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks:  uptime_url  gce_instance  gae_app  aws_ec2_instance  aws_elb_load_balancer
273          # { "type": "gce_instance",
274          #   "labels": { "instance_id": "12345678901234",
275          #               "zone": "us-central1-a" }}
276        "labels": { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id", and "zone".
277          "a_key": "A String",
278        },
279        "type": "A String", # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types and Logging resource types.
280      },
281      "httpCheck": { # Information involved in an HTTP/HTTPS uptime check request. # Contains information needed to make an HTTP or HTTPS check.
282        "useSsl": True or False, # If true, use HTTPS instead of HTTP to run the check.
283        "headers": { # The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
284          "a_key": "A String",
285        },
286        "authInfo": { # A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. # The authentication information. Optional when creating an HTTP check; defaults to empty.
287          "username": "A String", # The username to authenticate.
288          "password": "A String", # The password to authenticate.
289        },
290        "maskHeaders": True or False, # Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
291        "path": "A String", # The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/"). If the provided path does not begin with "/", it will be prepended automatically.
292        "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
293      },
294      "internalCheckers": [ # The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.
295        { # An internal checker allows uptime checks to run on private/internal GCP resources.
296          "displayName": "A String", # The checker's human-readable name. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
297          "name": "A String", # A unique resource name for this InternalChecker. The format is:projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker.
298          "gcpZone": "A String", # The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.
299          "state": "A String", # The current operational state of the internal checker.
300          "peerProjectId": "A String", # The GCP project_id where the internal checker lives. Not necessary the same as the workspace project.
301          "network": "A String", # The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").
302        },
303      ],
304      "timeout": "A String", # The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.
305      "contentMatchers": [ # The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response's content. This field is optional and should only be specified if a content match is required.
306        { # Used to perform string matching. It allows substring and regular expressions, together with their negations.
307          "content": "A String", # String or regex content to match (max 1024 bytes)
308        },
309      ],
310    }</pre>
311</div>
312
313<div class="method">
314    <code class="details" id="list">list(parent, pageToken=None, x__xgafv=None, pageSize=None)</code>
315  <pre>Lists the existing valid uptime check configurations for the project, leaving out any invalid configurations.
316
317Args:
318  parent: string, The project whose uptime check configurations are listed. The format  is projects/[PROJECT_ID]. (required)
319  pageToken: string, If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call.
320  x__xgafv: string, V1 error format.
321    Allowed values
322      1 - v1 error format
323      2 - v2 error format
324  pageSize: integer, The maximum number of results to return in a single response. The server may further constrain the maximum number of results returned in a single page. If the page_size is <=0, the server will decide the number of results to be returned.
325
326Returns:
327  An object of the form:
328
329    { # The protocol for the ListUptimeCheckConfigs response.
330    "nextPageToken": "A String", # This field represents the pagination token to retrieve the next page of results. If the value is empty, it means no further results for the request. To retrieve the next page of results, the value of the next_page_token is passed to the subsequent List method call (in the request message's page_token field).
331    "totalSize": 42, # The total number of uptime check configurations for the project, irrespective of any pagination.
332    "uptimeCheckConfigs": [ # The returned uptime check configurations.
333      { # This message configures which resources and services to monitor for availability.
334          "resourceGroup": { # The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. # The group resource associated with the configuration.
335            "resourceType": "A String", # The resource type of the group members.
336            "groupId": "A String", # The group of resources being monitored. Should be only the group_id, not projects/<project_id>/groups/<group_id>.
337          },
338          "displayName": "A String", # A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.
339          "name": "A String", # A unique resource name for this UptimeCheckConfig. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the uptime check configuration; on create, the resource name is assigned by the server and included in the response.
340          "tcpCheck": { # Information required for a TCP uptime check request. # Contains information needed to make a TCP check.
341            "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL. Required.
342          },
343          "period": "A String", # How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
344          "selectedRegions": [ # The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
345            "A String",
346          ],
347          "monitoredResource": { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": # The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks:  uptime_url  gce_instance  gae_app  aws_ec2_instance  aws_elb_load_balancer
348              # { "type": "gce_instance",
349              #   "labels": { "instance_id": "12345678901234",
350              #               "zone": "us-central1-a" }}
351            "labels": { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id", and "zone".
352              "a_key": "A String",
353            },
354            "type": "A String", # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types and Logging resource types.
355          },
356          "httpCheck": { # Information involved in an HTTP/HTTPS uptime check request. # Contains information needed to make an HTTP or HTTPS check.
357            "useSsl": True or False, # If true, use HTTPS instead of HTTP to run the check.
358            "headers": { # The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
359              "a_key": "A String",
360            },
361            "authInfo": { # A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. # The authentication information. Optional when creating an HTTP check; defaults to empty.
362              "username": "A String", # The username to authenticate.
363              "password": "A String", # The password to authenticate.
364            },
365            "maskHeaders": True or False, # Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
366            "path": "A String", # The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/"). If the provided path does not begin with "/", it will be prepended automatically.
367            "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
368          },
369          "internalCheckers": [ # The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.
370            { # An internal checker allows uptime checks to run on private/internal GCP resources.
371              "displayName": "A String", # The checker's human-readable name. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
372              "name": "A String", # A unique resource name for this InternalChecker. The format is:projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker.
373              "gcpZone": "A String", # The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.
374              "state": "A String", # The current operational state of the internal checker.
375              "peerProjectId": "A String", # The GCP project_id where the internal checker lives. Not necessary the same as the workspace project.
376              "network": "A String", # The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").
377            },
378          ],
379          "timeout": "A String", # The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.
380          "contentMatchers": [ # The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response's content. This field is optional and should only be specified if a content match is required.
381            { # Used to perform string matching. It allows substring and regular expressions, together with their negations.
382              "content": "A String", # String or regex content to match (max 1024 bytes)
383            },
384          ],
385        },
386    ],
387  }</pre>
388</div>
389
390<div class="method">
391    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
392  <pre>Retrieves the next page of results.
393
394Args:
395  previous_request: The request for the previous page. (required)
396  previous_response: The response from the request for the previous page. (required)
397
398Returns:
399  A request object that you can call 'execute()' on to request the next
400  page. Returns None if there are no more items in the collection.
401    </pre>
402</div>
403
404<div class="method">
405    <code class="details" id="patch">patch(name, body, updateMask=None, x__xgafv=None)</code>
406  <pre>Updates an uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via "updateMask". Returns the updated configuration.
407
408Args:
409  name: string, A unique resource name for this UptimeCheckConfig. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the uptime check configuration; on create, the resource name is assigned by the server and included in the response. (required)
410  body: object, The request body. (required)
411    The object takes the form of:
412
413{ # This message configures which resources and services to monitor for availability.
414    "resourceGroup": { # The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. # The group resource associated with the configuration.
415      "resourceType": "A String", # The resource type of the group members.
416      "groupId": "A String", # The group of resources being monitored. Should be only the group_id, not projects/<project_id>/groups/<group_id>.
417    },
418    "displayName": "A String", # A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.
419    "name": "A String", # A unique resource name for this UptimeCheckConfig. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the uptime check configuration; on create, the resource name is assigned by the server and included in the response.
420    "tcpCheck": { # Information required for a TCP uptime check request. # Contains information needed to make a TCP check.
421      "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL. Required.
422    },
423    "period": "A String", # How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
424    "selectedRegions": [ # The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
425      "A String",
426    ],
427    "monitoredResource": { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": # The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks:  uptime_url  gce_instance  gae_app  aws_ec2_instance  aws_elb_load_balancer
428        # { "type": "gce_instance",
429        #   "labels": { "instance_id": "12345678901234",
430        #               "zone": "us-central1-a" }}
431      "labels": { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id", and "zone".
432        "a_key": "A String",
433      },
434      "type": "A String", # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types and Logging resource types.
435    },
436    "httpCheck": { # Information involved in an HTTP/HTTPS uptime check request. # Contains information needed to make an HTTP or HTTPS check.
437      "useSsl": True or False, # If true, use HTTPS instead of HTTP to run the check.
438      "headers": { # The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
439        "a_key": "A String",
440      },
441      "authInfo": { # A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. # The authentication information. Optional when creating an HTTP check; defaults to empty.
442        "username": "A String", # The username to authenticate.
443        "password": "A String", # The password to authenticate.
444      },
445      "maskHeaders": True or False, # Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
446      "path": "A String", # The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/"). If the provided path does not begin with "/", it will be prepended automatically.
447      "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
448    },
449    "internalCheckers": [ # The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.
450      { # An internal checker allows uptime checks to run on private/internal GCP resources.
451        "displayName": "A String", # The checker's human-readable name. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
452        "name": "A String", # A unique resource name for this InternalChecker. The format is:projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker.
453        "gcpZone": "A String", # The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.
454        "state": "A String", # The current operational state of the internal checker.
455        "peerProjectId": "A String", # The GCP project_id where the internal checker lives. Not necessary the same as the workspace project.
456        "network": "A String", # The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").
457      },
458    ],
459    "timeout": "A String", # The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.
460    "contentMatchers": [ # The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response's content. This field is optional and should only be specified if a content match is required.
461      { # Used to perform string matching. It allows substring and regular expressions, together with their negations.
462        "content": "A String", # String or regex content to match (max 1024 bytes)
463      },
464    ],
465  }
466
467  updateMask: string, Optional. If present, only the listed fields in the current uptime check configuration are updated with values from the new configuration. If this field is empty, then the current configuration is completely replaced with the new configuration.
468  x__xgafv: string, V1 error format.
469    Allowed values
470      1 - v1 error format
471      2 - v2 error format
472
473Returns:
474  An object of the form:
475
476    { # This message configures which resources and services to monitor for availability.
477      "resourceGroup": { # The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. # The group resource associated with the configuration.
478        "resourceType": "A String", # The resource type of the group members.
479        "groupId": "A String", # The group of resources being monitored. Should be only the group_id, not projects/<project_id>/groups/<group_id>.
480      },
481      "displayName": "A String", # A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.
482      "name": "A String", # A unique resource name for this UptimeCheckConfig. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the uptime check configuration; on create, the resource name is assigned by the server and included in the response.
483      "tcpCheck": { # Information required for a TCP uptime check request. # Contains information needed to make a TCP check.
484        "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL. Required.
485      },
486      "period": "A String", # How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
487      "selectedRegions": [ # The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
488        "A String",
489      ],
490      "monitoredResource": { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": # The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks:  uptime_url  gce_instance  gae_app  aws_ec2_instance  aws_elb_load_balancer
491          # { "type": "gce_instance",
492          #   "labels": { "instance_id": "12345678901234",
493          #               "zone": "us-central1-a" }}
494        "labels": { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id", and "zone".
495          "a_key": "A String",
496        },
497        "type": "A String", # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types and Logging resource types.
498      },
499      "httpCheck": { # Information involved in an HTTP/HTTPS uptime check request. # Contains information needed to make an HTTP or HTTPS check.
500        "useSsl": True or False, # If true, use HTTPS instead of HTTP to run the check.
501        "headers": { # The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
502          "a_key": "A String",
503        },
504        "authInfo": { # A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. # The authentication information. Optional when creating an HTTP check; defaults to empty.
505          "username": "A String", # The username to authenticate.
506          "password": "A String", # The password to authenticate.
507        },
508        "maskHeaders": True or False, # Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
509        "path": "A String", # The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/"). If the provided path does not begin with "/", it will be prepended automatically.
510        "port": 42, # The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
511      },
512      "internalCheckers": [ # The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.
513        { # An internal checker allows uptime checks to run on private/internal GCP resources.
514          "displayName": "A String", # The checker's human-readable name. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
515          "name": "A String", # A unique resource name for this InternalChecker. The format is:projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker.
516          "gcpZone": "A String", # The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.
517          "state": "A String", # The current operational state of the internal checker.
518          "peerProjectId": "A String", # The GCP project_id where the internal checker lives. Not necessary the same as the workspace project.
519          "network": "A String", # The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").
520        },
521      ],
522      "timeout": "A String", # The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.
523      "contentMatchers": [ # The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response's content. This field is optional and should only be specified if a content match is required.
524        { # Used to perform string matching. It allows substring and regular expressions, together with their negations.
525          "content": "A String", # String or regex content to match (max 1024 bytes)
526        },
527      ],
528    }</pre>
529</div>
530
531</body></html>