Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(monitoring): add monitoring.v3.InternalChecker.state; add monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption; add recursive parameter to delete_group; add read-only validity field to monitoring.v3.AlertPolicy; add validate_ssl parameter to monitoring.v3.UptimeCheckConfig.HttpCheck#9546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -148,10 +148,10 @@ class ServiceTier(enum.IntEnum): | ||
| class UptimeCheckRegion(enum.IntEnum): | ||
| """ | ||
| The regions from which an uptime check can be run. | ||
| The regions from which an Uptime check can be run. | ||
| Attributes: | ||
| REGION_UNSPECIFIED (int): Default value if no region is specified. Will result in uptime checks | ||
| REGION_UNSPECIFIED (int): Default value if no region is specified. Will result in Uptime checks | ||
| running from all regions. | ||
| USA (int): Allows checks to run from locations within the United States of America. | ||
| EUROPE (int): Allows checks to run from locations within the continent of Europe. | ||
| @@ -397,6 +397,31 @@ class ConditionCombinerType(enum.IntEnum): | ||
| AND_WITH_MATCHING_RESOURCE = 3 | ||
| class InternalChecker(object): | ||
| class State(enum.IntEnum): | ||
| """ | ||
| Operational states for an internal checker. | ||
| Attributes: | ||
| UNSPECIFIED (int): An internal checker should never be in the unspecified state. | ||
| CREATING (int): The checker is being created, provisioned, and configured. A checker in | ||
| this state can be returned by ``ListInternalCheckers`` or | ||
| ``GetInternalChecker``, as well as by examining the `long running | ||
| Operation <https://cloud.google.com/apis/design/design_patterns#long_running_operations>`__ | ||
| that created it. | ||
| RUNNING (int): The checker is running and available for use. A checker in this state | ||
| can be returned by ``ListInternalCheckers`` or ``GetInternalChecker`` as | ||
| well as by examining the `long running | ||
| Operation <https://cloud.google.com/apis/design/design_patterns#long_running_operations>`__ | ||
| that created it. If a checker is being torn down, it is neither visible | ||
| nor usable, so there is no "deleting" or "down" state. | ||
| """ | ||
| UNSPECIFIED = 0 | ||
| CREATING = 1 | ||
| RUNNING = 2 | ||
| class LabelDescriptor(object): | ||
| class ValueType(enum.IntEnum): | ||
| """ | ||
| @@ -498,3 +523,33 @@ class VerificationStatus(enum.IntEnum): | ||
| VERIFICATION_STATUS_UNSPECIFIED = 0 | ||
| UNVERIFIED = 1 | ||
| VERIFIED = 2 | ||
| class UptimeCheckConfig(object): | ||
| ||
| class ContentMatcher(object): | ||
| class ContentMatcherOption(enum.IntEnum): | ||
| """ | ||
| Options to perform content matching. | ||
| Attributes: | ||
| CONTENT_MATCHER_OPTION_UNSPECIFIED (int): No content matcher type specified (maintained for backward | ||
| compatibility, but deprecated for future use). Treated as | ||
| ``CONTAINS_STRING``. | ||
| CONTAINS_STRING (int): Selects substring matching (there is a match if the output contains the | ||
| ``content`` string). This is the default value for checks without a | ||
| ``matcher`` option, or where the value of ``matcher`` is | ||
| ``CONTENT_MATCHER_OPTION_UNSPECIFIED``. | ||
| NOT_CONTAINS_STRING (int): Selects negation of substring matching (there is a match if the output | ||
| does NOT contain the ``content`` string). | ||
| MATCHES_REGEX (int): Selects regular expression matching (there is a match of the output | ||
| matches the regular expression specified in the ``content`` string). | ||
| NOT_MATCHES_REGEX (int): Selects negation of regular expression matching (there is a match if the | ||
| output does NOT match the regular expression specified in the | ||
| ``content`` string). | ||
| """ | ||
| CONTENT_MATCHER_OPTION_UNSPECIFIED = 0 | ||
| CONTAINS_STRING = 1 | ||
| NOT_CONTAINS_STRING = 2 | ||
| MATCHES_REGEX = 3 | ||
| NOT_MATCHES_REGEX = 4 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -599,6 +599,7 @@ def update_group( | ||
| def delete_group( | ||
| self, | ||
| name, | ||
| recursive=None, | ||
| retry=google.api_core.gapic_v1.method.DEFAULT, | ||
| timeout=google.api_core.gapic_v1.method.DEFAULT, | ||
| metadata=None, | ||
| @@ -618,6 +619,9 @@ def delete_group( | ||
| Args: | ||
| name (str): The group to delete. The format is | ||
| ``"projects/{project_id_or_number}/groups/{group_id}"``. | ||
| recursive (bool): If this field is true, then the request means to delete a group with all | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add | ||
| its descendants. Otherwise, the request means to delete a group only when | ||
| it has no descendants. The default value is false. | ||
| retry (Optional[google.api_core.retry.Retry]): A retry object used | ||
| to retry requests. If ``None`` is specified, requests will | ||
| be retried using a default configuration. | ||
| @@ -648,7 +652,7 @@ def delete_group( | ||
| client_info=self._client_info, | ||
| ) | ||
| request = group_service_pb2.DeleteGroupRequest(name=name) | ||
| request = group_service_pb2.DeleteGroupRequest(name=name, recursive=recursive) | ||
| if metadata is None: | ||
| metadata = [] | ||
| metadata = list(metadata) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -236,8 +236,7 @@ def list_monitored_resource_descriptors( | ||
| metadata=None, | ||
| ): | ||
| """ | ||
| Lists monitored resource descriptors that match a filter. This method does | ||
| not require a Stackdriver account. | ||
| Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account. | ||
| Example: | ||
| >>> from google.cloud import monitoring_v3 | ||
| @@ -356,8 +355,7 @@ def get_monitored_resource_descriptor( | ||
| metadata=None, | ||
| ): | ||
| """ | ||
| Gets a single monitored resource descriptor. This method does not require a | ||
| Stackdriver account. | ||
| Gets a single monitored resource descriptor. This method does not require a Stackdriver account. | ||
| Example: | ||
| >>> from google.cloud import monitoring_v3 | ||
| @@ -438,8 +436,7 @@ def list_metric_descriptors( | ||
| metadata=None, | ||
| ): | ||
| """ | ||
| Lists metric descriptors that match a filter. This method does not require | ||
| a Stackdriver account. | ||
| Lists metric descriptors that match a filter. This method does not require a Stackdriver account. | ||
| Example: | ||
| >>> from google.cloud import monitoring_v3 | ||
| @@ -555,8 +552,7 @@ def get_metric_descriptor( | ||
| metadata=None, | ||
| ): | ||
| """ | ||
| Gets a single metric descriptor. This method does not require a Stackdriver | ||
| account. | ||
| Gets a single metric descriptor. This method does not require a Stackdriver account. | ||
| Example: | ||
| >>> from google.cloud import monitoring_v3 | ||
| @@ -797,8 +793,7 @@ def list_time_series( | ||
| metadata=None, | ||
| ): | ||
| """ | ||
| Lists time series that match a filter. This method does not require a | ||
| Stackdriver account. | ||
| Lists time series that match a filter. This method does not require a Stackdriver account. | ||
| Example: | ||
| >>> from google.cloud import monitoring_v3 | ||
| @@ -843,7 +838,7 @@ def list_time_series( | ||
| :: | ||
| metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND | ||
| metric.label.instance_name = "my-instance-name" | ||
| metric.labels.instance_name = "my-instance-name" | ||
busunkim96 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| interval (Union[dict, ~google.cloud.monitoring_v3.types.TimeInterval]): The time interval for which results should be returned. Only time series | ||
| that contain data points in the specified interval are included | ||
| in the response. | ||
| @@ -972,6 +967,9 @@ def create_time_series( | ||
| value must fully specify a unique time series by supplying all label | ||
| values for the metric and the monitored resource. | ||
| The maximum number of ``TimeSeries`` objects per ``Create`` request is | ||
| 200. | ||
| If a dict is provided, it must be of the same form as the protobuf | ||
| message :class:`~google.cloud.monitoring_v3.types.TimeSeries` | ||
| retry (Optional[google.api_core.retry.Retry]): A retry object used | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add internal checker