From e4bc5682d39f7e5938868497496f5d49318cee43 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 May 2020 17:56:33 -0700 Subject: [PATCH] feat: BREAKING CHANGE: drop support for TimeSeriesQueryLanguageCondition as an alert condition type (#22) --- .kokoro/publish-docs.sh | 2 - docs/index.rst | 4 +- docs/multiprocessing.rst | 7 + .../gapic/alert_policy_service_client.py | 39 +- google/cloud/monitoring_v3/gapic/enums.py | 136 +++--- .../gapic/group_service_client.py | 28 +- .../gapic/metric_service_client.py | 53 +- .../notification_channel_service_client.py | 56 ++- .../service_monitoring_service_client.py | 83 ++-- .../group_service_grpc_transport.py | 4 +- .../metric_service_grpc_transport.py | 5 +- ...fication_channel_service_grpc_transport.py | 5 +- .../uptime_check_service_grpc_transport.py | 6 +- .../gapic/uptime_check_service_client.py | 26 +- google/cloud/monitoring_v3/proto/alert.proto | 18 - google/cloud/monitoring_v3/proto/alert_pb2.py | 323 +++++-------- .../monitoring_v3/proto/alert_service_pb2.py | 149 +++--- .../cloud/monitoring_v3/proto/common_pb2.py | 134 +++--- .../monitoring_v3/proto/dropped_labels_pb2.py | 61 ++- google/cloud/monitoring_v3/proto/group_pb2.py | 85 ++-- .../monitoring_v3/proto/group_service_pb2.py | 201 ++++---- .../cloud/monitoring_v3/proto/metric_pb2.py | 200 ++++---- .../monitoring_v3/proto/metric_service_pb2.py | 375 +++++++-------- .../proto/mutation_record_pb2.py | 25 +- .../monitoring_v3/proto/notification_pb2.py | 133 +++-- .../proto/notification_service_pb2.py | 327 ++++++------- .../cloud/monitoring_v3/proto/service_pb2.py | 454 ++++++++++-------- .../proto/service_service_pb2.py | 297 ++++++------ .../monitoring_v3/proto/span_context_pb2.py | 39 +- .../cloud/monitoring_v3/proto/uptime_pb2.py | 225 ++++----- .../monitoring_v3/proto/uptime_service_pb2.py | 204 ++++---- synth.metadata | 8 +- synth.py | 28 +- 33 files changed, 1807 insertions(+), 1933 deletions(-) create mode 100644 docs/multiprocessing.rst diff --git a/.kokoro/publish-docs.sh b/.kokoro/publish-docs.sh index d1e9d42d..58275ed3 100755 --- a/.kokoro/publish-docs.sh +++ b/.kokoro/publish-docs.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Disable buffering, so that the logs stream through. diff --git a/docs/index.rst b/docs/index.rst index 49d617e4..df1ac5ee 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,7 @@ .. include:: README.rst +.. include:: multiprocessing.rst + Api Reference ------------- .. toctree:: @@ -17,4 +19,4 @@ For a list of all previous ``google-cloud-monitoring`` releases. .. toctree:: :maxdepth: 2 - changelog \ No newline at end of file + changelog diff --git a/docs/multiprocessing.rst b/docs/multiprocessing.rst new file mode 100644 index 00000000..1cb29d4c --- /dev/null +++ b/docs/multiprocessing.rst @@ -0,0 +1,7 @@ +.. note:: + + Because this client uses :mod:`grpcio` library, it is safe to + share instances across threads. In multiprocessing scenarios, the best + practice is to create client instances *after* the invocation of + :func:`os.fork` by :class:`multiprocessing.Pool` or + :class:`multiprocessing.Process`. diff --git a/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py b/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py index 3c0d8f82..0e598c0e 100644 --- a/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py +++ b/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py @@ -262,22 +262,23 @@ def list_alert_policies( ... pass Args: - name (str): Required. The project whose alert policies are to be listed. The format - is: + name (str): Required. The project whose alert policies are to be listed. The + format is: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policies to be listed are stored. To retrieve a single alerting policy by name, use the ``GetAlertPolicy`` operation, instead. - filter_ (str): If provided, this field specifies the criteria that must be met by alert - policies to be included in the response. + filter_ (str): If provided, this field specifies the criteria that must be met by + alert policies to be included in the response. For more details, see `sorting and filtering `__. - order_by (str): A comma-separated list of fields by which to sort the result. Supports - the same set of field references as the ``filter`` field. Entries can be - prefixed with a minus sign to sort by the field in descending order. + order_by (str): A comma-separated list of fields by which to sort the result. + Supports the same set of field references as the ``filter`` field. + Entries can be prefixed with a minus sign to sort by the field in + descending order. For more details, see `sorting and filtering `__. @@ -375,7 +376,7 @@ def get_alert_policy( Args: name (str): Required. The alerting policy to retrieve. The format is: - projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] + projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] 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. @@ -451,10 +452,10 @@ def create_alert_policy( >>> response = client.create_alert_policy(name, alert_policy) Args: - name (str): Required. The project in which to create the alerting policy. The format - is: + name (str): Required. The project in which to create the alerting policy. The + format is: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting @@ -462,9 +463,9 @@ def create_alert_policy( representation of this name as a prefix but adds a suffix of the form ``/alertPolicies/[ALERT_POLICY_ID]``, identifying the policy in the container. - alert_policy (Union[dict, ~google.cloud.monitoring_v3.types.AlertPolicy]): Required. The requested alerting policy. You should omit the ``name`` - field in this policy. The name will be returned in the new policy, - including a new ``[ALERT_POLICY_ID]`` value. + alert_policy (Union[dict, ~google.cloud.monitoring_v3.types.AlertPolicy]): Required. The requested alerting policy. You should omit the + ``name`` field in this policy. The name will be returned in the new + policy, including a new ``[ALERT_POLICY_ID]`` value. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.AlertPolicy` @@ -543,7 +544,7 @@ def delete_alert_policy( Args: name (str): Required. The alerting policy to delete. The format is: - projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] + projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] For more information, see ``AlertPolicy``. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -625,9 +626,9 @@ def update_alert_policy( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.AlertPolicy` - update_mask (Union[dict, ~google.cloud.monitoring_v3.types.FieldMask]): Optional. A list of alerting policy field names. If this field is not - empty, each listed field in the existing alerting policy is set to the - value of the corresponding field in the supplied policy + update_mask (Union[dict, ~google.cloud.monitoring_v3.types.FieldMask]): Optional. A list of alerting policy field names. If this field is + not empty, each listed field in the existing alerting policy is set to + the value of the corresponding field in the supplied policy (``alert_policy``), or to the field's default value if the field is not in the supplied alerting policy. Fields not listed retain their previous value. diff --git a/google/cloud/monitoring_v3/gapic/enums.py b/google/cloud/monitoring_v3/gapic/enums.py index 2215de34..5a99006b 100644 --- a/google/cloud/monitoring_v3/gapic/enums.py +++ b/google/cloud/monitoring_v3/gapic/enums.py @@ -21,9 +21,9 @@ class CalendarPeriod(enum.IntEnum): """ - A ``CalendarPeriod`` represents the abstract concept of a time period - that has a canonical start. Grammatically, "the start of the current - ``CalendarPeriod``." All calendar times begin at midnight UTC. + A ``CalendarPeriod`` represents the abstract concept of a time + period that has a canonical start. Grammatically, "the start of the + current ``CalendarPeriod``." All calendar times begin at midnight UTC. Attributes: CALENDAR_PERIOD_UNSPECIFIED (int): Undefined period, raises an error. @@ -52,8 +52,8 @@ class CalendarPeriod(enum.IntEnum): class ComparisonType(enum.IntEnum): """ - Specifies an ordering relationship on two arguments, called ``left`` and - ``right``. + Specifies an ordering relationship on two arguments, called ``left`` + and ``right``. Attributes: COMPARISON_UNSPECIFIED (int): No ordering relationship is specified. @@ -122,8 +122,8 @@ class LaunchStage(enum.IntEnum): limited production use cases. GA (int): GA features are open to all developers and are considered stable and fully qualified for production use. - DEPRECATED (int): Deprecated features are scheduled to be shut down and removed. For more - information, see the “Deprecation Policy” section of our `Terms of + DEPRECATED (int): Deprecated features are scheduled to be shut down and removed. For + more information, see the “Deprecation Policy” section of our `Terms of Service `__ and the `Google Cloud Platform Subject to the Deprecation Policy `__ documentation. @@ -139,8 +139,8 @@ class LaunchStage(enum.IntEnum): class NullValue(enum.IntEnum): """ - ``NullValue`` is a singleton enumeration to represent the null value for - the ``Value`` type union. + ``NullValue`` is a singleton enumeration to represent the null value + for the ``Value`` type union. The JSON representation for ``NullValue`` is JSON ``null``. @@ -160,13 +160,13 @@ class ServiceTier(enum.IntEnum): Attributes: SERVICE_TIER_UNSPECIFIED (int): An invalid sentinel value, used to indicate that a tier has not been provided explicitly. - SERVICE_TIER_BASIC (int): The Stackdriver Basic tier, a free tier of service that provides basic - features, a moderate allotment of logs, and access to built-in metrics. - A number of features are not available in this tier. For more details, - see `the service tiers + SERVICE_TIER_BASIC (int): The Stackdriver Basic tier, a free tier of service that provides + basic features, a moderate allotment of logs, and access to built-in + metrics. A number of features are not available in this tier. For more + details, see `the service tiers documentation `__. - SERVICE_TIER_PREMIUM (int): The Stackdriver Premium tier, a higher, more expensive tier of service - that provides access to all Stackdriver features, lets you use + SERVICE_TIER_PREMIUM (int): The Stackdriver Premium tier, a higher, more expensive tier of + service that provides access to all Stackdriver features, lets you use Stackdriver with AWS accounts, and has a larger allotments for logs and metrics. For more details, see `the service tiers documentation `__. @@ -202,8 +202,8 @@ class UptimeCheckRegion(enum.IntEnum): class Aggregation(object): class Aligner(enum.IntEnum): """ - The ``Aligner`` specifies the operation that will be applied to the data - points in each alignment period in a time series. Except for + The ``Aligner`` specifies the operation that will be applied to the + data points in each alignment period in a time series. Except for ``ALIGN_NONE``, which specifies that no operation be applied, each alignment operation replaces the set of data values in each alignment period with a single value: the result of applying the operation to the @@ -216,9 +216,9 @@ class Aligner(enum.IntEnum): ``value_type`` in the aligned result is ``INT64``. Attributes: - ALIGN_NONE (int): No alignment. Raw data is returned. Not valid if cross-series reduction - is requested. The ``value_type`` of the result is the same as the - ``value_type`` of the input. + ALIGN_NONE (int): No alignment. Raw data is returned. Not valid if cross-series + reduction is requested. The ``value_type`` of the result is the same as + the ``value_type`` of the input. ALIGN_DELTA (int): Align and convert to ``DELTA``. The output is ``delta = y1 - y0``. This alignment is valid for ``CUMULATIVE`` and ``DELTA`` metrics. If the @@ -247,14 +247,14 @@ class Aligner(enum.IntEnum): alignment period to the boundary at the end of the alignment period. This aligner is valid for ``GAUGE`` metrics. The ``value_type`` of the aligned result is the same as the ``value_type`` of the input. - ALIGN_MIN (int): Align the time series by returning the minimum value in each alignment - period. This aligner is valid for ``GAUGE`` and ``DELTA`` metrics with - numeric values. The ``value_type`` of the aligned result is the same as - the ``value_type`` of the input. - ALIGN_MAX (int): Align the time series by returning the maximum value in each alignment - period. This aligner is valid for ``GAUGE`` and ``DELTA`` metrics with - numeric values. The ``value_type`` of the aligned result is the same as - the ``value_type`` of the input. + ALIGN_MIN (int): Align the time series by returning the minimum value in each + alignment period. This aligner is valid for ``GAUGE`` and ``DELTA`` + metrics with numeric values. The ``value_type`` of the aligned result is + the same as the ``value_type`` of the input. + ALIGN_MAX (int): Align the time series by returning the maximum value in each + alignment period. This aligner is valid for ``GAUGE`` and ``DELTA`` + metrics with numeric values. The ``value_type`` of the aligned result is + the same as the ``value_type`` of the input. ALIGN_MEAN (int): Align the time series by returning the mean value in each alignment period. This aligner is valid for ``GAUGE`` and ``DELTA`` metrics with numeric values. The ``value_type`` of the aligned result is ``DOUBLE``. @@ -266,20 +266,21 @@ class Aligner(enum.IntEnum): alignment period. This aligner is valid for ``GAUGE`` and ``DELTA`` metrics with numeric and distribution values. The ``value_type`` of the aligned result is the same as the ``value_type`` of the input. - ALIGN_STDDEV (int): Align the time series by returning the standard deviation of the values - in each alignment period. This aligner is valid for ``GAUGE`` and + ALIGN_STDDEV (int): Align the time series by returning the standard deviation of the + values in each alignment period. This aligner is valid for ``GAUGE`` and ``DELTA`` metrics with numeric values. The ``value_type`` of the output is ``DOUBLE``. - ALIGN_COUNT_TRUE (int): Align the time series by returning the number of ``True`` values in each - alignment period. This aligner is valid for ``GAUGE`` metrics with + ALIGN_COUNT_TRUE (int): Align the time series by returning the number of ``True`` values in + each alignment period. This aligner is valid for ``GAUGE`` metrics with Boolean values. The ``value_type`` of the output is ``INT64``. ALIGN_COUNT_FALSE (int): Align the time series by returning the number of ``False`` values in each alignment period. This aligner is valid for ``GAUGE`` metrics with Boolean values. The ``value_type`` of the output is ``INT64``. - ALIGN_FRACTION_TRUE (int): Align the time series by returning the ratio of the number of ``True`` - values to the total number of values in each alignment period. This - aligner is valid for ``GAUGE`` metrics with Boolean values. The output - value is in the range [0.0, 1.0] and has ``value_type`` ``DOUBLE``. + ALIGN_FRACTION_TRUE (int): Align the time series by returning the ratio of the number of + ``True`` values to the total number of values in each alignment period. + This aligner is valid for ``GAUGE`` metrics with Boolean values. The + output value is in the range [0.0, 1.0] and has ``value_type`` + ``DOUBLE``. ALIGN_PERCENTILE_99 (int): Align the time series by using `percentile aggregation `__. The resulting data point in each alignment period is the 99th percentile of all data @@ -353,10 +354,10 @@ class Reducer(enum.IntEnum): Attributes: REDUCE_NONE (int): No cross-time series reduction. The output of the ``Aligner`` is returned. - REDUCE_MEAN (int): Reduce by computing the mean value across time series for each alignment - period. This reducer is valid for ``DELTA`` and ``GAUGE`` metrics with - numeric or distribution values. The ``value_type`` of the output is - ``DOUBLE``. + REDUCE_MEAN (int): Reduce by computing the mean value across time series for each + alignment period. This reducer is valid for ``DELTA`` and ``GAUGE`` + metrics with numeric or distribution values. The ``value_type`` of the + output is ``DOUBLE``. REDUCE_MIN (int): Reduce by computing the minimum value across time series for each alignment period. This reducer is valid for ``DELTA`` and ``GAUGE`` metrics with numeric values. The ``value_type`` of the output is the @@ -369,8 +370,8 @@ class Reducer(enum.IntEnum): period. This reducer is valid for ``DELTA`` and ``GAUGE`` metrics with numeric and distribution values. The ``value_type`` of the output is the same as the ``value_type`` of the input. - REDUCE_STDDEV (int): Reduce by computing the standard deviation across time series for each - alignment period. This reducer is valid for ``DELTA`` and ``GAUGE`` + REDUCE_STDDEV (int): Reduce by computing the standard deviation across time series for + each alignment period. This reducer is valid for ``DELTA`` and ``GAUGE`` metrics with numeric or distribution values. The ``value_type`` of the output is ``DOUBLE``. REDUCE_COUNT (int): Reduce by computing the number of data points across time series for @@ -381,8 +382,8 @@ class Reducer(enum.IntEnum): time series for each alignment period. This reducer is valid for ``DELTA`` and ``GAUGE`` metrics of Boolean ``value_type``. The ``value_type`` of the output is ``INT64``. - REDUCE_COUNT_FALSE (int): Reduce by computing the number of ``False``-valued data points across - time series for each alignment period. This reducer is valid for + REDUCE_COUNT_FALSE (int): Reduce by computing the number of ``False``-valued data points + across time series for each alignment period. This reducer is valid for ``DELTA`` and ``GAUGE`` metrics of Boolean ``value_type``. The ``value_type`` of the output is ``INT64``. REDUCE_FRACTION_TRUE (int): Reduce by computing the ratio of the number of ``True``-valued data @@ -435,9 +436,9 @@ class ConditionCombinerType(enum.IntEnum): Attributes: COMBINE_UNSPECIFIED (int): An unspecified combiner. - AND (int): Combine conditions using the logical ``AND`` operator. An incident is - created only if all the conditions are met simultaneously. This combiner - is satisfied if all conditions are met, even if they are met on + AND (int): Combine conditions using the logical ``AND`` operator. An incident + is created only if all the conditions are met simultaneously. This + combiner is satisfied if all conditions are met, even if they are met on completely different resources. OR (int): Combine conditions using the logical ``OR`` operator. An incident is created if any of the listed conditions is met. @@ -459,14 +460,14 @@ class State(enum.IntEnum): 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 + 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 `__ 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 + 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 `__ that created it. If a checker is being torn down, it is neither visible nor usable, so there is no "deleting" or "down" state. @@ -536,8 +537,8 @@ class ValueType(enum.IntEnum): Attributes: VALUE_TYPE_UNSPECIFIED (int): Do not use this default value. - BOOL (int): The value is a boolean. This value type can be used only if the metric - kind is ``GAUGE``. + BOOL (int): The value is a boolean. This value type can be used only if the + metric kind is ``GAUGE``. INT64 (int): The value is a signed 64-bit integer. DOUBLE (int): The value is a double precision floating point number. STRING (int): The value is a text string. This value type can be used only if the @@ -558,8 +559,8 @@ class ValueType(enum.IntEnum): class NotificationChannel(object): class VerificationStatus(enum.IntEnum): """ - Indicates whether the channel has been verified or not. It is illegal to - specify this field in a ``CreateNotificationChannel`` or an + Indicates whether the channel has been verified or not. It is + illegal to specify this field in a ``CreateNotificationChannel`` or an ``UpdateNotificationChannel`` operation. Attributes: @@ -590,8 +591,8 @@ class View(enum.IntEnum): Attributes: VIEW_UNSPECIFIED (int): Same as FULL. - FULL (int): Return the embedded ``ServiceLevelIndicator`` in the form in which it - was defined. If it was defined using a ``BasicSli``, return that + FULL (int): Return the embedded ``ServiceLevelIndicator`` in the form in which + it was defined. If it was defined using a ``BasicSli``, return that ``BasicSli``. EXPLICIT (int): For ``ServiceLevelIndicator``\ s using ``BasicSli`` articulation, instead return the ``ServiceLevelIndicator`` with its mode of @@ -648,16 +649,17 @@ class ContentMatcherOption(enum.IntEnum): 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. The match succeeds 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 + CONTAINS_STRING (int): Selects substring matching. The match succeeds 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. The match succeeds if the output - does *NOT* contain the ``content`` string. - MATCHES_REGEX (int): Selects regular-expression matching. The match succeeds of the output - matches the regular expression specified in the ``content`` string. - NOT_MATCHES_REGEX (int): Selects negation of regular-expression matching. The match succeeds if - the output does *NOT* match the regular expression specified in the + NOT_CONTAINS_STRING (int): Selects negation of substring matching. The match succeeds if the + output does *NOT* contain the ``content`` string. + MATCHES_REGEX (int): Selects regular-expression matching. The match succeeds of the + output matches the regular expression specified in the ``content`` + string. + NOT_MATCHES_REGEX (int): Selects negation of regular-expression matching. The match succeeds + if the output does *NOT* match the regular expression specified in the ``content`` string. """ diff --git a/google/cloud/monitoring_v3/gapic/group_service_client.py b/google/cloud/monitoring_v3/gapic/group_service_client.py index 6e931918..b7997312 100644 --- a/google/cloud/monitoring_v3/gapic/group_service_client.py +++ b/google/cloud/monitoring_v3/gapic/group_service_client.py @@ -260,12 +260,12 @@ def list_groups( :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] children_of_group (str): A group name. The format is: :: - projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] Returns groups whose ``parent_name`` field contains the group name. If no groups have this parent, the results are empty. @@ -273,7 +273,7 @@ def list_groups( :: - projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] Returns groups that are ancestors of the specified group. The groups are returned in order, starting with the immediate parent and ending with @@ -283,7 +283,7 @@ def list_groups( :: - projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] Returns the descendants of the specified group. This is a superset of the results returned by the ``children_of_group`` filter, and includes @@ -396,7 +396,7 @@ def get_group( :: - projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] 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. @@ -477,7 +477,7 @@ def create_group( :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] group (Union[dict, ~google.cloud.monitoring_v3.types.Group]): Required. A group definition. It is an error to define the ``name`` field because the system assigns the name. @@ -546,8 +546,8 @@ def update_group( metadata=None, ): """ - Updates an existing group. You can change any group attributes except - ``name``. + Updates an existing group. You can change any group attributes + except ``name``. Example: >>> from google.cloud import monitoring_v3 @@ -560,9 +560,9 @@ def update_group( >>> response = client.update_group(group) Args: - group (Union[dict, ~google.cloud.monitoring_v3.types.Group]): Required. The new definition of the group. All fields of the existing - group, excepting ``name``, are replaced with the corresponding fields of - this group. + group (Union[dict, ~google.cloud.monitoring_v3.types.Group]): Required. The new definition of the group. All fields of the + existing group, excepting ``name``, are replaced with the corresponding + fields of this group. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.Group` @@ -645,7 +645,7 @@ def delete_group( :: - projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + 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 its descendants. Otherwise, the request means to delete a group only when it has no descendants. The default value is false. @@ -736,7 +736,7 @@ def list_group_members( :: - projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -751,7 +751,7 @@ def list_group_members( :: - `resource.type = "gce_instance"` + `resource.type = "gce_instance"` interval (Union[dict, ~google.cloud.monitoring_v3.types.TimeInterval]): An optional time interval for which results should be returned. Only members that were part of the group during the specified interval are included in the response. If no interval is provided then the group diff --git a/google/cloud/monitoring_v3/gapic/metric_service_client.py b/google/cloud/monitoring_v3/gapic/metric_service_client.py index d9eb666c..991beaf5 100644 --- a/google/cloud/monitoring_v3/gapic/metric_service_client.py +++ b/google/cloud/monitoring_v3/gapic/metric_service_client.py @@ -260,11 +260,12 @@ def list_monitored_resource_descriptors( ... pass Args: - name (str): Required. The project on which to execute the request. The format is: + name (str): Required. The project on which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] filter_ (str): An optional `filter `__ describing the descriptors to be returned. The filter can reference the @@ -273,7 +274,7 @@ def list_monitored_resource_descriptors( :: - resource.type = starts_with("gce_") AND resource.label:id + resource.type = starts_with("gce_") AND resource.label:id page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -374,7 +375,7 @@ def get_monitored_resource_descriptor( :: - projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE] + projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE] The ``[RESOURCE_TYPE]`` is a predefined type, such as ``cloudsql_database``. @@ -467,13 +468,14 @@ def list_metric_descriptors( ... pass Args: - name (str): Required. The project on which to execute the request. The format is: + name (str): Required. The project on which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER] - filter_ (str): If this field is empty, all custom and system-defined metric descriptors - are returned. Otherwise, the + projects/[PROJECT_ID_OR_NUMBER] + filter_ (str): If this field is empty, all custom and system-defined metric + descriptors are returned. Otherwise, the `filter `__ specifies which metric descriptors are to be returned. For example, the following filter matches all `custom @@ -481,7 +483,7 @@ def list_metric_descriptors( :: - metric.type = starts_with("custom.googleapis.com/") + metric.type = starts_with("custom.googleapis.com/") page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -579,7 +581,7 @@ def get_metric_descriptor( :: - projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] + projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example value of ``[METRIC_ID]`` is ``"compute.googleapis.com/instance/disk/read_bytes_count"``. @@ -643,8 +645,9 @@ def create_metric_descriptor( metadata=None, ): """ - Creates a new metric descriptor. User-created metric descriptors define - `custom metrics `__. + Creates a new metric descriptor. User-created metric descriptors + define `custom + metrics `__. Example: >>> from google.cloud import monitoring_v3 @@ -659,11 +662,12 @@ def create_metric_descriptor( >>> response = client.create_metric_descriptor(name, metric_descriptor) Args: - name (str): Required. The project on which to execute the request. The format is: + name (str): Required. The project on which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] metric_descriptor (Union[dict, ~google.cloud.monitoring_v3.types.MetricDescriptor]): Required. The new `custom metric `__ descriptor. @@ -750,7 +754,7 @@ def delete_metric_descriptor( :: - projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] + projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example of ``[METRIC_ID]`` is: ``"custom.googleapis.com/my_test_metric"``. @@ -850,11 +854,12 @@ def list_time_series( ... pass Args: - name (str): Required. The project on which to execute the request. The format is: + name (str): Required. The project on which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] filter_ (str): Required. A `monitoring filter `__ that specifies which time series should be returned. The filter must specify @@ -863,8 +868,8 @@ def list_time_series( :: - metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND - metric.labels.instance_name = "my-instance-name" + metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND + metric.labels.instance_name = "my-instance-name" interval (Union[dict, ~google.cloud.monitoring_v3.types.TimeInterval]): Required. 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. @@ -872,8 +877,9 @@ def list_time_series( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.TimeInterval` view (~google.cloud.monitoring_v3.types.TimeSeriesView): Required. Specifies which information is returned about the time series. - aggregation (Union[dict, ~google.cloud.monitoring_v3.types.Aggregation]): Specifies the alignment of data points in individual time series as well - as how to combine the retrieved time series across specified labels. + aggregation (Union[dict, ~google.cloud.monitoring_v3.types.Aggregation]): Specifies the alignment of data points in individual time series as + well as how to combine the retrieved time series across specified + labels. By default (if no ``aggregation`` is explicitly specified), the raw time series data is returned. @@ -987,11 +993,12 @@ def create_time_series( >>> client.create_time_series(name, time_series) Args: - name (str): Required. The project on which to execute the request. The format is: + name (str): Required. The project on which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] time_series (list[Union[dict, ~google.cloud.monitoring_v3.types.TimeSeries]]): Required. The new data to be added to a list of time series. Adds at most one data point to each of several time series. The new data point must be more recent than any other point in its time series. Each diff --git a/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py b/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py index 70692644..dbab772d 100644 --- a/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py +++ b/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py @@ -266,12 +266,12 @@ def list_notification_channel_descriptors( ... pass Args: - name (str): Required. The REST resource name of the parent from which to retrieve - the notification channel descriptors. The expected syntax is: + name (str): Required. The REST resource name of the parent from which to + retrieve the notification channel descriptors. The expected syntax is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] Note that this names the parent container in which to look for the descriptors; to retrieve a single descriptor by name, use the @@ -373,12 +373,12 @@ def get_notification_channel_descriptor( >>> response = client.get_notification_channel_descriptor(name) Args: - name (str): Required. The channel type for which to execute the request. The format - is: + name (str): Required. The channel type for which to execute the request. The + format is: :: - projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE] + projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE] 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. @@ -471,11 +471,12 @@ def list_notification_channels( ... pass Args: - name (str): Required. The project on which to execute the request. The format is: + name (str): Required. The project on which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] This names the container in which to look for the notification channels; it does not name a specific channel. To query a specific channel by REST @@ -485,9 +486,10 @@ def list_notification_channels( For more details, see `sorting and filtering `__. - order_by (str): A comma-separated list of fields by which to sort the result. Supports - the same set of fields as in ``filter``. Entries can be prefixed with a - minus sign to sort in descending rather than ascending order. + order_by (str): A comma-separated list of fields by which to sort the result. + Supports the same set of fields as in ``filter``. Entries can be + prefixed with a minus sign to sort in descending rather than ascending + order. For more details, see `sorting and filtering `__. @@ -589,11 +591,12 @@ def get_notification_channel( >>> response = client.get_notification_channel(name) Args: - name (str): Required. The channel for which to execute the request. The format is: + name (str): Required. The channel for which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] + projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] 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. @@ -670,11 +673,12 @@ def create_notification_channel( >>> response = client.create_notification_channel(name, notification_channel) Args: - name (str): Required. The project on which to execute the request. The format is: + name (str): Required. The project on which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name @@ -762,10 +766,10 @@ def update_notification_channel( >>> response = client.update_notification_channel(notification_channel) Args: - notification_channel (Union[dict, ~google.cloud.monitoring_v3.types.NotificationChannel]): Required. A description of the changes to be applied to the specified - notification channel. The description must provide a definition for - fields to be updated; the names of these fields should also be included - in the ``update_mask``. + notification_channel (Union[dict, ~google.cloud.monitoring_v3.types.NotificationChannel]): Required. A description of the changes to be applied to the + specified notification channel. The description must provide a + definition for fields to be updated; the names of these fields should + also be included in the ``update_mask``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.NotificationChannel` @@ -849,11 +853,12 @@ def delete_notification_channel( >>> client.delete_notification_channel(name) Args: - name (str): Required. The channel for which to execute the request. The format is: + name (str): Required. The channel for which to execute the request. The format + is: :: - projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] + projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] force (bool): If true, the notification channel will be deleted regardless of its use in alert policies (the policies will be updated to remove the channel). If false, channels that are still referenced by an existing @@ -918,8 +923,9 @@ def send_notification_channel_verification_code( metadata=None, ): """ - Causes a verification code to be delivered to the channel. The code can - then be supplied in ``VerifyNotificationChannel`` to verify the channel. + Causes a verification code to be delivered to the channel. The code + can then be supplied in ``VerifyNotificationChannel`` to verify the + channel. Example: >>> from google.cloud import monitoring_v3 @@ -1126,8 +1132,8 @@ def verify_notification_channel( Args: name (str): Required. The notification channel to verify. - code (str): Required. The verification code that was delivered to the channel as a - result of invoking the ``SendNotificationChannelVerificationCode`` API + code (str): Required. The verification code that was delivered to the channel as + a result of invoking the ``SendNotificationChannelVerificationCode`` API method or that was retrieved from a verified channel via ``GetNotificationChannelVerificationCode``. For example, one might have "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only diff --git a/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py b/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py index f0941b18..f015a402 100644 --- a/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py +++ b/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py @@ -66,10 +66,10 @@ class ServiceMonitoringServiceClient(object): """ - The Cloud Monitoring Service-Oriented Monitoring API has endpoints for - managing and querying aspects of a workspace's services. These include - the ``Service``'s monitored resources, its Service-Level Objectives, and - a taxonomy of categorized Health Metrics. + The Cloud Monitoring Service-Oriented Monitoring API has endpoints + for managing and querying aspects of a workspace's services. These + include the ``Service``'s monitored resources, its Service-Level + Objectives, and a taxonomy of categorized Health Metrics. """ SERVICE_ADDRESS = "monitoring.googleapis.com:443" @@ -265,13 +265,13 @@ def create_service( :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] service (Union[dict, ~google.cloud.monitoring_v3.types.Service]): Required. The ``Service`` to create. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.Service` - service_id (str): Optional. The Service id to use for this Service. If omitted, an id will - be generated instead. Must match the pattern ``[a-z0-9\-]+`` + service_id (str): Optional. The Service id to use for this Service. If omitted, an id + will be generated instead. Must match the pattern ``[a-z0-9\-]+`` 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. @@ -349,7 +349,7 @@ def get_service( :: - projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] 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. @@ -435,30 +435,30 @@ def list_services( ... pass Args: - parent (str): Required. Resource name of the parent containing the listed services, - either a project or a Monitoring Workspace. The formats are: + parent (str): Required. Resource name of the parent containing the listed + services, either a project or a Monitoring Workspace. The formats are: :: - projects/[PROJECT_ID_OR_NUMBER] - workspaces/[HOST_PROJECT_ID_OR_NUMBER] - filter_ (str): A filter specifying what ``Service``\ s to return. The filter currently - supports the following fields: + projects/[PROJECT_ID_OR_NUMBER] + workspaces/[HOST_PROJECT_ID_OR_NUMBER] + filter_ (str): A filter specifying what ``Service``\ s to return. The filter + currently supports the following fields: :: - - `identifier_case` - - `app_engine.module_id` - - `cloud_endpoints.service` - - `cluster_istio.location` - - `cluster_istio.cluster_name` - - `cluster_istio.service_namespace` - - `cluster_istio.service_name` + - `identifier_case` + - `app_engine.module_id` + - `cloud_endpoints.service` + - `cluster_istio.location` + - `cluster_istio.cluster_name` + - `cluster_istio.service_namespace` + - `cluster_istio.service_name` ``identifier_case`` refers to which option in the identifier oneof is populated. For example, the filter ``identifier_case = "CUSTOM"`` would match all services with a value for the ``custom`` field. Valid options - are "CUSTOM", "APP\_ENGINE", "CLOUD\_ENDPOINTS", and "CLUSTER\_ISTIO". + are "CUSTOM", "APP_ENGINE", "CLOUD_ENDPOINTS", and "CLUSTER_ISTIO". page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -639,7 +639,7 @@ def delete_service( :: - projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] 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. @@ -717,9 +717,10 @@ def create_service_level_objective( :: - projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] - service_level_objective (Union[dict, ~google.cloud.monitoring_v3.types.ServiceLevelObjective]): Required. The ``ServiceLevelObjective`` to create. The provided ``name`` - will be respected if no ``ServiceLevelObjective`` exists with this name. + projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + service_level_objective (Union[dict, ~google.cloud.monitoring_v3.types.ServiceLevelObjective]): Required. The ``ServiceLevelObjective`` to create. The provided + ``name`` will be respected if no ``ServiceLevelObjective`` exists with + this name. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.ServiceLevelObjective` @@ -809,12 +810,12 @@ def get_service_level_objective( :: - projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] - view (~google.cloud.monitoring_v3.types.View): View of the ``ServiceLevelObjective`` to return. If ``DEFAULT``, return - the ``ServiceLevelObjective`` as originally defined. If ``EXPLICIT`` and - the ``ServiceLevelObjective`` is defined in terms of a ``BasicSli``, - replace the ``BasicSli`` with a ``RequestBasedSli`` spelling out how the - SLI is computed. + projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] + view (~google.cloud.monitoring_v3.types.View): View of the ``ServiceLevelObjective`` to return. If ``DEFAULT``, + return the ``ServiceLevelObjective`` as originally defined. If + ``EXPLICIT`` and the ``ServiceLevelObjective`` is defined in terms of a + ``BasicSli``, replace the ``BasicSli`` with a ``RequestBasedSli`` + spelling out how the SLI is computed. 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. @@ -905,13 +906,13 @@ def list_service_level_objectives( ... pass Args: - parent (str): Required. Resource name of the parent containing the listed SLOs, either - a project or a Monitoring Workspace. The formats are: + parent (str): Required. Resource name of the parent containing the listed SLOs, + either a project or a Monitoring Workspace. The formats are: :: - projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] - workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/- + projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/- filter_ (str): A filter specifying what ``ServiceLevelObjective``\ s to return. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- @@ -1014,8 +1015,8 @@ def update_service_level_objective( >>> response = client.update_service_level_objective(service_level_objective) Args: - service_level_objective (Union[dict, ~google.cloud.monitoring_v3.types.ServiceLevelObjective]): Required. The ``ServiceLevelObjective`` to draw updates from. The given - ``name`` specifies the resource to update. + service_level_objective (Union[dict, ~google.cloud.monitoring_v3.types.ServiceLevelObjective]): Required. The ``ServiceLevelObjective`` to draw updates from. The + given ``name`` specifies the resource to update. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.monitoring_v3.types.ServiceLevelObjective` @@ -1100,12 +1101,12 @@ def delete_service_level_objective( >>> client.delete_service_level_objective(name) Args: - name (str): Required. Resource name of the ``ServiceLevelObjective`` to delete. The - format is: + name (str): Required. Resource name of the ``ServiceLevelObjective`` to delete. + The format is: :: - projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] + projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] 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. diff --git a/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py b/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py index f1916baf..83a75e1a 100644 --- a/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py +++ b/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py @@ -155,8 +155,8 @@ def create_group(self): def update_group(self): """Return the gRPC stub for :meth:`GroupServiceClient.update_group`. - Updates an existing group. You can change any group attributes except - ``name``. + Updates an existing group. You can change any group attributes + except ``name``. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py b/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py index a95e3d13..33ddb1d5 100644 --- a/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py +++ b/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py @@ -168,8 +168,9 @@ def get_metric_descriptor(self): def create_metric_descriptor(self): """Return the gRPC stub for :meth:`MetricServiceClient.create_metric_descriptor`. - Creates a new metric descriptor. User-created metric descriptors define - `custom metrics `__. + Creates a new metric descriptor. User-created metric descriptors + define `custom + metrics `__. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py b/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py index ce54f4f7..bdc98192 100644 --- a/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py +++ b/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py @@ -227,8 +227,9 @@ def delete_notification_channel(self): def send_notification_channel_verification_code(self): """Return the gRPC stub for :meth:`NotificationChannelServiceClient.send_notification_channel_verification_code`. - Causes a verification code to be delivered to the channel. The code can - then be supplied in ``VerifyNotificationChannel`` to verify the channel. + Causes a verification code to be delivered to the channel. The code + can then be supplied in ``VerifyNotificationChannel`` to verify the + channel. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py b/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py index 80aca866..b2272fdf 100644 --- a/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py +++ b/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py @@ -158,9 +158,9 @@ def create_uptime_check_config(self): def update_uptime_check_config(self): """Return the gRPC stub for :meth:`UptimeCheckServiceClient.update_uptime_check_config`. - 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 + 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. Returns: diff --git a/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py b/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py index 548f5ac6..5a506293 100644 --- a/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py +++ b/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py @@ -269,12 +269,12 @@ def list_uptime_check_configs( ... pass Args: - parent (str): Required. The project whose Uptime check configurations are listed. The - format is: + parent (str): Required. The project whose Uptime check configurations are listed. + The format is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -371,7 +371,7 @@ def get_uptime_check_config( :: - projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] + projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] 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. @@ -447,12 +447,12 @@ def create_uptime_check_config( >>> response = client.create_uptime_check_config(parent, uptime_check_config) Args: - parent (str): Required. The project in which to create the Uptime check. The format - is: + parent (str): Required. The project in which to create the Uptime check. The + format is: :: - projects/[PROJECT_ID_OR_NUMBER] + projects/[PROJECT_ID_OR_NUMBER] uptime_check_config (Union[dict, ~google.cloud.monitoring_v3.types.UptimeCheckConfig]): Required. The new Uptime check configuration. If a dict is provided, it must be of the same form as the protobuf @@ -519,9 +519,9 @@ def update_uptime_check_config( metadata=None, ): """ - 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 + 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. Example: @@ -535,8 +535,8 @@ def update_uptime_check_config( >>> response = client.update_uptime_check_config(uptime_check_config) Args: - uptime_check_config (Union[dict, ~google.cloud.monitoring_v3.types.UptimeCheckConfig]): Required. If an ``updateMask`` has been specified, this field gives the - values for the set of fields mentioned in the ``updateMask``. If an + uptime_check_config (Union[dict, ~google.cloud.monitoring_v3.types.UptimeCheckConfig]): Required. If an ``updateMask`` has been specified, this field gives + the values for the set of fields mentioned in the ``updateMask``. If an ``updateMask`` has not been given, this Uptime check configuration replaces the current configuration. If a field is mentioned in ``updateMask`` but the corresonding field is omitted in this partial @@ -635,7 +635,7 @@ def delete_uptime_check_config( :: - projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] + projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] 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. diff --git a/google/cloud/monitoring_v3/proto/alert.proto b/google/cloud/monitoring_v3/proto/alert.proto index 830a514d..6662304d 100644 --- a/google/cloud/monitoring_v3/proto/alert.proto +++ b/google/cloud/monitoring_v3/proto/alert.proto @@ -215,19 +215,6 @@ message AlertPolicy { Trigger trigger = 3; } - // A condition type that allows alert policies to be defined using - // Monitoring Query Language. - message TimeSeriesQueryLanguageCondition { - // Monitoring Query Language query that generates time series data and - // describes a condition for alerting on that data. - string query = 1; - - // A short explanation of what the query represents. For example: - // - // "Error ratio exceeds 15% for >5% of servers in >2 regions" - string summary = 2; - } - // Required if the condition exists. The unique resource name for this // condition. Its format is: // @@ -268,11 +255,6 @@ message AlertPolicy { // A condition that checks that a time series continues to // receive new data points. MetricAbsence condition_absent = 2; - - // A condition that uses the Monitoring Query Language to define - // alerts. - // If set, no other conditions can be present. - TimeSeriesQueryLanguageCondition condition_time_series_query_language = 14; } } diff --git a/google/cloud/monitoring_v3/proto/alert_pb2.py b/google/cloud/monitoring_v3/proto/alert_pb2.py index 1dffe90e..d1b5d195 100644 --- a/google/cloud/monitoring_v3/proto/alert_pb2.py +++ b/google/cloud/monitoring_v3/proto/alert_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/alert.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -31,12 +28,8 @@ name="google/cloud/monitoring_v3/proto/alert.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\nAlertProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n,google/cloud/monitoring_v3/proto/alert.proto\x12\x14google.monitoring.v3\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x36google/cloud/monitoring_v3/proto/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xab\x12\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12$\n\x08validity\x18\x12 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\xd4\n\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x12|\n$condition_time_series_query_language\x18\x0e \x01(\x0b\x32L.google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageConditionH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\x81\x03\n\x0fMetricThreshold\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xcb\x01\n\rMetricAbsence\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\x42\n TimeSeriesQueryLanguageCondition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t:\x97\x02\xea\x41\x93\x02\n.monitoring.googleapis.com/AlertPolicyCondition\x12\x46projects/{project}/alertPolicies/{alert_policy}/conditions/{condition}\x12Porganizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x44\x66olders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x01*B\x0b\n\tcondition\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03:\xc9\x01\xea\x41\xc5\x01\n%monitoring.googleapis.com/AlertPolicy\x12/projects/{project}/alertPolicies/{alert_policy}\x12\x39organizations/{organization}/alertPolicies/{alert_policy}\x12-folders/{folder}/alertPolicies/{alert_policy}\x12\x01*B\xc2\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\nAlertProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n,google/cloud/monitoring_v3/proto/alert.proto\x12\x14google.monitoring.v3\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x36google/cloud/monitoring_v3/proto/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xe9\x10\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12$\n\x08validity\x18\x12 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\x92\t\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\x81\x03\n\x0fMetricThreshold\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xcb\x01\n\rMetricAbsence\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger:\x97\x02\xea\x41\x93\x02\n.monitoring.googleapis.com/AlertPolicyCondition\x12\x46projects/{project}/alertPolicies/{alert_policy}/conditions/{condition}\x12Porganizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x44\x66olders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x01*B\x0b\n\tcondition\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03:\xc9\x01\xea\x41\xc5\x01\n%monitoring.googleapis.com/AlertPolicy\x12/projects/{project}/alertPolicies/{alert_policy}\x12\x39organizations/{organization}/alertPolicies/{alert_policy}\x12-folders/{folder}/alertPolicies/{alert_policy}\x12\x01*B\xc2\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_resource__pb2.DESCRIPTOR, google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, @@ -77,8 +70,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2336, - serialized_end=2433, + serialized_start=2142, + serialized_end=2239, ) _sym_db.RegisterEnumDescriptor(_ALERTPOLICY_CONDITIONCOMBINERTYPE) @@ -99,7 +92,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -117,7 +110,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -199,8 +192,8 @@ fields=[], ) ], - serialized_start=1273, - serialized_end=1326, + serialized_start=1147, + serialized_end=1200, ) _ALERTPOLICY_CONDITION_METRICTHRESHOLD = _descriptor.Descriptor( @@ -219,7 +212,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -255,7 +248,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -363,8 +356,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1329, - serialized_end=1714, + serialized_start=1203, + serialized_end=1588, ) _ALERTPOLICY_CONDITION_METRICABSENCE = _descriptor.Descriptor( @@ -383,7 +376,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -455,64 +448,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1717, - serialized_end=1920, -) - -_ALERTPOLICY_CONDITION_TIMESERIESQUERYLANGUAGECONDITION = _descriptor.Descriptor( - name="TimeSeriesQueryLanguageCondition", - full_name="google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="query", - full_name="google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition.query", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="summary", - full_name="google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition.summary", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1922, - serialized_end=1988, + serialized_start=1591, + serialized_end=1794, ) _ALERTPOLICY_CONDITION = _descriptor.Descriptor( @@ -531,7 +468,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -549,7 +486,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -594,36 +531,15 @@ serialized_options=None, file=DESCRIPTOR, ), - _descriptor.FieldDescriptor( - name="condition_time_series_query_language", - full_name="google.monitoring.v3.AlertPolicy.Condition.condition_time_series_query_language", - index=4, - number=14, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), ], extensions=[], nested_types=[ _ALERTPOLICY_CONDITION_TRIGGER, _ALERTPOLICY_CONDITION_METRICTHRESHOLD, _ALERTPOLICY_CONDITION_METRICABSENCE, - _ALERTPOLICY_CONDITION_TIMESERIESQUERYLANGUAGECONDITION, ], enum_types=[], - serialized_options=_b( - "\352A\223\002\n.monitoring.googleapis.com/AlertPolicyCondition\022Fprojects/{project}/alertPolicies/{alert_policy}/conditions/{condition}\022Porganizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}\022Dfolders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}\022\001*" - ), + serialized_options=b"\352A\223\002\n.monitoring.googleapis.com/AlertPolicyCondition\022Fprojects/{project}/alertPolicies/{alert_policy}/conditions/{condition}\022Porganizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}\022Dfolders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}\022\001*", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -637,7 +553,7 @@ ) ], serialized_start=919, - serialized_end=2283, + serialized_end=2089, ) _ALERTPOLICY_USERLABELSENTRY = _descriptor.Descriptor( @@ -656,7 +572,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -674,7 +590,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -687,13 +603,13 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2285, - serialized_end=2334, + serialized_start=2091, + serialized_end=2140, ) _ALERTPOLICY = _descriptor.Descriptor( @@ -712,7 +628,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -730,7 +646,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -909,15 +825,13 @@ _ALERTPOLICY_USERLABELSENTRY, ], enum_types=[_ALERTPOLICY_CONDITIONCOMBINERTYPE], - serialized_options=_b( - "\352A\305\001\n%monitoring.googleapis.com/AlertPolicy\022/projects/{project}/alertPolicies/{alert_policy}\0229organizations/{organization}/alertPolicies/{alert_policy}\022-folders/{folder}/alertPolicies/{alert_policy}\022\001*" - ), + serialized_options=b"\352A\305\001\n%monitoring.googleapis.com/AlertPolicy\022/projects/{project}/alertPolicies/{alert_policy}\0229organizations/{organization}/alertPolicies/{alert_policy}\022-folders/{folder}/alertPolicies/{alert_policy}\022\001*", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=290, - serialized_end=2637, + serialized_end=2443, ) _ALERTPOLICY_DOCUMENTATION.containing_type = _ALERTPOLICY @@ -968,18 +882,12 @@ "trigger" ].message_type = _ALERTPOLICY_CONDITION_TRIGGER _ALERTPOLICY_CONDITION_METRICABSENCE.containing_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY_CONDITION_TIMESERIESQUERYLANGUAGECONDITION.containing_type = ( - _ALERTPOLICY_CONDITION -) _ALERTPOLICY_CONDITION.fields_by_name[ "condition_threshold" ].message_type = _ALERTPOLICY_CONDITION_METRICTHRESHOLD _ALERTPOLICY_CONDITION.fields_by_name[ "condition_absent" ].message_type = _ALERTPOLICY_CONDITION_METRICABSENCE -_ALERTPOLICY_CONDITION.fields_by_name[ - "condition_time_series_query_language" -].message_type = _ALERTPOLICY_CONDITION_TIMESERIESQUERYLANGUAGECONDITION _ALERTPOLICY_CONDITION.containing_type = _ALERTPOLICY _ALERTPOLICY_CONDITION.oneofs_by_name["condition"].fields.append( _ALERTPOLICY_CONDITION.fields_by_name["condition_threshold"] @@ -993,12 +901,6 @@ _ALERTPOLICY_CONDITION.fields_by_name[ "condition_absent" ].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name["condition"] -_ALERTPOLICY_CONDITION.oneofs_by_name["condition"].fields.append( - _ALERTPOLICY_CONDITION.fields_by_name["condition_time_series_query_language"] -) -_ALERTPOLICY_CONDITION.fields_by_name[ - "condition_time_series_query_language" -].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name["condition"] _ALERTPOLICY_USERLABELSENTRY.containing_type = _ALERTPOLICY _ALERTPOLICY.fields_by_name["documentation"].message_type = _ALERTPOLICY_DOCUMENTATION _ALERTPOLICY.fields_by_name["user_labels"].message_type = _ALERTPOLICY_USERLABELSENTRY @@ -1027,15 +929,17 @@ AlertPolicy = _reflection.GeneratedProtocolMessageType( "AlertPolicy", (_message.Message,), - dict( - Documentation=_reflection.GeneratedProtocolMessageType( + { + "Documentation": _reflection.GeneratedProtocolMessageType( "Documentation", (_message.Message,), - dict( - DESCRIPTOR=_ALERTPOLICY_DOCUMENTATION, - __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A content string and a MIME type that describes the content string's - format. + { + "DESCRIPTOR": _ALERTPOLICY_DOCUMENTATION, + "__module__": "google.cloud.monitoring_v3.proto.alert_pb2", + "__doc__": """A content string and a MIME type that describes the + content string’s format. + + Attributes: content: The text of the documentation, interpreted according to @@ -1049,20 +953,23 @@ information. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation) - ), + }, ), - Condition=_reflection.GeneratedProtocolMessageType( + "Condition": _reflection.GeneratedProtocolMessageType( "Condition", (_message.Message,), - dict( - Trigger=_reflection.GeneratedProtocolMessageType( + { + "Trigger": _reflection.GeneratedProtocolMessageType( "Trigger", (_message.Message,), - dict( - DESCRIPTOR=_ALERTPOLICY_CONDITION_TRIGGER, - __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""Specifies how many time series must fail a predicate to trigger a - condition. If not specified, then a ``{count: 1}`` trigger is used. + { + "DESCRIPTOR": _ALERTPOLICY_CONDITION_TRIGGER, + "__module__": "google.cloud.monitoring_v3.proto.alert_pb2", + "__doc__": """Specifies how many time series must fail a predicate to + trigger a condition. If not specified, then a ``{count: 1}`` trigger is + used. + + Attributes: type: A type of trigger. @@ -1074,16 +981,18 @@ the condition to be triggered. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) - ), + }, ), - MetricThreshold=_reflection.GeneratedProtocolMessageType( + "MetricThreshold": _reflection.GeneratedProtocolMessageType( "MetricThreshold", (_message.Message,), - dict( - DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICTHRESHOLD, - __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A condition type that compares a collection of time series against a - threshold. + { + "DESCRIPTOR": _ALERTPOLICY_CONDITION_METRICTHRESHOLD, + "__module__": "google.cloud.monitoring_v3.proto.alert_pb2", + "__doc__": """A condition type that compares a collection of time series + against a threshold. + + Attributes: filter: A `filter @@ -1142,8 +1051,8 @@ duration: The amount of time that a time series must violate the threshold to be considered failing. Currently, only values - that are a multiple of a minute--e.g., 0, 60, 120, or 300 - seconds--are supported. If an invalid value is given, an error + that are a multiple of a minute–e.g., 0, 60, 120, or 300 + seconds–are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the @@ -1161,19 +1070,21 @@ specified. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) - ), + }, ), - MetricAbsence=_reflection.GeneratedProtocolMessageType( + "MetricAbsence": _reflection.GeneratedProtocolMessageType( "MetricAbsence", (_message.Message,), - dict( - DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICABSENCE, - __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A condition type that checks that monitored resources are reporting - data. The configuration defines a metric and a set of monitored - resources. The predicate is considered in violation when a time series - for the specified metric of a monitored resource does not include any - data in the specified ``duration``. + { + "DESCRIPTOR": _ALERTPOLICY_CONDITION_METRICABSENCE, + "__module__": "google.cloud.monitoring_v3.proto.alert_pb2", + "__doc__": """A condition type that checks that monitored resources are + reporting data. The configuration defines a metric and a set of + monitored resources. The predicate is considered in violation when a + time series for the specified metric of a monitored resource does not + include any data in the specified ``duration``. + + Attributes: filter: A `filter @@ -1202,7 +1113,7 @@ duration: The amount of time that a time series must fail to report new data to be considered failing. Currently, only values that are - a multiple of a minute--e.g. 60, 120, or 300 seconds--are + a multiple of a minute–e.g. 60, 120, or 300 seconds–are supported. If an invalid value is given, an error will be returned. The ``Duration.nanos`` field is ignored. trigger: @@ -1213,37 +1124,20 @@ by ``filter`` and ``aggregations``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) - ), - ), - TimeSeriesQueryLanguageCondition=_reflection.GeneratedProtocolMessageType( - "TimeSeriesQueryLanguageCondition", - (_message.Message,), - dict( - DESCRIPTOR=_ALERTPOLICY_CONDITION_TIMESERIESQUERYLANGUAGECONDITION, - __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A condition type that allows alert policies to be defined using - Monitoring Query Language. - Attributes: - query: - Monitoring Query Language query that generates time series - data and describes a condition for alerting on that data. - summary: - A short explanation of what the query represents. For example: - "Error ratio exceeds 15% for >5% of servers in >2 regions" - """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition) - ), + }, ), - DESCRIPTOR=_ALERTPOLICY_CONDITION, - __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A condition is a true/false test that determines when an alerting - policy should open an incident. If a condition evaluates to true, it - signifies that something is wrong. + "DESCRIPTOR": _ALERTPOLICY_CONDITION, + "__module__": "google.cloud.monitoring_v3.proto.alert_pb2", + "__doc__": """A condition is a true/false test that determines when an + alerting policy should open an incident. If a condition evaluates to + true, it signifies that something is wrong. + + Attributes: name: Required if the condition exists. The unique resource name for - this condition. Its format is: :: projects/[PROJECT_ID_O - R_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] + this condition. Its format is: :: projects/[PROJECT_ID_OR + _NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] ``[CONDITION_ID]`` is assigned by Stackdriver Monitoring when the condition is created as part of a new or updated alerting policy. When calling the [alertPolicies.create][google.monito @@ -1264,7 +1158,7 @@ display_name: A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, - don't use the same display name for multiple conditions in the + don’t use the same display name for multiple conditions in the same policy. condition: Only one of the following condition types will be specified. @@ -1273,34 +1167,33 @@ condition_absent: A condition that checks that a time series continues to receive new data points. - condition_time_series_query_language: - A condition that uses the Monitoring Query Language to define - alerts. If set, no other conditions can be present. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) - ), + }, ), - UserLabelsEntry=_reflection.GeneratedProtocolMessageType( + "UserLabelsEntry": _reflection.GeneratedProtocolMessageType( "UserLabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_ALERTPOLICY_USERLABELSENTRY, - __module__="google.cloud.monitoring_v3.proto.alert_pb2" + { + "DESCRIPTOR": _ALERTPOLICY_USERLABELSENTRY, + "__module__": "google.cloud.monitoring_v3.proto.alert_pb2" # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.UserLabelsEntry) - ), + }, ), - DESCRIPTOR=_ALERTPOLICY, - __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A description of the conditions under which some aspect of your system - is considered to be "unhealthy" and the ways to notify people or - services about this state. For an overview of alert policies, see - `Introduction to Alerting - `__. + "DESCRIPTOR": _ALERTPOLICY, + "__module__": "google.cloud.monitoring_v3.proto.alert_pb2", + "__doc__": """A description of the conditions under which some aspect of + your system is considered to be “unhealthy” and the ways to notify + people or services about this state. For an overview of alert policies, + see `Introduction to + Alerting `__. + + Attributes: name: Required if the policy exists. The resource name for this - policy. The format is: :: projects/[PROJECT_ID_OR_NUMBER - ]/alertPolicies/[ALERT_POLICY_ID] ``[ALERT_POLICY_ID]`` is + policy. The format is: :: projects/[PROJECT_ID_OR_NUMBER] + /alertPolicies/[ALERT_POLICY_ID] ``[ALERT_POLICY_ID]`` is assigned by Stackdriver Monitoring when the policy is created. When calling the [alertPolicies.create][google.monitoring.v3.A lertPolicyService.CreateAlertPolicy] method, do not include @@ -1309,7 +1202,7 @@ display_name: A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, - don't use the same display name for multiple policies in the + don’t use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters. documentation: Documentation that is included with notifications and @@ -1355,11 +1248,10 @@ violations occur on an already opened incident. Each element of this array corresponds to the ``name`` field in each of the [``NotificationChannel``][google.monitoring.v3.NotificationCha - nnel] objects that are returned from the [``ListNotificationCh - annels``][google.monitoring.v3.NotificationChannelService.List - NotificationChannels] method. The format of the entries in - this field is: :: projects/[PROJECT_ID_OR_NUMBER]/notifi - cationChannels/[CHANNEL_ID] + nnel] objects that are returned from the + [``ListNotificationChannels``] [google.monitoring.v3.Notificat + ionChannelService.ListNotificationChannels] method. The format + of the entries in this field is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] creation_record: A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be @@ -1370,7 +1262,7 @@ will be ignored. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy) - ), + }, ) _sym_db.RegisterMessage(AlertPolicy) _sym_db.RegisterMessage(AlertPolicy.Documentation) @@ -1378,7 +1270,6 @@ _sym_db.RegisterMessage(AlertPolicy.Condition.Trigger) _sym_db.RegisterMessage(AlertPolicy.Condition.MetricThreshold) _sym_db.RegisterMessage(AlertPolicy.Condition.MetricAbsence) -_sym_db.RegisterMessage(AlertPolicy.Condition.TimeSeriesQueryLanguageCondition) _sym_db.RegisterMessage(AlertPolicy.UserLabelsEntry) diff --git a/google/cloud/monitoring_v3/proto/alert_service_pb2.py b/google/cloud/monitoring_v3/proto/alert_service_pb2.py index 68a96bd5..ea86a07f 100644 --- a/google/cloud/monitoring_v3/proto/alert_service_pb2.py +++ b/google/cloud/monitoring_v3/proto/alert_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/alert_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -30,12 +27,8 @@ name="google/cloud/monitoring_v3/proto/alert_service.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\021AlertServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n4google/cloud/monitoring_v3/proto/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x95\x01\n\x18\x43reateAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12<\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02"T\n\x15GetAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy"\xa0\x01\n\x18ListAlertPoliciesRequest\x12;\n\x04name\x18\x04 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"o\n\x19ListAlertPoliciesResponse\x12\x39\n\x0e\x61lert_policies\x18\x03 \x03(\x0b\x32!.google.monitoring.v3.AlertPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x89\x01\n\x18UpdateAlertPolicyRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12<\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02"W\n\x18\x44\x65leteAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy2\x9e\x08\n\x12\x41lertPolicyService\x12\xa8\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse"2\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\xda\x41\x04name\x12\x96\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"4\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\xda\x41\x04name\x12\xb5\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"M\x82\xd3\xe4\x93\x02\x33"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\xda\x41\x11name,alert_policy\x12\x91\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\xda\x41\x04name\x12\xcb\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"c\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policy\xda\x41\x18update_mask,alert_policy\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xc9\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\021AlertServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n4google/cloud/monitoring_v3/proto/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x95\x01\n\x18\x43reateAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12<\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02"T\n\x15GetAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy"\xa0\x01\n\x18ListAlertPoliciesRequest\x12;\n\x04name\x18\x04 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"o\n\x19ListAlertPoliciesResponse\x12\x39\n\x0e\x61lert_policies\x18\x03 \x03(\x0b\x32!.google.monitoring.v3.AlertPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x89\x01\n\x18UpdateAlertPolicyRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12<\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02"W\n\x18\x44\x65leteAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy2\x9e\x08\n\x12\x41lertPolicyService\x12\xa8\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse"2\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\xda\x41\x04name\x12\x96\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"4\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\xda\x41\x04name\x12\xb5\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"M\x82\xd3\xe4\x93\x02\x33"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\xda\x41\x11name,alert_policy\x12\x91\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\xda\x41\x04name\x12\xcb\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"c\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policy\xda\x41\x18update_mask,alert_policy\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xc9\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -64,15 +57,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A'\022%monitoring.googleapis.com/AlertPolicy" - ), + serialized_options=b"\340A\002\372A'\022%monitoring.googleapis.com/AlertPolicy", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -90,7 +81,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -123,15 +114,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A'\n%monitoring.googleapis.com/AlertPolicy" - ), + serialized_options=b"\340A\002\372A'\n%monitoring.googleapis.com/AlertPolicy", file=DESCRIPTOR, ) ], @@ -164,15 +153,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A'\022%monitoring.googleapis.com/AlertPolicy" - ), + serialized_options=b"\340A\002\372A'\022%monitoring.googleapis.com/AlertPolicy", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -184,7 +171,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -202,7 +189,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -238,7 +225,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -295,7 +282,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -358,7 +345,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -391,15 +378,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A'\n%monitoring.googleapis.com/AlertPolicy" - ), + serialized_options=b"\340A\002\372A'\n%monitoring.googleapis.com/AlertPolicy", file=DESCRIPTOR, ) ], @@ -446,14 +431,16 @@ CreateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( "CreateAlertPolicyRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEALERTPOLICYREQUEST, - __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", - __doc__="""The protocol for the ``CreateAlertPolicy`` request. + { + "DESCRIPTOR": _CREATEALERTPOLICYREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.alert_service_pb2", + "__doc__": """The protocol for the ``CreateAlertPolicy`` request. + + Attributes: name: Required. The project in which to create the alerting policy. - The format is: :: projects/[PROJECT_ID_OR_NUMBER] Note + The format is: :: projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name @@ -467,17 +454,19 @@ the new policy, including a new ``[ALERT_POLICY_ID]`` value. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateAlertPolicyRequest) - ), + }, ) _sym_db.RegisterMessage(CreateAlertPolicyRequest) GetAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( "GetAlertPolicyRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETALERTPOLICYREQUEST, - __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", - __doc__="""The protocol for the ``GetAlertPolicy`` request. + { + "DESCRIPTOR": _GETALERTPOLICYREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.alert_service_pb2", + "__doc__": """The protocol for the ``GetAlertPolicy`` request. + + Attributes: name: Required. The alerting policy to retrieve. The format is: :: @@ -485,21 +474,23 @@ ] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetAlertPolicyRequest) - ), + }, ) _sym_db.RegisterMessage(GetAlertPolicyRequest) ListAlertPoliciesRequest = _reflection.GeneratedProtocolMessageType( "ListAlertPoliciesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTALERTPOLICIESREQUEST, - __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", - __doc__="""The protocol for the ``ListAlertPolicies`` request. + { + "DESCRIPTOR": _LISTALERTPOLICIESREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.alert_service_pb2", + "__doc__": """The protocol for the ``ListAlertPolicies`` request. + + Attributes: name: Required. The project whose alert policies are to be listed. - The format is: :: projects/[PROJECT_ID_OR_NUMBER] Note + The format is: :: projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policies to be listed are stored. To retrieve a single alerting policy by name, use the [GetAlertPolicy][googl @@ -528,17 +519,19 @@ results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesRequest) - ), + }, ) _sym_db.RegisterMessage(ListAlertPoliciesRequest) ListAlertPoliciesResponse = _reflection.GeneratedProtocolMessageType( "ListAlertPoliciesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTALERTPOLICIESRESPONSE, - __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", - __doc__="""The protocol for the ``ListAlertPolicies`` response. + { + "DESCRIPTOR": _LISTALERTPOLICIESRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.alert_service_pb2", + "__doc__": """The protocol for the ``ListAlertPolicies`` response. + + Attributes: alert_policies: The returned alert policies. @@ -549,23 +542,25 @@ this method. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesResponse) - ), + }, ) _sym_db.RegisterMessage(ListAlertPoliciesResponse) UpdateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( "UpdateAlertPolicyRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEALERTPOLICYREQUEST, - __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", - __doc__="""The protocol for the ``UpdateAlertPolicy`` request. + { + "DESCRIPTOR": _UPDATEALERTPOLICYREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.alert_service_pb2", + "__doc__": """The protocol for the ``UpdateAlertPolicy`` request. + + Attributes: update_mask: Optional. A list of alerting policy field names. If this field is not empty, each listed field in the existing alerting policy is set to the value of the corresponding field in the - supplied policy (``alert_policy``), or to the field's default + supplied policy (``alert_policy``), or to the field’s default value if the field is not in the supplied alerting policy. Fields not listed retain their previous value. Examples of valid field masks include ``display_name``, ``documentation``, @@ -589,17 +584,19 @@ ``update_mask`` are ignored. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateAlertPolicyRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateAlertPolicyRequest) DeleteAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( "DeleteAlertPolicyRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEALERTPOLICYREQUEST, - __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", - __doc__="""The protocol for the ``DeleteAlertPolicy`` request. + { + "DESCRIPTOR": _DELETEALERTPOLICYREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.alert_service_pb2", + "__doc__": """The protocol for the ``DeleteAlertPolicy`` request. + + Attributes: name: Required. The alerting policy to delete. The format is: :: @@ -608,7 +605,7 @@ [AlertPolicy][google.monitoring.v3.AlertPolicy]. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteAlertPolicyRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteAlertPolicyRequest) @@ -626,9 +623,7 @@ full_name="google.monitoring.v3.AlertPolicyService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read" - ), + serialized_options=b"\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read", serialized_start=1046, serialized_end=2100, methods=[ @@ -639,9 +634,7 @@ containing_service=None, input_type=_LISTALERTPOLICIESREQUEST, output_type=_LISTALERTPOLICIESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002%\022#/v3/{name=projects/*}/alertPolicies\332A\004name" - ), + serialized_options=b"\202\323\344\223\002%\022#/v3/{name=projects/*}/alertPolicies\332A\004name", ), _descriptor.MethodDescriptor( name="GetAlertPolicy", @@ -650,9 +643,7 @@ containing_service=None, input_type=_GETALERTPOLICYREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - serialized_options=_b( - "\202\323\344\223\002'\022%/v3/{name=projects/*/alertPolicies/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002'\022%/v3/{name=projects/*/alertPolicies/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateAlertPolicy", @@ -661,9 +652,7 @@ containing_service=None, input_type=_CREATEALERTPOLICYREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - serialized_options=_b( - '\202\323\344\223\0023"#/v3/{name=projects/*}/alertPolicies:\014alert_policy\332A\021name,alert_policy' - ), + serialized_options=b'\202\323\344\223\0023"#/v3/{name=projects/*}/alertPolicies:\014alert_policy\332A\021name,alert_policy', ), _descriptor.MethodDescriptor( name="DeleteAlertPolicy", @@ -672,9 +661,7 @@ containing_service=None, input_type=_DELETEALERTPOLICYREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002'*%/v3/{name=projects/*/alertPolicies/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002'*%/v3/{name=projects/*/alertPolicies/*}\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateAlertPolicy", @@ -683,9 +670,7 @@ containing_service=None, input_type=_UPDATEALERTPOLICYREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - serialized_options=_b( - "\202\323\344\223\002B22/v3/{alert_policy.name=projects/*/alertPolicies/*}:\014alert_policy\332A\030update_mask,alert_policy" - ), + serialized_options=b"\202\323\344\223\002B22/v3/{alert_policy.name=projects/*/alertPolicies/*}:\014alert_policy\332A\030update_mask,alert_policy", ), ], ) diff --git a/google/cloud/monitoring_v3/proto/common_pb2.py b/google/cloud/monitoring_v3/proto/common_pb2.py index 4c622375..39027515 100644 --- a/google/cloud/monitoring_v3/proto/common_pb2.py +++ b/google/cloud/monitoring_v3/proto/common_pb2.py @@ -3,9 +3,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/common.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -26,12 +23,8 @@ name="google/cloud/monitoring_v3/proto/common.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\013CommonProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n-google/cloud/monitoring_v3/proto/common.proto\x12\x14google.monitoring.v3\x1a\x1dgoogle/api/distribution.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xaa\x01\n\nTypedValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x36\n\x12\x64istribution_value\x18\x05 \x01(\x0b\x32\x18.google.api.DistributionH\x00\x42\x07\n\x05value"l\n\x0cTimeInterval\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xad\x07\n\x0b\x41ggregation\x12\x33\n\x10\x61lignment_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x12per_series_aligner\x18\x02 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Aligner\x12G\n\x14\x63ross_series_reducer\x18\x04 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Reducer\x12\x17\n\x0fgroup_by_fields\x18\x05 \x03(\t"\x8b\x03\n\x07\x41ligner\x12\x0e\n\nALIGN_NONE\x10\x00\x12\x0f\n\x0b\x41LIGN_DELTA\x10\x01\x12\x0e\n\nALIGN_RATE\x10\x02\x12\x15\n\x11\x41LIGN_INTERPOLATE\x10\x03\x12\x14\n\x10\x41LIGN_NEXT_OLDER\x10\x04\x12\r\n\tALIGN_MIN\x10\n\x12\r\n\tALIGN_MAX\x10\x0b\x12\x0e\n\nALIGN_MEAN\x10\x0c\x12\x0f\n\x0b\x41LIGN_COUNT\x10\r\x12\r\n\tALIGN_SUM\x10\x0e\x12\x10\n\x0c\x41LIGN_STDDEV\x10\x0f\x12\x14\n\x10\x41LIGN_COUNT_TRUE\x10\x10\x12\x15\n\x11\x41LIGN_COUNT_FALSE\x10\x18\x12\x17\n\x13\x41LIGN_FRACTION_TRUE\x10\x11\x12\x17\n\x13\x41LIGN_PERCENTILE_99\x10\x12\x12\x17\n\x13\x41LIGN_PERCENTILE_95\x10\x13\x12\x17\n\x13\x41LIGN_PERCENTILE_50\x10\x14\x12\x17\n\x13\x41LIGN_PERCENTILE_05\x10\x15\x12\x18\n\x14\x41LIGN_PERCENT_CHANGE\x10\x17"\xb1\x02\n\x07Reducer\x12\x0f\n\x0bREDUCE_NONE\x10\x00\x12\x0f\n\x0bREDUCE_MEAN\x10\x01\x12\x0e\n\nREDUCE_MIN\x10\x02\x12\x0e\n\nREDUCE_MAX\x10\x03\x12\x0e\n\nREDUCE_SUM\x10\x04\x12\x11\n\rREDUCE_STDDEV\x10\x05\x12\x10\n\x0cREDUCE_COUNT\x10\x06\x12\x15\n\x11REDUCE_COUNT_TRUE\x10\x07\x12\x16\n\x12REDUCE_COUNT_FALSE\x10\x0f\x12\x18\n\x14REDUCE_FRACTION_TRUE\x10\x08\x12\x18\n\x14REDUCE_PERCENTILE_99\x10\t\x12\x18\n\x14REDUCE_PERCENTILE_95\x10\n\x12\x18\n\x14REDUCE_PERCENTILE_50\x10\x0b\x12\x18\n\x14REDUCE_PERCENTILE_05\x10\x0c*\x9e\x01\n\x0e\x43omparisonType\x12\x1a\n\x16\x43OMPARISON_UNSPECIFIED\x10\x00\x12\x11\n\rCOMPARISON_GT\x10\x01\x12\x11\n\rCOMPARISON_GE\x10\x02\x12\x11\n\rCOMPARISON_LT\x10\x03\x12\x11\n\rCOMPARISON_LE\x10\x04\x12\x11\n\rCOMPARISON_EQ\x10\x05\x12\x11\n\rCOMPARISON_NE\x10\x06*a\n\x0bServiceTier\x12\x1c\n\x18SERVICE_TIER_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_TIER_BASIC\x10\x01\x12\x18\n\x14SERVICE_TIER_PREMIUM\x10\x02\x1a\x02\x18\x01\x42\xc3\x01\n\x18\x63om.google.monitoring.v3B\x0b\x43ommonProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\013CommonProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n-google/cloud/monitoring_v3/proto/common.proto\x12\x14google.monitoring.v3\x1a\x1dgoogle/api/distribution.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xaa\x01\n\nTypedValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x36\n\x12\x64istribution_value\x18\x05 \x01(\x0b\x32\x18.google.api.DistributionH\x00\x42\x07\n\x05value"l\n\x0cTimeInterval\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xad\x07\n\x0b\x41ggregation\x12\x33\n\x10\x61lignment_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x12per_series_aligner\x18\x02 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Aligner\x12G\n\x14\x63ross_series_reducer\x18\x04 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Reducer\x12\x17\n\x0fgroup_by_fields\x18\x05 \x03(\t"\x8b\x03\n\x07\x41ligner\x12\x0e\n\nALIGN_NONE\x10\x00\x12\x0f\n\x0b\x41LIGN_DELTA\x10\x01\x12\x0e\n\nALIGN_RATE\x10\x02\x12\x15\n\x11\x41LIGN_INTERPOLATE\x10\x03\x12\x14\n\x10\x41LIGN_NEXT_OLDER\x10\x04\x12\r\n\tALIGN_MIN\x10\n\x12\r\n\tALIGN_MAX\x10\x0b\x12\x0e\n\nALIGN_MEAN\x10\x0c\x12\x0f\n\x0b\x41LIGN_COUNT\x10\r\x12\r\n\tALIGN_SUM\x10\x0e\x12\x10\n\x0c\x41LIGN_STDDEV\x10\x0f\x12\x14\n\x10\x41LIGN_COUNT_TRUE\x10\x10\x12\x15\n\x11\x41LIGN_COUNT_FALSE\x10\x18\x12\x17\n\x13\x41LIGN_FRACTION_TRUE\x10\x11\x12\x17\n\x13\x41LIGN_PERCENTILE_99\x10\x12\x12\x17\n\x13\x41LIGN_PERCENTILE_95\x10\x13\x12\x17\n\x13\x41LIGN_PERCENTILE_50\x10\x14\x12\x17\n\x13\x41LIGN_PERCENTILE_05\x10\x15\x12\x18\n\x14\x41LIGN_PERCENT_CHANGE\x10\x17"\xb1\x02\n\x07Reducer\x12\x0f\n\x0bREDUCE_NONE\x10\x00\x12\x0f\n\x0bREDUCE_MEAN\x10\x01\x12\x0e\n\nREDUCE_MIN\x10\x02\x12\x0e\n\nREDUCE_MAX\x10\x03\x12\x0e\n\nREDUCE_SUM\x10\x04\x12\x11\n\rREDUCE_STDDEV\x10\x05\x12\x10\n\x0cREDUCE_COUNT\x10\x06\x12\x15\n\x11REDUCE_COUNT_TRUE\x10\x07\x12\x16\n\x12REDUCE_COUNT_FALSE\x10\x0f\x12\x18\n\x14REDUCE_FRACTION_TRUE\x10\x08\x12\x18\n\x14REDUCE_PERCENTILE_99\x10\t\x12\x18\n\x14REDUCE_PERCENTILE_95\x10\n\x12\x18\n\x14REDUCE_PERCENTILE_50\x10\x0b\x12\x18\n\x14REDUCE_PERCENTILE_05\x10\x0c*\x9e\x01\n\x0e\x43omparisonType\x12\x1a\n\x16\x43OMPARISON_UNSPECIFIED\x10\x00\x12\x11\n\rCOMPARISON_GT\x10\x01\x12\x11\n\rCOMPARISON_GE\x10\x02\x12\x11\n\rCOMPARISON_LT\x10\x03\x12\x11\n\rCOMPARISON_LE\x10\x04\x12\x11\n\rCOMPARISON_EQ\x10\x05\x12\x11\n\rCOMPARISON_NE\x10\x06*a\n\x0bServiceTier\x12\x1c\n\x18SERVICE_TIER_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_TIER_BASIC\x10\x01\x12\x18\n\x14SERVICE_TIER_PREMIUM\x10\x02\x1a\x02\x18\x01\x42\xc3\x01\n\x18\x63om.google.monitoring.v3B\x0b\x43ommonProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_distribution__pb2.DESCRIPTOR, google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, @@ -108,7 +101,7 @@ ), ], containing_type=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", serialized_start=1555, serialized_end=1652, ) @@ -393,7 +386,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -647,10 +640,12 @@ TypedValue = _reflection.GeneratedProtocolMessageType( "TypedValue", (_message.Message,), - dict( - DESCRIPTOR=_TYPEDVALUE, - __module__="google.cloud.monitoring_v3.proto.common_pb2", - __doc__="""A single strongly-typed value. + { + "DESCRIPTOR": _TYPEDVALUE, + "__module__": "google.cloud.monitoring_v3.proto.common_pb2", + "__doc__": """A single strongly-typed value. + + Attributes: value: The typed value field. @@ -668,33 +663,40 @@ A distribution value. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TypedValue) - ), + }, ) _sym_db.RegisterMessage(TypedValue) TimeInterval = _reflection.GeneratedProtocolMessageType( "TimeInterval", (_message.Message,), - dict( - DESCRIPTOR=_TIMEINTERVAL, - __module__="google.cloud.monitoring_v3.proto.common_pb2", - __doc__="""A closed time interval. It extends from the start time to the end - time, and includes both: ``[startTime, endTime]``. Valid time - intervals depend on the ```MetricKind`` `__ of the metric value. In no - case can the end time be earlier than the start time. - For a - ``GAUGE`` metric, the ``startTime`` value is technically optional; - if no value is specified, the start time defaults to the value of - the end time, and the interval represents a single point in time. - If both start and end times are specified, they must be identical. - Such an interval is valid only for ``GAUGE`` metrics, which are - point-in-time measurements. - For ``DELTA`` and ``CUMULATIVE`` - metrics, the start time must be earlier than the end time. - In - all cases, the start time of the next interval must be at least a - millisecond after the end time of the previous interval. Because the - interval is closed, if the start time of a new interval is the same - as the end time of the previous interval, data written at the new - start time could overwrite data written at the previous end time. + { + "DESCRIPTOR": _TIMEINTERVAL, + "__module__": "google.cloud.monitoring_v3.proto.common_pb2", + "__doc__": """A closed time interval. It extends from the start time to + the end time, and includes both: ``[startTime, endTime]``. Valid time + intervals depend on the + ```MetricKind`` `__ + of the metric value. In no case can the end time be earlier than the + start time. + + - For a ``GAUGE`` metric, the ``startTime`` value is technically + optional; if no value is specified, the start time defaults to the + value of the end time, and the interval represents a single point in + time. If both start and end times are specified, they must be + identical. Such an interval is valid only for ``GAUGE`` metrics, + which are point-in-time measurements. + + - For ``DELTA`` and ``CUMULATIVE`` metrics, the start time must be + earlier than the end time. + + - In all cases, the start time of the next interval must be at least a + millisecond after the end time of the previous interval. Because the + interval is closed, if the start time of a new interval is the same + as the end time of the previous interval, data written at the new + start time could overwrite data written at the previous end time. + + Attributes: end_time: Required. The end of the time interval. @@ -704,40 +706,46 @@ not be later than the end time. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeInterval) - ), + }, ) _sym_db.RegisterMessage(TimeInterval) Aggregation = _reflection.GeneratedProtocolMessageType( "Aggregation", (_message.Message,), - dict( - DESCRIPTOR=_AGGREGATION, - __module__="google.cloud.monitoring_v3.proto.common_pb2", - __doc__="""Describes how to combine multiple time series to provide a different + { + "DESCRIPTOR": _AGGREGATION, + "__module__": "google.cloud.monitoring_v3.proto.common_pb2", + "__doc__": """Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is *aligned* to the same time - interval boundaries, then the set of time series is optionally - *reduced* in number. Alignment consists of applying the - ``per_series_aligner`` operation to each time series after its data - has been divided into regular ``alignment_period`` time intervals. - This process takes *all* of the data points in an alignment period, - applies a mathematical transformation such as averaging, minimum, - maximum, delta, etc., and converts them into a single data point per - period. Reduction is when the aligned and transformed time series can - optionally be combined, reducing the number of time series through - similar mathematical transformations. Reduction involves applying a - ``cross_series_reducer`` to all the time series, optionally sorting - the time series into subsets with ``group_by_fields``, and applying - the reducer to each subset. The raw time series data can contain a - huge amount of information from multiple sources. Alignment and - reduction transforms this mass of data into a more manageable and - representative collection of data, for example "the 95% latency across - the average of all tasks in a cluster". This representative data can - be more easily graphed and comprehended, and the individual time - series data is still available for later drilldown. For more details, - see `Filtering and aggregation - `__. + interval boundaries, then the set of time series is optionally *reduced* + in number. + + Alignment consists of applying the ``per_series_aligner`` operation to + each time series after its data has been divided into regular + ``alignment_period`` time intervals. This process takes *all* of the + data points in an alignment period, applies a mathematical + transformation such as averaging, minimum, maximum, delta, etc., and + converts them into a single data point per period. + + Reduction is when the aligned and transformed time series can optionally + be combined, reducing the number of time series through similar + mathematical transformations. Reduction involves applying a + ``cross_series_reducer`` to all the time series, optionally sorting the + time series into subsets with ``group_by_fields``, and applying the + reducer to each subset. + + The raw time series data can contain a huge amount of information from + multiple sources. Alignment and reduction transforms this mass of data + into a more manageable and representative collection of data, for + example “the 95% latency across the average of all tasks in a cluster”. + This representative data can be more easily graphed and comprehended, + and the individual time series data is still available for later + drilldown. For more details, see `Filtering and + aggregation `__. + + Attributes: alignment_period: The ``alignment_period`` specifies a time interval, in @@ -799,7 +807,7 @@ ignored. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Aggregation) - ), + }, ) _sym_db.RegisterMessage(Aggregation) diff --git a/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py b/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py index 987cd9d4..5e27eaf3 100644 --- a/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py +++ b/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/dropped_labels.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/monitoring_v3/proto/dropped_labels.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\022DroppedLabelsProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n5google/cloud/monitoring_v3/proto/dropped_labels.proto\x12\x14google.monitoring.v3"|\n\rDroppedLabels\x12=\n\x05label\x18\x01 \x03(\x0b\x32..google.monitoring.v3.DroppedLabels.LabelEntry\x1a,\n\nLabelEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xca\x01\n\x18\x63om.google.monitoring.v3B\x12\x44roppedLabelsProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\022DroppedLabelsProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n5google/cloud/monitoring_v3/proto/dropped_labels.proto\x12\x14google.monitoring.v3"|\n\rDroppedLabels\x12=\n\x05label\x18\x01 \x03(\x0b\x32..google.monitoring.v3.DroppedLabels.LabelEntry\x1a,\n\nLabelEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xca\x01\n\x18\x63om.google.monitoring.v3B\x12\x44roppedLabelsProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', ) @@ -44,7 +37,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -62,7 +55,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -75,7 +68,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -130,38 +123,42 @@ DroppedLabels = _reflection.GeneratedProtocolMessageType( "DroppedLabels", (_message.Message,), - dict( - LabelEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelEntry": _reflection.GeneratedProtocolMessageType( "LabelEntry", (_message.Message,), - dict( - DESCRIPTOR=_DROPPEDLABELS_LABELENTRY, - __module__="google.cloud.monitoring_v3.proto.dropped_labels_pb2" + { + "DESCRIPTOR": _DROPPEDLABELS_LABELENTRY, + "__module__": "google.cloud.monitoring_v3.proto.dropped_labels_pb2" # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels.LabelEntry) - ), + }, ), - DESCRIPTOR=_DROPPEDLABELS, - __module__="google.cloud.monitoring_v3.proto.dropped_labels_pb2", - __doc__="""A set of (label, value) pairs which were dropped during aggregation, - attached to google.api.Distribution.Exemplars in - google.api.Distribution values during aggregation. These values are - used in combination with the label values that remain on the - aggregated Distribution timeseries to construct the full label set for - the exemplar values. The resulting full label set may be used to + "DESCRIPTOR": _DROPPEDLABELS, + "__module__": "google.cloud.monitoring_v3.proto.dropped_labels_pb2", + "__doc__": """A set of (label, value) pairs which were dropped during + aggregation, attached to google.api.Distribution.Exemplars in + google.api.Distribution values during aggregation. + + These values are used in combination with the label values that remain + on the aggregated Distribution timeseries to construct the full label + set for the exemplar values. The resulting full label set may be used to identify the specific task/job/instance (for example) which may be - contributing to a long-tail, while allowing the storage savings of - only storing aggregated distribution values for a large group. Note - that there are no guarantees on ordering of the labels from exemplar- - to-exemplar and from distribution-to-distribution in the same stream, - and there may be duplicates. It is up to clients to resolve any + contributing to a long-tail, while allowing the storage savings of only + storing aggregated distribution values for a large group. + + Note that there are no guarantees on ordering of the labels from + exemplar-to-exemplar and from distribution-to-distribution in the same + stream, and there may be duplicates. It is up to clients to resolve any ambiguities. + + Attributes: label: Map from label to its value, for all labels dropped in any aggregation. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) - ), + }, ) _sym_db.RegisterMessage(DroppedLabels) _sym_db.RegisterMessage(DroppedLabels.LabelEntry) diff --git a/google/cloud/monitoring_v3/proto/group_pb2.py b/google/cloud/monitoring_v3/proto/group_pb2.py index d619ac4f..40e28984 100644 --- a/google/cloud/monitoring_v3/proto/group_pb2.py +++ b/google/cloud/monitoring_v3/proto/group_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/group.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/monitoring_v3/proto/group.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\nGroupProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n,google/cloud/monitoring_v3/proto/group.proto\x12\x14google.monitoring.v3\x1a\x19google/api/resource.proto"\x80\x02\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0bparent_name\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\nis_cluster\x18\x06 \x01(\x08:\x99\x01\xea\x41\x95\x01\n\x1fmonitoring.googleapis.com/Group\x12!projects/{project}/groups/{group}\x12+organizations/{organization}/groups/{group}\x12\x1f\x66olders/{folder}/groups/{group}\x12\x01*B\xc2\x01\n\x18\x63om.google.monitoring.v3B\nGroupProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\nGroupProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n,google/cloud/monitoring_v3/proto/group.proto\x12\x14google.monitoring.v3\x1a\x19google/api/resource.proto"\x80\x02\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0bparent_name\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\nis_cluster\x18\x06 \x01(\x08:\x99\x01\xea\x41\x95\x01\n\x1fmonitoring.googleapis.com/Group\x12!projects/{project}/groups/{group}\x12+organizations/{organization}/groups/{group}\x12\x1f\x66olders/{folder}/groups/{group}\x12\x01*B\xc2\x01\n\x18\x63om.google.monitoring.v3B\nGroupProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[google_dot_api_dot_resource__pb2.DESCRIPTOR], ) @@ -48,7 +41,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -66,7 +59,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -84,7 +77,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -102,7 +95,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -133,9 +126,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A\225\001\n\037monitoring.googleapis.com/Group\022!projects/{project}/groups/{group}\022+organizations/{organization}/groups/{group}\022\037folders/{folder}/groups/{group}\022\001*" - ), + serialized_options=b"\352A\225\001\n\037monitoring.googleapis.com/Group\022!projects/{project}/groups/{group}\022+organizations/{organization}/groups/{group}\022\037folders/{folder}/groups/{group}\022\001*", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -150,31 +141,37 @@ Group = _reflection.GeneratedProtocolMessageType( "Group", (_message.Message,), - dict( - DESCRIPTOR=_GROUP, - __module__="google.cloud.monitoring_v3.proto.group_pb2", - __doc__="""The description of a dynamic collection of monitored resources. Each - group has a filter that is matched against monitored resources and - their associated metadata. If a group's filter matches an available - monitored resource, then that resource is a member of that group. - Groups can contain any number of monitored resources, and each - monitored resource can be a member of any number of groups. Groups - can be nested in parent-child hierarchies. The ``parentName`` field - identifies an optional parent for each group. If a group has a parent, - then the only monitored resources available to be matched by the - group's filter are the resources contained in the parent group. In - other words, a group contains the monitored resources that match its - filter and the filters of all the group's ancestors. A group without a - parent can contain any monitored resource. For example, consider an - infrastructure running a set of instances with two user-defined tags: - ``"environment"`` and ``"role"``. A parent group has a filter, - ``environment="production"``. A child of that parent group has a - filter, ``role="transcoder"``. The parent group contains all instances - in the production environment, regardless of their roles. The child - group contains instances that have the transcoder role *and* are in - the production environment. The monitored resources contained in a - group can change at any moment, depending on what resources exist and - what filters are associated with the group and its ancestors. + { + "DESCRIPTOR": _GROUP, + "__module__": "google.cloud.monitoring_v3.proto.group_pb2", + "__doc__": """The description of a dynamic collection of monitored + resources. Each group has a filter that is matched against monitored + resources and their associated metadata. If a group’s filter matches an + available monitored resource, then that resource is a member of that + group. Groups can contain any number of monitored resources, and each + monitored resource can be a member of any number of groups. + + Groups can be nested in parent-child hierarchies. The ``parentName`` + field identifies an optional parent for each group. If a group has a + parent, then the only monitored resources available to be matched by the + group’s filter are the resources contained in the parent group. In other + words, a group contains the monitored resources that match its filter + and the filters of all the group’s ancestors. A group without a parent + can contain any monitored resource. + + For example, consider an infrastructure running a set of instances with + two user-defined tags: ``"environment"`` and ``"role"``. A parent group + has a filter, ``environment="production"``. A child of that parent group + has a filter, ``role="transcoder"``. The parent group contains all + instances in the production environment, regardless of their roles. The + child group contains instances that have the transcoder role *and* are + in the production environment. + + The monitored resources contained in a group can change at any moment, + depending on what resources exist and what filters are associated with + the group and its ancestors. + + Attributes: name: Output only. The name of this group. The format is: :: @@ -187,8 +184,8 @@ A user-assigned name for this group, used only for display purposes. parent_name: - The name of the group's parent, if it has one. The format is: - :: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] For + The name of the group’s parent, if it has one. The format is: + :: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] For groups with no parent, ``parent_name`` is the empty string, ``""``. filter: @@ -200,7 +197,7 @@ that are clusters. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Group) - ), + }, ) _sym_db.RegisterMessage(Group) diff --git a/google/cloud/monitoring_v3/proto/group_service_pb2.py b/google/cloud/monitoring_v3/proto/group_service_pb2.py index ccaa4243..e5795f04 100644 --- a/google/cloud/monitoring_v3/proto/group_service_pb2.py +++ b/google/cloud/monitoring_v3/proto/group_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/group_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -35,12 +32,8 @@ name="google/cloud/monitoring_v3/proto/group_service.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\021GroupServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n4google/cloud/monitoring_v3/proto/group_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a,google/cloud/monitoring_v3/proto/group.proto\x1a\x1bgoogle/protobuf/empty.proto"\xc8\x02\n\x11ListGroupsRequest\x12\x35\n\x04name\x18\x07 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmonitoring.googleapis.com/Group\x12\x41\n\x11\x63hildren_of_group\x18\x02 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x42\n\x12\x61ncestors_of_group\x18\x03 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x44\n\x14\x64\x65scendants_of_group\x18\x04 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\tB\x08\n\x06\x66ilter"Y\n\x12ListGroupsResponse\x12*\n\x05group\x18\x01 \x03(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x0fGetGroupRequest\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group"\x93\x01\n\x12\x43reateGroupRequest\x12\x35\n\x04name\x18\x04 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmonitoring.googleapis.com/Group\x12/\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.GroupB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08"\\\n\x12UpdateGroupRequest\x12/\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.GroupB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08"^\n\x12\x44\x65leteGroupRequest\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group\x12\x11\n\trecursive\x18\x04 \x01(\x08"\xbd\x01\n\x17ListGroupMembersRequest\x12\x35\n\x04name\x18\x07 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x34\n\x08interval\x18\x06 \x01(\x0b\x32".google.monitoring.v3.TimeInterval"w\n\x18ListGroupMembersResponse\x12.\n\x07members\x18\x01 \x03(\x0b\x32\x1d.google.api.MonitoredResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\x98\x08\n\x0cGroupService\x12\x8c\x01\n\nListGroups\x12\'.google.monitoring.v3.ListGroupsRequest\x1a(.google.monitoring.v3.ListGroupsResponse"+\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v3/{name=projects/*}/groups\xda\x41\x04name\x12}\n\x08GetGroup\x12%.google.monitoring.v3.GetGroupRequest\x1a\x1b.google.monitoring.v3.Group"-\x82\xd3\xe4\x93\x02 \x12\x1e/v3/{name=projects/*/groups/*}\xda\x41\x04name\x12\x8e\x01\n\x0b\x43reateGroup\x12(.google.monitoring.v3.CreateGroupRequest\x1a\x1b.google.monitoring.v3.Group"8\x82\xd3\xe4\x93\x02%"\x1c/v3/{name=projects/*}/groups:\x05group\xda\x41\nname,group\x12\x91\x01\n\x0bUpdateGroup\x12(.google.monitoring.v3.UpdateGroupRequest\x1a\x1b.google.monitoring.v3.Group";\x82\xd3\xe4\x93\x02-\x1a$/v3/{group.name=projects/*/groups/*}:\x05group\xda\x41\x05group\x12~\n\x0b\x44\x65leteGroup\x12(.google.monitoring.v3.DeleteGroupRequest\x1a\x16.google.protobuf.Empty"-\x82\xd3\xe4\x93\x02 *\x1e/v3/{name=projects/*/groups/*}\xda\x41\x04name\x12\xa8\x01\n\x10ListGroupMembers\x12-.google.monitoring.v3.ListGroupMembersRequest\x1a..google.monitoring.v3.ListGroupMembersResponse"5\x82\xd3\xe4\x93\x02(\x12&/v3/{name=projects/*/groups/*}/members\xda\x41\x04name\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xc9\x01\n\x18\x63om.google.monitoring.v3B\x11GroupServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\021GroupServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n4google/cloud/monitoring_v3/proto/group_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a,google/cloud/monitoring_v3/proto/group.proto\x1a\x1bgoogle/protobuf/empty.proto"\xc8\x02\n\x11ListGroupsRequest\x12\x35\n\x04name\x18\x07 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmonitoring.googleapis.com/Group\x12\x41\n\x11\x63hildren_of_group\x18\x02 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x42\n\x12\x61ncestors_of_group\x18\x03 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x44\n\x14\x64\x65scendants_of_group\x18\x04 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\tB\x08\n\x06\x66ilter"Y\n\x12ListGroupsResponse\x12*\n\x05group\x18\x01 \x03(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x0fGetGroupRequest\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group"\x93\x01\n\x12\x43reateGroupRequest\x12\x35\n\x04name\x18\x04 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmonitoring.googleapis.com/Group\x12/\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.GroupB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08"\\\n\x12UpdateGroupRequest\x12/\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.GroupB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08"^\n\x12\x44\x65leteGroupRequest\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group\x12\x11\n\trecursive\x18\x04 \x01(\x08"\xbd\x01\n\x17ListGroupMembersRequest\x12\x35\n\x04name\x18\x07 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x34\n\x08interval\x18\x06 \x01(\x0b\x32".google.monitoring.v3.TimeInterval"w\n\x18ListGroupMembersResponse\x12.\n\x07members\x18\x01 \x03(\x0b\x32\x1d.google.api.MonitoredResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\x98\x08\n\x0cGroupService\x12\x8c\x01\n\nListGroups\x12\'.google.monitoring.v3.ListGroupsRequest\x1a(.google.monitoring.v3.ListGroupsResponse"+\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v3/{name=projects/*}/groups\xda\x41\x04name\x12}\n\x08GetGroup\x12%.google.monitoring.v3.GetGroupRequest\x1a\x1b.google.monitoring.v3.Group"-\x82\xd3\xe4\x93\x02 \x12\x1e/v3/{name=projects/*/groups/*}\xda\x41\x04name\x12\x8e\x01\n\x0b\x43reateGroup\x12(.google.monitoring.v3.CreateGroupRequest\x1a\x1b.google.monitoring.v3.Group"8\x82\xd3\xe4\x93\x02%"\x1c/v3/{name=projects/*}/groups:\x05group\xda\x41\nname,group\x12\x91\x01\n\x0bUpdateGroup\x12(.google.monitoring.v3.UpdateGroupRequest\x1a\x1b.google.monitoring.v3.Group";\x82\xd3\xe4\x93\x02-\x1a$/v3/{group.name=projects/*/groups/*}:\x05group\xda\x41\x05group\x12~\n\x0b\x44\x65leteGroup\x12(.google.monitoring.v3.DeleteGroupRequest\x1a\x16.google.protobuf.Empty"-\x82\xd3\xe4\x93\x02 *\x1e/v3/{name=projects/*/groups/*}\xda\x41\x04name\x12\xa8\x01\n\x10ListGroupMembers\x12-.google.monitoring.v3.ListGroupMembersRequest\x1a..google.monitoring.v3.ListGroupMembersResponse"5\x82\xd3\xe4\x93\x02(\x12&/v3/{name=projects/*/groups/*}/members\xda\x41\x04name\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xc9\x01\n\x18\x63om.google.monitoring.v3B\x11GroupServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -70,15 +63,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A!\022\037monitoring.googleapis.com/Group" - ), + serialized_options=b"\340A\002\372A!\022\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -90,13 +81,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\372A!\n\037monitoring.googleapis.com/Group"), + serialized_options=b"\372A!\n\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -108,13 +99,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\372A!\n\037monitoring.googleapis.com/Group"), + serialized_options=b"\372A!\n\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -126,13 +117,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\372A!\n\037monitoring.googleapis.com/Group"), + serialized_options=b"\372A!\n\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -162,7 +153,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -227,7 +218,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -266,15 +257,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A!\n\037monitoring.googleapis.com/Group" - ), + serialized_options=b"\340A\002\372A!\n\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ) ], @@ -307,15 +296,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A!\022\037monitoring.googleapis.com/Group" - ), + serialized_options=b"\340A\002\372A!\022\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -333,7 +320,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -390,7 +377,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -441,15 +428,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A!\n\037monitoring.googleapis.com/Group" - ), + serialized_options=b"\340A\002\372A!\n\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -500,15 +485,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A!\n\037monitoring.googleapis.com/Group" - ), + serialized_options=b"\340A\002\372A!\n\037monitoring.googleapis.com/Group", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -538,7 +521,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -556,7 +539,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -631,7 +614,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -719,14 +702,16 @@ ListGroupsRequest = _reflection.GeneratedProtocolMessageType( "ListGroupsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTGROUPSREQUEST, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``ListGroup`` request. + { + "DESCRIPTOR": _LISTGROUPSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``ListGroup`` request. + + Attributes: name: Required. The project whose groups are to be listed. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] filter: An optional filter consisting of a single group name. The filters limit the groups returned based on their parent-child @@ -760,17 +745,19 @@ additional results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsRequest) - ), + }, ) _sym_db.RegisterMessage(ListGroupsRequest) ListGroupsResponse = _reflection.GeneratedProtocolMessageType( "ListGroupsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTGROUPSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``ListGroups`` response. + { + "DESCRIPTOR": _LISTGROUPSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``ListGroups`` response. + + Attributes: group: The groups that match the specified filters. @@ -781,38 +768,42 @@ this method. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsResponse) - ), + }, ) _sym_db.RegisterMessage(ListGroupsResponse) GetGroupRequest = _reflection.GeneratedProtocolMessageType( "GetGroupRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETGROUPREQUEST, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``GetGroup`` request. + { + "DESCRIPTOR": _GETGROUPREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``GetGroup`` request. + + Attributes: name: Required. The group to retrieve. The format is: :: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetGroupRequest) - ), + }, ) _sym_db.RegisterMessage(GetGroupRequest) CreateGroupRequest = _reflection.GeneratedProtocolMessageType( "CreateGroupRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEGROUPREQUEST, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``CreateGroup`` request. + { + "DESCRIPTOR": _CREATEGROUPREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``CreateGroup`` request. + + Attributes: name: Required. The project in which to create the group. The format - is: :: projects/[PROJECT_ID_OR_NUMBER] + is: :: projects/[PROJECT_ID_OR_NUMBER] group: Required. A group definition. It is an error to define the ``name`` field because the system assigns the name. @@ -820,17 +811,19 @@ If true, validate this request but do not create the group. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateGroupRequest) - ), + }, ) _sym_db.RegisterMessage(CreateGroupRequest) UpdateGroupRequest = _reflection.GeneratedProtocolMessageType( "UpdateGroupRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEGROUPREQUEST, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``UpdateGroup`` request. + { + "DESCRIPTOR": _UPDATEGROUPREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``UpdateGroup`` request. + + Attributes: group: Required. The new definition of the group. All fields of the @@ -841,18 +834,20 @@ group. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateGroupRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateGroupRequest) DeleteGroupRequest = _reflection.GeneratedProtocolMessageType( "DeleteGroupRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEGROUPREQUEST, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``DeleteGroup`` request. The default behavior is to be able to - delete a single group without any descendants. + { + "DESCRIPTOR": _DELETEGROUPREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``DeleteGroup`` request. The default behavior is to be + able to delete a single group without any descendants. + + Attributes: name: Required. The group to delete. The format is: :: @@ -864,21 +859,23 @@ value is false. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteGroupRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteGroupRequest) ListGroupMembersRequest = _reflection.GeneratedProtocolMessageType( "ListGroupMembersRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTGROUPMEMBERSREQUEST, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``ListGroupMembers`` request. + { + "DESCRIPTOR": _LISTGROUPMEMBERSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``ListGroupMembers`` request. + + Attributes: name: Required. The group whose members are listed. The format is: - :: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + :: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] page_size: A positive number that is the maximum number of results to return. @@ -893,7 +890,7 @@ returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine - VM instances, use this filter: :: `resource.type = + VM instances, use this filter: :: `resource.type = "gce_instance"` interval: An optional time interval for which results should be @@ -903,17 +900,19 @@ minute is returned. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersRequest) - ), + }, ) _sym_db.RegisterMessage(ListGroupMembersRequest) ListGroupMembersResponse = _reflection.GeneratedProtocolMessageType( "ListGroupMembersResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTGROUPMEMBERSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``ListGroupMembers`` response. + { + "DESCRIPTOR": _LISTGROUPMEMBERSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.group_service_pb2", + "__doc__": """The ``ListGroupMembers`` response. + + Attributes: members: A set of monitored resources in the group. @@ -926,7 +925,7 @@ The total number of elements matching this request. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersResponse) - ), + }, ) _sym_db.RegisterMessage(ListGroupMembersResponse) @@ -948,9 +947,7 @@ full_name="google.monitoring.v3.GroupService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read" - ), + serialized_options=b"\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read", serialized_start=1502, serialized_end=2550, methods=[ @@ -961,9 +958,7 @@ containing_service=None, input_type=_LISTGROUPSREQUEST, output_type=_LISTGROUPSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002\036\022\034/v3/{name=projects/*}/groups\332A\004name" - ), + serialized_options=b"\202\323\344\223\002\036\022\034/v3/{name=projects/*}/groups\332A\004name", ), _descriptor.MethodDescriptor( name="GetGroup", @@ -972,9 +967,7 @@ containing_service=None, input_type=_GETGROUPREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - serialized_options=_b( - "\202\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateGroup", @@ -983,9 +976,7 @@ containing_service=None, input_type=_CREATEGROUPREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - serialized_options=_b( - '\202\323\344\223\002%"\034/v3/{name=projects/*}/groups:\005group\332A\nname,group' - ), + serialized_options=b'\202\323\344\223\002%"\034/v3/{name=projects/*}/groups:\005group\332A\nname,group', ), _descriptor.MethodDescriptor( name="UpdateGroup", @@ -994,9 +985,7 @@ containing_service=None, input_type=_UPDATEGROUPREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - serialized_options=_b( - "\202\323\344\223\002-\032$/v3/{group.name=projects/*/groups/*}:\005group\332A\005group" - ), + serialized_options=b"\202\323\344\223\002-\032$/v3/{group.name=projects/*/groups/*}:\005group\332A\005group", ), _descriptor.MethodDescriptor( name="DeleteGroup", @@ -1005,9 +994,7 @@ containing_service=None, input_type=_DELETEGROUPREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002 *\036/v3/{name=projects/*/groups/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002 *\036/v3/{name=projects/*/groups/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListGroupMembers", @@ -1016,9 +1003,7 @@ containing_service=None, input_type=_LISTGROUPMEMBERSREQUEST, output_type=_LISTGROUPMEMBERSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002(\022&/v3/{name=projects/*/groups/*}/members\332A\004name" - ), + serialized_options=b"\202\323\344\223\002(\022&/v3/{name=projects/*/groups/*}/members\332A\004name", ), ], ) diff --git a/google/cloud/monitoring_v3/proto/metric_pb2.py b/google/cloud/monitoring_v3/proto/metric_pb2.py index 12e6a6e6..b045d5be 100644 --- a/google/cloud/monitoring_v3/proto/metric_pb2.py +++ b/google/cloud/monitoring_v3/proto/metric_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/metric.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -31,12 +28,8 @@ name="google/cloud/monitoring_v3/proto/metric.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\013MetricProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n-google/cloud/monitoring_v3/proto/metric.proto\x12\x14google.monitoring.v3\x1a\x1dgoogle/api/distribution.proto\x1a\x16google/api/label.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto"n\n\x05Point\x12\x34\n\x08interval\x18\x01 \x01(\x0b\x32".google.monitoring.v3.TimeInterval\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .google.monitoring.v3.TypedValue"\xc1\x02\n\nTimeSeries\x12"\n\x06metric\x18\x01 \x01(\x0b\x32\x12.google.api.Metric\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.google.api.MonitoredResource\x12\x37\n\x08metadata\x18\x07 \x01(\x0b\x32%.google.api.MonitoredResourceMetadata\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind\x12:\n\nvalue_type\x18\x04 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12+\n\x06points\x18\x05 \x03(\x0b\x32\x1b.google.monitoring.v3.Point"\xc0\x02\n\x14TimeSeriesDescriptor\x12\x36\n\x11label_descriptors\x18\x01 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12U\n\x11point_descriptors\x18\x05 \x03(\x0b\x32:.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor\x1a\x98\x01\n\x0fValueDescriptor\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\nvalue_type\x18\x02 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind"\x86\x02\n\x0eTimeSeriesData\x12\x36\n\x0clabel_values\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.LabelValue\x12\x42\n\npoint_data\x18\x02 \x03(\x0b\x32..google.monitoring.v3.TimeSeriesData.PointData\x1ax\n\tPointData\x12\x30\n\x06values\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TypedValue\x12\x39\n\rtime_interval\x18\x02 \x01(\x0b\x32".google.monitoring.v3.TimeInterval"Z\n\nLabelValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x42\x07\n\x05value"Q\n\nQueryError\x12\x32\n\x07locator\x18\x01 \x01(\x0b\x32!.google.monitoring.v3.TextLocator\x12\x0f\n\x07message\x18\x02 \x01(\t"\xa0\x02\n\x0bTextLocator\x12\x0e\n\x06source\x18\x01 \x01(\t\x12\x42\n\x0estart_position\x18\x02 \x01(\x0b\x32*.google.monitoring.v3.TextLocator.Position\x12@\n\x0c\x65nd_position\x18\x03 \x01(\x0b\x32*.google.monitoring.v3.TextLocator.Position\x12\x39\n\x0enested_locator\x18\x04 \x01(\x0b\x32!.google.monitoring.v3.TextLocator\x12\x16\n\x0enesting_reason\x18\x05 \x01(\t\x1a(\n\x08Position\x12\x0c\n\x04line\x18\x01 \x01(\x05\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\x05\x42\xc3\x01\n\x18\x63om.google.monitoring.v3B\x0bMetricProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\013MetricProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n-google/cloud/monitoring_v3/proto/metric.proto\x12\x14google.monitoring.v3\x1a\x1dgoogle/api/distribution.proto\x1a\x16google/api/label.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto"n\n\x05Point\x12\x34\n\x08interval\x18\x01 \x01(\x0b\x32".google.monitoring.v3.TimeInterval\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .google.monitoring.v3.TypedValue"\xc1\x02\n\nTimeSeries\x12"\n\x06metric\x18\x01 \x01(\x0b\x32\x12.google.api.Metric\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.google.api.MonitoredResource\x12\x37\n\x08metadata\x18\x07 \x01(\x0b\x32%.google.api.MonitoredResourceMetadata\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind\x12:\n\nvalue_type\x18\x04 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12+\n\x06points\x18\x05 \x03(\x0b\x32\x1b.google.monitoring.v3.Point"\xc0\x02\n\x14TimeSeriesDescriptor\x12\x36\n\x11label_descriptors\x18\x01 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12U\n\x11point_descriptors\x18\x05 \x03(\x0b\x32:.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor\x1a\x98\x01\n\x0fValueDescriptor\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\nvalue_type\x18\x02 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind"\x86\x02\n\x0eTimeSeriesData\x12\x36\n\x0clabel_values\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.LabelValue\x12\x42\n\npoint_data\x18\x02 \x03(\x0b\x32..google.monitoring.v3.TimeSeriesData.PointData\x1ax\n\tPointData\x12\x30\n\x06values\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TypedValue\x12\x39\n\rtime_interval\x18\x02 \x01(\x0b\x32".google.monitoring.v3.TimeInterval"Z\n\nLabelValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x42\x07\n\x05value"Q\n\nQueryError\x12\x32\n\x07locator\x18\x01 \x01(\x0b\x32!.google.monitoring.v3.TextLocator\x12\x0f\n\x07message\x18\x02 \x01(\t"\xa0\x02\n\x0bTextLocator\x12\x0e\n\x06source\x18\x01 \x01(\t\x12\x42\n\x0estart_position\x18\x02 \x01(\x0b\x32*.google.monitoring.v3.TextLocator.Position\x12@\n\x0c\x65nd_position\x18\x03 \x01(\x0b\x32*.google.monitoring.v3.TextLocator.Position\x12\x39\n\x0enested_locator\x18\x04 \x01(\x0b\x32!.google.monitoring.v3.TextLocator\x12\x16\n\x0enesting_reason\x18\x05 \x01(\t\x1a(\n\x08Position\x12\x0c\n\x04line\x18\x01 \x01(\x05\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\x05\x42\xc3\x01\n\x18\x63om.google.monitoring.v3B\x0bMetricProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_distribution__pb2.DESCRIPTOR, google_dot_api_dot_label__pb2.DESCRIPTOR, @@ -250,7 +243,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -530,7 +523,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -595,7 +588,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -690,7 +683,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -762,7 +755,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -871,10 +864,12 @@ Point = _reflection.GeneratedProtocolMessageType( "Point", (_message.Message,), - dict( - DESCRIPTOR=_POINT, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A single data point in a time series. + { + "DESCRIPTOR": _POINT, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """A single data point in a time series. + + Attributes: interval: The time interval to which the data point applies. For @@ -892,20 +887,23 @@ The value of the data point. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Point) - ), + }, ) _sym_db.RegisterMessage(Point) TimeSeries = _reflection.GeneratedProtocolMessageType( "TimeSeries", (_message.Message,), - dict( - DESCRIPTOR=_TIMESERIES, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A collection of data points that describes the time-varying values of - a metric. A time series is identified by a combination of a fully- - specified monitored resource and a fully-specified metric. This type - is used for both listing and creating time series. + { + "DESCRIPTOR": _TIMESERIES, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """A collection of data points that describes the + time-varying values of a metric. A time series is identified by a + combination of a fully-specified monitored resource and a + fully-specified metric. This type is used for both listing and creating + time series. + + Attributes: metric: The associated metric. A fully-specified metric used to @@ -925,7 +923,7 @@ reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated - metric's descriptor must be auto-created, then this field + metric’s descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either ``GAUGE`` (the default) or ``CUMULATIVE``. value_type: @@ -939,28 +937,30 @@ The data points of this time series. When listing time series, points are returned in reverse time order. When creating a time series, this field must contain exactly one point and the - point's type must be the same as the value type of the - associated metric. If the associated metric's descriptor must + point’s type must be the same as the value type of the + associated metric. If the associated metric’s descriptor must be auto-created, then the value type of the descriptor is - determined by the point's type, which must be ``BOOL``, + determined by the point’s type, which must be ``BOOL``, ``INT64``, ``DOUBLE``, or ``DISTRIBUTION``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeries) - ), + }, ) _sym_db.RegisterMessage(TimeSeries) TimeSeriesDescriptor = _reflection.GeneratedProtocolMessageType( "TimeSeriesDescriptor", (_message.Message,), - dict( - ValueDescriptor=_reflection.GeneratedProtocolMessageType( + { + "ValueDescriptor": _reflection.GeneratedProtocolMessageType( "ValueDescriptor", (_message.Message,), - dict( - DESCRIPTOR=_TIMESERIESDESCRIPTOR_VALUEDESCRIPTOR, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A descriptor for the value columns in a data point. + { + "DESCRIPTOR": _TIMESERIESDESCRIPTOR_VALUEDESCRIPTOR, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """A descriptor for the value columns in a data point. + + Attributes: key: The value key. @@ -970,11 +970,13 @@ The value stream kind. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) - ), + }, ), - DESCRIPTOR=_TIMESERIESDESCRIPTOR, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A descriptor for the labels and points in a timeseries. + "DESCRIPTOR": _TIMESERIESDESCRIPTOR, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """A descriptor for the labels and points in a timeseries. + + Attributes: label_descriptors: Descriptors for the labels. @@ -982,7 +984,7 @@ Descriptors for the point data value columns. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesDescriptor) - ), + }, ) _sym_db.RegisterMessage(TimeSeriesDescriptor) _sym_db.RegisterMessage(TimeSeriesDescriptor.ValueDescriptor) @@ -990,16 +992,19 @@ TimeSeriesData = _reflection.GeneratedProtocolMessageType( "TimeSeriesData", (_message.Message,), - dict( - PointData=_reflection.GeneratedProtocolMessageType( + { + "PointData": _reflection.GeneratedProtocolMessageType( "PointData", (_message.Message,), - dict( - DESCRIPTOR=_TIMESERIESDATA_POINTDATA, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A point's value columns and time interval. Each point has one or more - point values corresponding to the entries in ``point_descriptors`` - field in the TimeSeriesDescriptor associated with this object. + { + "DESCRIPTOR": _TIMESERIESDATA_POINTDATA, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """A point’s value columns and time interval. Each point has + one or more point values corresponding to the entries in + ``point_descriptors`` field in the TimeSeriesDescriptor associated with + this object. + + Attributes: values: The values that make up the point. @@ -1007,12 +1012,14 @@ The time interval associated with the point. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesData.PointData) - ), + }, ), - DESCRIPTOR=_TIMESERIESDATA, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""Represents the values of a time series associated with a + "DESCRIPTOR": _TIMESERIESDATA, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """Represents the values of a time series associated with a TimeSeriesDescriptor. + + Attributes: label_values: The values of the labels in the time series identifier, given @@ -1024,7 +1031,7 @@ The points in the time series. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesData) - ), + }, ) _sym_db.RegisterMessage(TimeSeriesData) _sym_db.RegisterMessage(TimeSeriesData.PointData) @@ -1032,10 +1039,12 @@ LabelValue = _reflection.GeneratedProtocolMessageType( "LabelValue", (_message.Message,), - dict( - DESCRIPTOR=_LABELVALUE, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A label value. + { + "DESCRIPTOR": _LABELVALUE, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """A label value. + + Attributes: value: The label value can be a bool, int64, or string. @@ -1047,18 +1056,20 @@ A string label value. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.LabelValue) - ), + }, ) _sym_db.RegisterMessage(LabelValue) QueryError = _reflection.GeneratedProtocolMessageType( "QueryError", (_message.Message,), - dict( - DESCRIPTOR=_QUERYERROR, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""An error associated with a query in the time series query language - format. + { + "DESCRIPTOR": _QUERYERROR, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """An error associated with a query in the time series query + language format. + + Attributes: locator: The location of the time series query language text that this @@ -1067,21 +1078,23 @@ The error message. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryError) - ), + }, ) _sym_db.RegisterMessage(QueryError) TextLocator = _reflection.GeneratedProtocolMessageType( "TextLocator", (_message.Message,), - dict( - Position=_reflection.GeneratedProtocolMessageType( + { + "Position": _reflection.GeneratedProtocolMessageType( "Position", (_message.Message,), - dict( - DESCRIPTOR=_TEXTLOCATOR_POSITION, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""The position of a byte within the text. + { + "DESCRIPTOR": _TEXTLOCATOR_POSITION, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """The position of a byte within the text. + + Attributes: line: The line, starting with 1, where the byte is positioned. @@ -1091,25 +1104,34 @@ UTF-8. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator.Position) - ), + }, ), - DESCRIPTOR=_TEXTLOCATOR, - __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A locator for text. Indicates a particular part of the text of a - request or of an object referenced in the request. For example, - suppose the request field ``text`` contains: text: "The quick brown - fox jumps over the lazy dog." Then the locator: source: "text" - start\_position { line: 1 column: 17 } end\_position { line: 1 column: - 19 } refers to the part of the text: "fox". + "DESCRIPTOR": _TEXTLOCATOR, + "__module__": "google.cloud.monitoring_v3.proto.metric_pb2", + "__doc__": """A locator for text. Indicates a particular part of the + text of a request or of an object referenced in the request. + + For example, suppose the request field ``text`` contains: + + text: “The quick brown fox jumps over the lazy dog.” + + Then the locator: + + source: “text” start_position { line: 1 column: 17 } end_position { + line: 1 column: 19 } + + refers to the part of the text: “fox”. + + Attributes: source: The source of the text. The source may be a field in the request, in which case its format is the format of the google.rpc.BadRequest.FieldViolation.field field in - https://cloud.google.com/apis/design/errors#error\_details. It - may also be be a source other than the request field (e.g. a + https://cloud.google.com/apis/design/errors#error_details. It + may also be be a source other than the request field (e.g. a macro definition referenced in the text of the query), in - which case this is the name of the source (e.g. the macro + which case this is the name of the source (e.g. the macro name). start_position: The position of the first byte within the text. @@ -1117,21 +1139,21 @@ The position of the last byte within the text. nested_locator: If ``source``, ``start_position``, and ``end_position`` - describe a call on some object (e.g. a macro in the time + describe a call on some object (e.g. a macro in the time series query language text) and a location is to be designated - in that object's text, ``nested_locator`` identifies the + in that object’s text, ``nested_locator`` identifies the location within that object. nesting_reason: When ``nested_locator`` is set, this field gives the reason for the nesting. Usually, the reason is a macro invocation. In - that case, the macro name (including the leading '@') signals + that case, the macro name (including the leading ‘@’) signals the location of the macro call in the text and a macro - argument name (including the leading '$') signals the location + argument name (including the leading ‘$’) signals the location of the macro argument inside the macro body that got substituted away. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator) - ), + }, ) _sym_db.RegisterMessage(TextLocator) _sym_db.RegisterMessage(TextLocator.Position) diff --git a/google/cloud/monitoring_v3/proto/metric_service_pb2.py b/google/cloud/monitoring_v3/proto/metric_service_pb2.py index bb301025..19a5cc2c 100644 --- a/google/cloud/monitoring_v3/proto/metric_service_pb2.py +++ b/google/cloud/monitoring_v3/proto/metric_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/metric_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -41,12 +38,8 @@ name="google/cloud/monitoring_v3/proto/metric_service.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\022MetricServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3\352A\360\001\n*monitoring.googleapis.com/MetricDescriptor\022;projects/{project}/metricDescriptors/{metric_descriptor=**}\022Eorganizations/{organization}/metricDescriptors/{metric_descriptor=**}\0229folders/{folder}/metricDescriptors/{metric_descriptor=**}\022\001* \001\352A\267\002\n5monitoring.googleapis.com/MonitoredResourceDescriptor\022Oprojects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}\022Yorganizations/{organization}/monitoredResourceDescriptors/{monitored_resource_descriptor}\022Mfolders/{folder}/monitoredResourceDescriptors/{monitored_resource_descriptor}\022\001* \001" - ), - serialized_pb=_b( - '\n5google/cloud/monitoring_v3/proto/metric_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a-google/cloud/monitoring_v3/proto/metric.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto"\xad\x01\n\'ListMonitoredResourceDescriptorsRequest\x12K\n\x04name\x18\x05 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35monitoring.googleapis.com/MonitoredResourceDescriptor\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x8a\x01\n(ListMonitoredResourceDescriptorsResponse\x12\x45\n\x14resource_descriptors\x18\x01 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"t\n%GetMonitoredResourceDescriptorRequest\x12K\n\x04name\x18\x03 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5monitoring.googleapis.com/MonitoredResourceDescriptor"\x97\x01\n\x1cListMetricDescriptorsRequest\x12@\n\x04name\x18\x05 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*monitoring.googleapis.com/MetricDescriptor\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"r\n\x1dListMetricDescriptorsResponse\x12\x38\n\x12metric_descriptors\x18\x01 \x03(\x0b\x32\x1c.google.api.MetricDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"^\n\x1aGetMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*monitoring.googleapis.com/MetricDescriptor"\x9f\x01\n\x1d\x43reateMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*monitoring.googleapis.com/MetricDescriptor\x12<\n\x11metric_descriptor\x18\x02 \x01(\x0b\x32\x1c.google.api.MetricDescriptorB\x03\xe0\x41\x02"a\n\x1d\x44\x65leteMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*monitoring.googleapis.com/MetricDescriptor"\x93\x03\n\x15ListTimeSeriesRequest\x12\x41\n\x04name\x18\n \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08interval\x18\x04 \x01(\x0b\x32".google.monitoring.v3.TimeIntervalB\x03\xe0\x41\x02\x12\x36\n\x0b\x61ggregation\x18\x05 \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12M\n\x04view\x18\x07 \x01(\x0e\x32:.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesViewB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x12\n\npage_token\x18\t \x01(\t"\'\n\x0eTimeSeriesView\x12\x08\n\x04\x46ULL\x10\x00\x12\x0b\n\x07HEADERS\x10\x01"\x96\x01\n\x16ListTimeSeriesResponse\x12\x35\n\x0btime_series\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x10\x65xecution_errors\x18\x03 \x03(\x0b\x32\x12.google.rpc.Status"\x98\x01\n\x17\x43reateTimeSeriesRequest\x12\x41\n\x04name\x18\x03 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12:\n\x0btime_series\x18\x02 \x03(\x0b\x32 .google.monitoring.v3.TimeSeriesB\x03\xe0\x41\x02"z\n\x15\x43reateTimeSeriesError\x12\x39\n\x0btime_series\x18\x01 \x01(\x0b\x32 .google.monitoring.v3.TimeSeriesB\x02\x18\x01\x12&\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x02\x18\x01"\xd8\x01\n\x17\x43reateTimeSeriesSummary\x12\x19\n\x11total_point_count\x18\x01 \x01(\x05\x12\x1b\n\x13success_point_count\x18\x02 \x01(\x05\x12\x43\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x33.google.monitoring.v3.CreateTimeSeriesSummary.Error\x1a@\n\x05\x45rror\x12"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12\x13\n\x0bpoint_count\x18\x02 \x01(\x05"\\\n\x16QueryTimeSeriesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\t \x01(\x05\x12\x12\n\npage_token\x18\n \x01(\t"\xea\x01\n\x17QueryTimeSeriesResponse\x12J\n\x16time_series_descriptor\x18\x08 \x01(\x0b\x32*.google.monitoring.v3.TimeSeriesDescriptor\x12>\n\x10time_series_data\x18\t \x03(\x0b\x32$.google.monitoring.v3.TimeSeriesData\x12\x17\n\x0fnext_page_token\x18\n \x01(\t\x12*\n\x0epartial_errors\x18\x0b \x03(\x0b\x32\x12.google.rpc.Status"Y\n\x0eQueryErrorList\x12\x30\n\x06\x65rrors\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.QueryError\x12\x15\n\rerror_summary\x18\x02 \x01(\t2\xbe\r\n\rMetricService\x12\xe4\x01\n ListMonitoredResourceDescriptors\x12=.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest\x1a>.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*}/monitoredResourceDescriptors\xda\x41\x04name\x12\xcc\x01\n\x1eGetMonitoredResourceDescriptor\x12;.google.monitoring.v3.GetMonitoredResourceDescriptorRequest\x1a\'.google.api.MonitoredResourceDescriptor"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v3/{name=projects/*/monitoredResourceDescriptors/**}\xda\x41\x04name\x12\xb8\x01\n\x15ListMetricDescriptors\x12\x32.google.monitoring.v3.ListMetricDescriptorsRequest\x1a\x33.google.monitoring.v3.ListMetricDescriptorsResponse"6\x82\xd3\xe4\x93\x02)\x12\'/v3/{name=projects/*}/metricDescriptors\xda\x41\x04name\x12\xa0\x01\n\x13GetMetricDescriptor\x12\x30.google.monitoring.v3.GetMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/metricDescriptors/**}\xda\x41\x04name\x12\xc8\x01\n\x16\x43reateMetricDescriptor\x12\x33.google.monitoring.v3.CreateMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"[\x82\xd3\xe4\x93\x02<"\'/v3/{name=projects/*}/metricDescriptors:\x11metric_descriptor\xda\x41\x16name,metric_descriptor\x12\xa0\x01\n\x16\x44\x65leteMetricDescriptor\x12\x33.google.monitoring.v3.DeleteMetricDescriptorRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/metricDescriptors/**}\xda\x41\x04name\x12\xb1\x01\n\x0eListTimeSeries\x12+.google.monitoring.v3.ListTimeSeriesRequest\x1a,.google.monitoring.v3.ListTimeSeriesResponse"D\x82\xd3\xe4\x93\x02"\x12 /v3/{name=projects/*}/timeSeries\xda\x41\x19name,filter,interval,view\x12\x99\x01\n\x10\x43reateTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02%" /v3/{name=projects/*}/timeSeries:\x01*\xda\x41\x10name,time_series\x1a\xda\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\xba\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read,https://www.googleapis.com/auth/monitoring.writeB\xf9\x05\n\x18\x63om.google.monitoring.v3B\x12MetricServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3\xea\x41\xf0\x01\n*monitoring.googleapis.com/MetricDescriptor\x12;projects/{project}/metricDescriptors/{metric_descriptor=**}\x12\x45organizations/{organization}/metricDescriptors/{metric_descriptor=**}\x12\x39\x66olders/{folder}/metricDescriptors/{metric_descriptor=**}\x12\x01* \x01\xea\x41\xb7\x02\n5monitoring.googleapis.com/MonitoredResourceDescriptor\x12Oprojects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12Yorganizations/{organization}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12Mfolders/{folder}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12\x01* \x01\x62\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\022MetricServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3\352A\360\001\n*monitoring.googleapis.com/MetricDescriptor\022;projects/{project}/metricDescriptors/{metric_descriptor=**}\022Eorganizations/{organization}/metricDescriptors/{metric_descriptor=**}\0229folders/{folder}/metricDescriptors/{metric_descriptor=**}\022\001* \001\352A\267\002\n5monitoring.googleapis.com/MonitoredResourceDescriptor\022Oprojects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}\022Yorganizations/{organization}/monitoredResourceDescriptors/{monitored_resource_descriptor}\022Mfolders/{folder}/monitoredResourceDescriptors/{monitored_resource_descriptor}\022\001* \001", + serialized_pb=b'\n5google/cloud/monitoring_v3/proto/metric_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a-google/cloud/monitoring_v3/proto/metric.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto"\xad\x01\n\'ListMonitoredResourceDescriptorsRequest\x12K\n\x04name\x18\x05 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35monitoring.googleapis.com/MonitoredResourceDescriptor\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x8a\x01\n(ListMonitoredResourceDescriptorsResponse\x12\x45\n\x14resource_descriptors\x18\x01 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"t\n%GetMonitoredResourceDescriptorRequest\x12K\n\x04name\x18\x03 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5monitoring.googleapis.com/MonitoredResourceDescriptor"\x97\x01\n\x1cListMetricDescriptorsRequest\x12@\n\x04name\x18\x05 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*monitoring.googleapis.com/MetricDescriptor\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"r\n\x1dListMetricDescriptorsResponse\x12\x38\n\x12metric_descriptors\x18\x01 \x03(\x0b\x32\x1c.google.api.MetricDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"^\n\x1aGetMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*monitoring.googleapis.com/MetricDescriptor"\x9f\x01\n\x1d\x43reateMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*monitoring.googleapis.com/MetricDescriptor\x12<\n\x11metric_descriptor\x18\x02 \x01(\x0b\x32\x1c.google.api.MetricDescriptorB\x03\xe0\x41\x02"a\n\x1d\x44\x65leteMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*monitoring.googleapis.com/MetricDescriptor"\x93\x03\n\x15ListTimeSeriesRequest\x12\x41\n\x04name\x18\n \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08interval\x18\x04 \x01(\x0b\x32".google.monitoring.v3.TimeIntervalB\x03\xe0\x41\x02\x12\x36\n\x0b\x61ggregation\x18\x05 \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12M\n\x04view\x18\x07 \x01(\x0e\x32:.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesViewB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x12\n\npage_token\x18\t \x01(\t"\'\n\x0eTimeSeriesView\x12\x08\n\x04\x46ULL\x10\x00\x12\x0b\n\x07HEADERS\x10\x01"\x96\x01\n\x16ListTimeSeriesResponse\x12\x35\n\x0btime_series\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x10\x65xecution_errors\x18\x03 \x03(\x0b\x32\x12.google.rpc.Status"\x98\x01\n\x17\x43reateTimeSeriesRequest\x12\x41\n\x04name\x18\x03 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12:\n\x0btime_series\x18\x02 \x03(\x0b\x32 .google.monitoring.v3.TimeSeriesB\x03\xe0\x41\x02"z\n\x15\x43reateTimeSeriesError\x12\x39\n\x0btime_series\x18\x01 \x01(\x0b\x32 .google.monitoring.v3.TimeSeriesB\x02\x18\x01\x12&\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x02\x18\x01"\xd8\x01\n\x17\x43reateTimeSeriesSummary\x12\x19\n\x11total_point_count\x18\x01 \x01(\x05\x12\x1b\n\x13success_point_count\x18\x02 \x01(\x05\x12\x43\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x33.google.monitoring.v3.CreateTimeSeriesSummary.Error\x1a@\n\x05\x45rror\x12"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12\x13\n\x0bpoint_count\x18\x02 \x01(\x05"\\\n\x16QueryTimeSeriesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\t \x01(\x05\x12\x12\n\npage_token\x18\n \x01(\t"\xea\x01\n\x17QueryTimeSeriesResponse\x12J\n\x16time_series_descriptor\x18\x08 \x01(\x0b\x32*.google.monitoring.v3.TimeSeriesDescriptor\x12>\n\x10time_series_data\x18\t \x03(\x0b\x32$.google.monitoring.v3.TimeSeriesData\x12\x17\n\x0fnext_page_token\x18\n \x01(\t\x12*\n\x0epartial_errors\x18\x0b \x03(\x0b\x32\x12.google.rpc.Status"Y\n\x0eQueryErrorList\x12\x30\n\x06\x65rrors\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.QueryError\x12\x15\n\rerror_summary\x18\x02 \x01(\t2\xbe\r\n\rMetricService\x12\xe4\x01\n ListMonitoredResourceDescriptors\x12=.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest\x1a>.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*}/monitoredResourceDescriptors\xda\x41\x04name\x12\xcc\x01\n\x1eGetMonitoredResourceDescriptor\x12;.google.monitoring.v3.GetMonitoredResourceDescriptorRequest\x1a\'.google.api.MonitoredResourceDescriptor"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v3/{name=projects/*/monitoredResourceDescriptors/**}\xda\x41\x04name\x12\xb8\x01\n\x15ListMetricDescriptors\x12\x32.google.monitoring.v3.ListMetricDescriptorsRequest\x1a\x33.google.monitoring.v3.ListMetricDescriptorsResponse"6\x82\xd3\xe4\x93\x02)\x12\'/v3/{name=projects/*}/metricDescriptors\xda\x41\x04name\x12\xa0\x01\n\x13GetMetricDescriptor\x12\x30.google.monitoring.v3.GetMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/metricDescriptors/**}\xda\x41\x04name\x12\xc8\x01\n\x16\x43reateMetricDescriptor\x12\x33.google.monitoring.v3.CreateMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"[\x82\xd3\xe4\x93\x02<"\'/v3/{name=projects/*}/metricDescriptors:\x11metric_descriptor\xda\x41\x16name,metric_descriptor\x12\xa0\x01\n\x16\x44\x65leteMetricDescriptor\x12\x33.google.monitoring.v3.DeleteMetricDescriptorRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/metricDescriptors/**}\xda\x41\x04name\x12\xb1\x01\n\x0eListTimeSeries\x12+.google.monitoring.v3.ListTimeSeriesRequest\x1a,.google.monitoring.v3.ListTimeSeriesResponse"D\x82\xd3\xe4\x93\x02"\x12 /v3/{name=projects/*}/timeSeries\xda\x41\x19name,filter,interval,view\x12\x99\x01\n\x10\x43reateTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02%" /v3/{name=projects/*}/timeSeries:\x01*\xda\x41\x10name,time_series\x1a\xda\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\xba\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read,https://www.googleapis.com/auth/monitoring.writeB\xf9\x05\n\x18\x63om.google.monitoring.v3B\x12MetricServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3\xea\x41\xf0\x01\n*monitoring.googleapis.com/MetricDescriptor\x12;projects/{project}/metricDescriptors/{metric_descriptor=**}\x12\x45organizations/{organization}/metricDescriptors/{metric_descriptor=**}\x12\x39\x66olders/{folder}/metricDescriptors/{metric_descriptor=**}\x12\x01* \x01\xea\x41\xb7\x02\n5monitoring.googleapis.com/MonitoredResourceDescriptor\x12Oprojects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12Yorganizations/{organization}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12Mfolders/{folder}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12\x01* \x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -101,15 +94,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A7\0225monitoring.googleapis.com/MonitoredResourceDescriptor" - ), + serialized_options=b"\340A\002\372A7\0225monitoring.googleapis.com/MonitoredResourceDescriptor", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -121,7 +112,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -157,7 +148,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -214,7 +205,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -253,15 +244,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A7\n5monitoring.googleapis.com/MonitoredResourceDescriptor" - ), + serialized_options=b"\340A\002\372A7\n5monitoring.googleapis.com/MonitoredResourceDescriptor", file=DESCRIPTOR, ) ], @@ -294,15 +283,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A,\022*monitoring.googleapis.com/MetricDescriptor" - ), + serialized_options=b"\340A\002\372A,\022*monitoring.googleapis.com/MetricDescriptor", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -314,7 +301,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -350,7 +337,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -407,7 +394,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -446,15 +433,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A,\n*monitoring.googleapis.com/MetricDescriptor" - ), + serialized_options=b"\340A\002\372A,\n*monitoring.googleapis.com/MetricDescriptor", file=DESCRIPTOR, ) ], @@ -487,15 +472,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A,\022*monitoring.googleapis.com/MetricDescriptor" - ), + serialized_options=b"\340A\002\372A,\022*monitoring.googleapis.com/MetricDescriptor", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -513,7 +496,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -546,15 +529,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A,\n*monitoring.googleapis.com/MetricDescriptor" - ), + serialized_options=b"\340A\002\372A,\n*monitoring.googleapis.com/MetricDescriptor", file=DESCRIPTOR, ) ], @@ -587,15 +568,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -607,13 +586,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -631,7 +610,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -661,7 +640,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -685,7 +664,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -715,7 +694,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -772,7 +751,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -829,15 +808,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -855,7 +832,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -894,7 +871,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -912,7 +889,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, ), ], @@ -1076,7 +1053,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1094,7 +1071,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1130,7 +1107,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1205,7 +1182,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1280,7 +1257,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1410,21 +1387,23 @@ ListMonitoredResourceDescriptorsRequest = _reflection.GeneratedProtocolMessageType( "ListMonitoredResourceDescriptorsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``ListMonitoredResourceDescriptors`` request. + { + "DESCRIPTOR": _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``ListMonitoredResourceDescriptors`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] filter: An optional `filter `__ describing the descriptors to be returned. The filter can - reference the descriptor's type and labels. For example, the + reference the descriptor’s type and labels. For example, the following filter returns only Google Compute Engine - descriptors that have an ``id`` label: :: + descriptors that have an ``id`` label: :: resource.type = starts_with("gce_") AND resource.label:id page_size: @@ -1437,17 +1416,19 @@ additional results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) - ), + }, ) _sym_db.RegisterMessage(ListMonitoredResourceDescriptorsRequest) ListMonitoredResourceDescriptorsResponse = _reflection.GeneratedProtocolMessageType( "ListMonitoredResourceDescriptorsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``ListMonitoredResourceDescriptors`` response. + { + "DESCRIPTOR": _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``ListMonitoredResourceDescriptors`` response. + + Attributes: resource_descriptors: The monitored resource descriptors that are available to this @@ -1459,40 +1440,44 @@ this method. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) - ), + }, ) _sym_db.RegisterMessage(ListMonitoredResourceDescriptorsResponse) GetMonitoredResourceDescriptorRequest = _reflection.GeneratedProtocolMessageType( "GetMonitoredResourceDescriptorRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``GetMonitoredResourceDescriptor`` request. + { + "DESCRIPTOR": _GETMONITOREDRESOURCEDESCRIPTORREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``GetMonitoredResourceDescriptor`` request. + + Attributes: name: Required. The monitored resource descriptor to get. The format - is: :: projects/[PROJECT_ID_OR_NUMBER]/monitoredResource - Descriptors/[RESOURCE_TYPE] The ``[RESOURCE_TYPE]`` is a + is: :: projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceD + escriptors/[RESOURCE_TYPE] The ``[RESOURCE_TYPE]`` is a predefined type, such as ``cloudsql_database``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) - ), + }, ) _sym_db.RegisterMessage(GetMonitoredResourceDescriptorRequest) ListMetricDescriptorsRequest = _reflection.GeneratedProtocolMessageType( "ListMetricDescriptorsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTMETRICDESCRIPTORSREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``ListMetricDescriptors`` request. + { + "DESCRIPTOR": _LISTMETRICDESCRIPTORSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``ListMetricDescriptors`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] filter: If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the `filter @@ -1511,17 +1496,19 @@ additional results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsRequest) - ), + }, ) _sym_db.RegisterMessage(ListMetricDescriptorsRequest) ListMetricDescriptorsResponse = _reflection.GeneratedProtocolMessageType( "ListMetricDescriptorsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTMETRICDESCRIPTORSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``ListMetricDescriptors`` response. + { + "DESCRIPTOR": _LISTMETRICDESCRIPTORSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``ListMetricDescriptors`` response. + + Attributes: metric_descriptors: The metric descriptors that are available to the project and @@ -1533,17 +1520,19 @@ this method. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsResponse) - ), + }, ) _sym_db.RegisterMessage(ListMetricDescriptorsResponse) GetMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( "GetMetricDescriptorRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETMETRICDESCRIPTORREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``GetMetricDescriptor`` request. + { + "DESCRIPTOR": _GETMETRICDESCRIPTORREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``GetMetricDescriptor`` request. + + Attributes: name: Required. The metric descriptor on which to execute the @@ -1553,38 +1542,42 @@ ``"compute.googleapis.com/instance/disk/read_bytes_count"``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMetricDescriptorRequest) - ), + }, ) _sym_db.RegisterMessage(GetMetricDescriptorRequest) CreateMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( "CreateMetricDescriptorRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEMETRICDESCRIPTORREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``CreateMetricDescriptor`` request. + { + "DESCRIPTOR": _CREATEMETRICDESCRIPTORREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``CreateMetricDescriptor`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] metric_descriptor: Required. The new `custom metric `__ descriptor. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateMetricDescriptorRequest) - ), + }, ) _sym_db.RegisterMessage(CreateMetricDescriptorRequest) DeleteMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( "DeleteMetricDescriptorRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEMETRICDESCRIPTORREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``DeleteMetricDescriptor`` request. + { + "DESCRIPTOR": _DELETEMETRICDESCRIPTORREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``DeleteMetricDescriptor`` request. + + Attributes: name: Required. The metric descriptor on which to execute the @@ -1594,21 +1587,23 @@ ``"custom.googleapis.com/my_test_metric"``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteMetricDescriptorRequest) ListTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( "ListTimeSeriesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTTIMESERIESREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``ListTimeSeries`` request. + { + "DESCRIPTOR": _LISTTIMESERIESREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``ListTimeSeries`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] filter: Required. A `monitoring filter `__ that @@ -1616,7 +1611,7 @@ must specify a single metric type, and can additionally specify metric labels and other information. For example: :: metric.type = "compute.googleapis.com/instance/cpu/usage_time" - AND metric.labels.instance_name = "my-instance-name" + AND metric.labels.instance_name = "my-instance-name" interval: Required. The time interval for which results should be returned. Only time series that contain data points in the @@ -1647,17 +1642,19 @@ additional results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesRequest) - ), + }, ) _sym_db.RegisterMessage(ListTimeSeriesRequest) ListTimeSeriesResponse = _reflection.GeneratedProtocolMessageType( "ListTimeSeriesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTTIMESERIESRESPONSE, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``ListTimeSeries`` response. + { + "DESCRIPTOR": _LISTTIMESERIESRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``ListTimeSeries`` response. + + Attributes: time_series: One or more time series that match the filter included in the @@ -1672,21 +1669,23 @@ data returned to be incomplete. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesResponse) - ), + }, ) _sym_db.RegisterMessage(ListTimeSeriesResponse) CreateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( "CreateTimeSeriesRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATETIMESERIESREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``CreateTimeSeries`` request. + { + "DESCRIPTOR": _CREATETIMESERIESREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``CreateTimeSeries`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] time_series: Required. The new data to be added to a list of time series. Adds at most one data point to each of several time series. @@ -1697,17 +1696,19 @@ ``TimeSeries`` objects per ``Create`` request is 200. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesRequest) - ), + }, ) _sym_db.RegisterMessage(CreateTimeSeriesRequest) CreateTimeSeriesError = _reflection.GeneratedProtocolMessageType( "CreateTimeSeriesError", (_message.Message,), - dict( - DESCRIPTOR=_CREATETIMESERIESERROR, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""DEPRECATED. Used to hold per-time-series error status. + { + "DESCRIPTOR": _CREATETIMESERIESERROR, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """DEPRECATED. Used to hold per-time-series error status. + + Attributes: time_series: DEPRECATED. Time series ID that resulted in the ``status`` @@ -1717,35 +1718,39 @@ ``time_series``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesError) - ), + }, ) _sym_db.RegisterMessage(CreateTimeSeriesError) CreateTimeSeriesSummary = _reflection.GeneratedProtocolMessageType( "CreateTimeSeriesSummary", (_message.Message,), - dict( - Error=_reflection.GeneratedProtocolMessageType( + { + "Error": _reflection.GeneratedProtocolMessageType( "Error", (_message.Message,), - dict( - DESCRIPTOR=_CREATETIMESERIESSUMMARY_ERROR, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""Detailed information about an error category. + { + "DESCRIPTOR": _CREATETIMESERIESSUMMARY_ERROR, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """Detailed information about an error category. + + Attributes: status: The status of the requested write operation. point_count: - The number of points that couldn't be written because of + The number of points that couldn’t be written because of ``status``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesSummary.Error) - ), + }, ), - DESCRIPTOR=_CREATETIMESERIESSUMMARY, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""Summary of the result of a failed request to write data to a time - series. + "DESCRIPTOR": _CREATETIMESERIESSUMMARY, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """Summary of the result of a failed request to write data to + a time series. + + Attributes: total_point_count: The number of points in the request. @@ -1756,7 +1761,7 @@ guaranteed. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesSummary) - ), + }, ) _sym_db.RegisterMessage(CreateTimeSeriesSummary) _sym_db.RegisterMessage(CreateTimeSeriesSummary.Error) @@ -1764,20 +1769,22 @@ QueryTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( "QueryTimeSeriesRequest", (_message.Message,), - dict( - DESCRIPTOR=_QUERYTIMESERIESREQUEST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``QueryTimeSeries`` request. + { + "DESCRIPTOR": _QUERYTIMESERIESREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``QueryTimeSeries`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] query: Required. The query in the monitoring query language format. The default time zone is in UTC. page_size: A positive number that is the maximum number of - time\_series\_data to return. + time_series_data to return. page_token: If this field is not empty then it must contain the ``nextPageToken`` value returned by a previous call to this @@ -1785,17 +1792,19 @@ additional results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryTimeSeriesRequest) - ), + }, ) _sym_db.RegisterMessage(QueryTimeSeriesRequest) QueryTimeSeriesResponse = _reflection.GeneratedProtocolMessageType( "QueryTimeSeriesResponse", (_message.Message,), - dict( - DESCRIPTOR=_QUERYTIMESERIESRESPONSE, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""The ``QueryTimeSeries`` response. + { + "DESCRIPTOR": _QUERYTIMESERIESRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """The ``QueryTimeSeries`` response. + + Attributes: time_series_descriptor: The descriptor for the time series data. @@ -1812,18 +1821,20 @@ available in the response. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryTimeSeriesResponse) - ), + }, ) _sym_db.RegisterMessage(QueryTimeSeriesResponse) QueryErrorList = _reflection.GeneratedProtocolMessageType( "QueryErrorList", (_message.Message,), - dict( - DESCRIPTOR=_QUERYERRORLIST, - __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""This is an error detail intended to be used with INVALID\_ARGUMENT - errors. + { + "DESCRIPTOR": _QUERYERRORLIST, + "__module__": "google.cloud.monitoring_v3.proto.metric_service_pb2", + "__doc__": """This is an error detail intended to be used with + INVALID_ARGUMENT errors. + + Attributes: errors: Errors in parsing the time series query language text. The @@ -1832,7 +1843,7 @@ A summary of all the errors. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryErrorList) - ), + }, ) _sym_db.RegisterMessage(QueryErrorList) @@ -1859,9 +1870,7 @@ full_name="google.monitoring.v3.MetricService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031monitoring.googleapis.com\322A\272\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read,https://www.googleapis.com/auth/monitoring.write" - ), + serialized_options=b"\312A\031monitoring.googleapis.com\322A\272\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read,https://www.googleapis.com/auth/monitoring.write", serialized_start=3024, serialized_end=4750, methods=[ @@ -1872,9 +1881,7 @@ containing_service=None, input_type=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, output_type=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredResourceDescriptors\332A\004name" - ), + serialized_options=b"\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredResourceDescriptors\332A\004name", ), _descriptor.MethodDescriptor( name="GetMonitoredResourceDescriptor", @@ -1883,9 +1890,7 @@ containing_service=None, input_type=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, output_type=google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR, - serialized_options=_b( - "\202\323\344\223\0027\0225/v3/{name=projects/*/monitoredResourceDescriptors/**}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0027\0225/v3/{name=projects/*/monitoredResourceDescriptors/**}\332A\004name", ), _descriptor.MethodDescriptor( name="ListMetricDescriptors", @@ -1894,9 +1899,7 @@ containing_service=None, input_type=_LISTMETRICDESCRIPTORSREQUEST, output_type=_LISTMETRICDESCRIPTORSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002)\022'/v3/{name=projects/*}/metricDescriptors\332A\004name" - ), + serialized_options=b"\202\323\344\223\002)\022'/v3/{name=projects/*}/metricDescriptors\332A\004name", ), _descriptor.MethodDescriptor( name="GetMetricDescriptor", @@ -1905,9 +1908,7 @@ containing_service=None, input_type=_GETMETRICDESCRIPTORREQUEST, output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, - serialized_options=_b( - "\202\323\344\223\002,\022*/v3/{name=projects/*/metricDescriptors/**}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002,\022*/v3/{name=projects/*/metricDescriptors/**}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateMetricDescriptor", @@ -1916,9 +1917,7 @@ containing_service=None, input_type=_CREATEMETRICDESCRIPTORREQUEST, output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, - serialized_options=_b( - "\202\323\344\223\002<\"'/v3/{name=projects/*}/metricDescriptors:\021metric_descriptor\332A\026name,metric_descriptor" - ), + serialized_options=b"\202\323\344\223\002<\"'/v3/{name=projects/*}/metricDescriptors:\021metric_descriptor\332A\026name,metric_descriptor", ), _descriptor.MethodDescriptor( name="DeleteMetricDescriptor", @@ -1927,9 +1926,7 @@ containing_service=None, input_type=_DELETEMETRICDESCRIPTORREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002,**/v3/{name=projects/*/metricDescriptors/**}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002,**/v3/{name=projects/*/metricDescriptors/**}\332A\004name", ), _descriptor.MethodDescriptor( name="ListTimeSeries", @@ -1938,9 +1935,7 @@ containing_service=None, input_type=_LISTTIMESERIESREQUEST, output_type=_LISTTIMESERIESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002"\022 /v3/{name=projects/*}/timeSeries\332A\031name,filter,interval,view' - ), + serialized_options=b'\202\323\344\223\002"\022 /v3/{name=projects/*}/timeSeries\332A\031name,filter,interval,view', ), _descriptor.MethodDescriptor( name="CreateTimeSeries", @@ -1949,9 +1944,7 @@ containing_service=None, input_type=_CREATETIMESERIESREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002%" /v3/{name=projects/*}/timeSeries:\001*\332A\020name,time_series' - ), + serialized_options=b'\202\323\344\223\002%" /v3/{name=projects/*}/timeSeries:\001*\332A\020name,time_series', ), ], ) diff --git a/google/cloud/monitoring_v3/proto/mutation_record_pb2.py b/google/cloud/monitoring_v3/proto/mutation_record_pb2.py index 47baee33..542409a4 100644 --- a/google/cloud/monitoring_v3/proto/mutation_record_pb2.py +++ b/google/cloud/monitoring_v3/proto/mutation_record_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/mutation_record.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/monitoring_v3/proto/mutation_record.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\023MutationRecordProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n6google/cloud/monitoring_v3/proto/mutation_record.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/protobuf/timestamp.proto"U\n\x0eMutationRecord\x12/\n\x0bmutate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmutated_by\x18\x02 \x01(\tB\xcb\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\023MutationRecordProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n6google/cloud/monitoring_v3/proto/mutation_record.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/protobuf/timestamp.proto"U\n\x0eMutationRecord\x12/\n\x0bmutate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmutated_by\x18\x02 \x01(\tB\xcb\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR], ) @@ -66,7 +59,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -97,10 +90,12 @@ MutationRecord = _reflection.GeneratedProtocolMessageType( "MutationRecord", (_message.Message,), - dict( - DESCRIPTOR=_MUTATIONRECORD, - __module__="google.cloud.monitoring_v3.proto.mutation_record_pb2", - __doc__="""Describes a change made to a configuration. + { + "DESCRIPTOR": _MUTATIONRECORD, + "__module__": "google.cloud.monitoring_v3.proto.mutation_record_pb2", + "__doc__": """Describes a change made to a configuration. + + Attributes: mutate_time: When the change occurred. @@ -108,7 +103,7 @@ The email address of the user making the change. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.MutationRecord) - ), + }, ) _sym_db.RegisterMessage(MutationRecord) diff --git a/google/cloud/monitoring_v3/proto/notification_pb2.py b/google/cloud/monitoring_v3/proto/notification_pb2.py index 617e6780..67d72489 100644 --- a/google/cloud/monitoring_v3/proto/notification_pb2.py +++ b/google/cloud/monitoring_v3/proto/notification_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/notification.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -28,12 +25,8 @@ name="google/cloud/monitoring_v3/proto/notification.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\021NotificationProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n3google/cloud/monitoring_v3/proto/notification.proto\x12\x14google.monitoring.v3\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/wrappers.proto"\xa5\x04\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01\x12-\n\x0claunch_stage\x18\x07 \x01(\x0e\x32\x17.google.api.LaunchStage:\xa0\x02\xea\x41\x9c\x02\n7monitoring.googleapis.com/NotificationChannelDescriptor\x12\x46projects/{project}/notificationChannelDescriptors/{channel_descriptor}\x12Porganizations/{organization}/notificationChannelDescriptors/{channel_descriptor}\x12\x44\x66olders/{folder}/notificationChannelDescriptors/{channel_descriptor}\x12\x01*"\xb7\x06\n\x13NotificationChannel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x35.google.monitoring.v3.NotificationChannel.LabelsEntry\x12N\n\x0buser_labels\x18\x08 \x03(\x0b\x32\x39.google.monitoring.v3.NotificationChannel.UserLabelsEntry\x12Y\n\x13verification_status\x18\t \x01(\x0e\x32<.google.monitoring.v3.NotificationChannel.VerificationStatus\x12+\n\x07\x65nabled\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"W\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0e\n\nUNVERIFIED\x10\x01\x12\x0c\n\x08VERIFIED\x10\x02:\xfe\x01\xea\x41\xfa\x01\n-monitoring.googleapis.com/NotificationChannel\x12>projects/{project}/notificationChannels/{notification_channel}\x12Horganizations/{organization}/notificationChannels/{notification_channel}\x12google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\021NotificationProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n3google/cloud/monitoring_v3/proto/notification.proto\x12\x14google.monitoring.v3\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/wrappers.proto"\xa5\x04\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01\x12-\n\x0claunch_stage\x18\x07 \x01(\x0e\x32\x17.google.api.LaunchStage:\xa0\x02\xea\x41\x9c\x02\n7monitoring.googleapis.com/NotificationChannelDescriptor\x12\x46projects/{project}/notificationChannelDescriptors/{channel_descriptor}\x12Porganizations/{organization}/notificationChannelDescriptors/{channel_descriptor}\x12\x44\x66olders/{folder}/notificationChannelDescriptors/{channel_descriptor}\x12\x01*"\xb7\x06\n\x13NotificationChannel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x35.google.monitoring.v3.NotificationChannel.LabelsEntry\x12N\n\x0buser_labels\x18\x08 \x03(\x0b\x32\x39.google.monitoring.v3.NotificationChannel.UserLabelsEntry\x12Y\n\x13verification_status\x18\t \x01(\x0e\x32<.google.monitoring.v3.NotificationChannel.VerificationStatus\x12+\n\x07\x65nabled\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"W\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0e\n\nUNVERIFIED\x10\x01\x12\x0c\n\x08VERIFIED\x10\x02:\xfe\x01\xea\x41\xfa\x01\n-monitoring.googleapis.com/NotificationChannel\x12>projects/{project}/notificationChannels/{notification_channel}\x12Horganizations/{organization}/notificationChannels/{notification_channel}\x12google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_label__pb2.DESCRIPTOR, google_dot_api_dot_launch__stage__pb2.DESCRIPTOR, @@ -88,7 +81,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -106,7 +99,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -124,7 +117,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -142,7 +135,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -184,7 +177,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -209,9 +202,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A\234\002\n7monitoring.googleapis.com/NotificationChannelDescriptor\022Fprojects/{project}/notificationChannelDescriptors/{channel_descriptor}\022Porganizations/{organization}/notificationChannelDescriptors/{channel_descriptor}\022Dfolders/{folder}/notificationChannelDescriptors/{channel_descriptor}\022\001*" - ), + serialized_options=b"\352A\234\002\n7monitoring.googleapis.com/NotificationChannelDescriptor\022Fprojects/{project}/notificationChannelDescriptors/{channel_descriptor}\022Porganizations/{organization}/notificationChannelDescriptors/{channel_descriptor}\022Dfolders/{folder}/notificationChannelDescriptors/{channel_descriptor}\022\001*", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -237,7 +228,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -255,7 +246,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -268,7 +259,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -293,7 +284,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -311,7 +302,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -324,7 +315,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -349,7 +340,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -367,7 +358,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -385,7 +376,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -403,7 +394,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -491,9 +482,7 @@ _NOTIFICATIONCHANNEL_USERLABELSENTRY, ], enum_types=[_NOTIFICATIONCHANNEL_VERIFICATIONSTATUS], - serialized_options=_b( - "\352A\372\001\n-monitoring.googleapis.com/NotificationChannel\022>projects/{project}/notificationChannels/{notification_channel}\022Horganizations/{organization}/notificationChannels/{notification_channel}\022projects/{project}/notificationChannels/{notification_channel}\022Horganizations/{organization}/notificationChannels/{notification_channel}\022google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n;google/cloud/monitoring_v3/proto/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/monitoring_v3/proto/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa1\x01\n)ListNotificationChannelDescriptorsRequest\x12M\n\x04name\x18\x04 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37monitoring.googleapis.com/NotificationChannelDescriptor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"x\n\'GetNotificationChannelDescriptorRequest\x12M\n\x04name\x18\x03 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7monitoring.googleapis.com/NotificationChannelDescriptor"\xb5\x01\n CreateNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12L\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02"\xaf\x01\n\x1fListNotificationChannelsRequest\x12\x43\n\x04name\x18\x05 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\t\x12\x10\n\x08order_by\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x85\x01\n ListNotificationChannelsResponse\x12H\n\x15notification_channels\x18\x03 \x03(\x0b\x32).google.monitoring.v3.NotificationChannel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"d\n\x1dGetNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel"\xa1\x01\n UpdateNotificationChannelRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02"v\n DeleteNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\r\n\x05\x66orce\x18\x05 \x01(\x08"u\n.SendNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel"\xa5\x01\n-GetNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"o\n.GetNotificationChannelVerificationCodeResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"z\n VerifyNotificationChannelRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\x32\xea\x12\n\x1aNotificationChannelService\x12\xec\x01\n"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\xda\x41\x04name\x12\xdd\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\xda\x41\x04name\x12\xc4\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\xda\x41\x04name\x12\xb5\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel";\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\xda\x41\x04name\x12\xe4\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"d\x82\xd3\xe4\x93\x02\x42"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\xda\x41\x19name,notification_channel\x12\x83\x02\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"\x82\x01\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\xda\x41 update_mask,notification_channel\x12\xae\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty"A\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\xda\x41\nname,force\x12\xdc\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty"S\x82\xd3\xe4\x93\x02\x46"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\xda\x41\x04name\x12\x87\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse"R\x82\xd3\xe4\x93\x02\x45"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\xda\x41\x04name\x12\xca\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"J\x82\xd3\xe4\x93\x02\x38"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*\xda\x41\tname,code\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xd0\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\030NotificationServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n;google/cloud/monitoring_v3/proto/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/monitoring_v3/proto/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xa1\x01\n)ListNotificationChannelDescriptorsRequest\x12M\n\x04name\x18\x04 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37monitoring.googleapis.com/NotificationChannelDescriptor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"x\n\'GetNotificationChannelDescriptorRequest\x12M\n\x04name\x18\x03 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7monitoring.googleapis.com/NotificationChannelDescriptor"\xb5\x01\n CreateNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12L\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02"\xaf\x01\n\x1fListNotificationChannelsRequest\x12\x43\n\x04name\x18\x05 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\t\x12\x10\n\x08order_by\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x85\x01\n ListNotificationChannelsResponse\x12H\n\x15notification_channels\x18\x03 \x03(\x0b\x32).google.monitoring.v3.NotificationChannel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"d\n\x1dGetNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel"\xa1\x01\n UpdateNotificationChannelRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02"v\n DeleteNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\r\n\x05\x66orce\x18\x05 \x01(\x08"u\n.SendNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel"\xa5\x01\n-GetNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"o\n.GetNotificationChannelVerificationCodeResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"z\n VerifyNotificationChannelRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\x32\xea\x12\n\x1aNotificationChannelService\x12\xec\x01\n"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\xda\x41\x04name\x12\xdd\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\xda\x41\x04name\x12\xc4\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\xda\x41\x04name\x12\xb5\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel";\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\xda\x41\x04name\x12\xe4\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"d\x82\xd3\xe4\x93\x02\x42"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\xda\x41\x19name,notification_channel\x12\x83\x02\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"\x82\x01\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\xda\x41 update_mask,notification_channel\x12\xae\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty"A\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\xda\x41\nname,force\x12\xdc\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty"S\x82\xd3\xe4\x93\x02\x46"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\xda\x41\x04name\x12\x87\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse"R\x82\xd3\xe4\x93\x02\x45"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\xda\x41\x04name\x12\xca\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"J\x82\xd3\xe4\x93\x02\x38"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*\xda\x41\tname,code\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xd0\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -68,15 +61,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A9\0227monitoring.googleapis.com/NotificationChannelDescriptor" - ), + serialized_options=b"\340A\002\372A9\0227monitoring.googleapis.com/NotificationChannelDescriptor", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -106,7 +97,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -163,7 +154,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -202,15 +193,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A9\n7monitoring.googleapis.com/NotificationChannelDescriptor" - ), + serialized_options=b"\340A\002\372A9\n7monitoring.googleapis.com/NotificationChannelDescriptor", file=DESCRIPTOR, ) ], @@ -243,15 +232,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\022-monitoring.googleapis.com/NotificationChannel" - ), + serialized_options=b"\340A\002\372A/\022-monitoring.googleapis.com/NotificationChannel", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -269,7 +256,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -302,15 +289,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\022-monitoring.googleapis.com/NotificationChannel" - ), + serialized_options=b"\340A\002\372A/\022-monitoring.googleapis.com/NotificationChannel", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -322,7 +307,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -340,7 +325,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -376,7 +361,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -433,7 +418,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -472,15 +457,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel" - ), + serialized_options=b"\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel", file=DESCRIPTOR, ) ], @@ -537,7 +520,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -570,15 +553,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel" - ), + serialized_options=b"\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -629,15 +610,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel" - ), + serialized_options=b"\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel", file=DESCRIPTOR, ) ], @@ -670,15 +649,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel" - ), + serialized_options=b"\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -729,7 +706,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -786,15 +763,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel" - ), + serialized_options=b"\340A\002\372A/\n-monitoring.googleapis.com/NotificationChannel", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -806,13 +781,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -901,15 +876,17 @@ ListNotificationChannelDescriptorsRequest = _reflection.GeneratedProtocolMessageType( "ListNotificationChannelDescriptorsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``ListNotificationChannelDescriptors`` request. + { + "DESCRIPTOR": _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``ListNotificationChannelDescriptors`` request. + + Attributes: name: Required. The REST resource name of the parent from which to retrieve the notification channel descriptors. The expected - syntax is: :: projects/[PROJECT_ID_OR_NUMBER] Note that + syntax is: :: projects/[PROJECT_ID_OR_NUMBER] Note that this names the parent container in which to look for the descriptors; to retrieve a single descriptor by name, use the [GetNotificationChannelDescriptor][google.monitoring.v3.Notifi @@ -925,17 +902,19 @@ next set of results. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) - ), + }, ) _sym_db.RegisterMessage(ListNotificationChannelDescriptorsRequest) ListNotificationChannelDescriptorsResponse = _reflection.GeneratedProtocolMessageType( "ListNotificationChannelDescriptorsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``ListNotificationChannelDescriptors`` response. + { + "DESCRIPTOR": _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``ListNotificationChannelDescriptors`` response. + + Attributes: channel_descriptors: The monitored resource descriptors supported for the specified @@ -947,42 +926,46 @@ empty, all results have been returned. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) - ), + }, ) _sym_db.RegisterMessage(ListNotificationChannelDescriptorsResponse) GetNotificationChannelDescriptorRequest = _reflection.GeneratedProtocolMessageType( "GetNotificationChannelDescriptorRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``GetNotificationChannelDescriptor`` response. + { + "DESCRIPTOR": _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``GetNotificationChannelDescriptor`` response. + + Attributes: name: Required. The channel type for which to execute the request. - The format is: :: projects/[PROJECT_ID_OR_NUMBER]/notifi - cationChannelDescriptors/[CHANNEL_TYPE] + The format is: :: projects/[PROJECT_ID_OR_NUMBER]/notific + ationChannelDescriptors/[CHANNEL_TYPE] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) - ), + }, ) _sym_db.RegisterMessage(GetNotificationChannelDescriptorRequest) CreateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( "CreateNotificationChannelRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATENOTIFICATIONCHANNELREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``CreateNotificationChannel`` request. + { + "DESCRIPTOR": _CREATENOTIFICATIONCHANNELREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``CreateNotificationChannel`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] This - names the container into which the channel will be written, - this does not name the newly created channel. The resulting - channel's name will have a normalized version of this field as + format is: :: projects/[PROJECT_ID_OR_NUMBER] This names + the container into which the channel will be written, this + does not name the newly created channel. The resulting + channel’s name will have a normalized version of this field as a prefix, but will add ``/notificationChannels/[CHANNEL_ID]`` to identify the channel. notification_channel: @@ -990,26 +973,28 @@ create. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateNotificationChannelRequest) - ), + }, ) _sym_db.RegisterMessage(CreateNotificationChannelRequest) ListNotificationChannelsRequest = _reflection.GeneratedProtocolMessageType( "ListNotificationChannelsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTIFICATIONCHANNELSREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``ListNotificationChannels`` request. + { + "DESCRIPTOR": _LISTNOTIFICATIONCHANNELSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``ListNotificationChannels`` request. + + Attributes: name: Required. The project on which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] This - names the container in which to look for the notification - channels; it does not name a specific channel. To query a - specific channel by REST resource name, use the [``GetNotifica - tionChannel``][google.monitoring.v3.NotificationChannelService - .GetNotificationChannel] operation. + format is: :: projects/[PROJECT_ID_OR_NUMBER] This names + the container in which to look for the notification channels; + it does not name a specific channel. To query a specific + channel by REST resource name, use the [``GetNotificationChann + el``][google.monitoring.v3.NotificationChannelService.GetNotif + icationChannel] operation. filter: If provided, this field specifies the criteria that must be met by notification channels to be included in the response. @@ -1033,17 +1018,19 @@ next set of results. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsRequest) - ), + }, ) _sym_db.RegisterMessage(ListNotificationChannelsRequest) ListNotificationChannelsResponse = _reflection.GeneratedProtocolMessageType( "ListNotificationChannelsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTIFICATIONCHANNELSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``ListNotificationChannels`` response. + { + "DESCRIPTOR": _LISTNOTIFICATIONCHANNELSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``ListNotificationChannels`` response. + + Attributes: notification_channels: The notification channels defined for the specified project. @@ -1054,35 +1041,39 @@ empty, all results have been returned. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsResponse) - ), + }, ) _sym_db.RegisterMessage(ListNotificationChannelsResponse) GetNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( "GetNotificationChannelRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETNOTIFICATIONCHANNELREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``GetNotificationChannel`` request. + { + "DESCRIPTOR": _GETNOTIFICATIONCHANNELREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``GetNotificationChannel`` request. + + Attributes: name: Required. The channel for which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER]/notificati - onChannels/[CHANNEL_ID] + format is: :: projects/[PROJECT_ID_OR_NUMBER]/notificatio + nChannels/[CHANNEL_ID] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelRequest) - ), + }, ) _sym_db.RegisterMessage(GetNotificationChannelRequest) UpdateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( "UpdateNotificationChannelRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATENOTIFICATIONCHANNELREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``UpdateNotificationChannel`` request. + { + "DESCRIPTOR": _UPDATENOTIFICATIONCHANNELREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``UpdateNotificationChannel`` request. + + Attributes: update_mask: The fields to update. @@ -1093,22 +1084,24 @@ should also be included in the ``update_mask``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateNotificationChannelRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateNotificationChannelRequest) DeleteNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( "DeleteNotificationChannelRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETENOTIFICATIONCHANNELREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``DeleteNotificationChannel`` request. + { + "DESCRIPTOR": _DELETENOTIFICATIONCHANNELREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``DeleteNotificationChannel`` request. + + Attributes: name: Required. The channel for which to execute the request. The - format is: :: projects/[PROJECT_ID_OR_NUMBER]/notificati - onChannels/[CHANNEL_ID] + format is: :: projects/[PROJECT_ID_OR_NUMBER]/notificatio + nChannels/[CHANNEL_ID] force: If true, the notification channel will be deleted regardless of its use in alert policies (the policies will be updated to @@ -1117,34 +1110,38 @@ deleted in a delete operation. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteNotificationChannelRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteNotificationChannelRequest) SendNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType( "SendNotificationChannelVerificationCodeRequest", (_message.Message,), - dict( - DESCRIPTOR=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``SendNotificationChannelVerificationCode`` request. + { + "DESCRIPTOR": _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``SendNotificationChannelVerificationCode`` request. + + Attributes: name: Required. The notification channel to which to send a verification code. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) - ), + }, ) _sym_db.RegisterMessage(SendNotificationChannelVerificationCodeRequest) GetNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType( "GetNotificationChannelVerificationCodeRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``GetNotificationChannelVerificationCode`` request. + { + "DESCRIPTOR": _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``GetNotificationChannelVerificationCode`` request. + + Attributes: name: Required. The notification channel for which a verification @@ -1160,26 +1157,28 @@ time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend - the code's lifetime over omitting an expiration, even though + the code’s lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted). """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) - ), + }, ) _sym_db.RegisterMessage(GetNotificationChannelVerificationCodeRequest) GetNotificationChannelVerificationCodeResponse = _reflection.GeneratedProtocolMessageType( "GetNotificationChannelVerificationCodeResponse", (_message.Message,), - dict( - DESCRIPTOR=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``GetNotificationChannelVerificationCode`` request. + { + "DESCRIPTOR": _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``GetNotificationChannelVerificationCode`` request. + + Attributes: code: The verification code, which may be used to verify other - channels that have an equivalent identity (i.e. other channels + channels that have an equivalent identity (i.e. other channels of the same type with the same fingerprint such as other email channels with the same email address or other sms channels with the same number). @@ -1190,17 +1189,19 @@ the max permitted expiration. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) - ), + }, ) _sym_db.RegisterMessage(GetNotificationChannelVerificationCodeResponse) VerifyNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( "VerifyNotificationChannelRequest", (_message.Message,), - dict( - DESCRIPTOR=_VERIFYNOTIFICATIONCHANNELREQUEST, - __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", - __doc__="""The ``VerifyNotificationChannel`` request. + { + "DESCRIPTOR": _VERIFYNOTIFICATIONCHANNELREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.notification_service_pb2", + "__doc__": """The ``VerifyNotificationChannel`` request. + + Attributes: name: Required. The notification channel to verify. @@ -1210,13 +1211,13 @@ ``SendNotificationChannelVerificationCode`` API method or that was retrieved from a verified channel via ``GetNotificationChannelVerificationCode``. For example, one - might have "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in + might have “G-123456” or “TKNZGhhd2EyN3I1MnRnMjRv” (in general, one is only guaranteed that the code is valid UTF-8; one should not make any assumptions regarding the structure or format of the code). """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.VerifyNotificationChannelRequest) - ), + }, ) _sym_db.RegisterMessage(VerifyNotificationChannelRequest) @@ -1240,9 +1241,7 @@ full_name="google.monitoring.v3.NotificationChannelService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read" - ), + serialized_options=b"\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read", serialized_start=2228, serialized_end=4638, methods=[ @@ -1253,9 +1252,7 @@ containing_service=None, input_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, output_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0026\0224/v3/{name=projects/*}/notificationChannelDescriptors\332A\004name" - ), + serialized_options=b"\202\323\344\223\0026\0224/v3/{name=projects/*}/notificationChannelDescriptors\332A\004name", ), _descriptor.MethodDescriptor( name="GetNotificationChannelDescriptor", @@ -1264,9 +1261,7 @@ containing_service=None, input_type=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR, - serialized_options=_b( - "\202\323\344\223\0028\0226/v3/{name=projects/*/notificationChannelDescriptors/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0028\0226/v3/{name=projects/*/notificationChannelDescriptors/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListNotificationChannels", @@ -1275,9 +1270,7 @@ containing_service=None, input_type=_LISTNOTIFICATIONCHANNELSREQUEST, output_type=_LISTNOTIFICATIONCHANNELSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002,\022*/v3/{name=projects/*}/notificationChannels\332A\004name" - ), + serialized_options=b"\202\323\344\223\002,\022*/v3/{name=projects/*}/notificationChannels\332A\004name", ), _descriptor.MethodDescriptor( name="GetNotificationChannel", @@ -1286,9 +1279,7 @@ containing_service=None, input_type=_GETNOTIFICATIONCHANNELREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - serialized_options=_b( - "\202\323\344\223\002.\022,/v3/{name=projects/*/notificationChannels/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002.\022,/v3/{name=projects/*/notificationChannels/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateNotificationChannel", @@ -1297,9 +1288,7 @@ containing_service=None, input_type=_CREATENOTIFICATIONCHANNELREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - serialized_options=_b( - '\202\323\344\223\002B"*/v3/{name=projects/*}/notificationChannels:\024notification_channel\332A\031name,notification_channel' - ), + serialized_options=b'\202\323\344\223\002B"*/v3/{name=projects/*}/notificationChannels:\024notification_channel\332A\031name,notification_channel', ), _descriptor.MethodDescriptor( name="UpdateNotificationChannel", @@ -1308,9 +1297,7 @@ containing_service=None, input_type=_UPDATENOTIFICATIONCHANNELREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - serialized_options=_b( - "\202\323\344\223\002Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\024notification_channel\332A update_mask,notification_channel" - ), + serialized_options=b"\202\323\344\223\002Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\024notification_channel\332A update_mask,notification_channel", ), _descriptor.MethodDescriptor( name="DeleteNotificationChannel", @@ -1319,9 +1306,7 @@ containing_service=None, input_type=_DELETENOTIFICATIONCHANNELREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002.*,/v3/{name=projects/*/notificationChannels/*}\332A\nname,force" - ), + serialized_options=b"\202\323\344\223\002.*,/v3/{name=projects/*/notificationChannels/*}\332A\nname,force", ), _descriptor.MethodDescriptor( name="SendNotificationChannelVerificationCode", @@ -1330,9 +1315,7 @@ containing_service=None, input_type=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002F"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\002F"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\001*\332A\004name', ), _descriptor.MethodDescriptor( name="GetNotificationChannelVerificationCode", @@ -1341,9 +1324,7 @@ containing_service=None, input_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, output_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, - serialized_options=_b( - '\202\323\344\223\002E"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\002E"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\001*\332A\004name', ), _descriptor.MethodDescriptor( name="VerifyNotificationChannel", @@ -1352,9 +1333,7 @@ containing_service=None, input_type=_VERIFYNOTIFICATIONCHANNELREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - serialized_options=_b( - '\202\323\344\223\0028"3/v3/{name=projects/*/notificationChannels/*}:verify:\001*\332A\tname,code' - ), + serialized_options=b'\202\323\344\223\0028"3/v3/{name=projects/*/notificationChannels/*}:verify:\001*\332A\tname,code', ), ], ) diff --git a/google/cloud/monitoring_v3/proto/service_pb2.py b/google/cloud/monitoring_v3/proto/service_pb2.py index 1df20691..9c1ccb69 100644 --- a/google/cloud/monitoring_v3/proto/service_pb2.py +++ b/google/cloud/monitoring_v3/proto/service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -28,12 +25,8 @@ name="google/cloud/monitoring_v3/proto/service.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\026ServiceMonitoringProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n.google/cloud/monitoring_v3/proto/service.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!google/type/calendar_period.proto"\x97\x07\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x36\n\x06\x63ustom\x18\x06 \x01(\x0b\x32$.google.monitoring.v3.Service.CustomH\x00\x12=\n\napp_engine\x18\x07 \x01(\x0b\x32\'.google.monitoring.v3.Service.AppEngineH\x00\x12G\n\x0f\x63loud_endpoints\x18\x08 \x01(\x0b\x32,.google.monitoring.v3.Service.CloudEndpointsH\x00\x12G\n\rcluster_istio\x18\t \x01(\x0b\x32*.google.monitoring.v3.Service.ClusterIstioB\x02\x18\x01H\x00\x12=\n\nmesh_istio\x18\n \x01(\x0b\x32\'.google.monitoring.v3.Service.MeshIstioH\x00\x12:\n\ttelemetry\x18\r \x01(\x0b\x32\'.google.monitoring.v3.Service.Telemetry\x1a\x08\n\x06\x43ustom\x1a\x1e\n\tAppEngine\x12\x11\n\tmodule_id\x18\x01 \x01(\t\x1a!\n\x0e\x43loudEndpoints\x12\x0f\n\x07service\x18\x01 \x01(\t\x1ak\n\x0c\x43lusterIstio\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x19\n\x11service_namespace\x18\x03 \x01(\t\x12\x14\n\x0cservice_name\x18\x04 \x01(\t:\x02\x18\x01\x1aN\n\tMeshIstio\x12\x10\n\x08mesh_uid\x18\x01 \x01(\t\x12\x19\n\x11service_namespace\x18\x03 \x01(\t\x12\x14\n\x0cservice_name\x18\x04 \x01(\t\x1a"\n\tTelemetry\x12\x15\n\rresource_name\x18\x01 \x01(\t:\xa7\x01\xea\x41\xa3\x01\n!monitoring.googleapis.com/Service\x12%projects/{project}/services/{service}\x12/organizations/{organization}/services/{service}\x12#folders/{folder}/services/{service}\x12\x01*B\x0c\n\nidentifier"\x91\x05\n\x15ServiceLevelObjective\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x0b \x01(\t\x12L\n\x17service_level_indicator\x18\x03 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelIndicator\x12\x0c\n\x04goal\x18\x04 \x01(\x01\x12\x33\n\x0erolling_period\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x36\n\x0f\x63\x61lendar_period\x18\x06 \x01(\x0e\x32\x1b.google.type.CalendarPeriodH\x00"4\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x02\x12\x0c\n\x08\x45XPLICIT\x10\x01:\xca\x02\xea\x41\xc6\x02\n/monitoring.googleapis.com/ServiceLevelObjective\x12Vprojects/{project}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12`organizations/{organization}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12Tfolders/{folder}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12\x01* \x01\x42\x08\n\x06period"\xd4\x01\n\x15ServiceLevelIndicator\x12\x33\n\tbasic_sli\x18\x04 \x01(\x0b\x32\x1e.google.monitoring.v3.BasicSliH\x00\x12>\n\rrequest_based\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.RequestBasedSliH\x00\x12>\n\rwindows_based\x18\x02 \x01(\x0b\x32%.google.monitoring.v3.WindowsBasedSliH\x00\x42\x06\n\x04type"\xb6\x02\n\x08\x42\x61sicSli\x12\x0e\n\x06method\x18\x07 \x03(\t\x12\x10\n\x08location\x18\x08 \x03(\t\x12\x0f\n\x07version\x18\t \x03(\t\x12K\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x33.google.monitoring.v3.BasicSli.AvailabilityCriteriaH\x00\x12\x41\n\x07latency\x18\x03 \x01(\x0b\x32..google.monitoring.v3.BasicSli.LatencyCriteriaH\x00\x1a\x16\n\x14\x41vailabilityCriteria\x1a?\n\x0fLatencyCriteria\x12,\n\tthreshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\n\x0csli_criteria"!\n\x05Range\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01"\xa1\x01\n\x0fRequestBasedSli\x12\x41\n\x10good_total_ratio\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.TimeSeriesRatioH\x00\x12\x41\n\x10\x64istribution_cut\x18\x03 \x01(\x0b\x32%.google.monitoring.v3.DistributionCutH\x00\x42\x08\n\x06method"h\n\x0fTimeSeriesRatio\x12\x1b\n\x13good_service_filter\x18\x04 \x01(\t\x12\x1a\n\x12\x62\x61\x64_service_filter\x18\x05 \x01(\t\x12\x1c\n\x14total_service_filter\x18\x06 \x01(\t"Z\n\x0f\x44istributionCut\x12\x1b\n\x13\x64istribution_filter\x18\x04 \x01(\t\x12*\n\x05range\x18\x05 \x01(\x0b\x32\x1b.google.monitoring.v3.Range"\x83\x05\n\x0fWindowsBasedSli\x12 \n\x16good_bad_metric_filter\x18\x05 \x01(\tH\x00\x12`\n\x1agood_total_ratio_threshold\x18\x02 \x01(\x0b\x32:.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdH\x00\x12Q\n\x14metric_mean_in_range\x18\x06 \x01(\x0b\x32\x31.google.monitoring.v3.WindowsBasedSli.MetricRangeH\x00\x12P\n\x13metric_sum_in_range\x18\x07 \x01(\x0b\x32\x31.google.monitoring.v3.WindowsBasedSli.MetricRangeH\x00\x12\x30\n\rwindow_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\xb0\x01\n\x14PerformanceThreshold\x12<\n\x0bperformance\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.RequestBasedSliH\x00\x12?\n\x15\x62\x61sic_sli_performance\x18\x03 \x01(\x0b\x32\x1e.google.monitoring.v3.BasicSliH\x00\x12\x11\n\tthreshold\x18\x02 \x01(\x01\x42\x06\n\x04type\x1aN\n\x0bMetricRange\x12\x13\n\x0btime_series\x18\x01 \x01(\t\x12*\n\x05range\x18\x04 \x01(\x0b\x32\x1b.google.monitoring.v3.RangeB\x12\n\x10window_criterionB\xce\x01\n\x18\x63om.google.monitoring.v3B\x16ServiceMonitoringProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\026ServiceMonitoringProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n.google/cloud/monitoring_v3/proto/service.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!google/type/calendar_period.proto"\x97\x07\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x36\n\x06\x63ustom\x18\x06 \x01(\x0b\x32$.google.monitoring.v3.Service.CustomH\x00\x12=\n\napp_engine\x18\x07 \x01(\x0b\x32\'.google.monitoring.v3.Service.AppEngineH\x00\x12G\n\x0f\x63loud_endpoints\x18\x08 \x01(\x0b\x32,.google.monitoring.v3.Service.CloudEndpointsH\x00\x12G\n\rcluster_istio\x18\t \x01(\x0b\x32*.google.monitoring.v3.Service.ClusterIstioB\x02\x18\x01H\x00\x12=\n\nmesh_istio\x18\n \x01(\x0b\x32\'.google.monitoring.v3.Service.MeshIstioH\x00\x12:\n\ttelemetry\x18\r \x01(\x0b\x32\'.google.monitoring.v3.Service.Telemetry\x1a\x08\n\x06\x43ustom\x1a\x1e\n\tAppEngine\x12\x11\n\tmodule_id\x18\x01 \x01(\t\x1a!\n\x0e\x43loudEndpoints\x12\x0f\n\x07service\x18\x01 \x01(\t\x1ak\n\x0c\x43lusterIstio\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\x02 \x01(\t\x12\x19\n\x11service_namespace\x18\x03 \x01(\t\x12\x14\n\x0cservice_name\x18\x04 \x01(\t:\x02\x18\x01\x1aN\n\tMeshIstio\x12\x10\n\x08mesh_uid\x18\x01 \x01(\t\x12\x19\n\x11service_namespace\x18\x03 \x01(\t\x12\x14\n\x0cservice_name\x18\x04 \x01(\t\x1a"\n\tTelemetry\x12\x15\n\rresource_name\x18\x01 \x01(\t:\xa7\x01\xea\x41\xa3\x01\n!monitoring.googleapis.com/Service\x12%projects/{project}/services/{service}\x12/organizations/{organization}/services/{service}\x12#folders/{folder}/services/{service}\x12\x01*B\x0c\n\nidentifier"\x91\x05\n\x15ServiceLevelObjective\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x0b \x01(\t\x12L\n\x17service_level_indicator\x18\x03 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelIndicator\x12\x0c\n\x04goal\x18\x04 \x01(\x01\x12\x33\n\x0erolling_period\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x36\n\x0f\x63\x61lendar_period\x18\x06 \x01(\x0e\x32\x1b.google.type.CalendarPeriodH\x00"4\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x02\x12\x0c\n\x08\x45XPLICIT\x10\x01:\xca\x02\xea\x41\xc6\x02\n/monitoring.googleapis.com/ServiceLevelObjective\x12Vprojects/{project}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12`organizations/{organization}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12Tfolders/{folder}/services/{service}/serviceLevelObjectives/{service_level_objective}\x12\x01* \x01\x42\x08\n\x06period"\xd4\x01\n\x15ServiceLevelIndicator\x12\x33\n\tbasic_sli\x18\x04 \x01(\x0b\x32\x1e.google.monitoring.v3.BasicSliH\x00\x12>\n\rrequest_based\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.RequestBasedSliH\x00\x12>\n\rwindows_based\x18\x02 \x01(\x0b\x32%.google.monitoring.v3.WindowsBasedSliH\x00\x42\x06\n\x04type"\xb6\x02\n\x08\x42\x61sicSli\x12\x0e\n\x06method\x18\x07 \x03(\t\x12\x10\n\x08location\x18\x08 \x03(\t\x12\x0f\n\x07version\x18\t \x03(\t\x12K\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x33.google.monitoring.v3.BasicSli.AvailabilityCriteriaH\x00\x12\x41\n\x07latency\x18\x03 \x01(\x0b\x32..google.monitoring.v3.BasicSli.LatencyCriteriaH\x00\x1a\x16\n\x14\x41vailabilityCriteria\x1a?\n\x0fLatencyCriteria\x12,\n\tthreshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\n\x0csli_criteria"!\n\x05Range\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01"\xa1\x01\n\x0fRequestBasedSli\x12\x41\n\x10good_total_ratio\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.TimeSeriesRatioH\x00\x12\x41\n\x10\x64istribution_cut\x18\x03 \x01(\x0b\x32%.google.monitoring.v3.DistributionCutH\x00\x42\x08\n\x06method"h\n\x0fTimeSeriesRatio\x12\x1b\n\x13good_service_filter\x18\x04 \x01(\t\x12\x1a\n\x12\x62\x61\x64_service_filter\x18\x05 \x01(\t\x12\x1c\n\x14total_service_filter\x18\x06 \x01(\t"Z\n\x0f\x44istributionCut\x12\x1b\n\x13\x64istribution_filter\x18\x04 \x01(\t\x12*\n\x05range\x18\x05 \x01(\x0b\x32\x1b.google.monitoring.v3.Range"\x83\x05\n\x0fWindowsBasedSli\x12 \n\x16good_bad_metric_filter\x18\x05 \x01(\tH\x00\x12`\n\x1agood_total_ratio_threshold\x18\x02 \x01(\x0b\x32:.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdH\x00\x12Q\n\x14metric_mean_in_range\x18\x06 \x01(\x0b\x32\x31.google.monitoring.v3.WindowsBasedSli.MetricRangeH\x00\x12P\n\x13metric_sum_in_range\x18\x07 \x01(\x0b\x32\x31.google.monitoring.v3.WindowsBasedSli.MetricRangeH\x00\x12\x30\n\rwindow_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\xb0\x01\n\x14PerformanceThreshold\x12<\n\x0bperformance\x18\x01 \x01(\x0b\x32%.google.monitoring.v3.RequestBasedSliH\x00\x12?\n\x15\x62\x61sic_sli_performance\x18\x03 \x01(\x0b\x32\x1e.google.monitoring.v3.BasicSliH\x00\x12\x11\n\tthreshold\x18\x02 \x01(\x01\x42\x06\n\x04type\x1aN\n\x0bMetricRange\x12\x13\n\x0btime_series\x18\x01 \x01(\t\x12*\n\x05range\x18\x04 \x01(\x0b\x32\x1b.google.monitoring.v3.RangeB\x12\n\x10window_criterionB\xce\x01\n\x18\x63om.google.monitoring.v3B\x16ServiceMonitoringProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -107,7 +100,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -145,7 +138,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -183,7 +176,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -201,7 +194,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -219,7 +212,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -237,7 +230,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -250,7 +243,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -275,7 +268,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -293,7 +286,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -311,7 +304,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -349,7 +342,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -387,7 +380,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -405,7 +398,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -483,7 +476,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -533,9 +526,7 @@ _SERVICE_TELEMETRY, ], enum_types=[], - serialized_options=_b( - "\352A\243\001\n!monitoring.googleapis.com/Service\022%projects/{project}/services/{service}\022/organizations/{organization}/services/{service}\022#folders/{folder}/services/{service}\022\001*" - ), + serialized_options=b"\352A\243\001\n!monitoring.googleapis.com/Service\022%projects/{project}/services/{service}\022/organizations/{organization}/services/{service}\022#folders/{folder}/services/{service}\022\001*", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -569,7 +560,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -587,7 +578,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -672,9 +663,7 @@ extensions=[], nested_types=[], enum_types=[_SERVICELEVELOBJECTIVE_VIEW], - serialized_options=_b( - "\352A\306\002\n/monitoring.googleapis.com/ServiceLevelObjective\022Vprojects/{project}/services/{service}/serviceLevelObjectives/{service_level_objective}\022`organizations/{organization}/services/{service}/serviceLevelObjectives/{service_level_objective}\022Tfolders/{folder}/services/{service}/serviceLevelObjectives/{service_level_objective}\022\001* \001" - ), + serialized_options=b"\352A\306\002\n/monitoring.googleapis.com/ServiceLevelObjective\022Vprojects/{project}/services/{service}/serviceLevelObjectives/{service_level_objective}\022`organizations/{organization}/services/{service}/serviceLevelObjectives/{service_level_objective}\022Tfolders/{folder}/services/{service}/serviceLevelObjectives/{service_level_objective}\022\001* \001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1089,7 +1078,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1107,7 +1096,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1125,7 +1114,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1164,7 +1153,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1303,7 +1292,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1359,7 +1348,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1649,61 +1638,70 @@ Service = _reflection.GeneratedProtocolMessageType( "Service", (_message.Message,), - dict( - Custom=_reflection.GeneratedProtocolMessageType( + { + "Custom": _reflection.GeneratedProtocolMessageType( "Custom", (_message.Message,), - dict( - DESCRIPTOR=_SERVICE_CUSTOM, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Custom view of service telemetry. Currently a place-holder pending - final design.""", + { + "DESCRIPTOR": _SERVICE_CUSTOM, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Custom view of service telemetry. Currently a place-holder + pending final design. + + """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.Custom) - ), + }, ), - AppEngine=_reflection.GeneratedProtocolMessageType( + "AppEngine": _reflection.GeneratedProtocolMessageType( "AppEngine", (_message.Message,), - dict( - DESCRIPTOR=_SERVICE_APPENGINE, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""App Engine service. Learn more at https://cloud.google.com/appengine. + { + "DESCRIPTOR": _SERVICE_APPENGINE, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """App Engine service. Learn more at + https://cloud.google.com/appengine. + + Attributes: module_id: The ID of the App Engine module underlying this service. Corresponds to the ``module_id`` resource label in the - ``gae_app`` monitored resource: https://cloud.google.com/monit - oring/api/resources#tag\_gae\_app + ``gae_app`` monitored resource: + https://cloud.google.com/monitoring/api/resources#tag_gae_app """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.AppEngine) - ), + }, ), - CloudEndpoints=_reflection.GeneratedProtocolMessageType( + "CloudEndpoints": _reflection.GeneratedProtocolMessageType( "CloudEndpoints", (_message.Message,), - dict( - DESCRIPTOR=_SERVICE_CLOUDENDPOINTS, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Cloud Endpoints service. Learn more at + { + "DESCRIPTOR": _SERVICE_CLOUDENDPOINTS, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints. + + Attributes: service: The name of the Cloud Endpoints service underlying this service. Corresponds to the ``service`` resource label in the ``api`` monitored resource: - https://cloud.google.com/monitoring/api/resources#tag\_api + https://cloud.google.com/monitoring/api/resources#tag_api """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.CloudEndpoints) - ), + }, ), - ClusterIstio=_reflection.GeneratedProtocolMessageType( + "ClusterIstio": _reflection.GeneratedProtocolMessageType( "ClusterIstio", (_message.Message,), - dict( - DESCRIPTOR=_SERVICE_CLUSTERISTIO, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Istio service scoped to a single Kubernetes cluster. Learn more at - http://istio.io. + { + "DESCRIPTOR": _SERVICE_CLUSTERISTIO, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Istio service scoped to a single Kubernetes cluster. Learn + more at http://istio.io. + + Attributes: location: The location of the Kubernetes cluster in which this Istio @@ -1723,15 +1721,17 @@ in Istio metrics. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.ClusterIstio) - ), + }, ), - MeshIstio=_reflection.GeneratedProtocolMessageType( + "MeshIstio": _reflection.GeneratedProtocolMessageType( "MeshIstio", (_message.Message,), - dict( - DESCRIPTOR=_SERVICE_MESHISTIO, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Istio service scoped to an Istio mesh + { + "DESCRIPTOR": _SERVICE_MESHISTIO, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Istio service scoped to an Istio mesh + + Attributes: mesh_uid: Identifier for the mesh in which this Istio service is @@ -1747,31 +1747,35 @@ in Istio metrics. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.MeshIstio) - ), + }, ), - Telemetry=_reflection.GeneratedProtocolMessageType( + "Telemetry": _reflection.GeneratedProtocolMessageType( "Telemetry", (_message.Message,), - dict( - DESCRIPTOR=_SERVICE_TELEMETRY, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Configuration for how to query telemetry on a Service. + { + "DESCRIPTOR": _SERVICE_TELEMETRY, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Configuration for how to query telemetry on a Service. + + Attributes: resource_name: The full name of the resource that defines this service. Formatted as described in - https://cloud.google.com/apis/design/resource\_names. + https://cloud.google.com/apis/design/resource_names. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.Telemetry) - ), + }, ), - DESCRIPTOR=_SERVICE, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``Service`` is a discrete, autonomous, and network-accessible unit, - designed to solve an individual concern (`Wikipedia - `__). In Cloud - Monitoring, a ``Service`` acts as the root resource under which + "DESCRIPTOR": _SERVICE, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A ``Service`` is a discrete, autonomous, and + network-accessible unit, designed to solve an individual concern + (`Wikipedia `__). In + Cloud Monitoring, a ``Service`` acts as the root resource under which operational aspects of the service are accessible. + + Attributes: name: Resource name for this Service. The format is: :: @@ -1796,7 +1800,7 @@ Configuration for how to query telemetry on a Service. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service) - ), + }, ) _sym_db.RegisterMessage(Service) _sym_db.RegisterMessage(Service.Custom) @@ -1809,69 +1813,72 @@ ServiceLevelObjective = _reflection.GeneratedProtocolMessageType( "ServiceLevelObjective", (_message.Message,), - dict( - DESCRIPTOR=_SERVICELEVELOBJECTIVE, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A Service-Level Objective (SLO) describes a level of desired good - service. It consists of a service-level indicator (SLI), a performance - goal, and a period over which the objective is to be evaluated against - that goal. The SLO can use SLIs defined in a number of different - manners. Typical SLOs might include "99% of requests in each rolling - week have latency below 200 milliseconds" or "99.5% of requests in - each calendar month return successfully." + { + "DESCRIPTOR": _SERVICELEVELOBJECTIVE, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A Service-Level Objective (SLO) describes a level of + desired good service. It consists of a service-level indicator (SLI), a + performance goal, and a period over which the objective is to be + evaluated against that goal. The SLO can use SLIs defined in a number of + different manners. Typical SLOs might include “99% of requests in each + rolling week have latency below 200 milliseconds” or “99.5% of requests + in each calendar month return successfully.” + + Attributes: name: Resource name for this ``ServiceLevelObjective``. The format - is: :: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE - _ID]/serviceLevelObjectives/[SLO_NAME] + is: :: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] display_name: Name used for UI elements listing this SLO. service_level_indicator: The definition of good service, used to measure and calculate - the quality of the ``Service``'s performance with respect to a - single aspect of service quality. + the quality of the ``Service``\ ’s performance with respect to + a single aspect of service quality. goal: The fraction of service that must be good in order for this objective to be met. ``0 < goal <= 0.999``. period: The time period over which the objective will be evaluated. rolling_period: - A rolling time period, semantically "in the past - ````". Must be an integer multiple of 1 day no + A rolling time period, semantically “in the past + ````”. Must be an integer multiple of 1 day no larger than 30 days. calendar_period: - A calendar period, semantically "since the start of the - current ````". At this time, only ``DAY``, + A calendar period, semantically “since the start of the + current ````”. At this time, only ``DAY``, ``WEEK``, ``FORTNIGHT``, and ``MONTH`` are supported. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ServiceLevelObjective) - ), + }, ) _sym_db.RegisterMessage(ServiceLevelObjective) ServiceLevelIndicator = _reflection.GeneratedProtocolMessageType( "ServiceLevelIndicator", (_message.Message,), - dict( - DESCRIPTOR=_SERVICELEVELINDICATOR, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A Service-Level Indicator (SLI) describes the "performance" of a - service. For some services, the SLI is well-defined. In such cases, - the SLI can be described easily by referencing the well-known SLI and - providing the needed parameters. Alternatively, a "custom" SLI can be - defined with a query to the underlying metric store. An SLI is defined - to be ``good_service / total_service`` over any queried time interval. - The value of performance always falls into the range ``0 <= - performance <= 1``. A custom SLI describes how to compute this ratio, - whether this is by dividing values from a pair of time series, cutting - a ``Distribution`` into good and bad counts, or counting time windows - in which the service complies with a criterion. For separation of - concerns, a single Service-Level Indicator measures performance for - only one aspect of service quality, such as fraction of successful - queries or fast-enough queries. + { + "DESCRIPTOR": _SERVICELEVELINDICATOR, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A Service-Level Indicator (SLI) describes the + “performance” of a service. For some services, the SLI is well-defined. + In such cases, the SLI can be described easily by referencing the + well-known SLI and providing the needed parameters. Alternatively, a + “custom” SLI can be defined with a query to the underlying metric store. + An SLI is defined to be ``good_service / total_service`` over any + queried time interval. The value of performance always falls into the + range ``0 <= performance <= 1``. A custom SLI describes how to compute + this ratio, whether this is by dividing values from a pair of time + series, cutting a ``Distribution`` into good and bad counts, or counting + time windows in which the service complies with a criterion. For + separation of concerns, a single Service-Level Indicator measures + performance for only one aspect of service quality, such as fraction of + successful queries or fast-enough queries. + + Attributes: type: - Service level indicators can be grouped by whether the "unit" + Service level indicators can be grouped by whether the “unit” of service being measured is based on counts of good requests or on counts of good time windows basic_sli: @@ -1882,53 +1889,59 @@ Windows-based SLIs """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ServiceLevelIndicator) - ), + }, ) _sym_db.RegisterMessage(ServiceLevelIndicator) BasicSli = _reflection.GeneratedProtocolMessageType( "BasicSli", (_message.Message,), - dict( - AvailabilityCriteria=_reflection.GeneratedProtocolMessageType( + { + "AvailabilityCriteria": _reflection.GeneratedProtocolMessageType( "AvailabilityCriteria", (_message.Message,), - dict( - DESCRIPTOR=_BASICSLI_AVAILABILITYCRITERIA, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Future parameters for the availability SLI.""", + { + "DESCRIPTOR": _BASICSLI_AVAILABILITYCRITERIA, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Future parameters for the availability SLI. + + """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli.AvailabilityCriteria) - ), + }, ), - LatencyCriteria=_reflection.GeneratedProtocolMessageType( + "LatencyCriteria": _reflection.GeneratedProtocolMessageType( "LatencyCriteria", (_message.Message,), - dict( - DESCRIPTOR=_BASICSLI_LATENCYCRITERIA, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Parameters for a latency threshold SLI. + { + "DESCRIPTOR": _BASICSLI_LATENCYCRITERIA, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Parameters for a latency threshold SLI. + + Attributes: threshold: Good service is defined to be the count of requests made to this service that return in no more than ``threshold``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli.LatencyCriteria) - ), + }, ), - DESCRIPTOR=_BASICSLI, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""An SLI measuring performance on a well-known service type. Performance - will be computed on the basis of pre-defined metrics. The type of the - ``service_resource`` determines the metrics to use and the - ``service_resource.labels`` and ``metric_labels`` are used to - construct a monitoring filter to filter that metric down to just the - data relevant to this service. + "DESCRIPTOR": _BASICSLI, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """An SLI measuring performance on a well-known service type. + Performance will be computed on the basis of pre-defined metrics. The + type of the ``service_resource`` determines the metrics to use and the + ``service_resource.labels`` and ``metric_labels`` are used to construct + a monitoring filter to filter that metric down to just the data relevant + to this service. + + Attributes: method: OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all - the Service's methods. For service types that don't support + the Service’s methods. For service types that don’t support breaking down by method, setting this field will result in an error. location: @@ -1936,13 +1949,13 @@ Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types - that don't support breaking down by location, setting this + that don’t support breaking down by location, setting this field will result in an error. version: OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI - applies to all API versions. For service types that don't + applies to all API versions. For service types that don’t support breaking down by version, setting this field will result in an error. sli_criteria: @@ -1957,7 +1970,7 @@ ``latency.threshold``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli) - ), + }, ) _sym_db.RegisterMessage(BasicSli) _sym_db.RegisterMessage(BasicSli.AvailabilityCriteria) @@ -1966,13 +1979,15 @@ Range = _reflection.GeneratedProtocolMessageType( "Range", (_message.Message,), - dict( - DESCRIPTOR=_RANGE, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Range of numerical values, inclusive of ``min`` and exclusive of - ``max``. If the open range "< range.max" is desired, set ``range.min = - -infinity``. If the open range ">= range.min" is desired, set - ``range.max = infinity``. + { + "DESCRIPTOR": _RANGE, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Range of numerical values, inclusive of ``min`` and + exclusive of ``max``. If the open range “< range.max” is desired, set + ``range.min = -infinity``. If the open range “>= range.min” is desired, + set ``range.max = infinity``. + + Attributes: min: Range minimum. @@ -1980,18 +1995,20 @@ Range maximum. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Range) - ), + }, ) _sym_db.RegisterMessage(Range) RequestBasedSli = _reflection.GeneratedProtocolMessageType( "RequestBasedSli", (_message.Message,), - dict( - DESCRIPTOR=_REQUESTBASEDSLI, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Service Level Indicators for which atomic units of service are counted - directly. + { + "DESCRIPTOR": _REQUESTBASEDSLI, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """Service Level Indicators for which atomic units of service + are counted directly. + + Attributes: method: The means to compute a ratio of ``good_service`` to @@ -2007,23 +2024,25 @@ all values aggregated in the ``Distribution``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.RequestBasedSli) - ), + }, ) _sym_db.RegisterMessage(RequestBasedSli) TimeSeriesRatio = _reflection.GeneratedProtocolMessageType( "TimeSeriesRatio", (_message.Message,), - dict( - DESCRIPTOR=_TIMESERIESRATIO, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``TimeSeriesRatio`` specifies two ``TimeSeries`` to use for - computing the ``good_service / total_service`` ratio. The specified - ``TimeSeries`` must have ``ValueType = DOUBLE`` or ``ValueType = - INT64`` and must have ``MetricKind = DELTA`` or ``MetricKind = - CUMULATIVE``. The ``TimeSeriesRatio`` must specify exactly two of - good, bad, and total, and the relationship ``good_service + - bad_service = total_service`` will be assumed. + { + "DESCRIPTOR": _TIMESERIESRATIO, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A ``TimeSeriesRatio`` specifies two ``TimeSeries`` to use + for computing the ``good_service / total_service`` ratio. The specified + ``TimeSeries`` must have ``ValueType = DOUBLE`` or ``ValueType = INT64`` + and must have ``MetricKind = DELTA`` or ``MetricKind = CUMULATIVE``. The + ``TimeSeriesRatio`` must specify exactly two of good, bad, and total, + and the relationship ``good_service + bad_service = total_service`` will + be assumed. + + Attributes: good_service_filter: A `monitoring filter @@ -2049,22 +2068,24 @@ CUMULATIVE``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesRatio) - ), + }, ) _sym_db.RegisterMessage(TimeSeriesRatio) DistributionCut = _reflection.GeneratedProtocolMessageType( "DistributionCut", (_message.Message,), - dict( - DESCRIPTOR=_DISTRIBUTIONCUT, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``DistributionCut`` defines a ``TimeSeries`` and thresholds used for - measuring good service and total service. The ``TimeSeries`` must have - ``ValueType = DISTRIBUTION`` and ``MetricKind = DELTA`` or - ``MetricKind = CUMULATIVE``. The computed ``good_service`` will be the - count of values x in the ``Distribution`` such that ``range.min <= x < - range.max``. + { + "DESCRIPTOR": _DISTRIBUTIONCUT, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A ``DistributionCut`` defines a ``TimeSeries`` and + thresholds used for measuring good service and total service. The + ``TimeSeries`` must have ``ValueType = DISTRIBUTION`` and + ``MetricKind = DELTA`` or ``MetricKind = CUMULATIVE``. The computed + ``good_service`` will be the count of values x in the ``Distribution`` + such that ``range.min <= x < range.max``. + + Attributes: distribution_filter: A `monitoring filter @@ -2073,26 +2094,28 @@ ``ValueType = DISTRIBUTION`` and ``MetricKind = DELTA`` or ``MetricKind = CUMULATIVE``. range: - Range of values considered "good." For a one-sided range, set + Range of values considered “good.” For a one-sided range, set one bound to an infinite value. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DistributionCut) - ), + }, ) _sym_db.RegisterMessage(DistributionCut) WindowsBasedSli = _reflection.GeneratedProtocolMessageType( "WindowsBasedSli", (_message.Message,), - dict( - PerformanceThreshold=_reflection.GeneratedProtocolMessageType( + { + "PerformanceThreshold": _reflection.GeneratedProtocolMessageType( "PerformanceThreshold", (_message.Message,), - dict( - DESCRIPTOR=_WINDOWSBASEDSLI_PERFORMANCETHRESHOLD, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``PerformanceThreshold`` is used when each window is good when that - window has a sufficiently high ``performance``. + { + "DESCRIPTOR": _WINDOWSBASEDSLI_PERFORMANCETHRESHOLD, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A ``PerformanceThreshold`` is used when each window is + good when that window has a sufficiently high ``performance``. + + Attributes: type: The means, either a request-based SLI or a basic SLI, by which @@ -2106,18 +2129,21 @@ as good. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) - ), + }, ), - MetricRange=_reflection.GeneratedProtocolMessageType( + "MetricRange": _reflection.GeneratedProtocolMessageType( "MetricRange", (_message.Message,), - dict( - DESCRIPTOR=_WINDOWSBASEDSLI_METRICRANGE, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``MetricRange`` is used when each window is good when the value x of - a single ``TimeSeries`` satisfies ``range.min <= x < range.max``. The - provided ``TimeSeries`` must have ``ValueType = INT64`` or ``ValueType - = DOUBLE`` and ``MetricKind = GAUGE``. + { + "DESCRIPTOR": _WINDOWSBASEDSLI_METRICRANGE, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A ``MetricRange`` is used when each window is good when + the value x of a single ``TimeSeries`` satisfies + ``range.min <= x < range.max``. The provided ``TimeSeries`` must have + ``ValueType = INT64`` or ``ValueType = DOUBLE`` and + ``MetricKind = GAUGE``. + + Attributes: time_series: A `monitoring filter @@ -2125,18 +2151,20 @@ specifying the ``TimeSeries`` to use for evaluating window quality. range: - Range of values considered "good." For a one-sided range, set + Range of values considered “good.” For a one-sided range, set one bound to an infinite value. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli.MetricRange) - ), + }, ), - DESCRIPTOR=_WINDOWSBASEDSLI, - __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``WindowsBasedSli`` defines ``good_service`` as the count of time - windows for which the provided service was of good quality. Criteria - for determining if service was good are embedded in the - ``window_criterion``. + "DESCRIPTOR": _WINDOWSBASEDSLI, + "__module__": "google.cloud.monitoring_v3.proto.service_pb2", + "__doc__": """A ``WindowsBasedSli`` defines ``good_service`` as the + count of time windows for which the provided service was of good + quality. Criteria for determining if service was good are embedded in + the ``window_criterion``. + + Attributes: window_criterion: The criterion to use for evaluating window goodness. @@ -2148,17 +2176,17 @@ good_total_ratio_threshold: A window is good if its ``performance`` is high enough. metric_mean_in_range: - A window is good if the metric's value is in a good range, + A window is good if the metric’s value is in a good range, averaged across returned streams. metric_sum_in_range: - A window is good if the metric's value is in a good range, + A window is good if the metric’s value is in a good range, summed across returned streams. window_period: Duration over which window quality is evaluated. Must be an integer fraction of a day and at least ``60s``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli) - ), + }, ) _sym_db.RegisterMessage(WindowsBasedSli) _sym_db.RegisterMessage(WindowsBasedSli.PerformanceThreshold) diff --git a/google/cloud/monitoring_v3/proto/service_service_pb2.py b/google/cloud/monitoring_v3/proto/service_service_pb2.py index ec2410b1..036cfec3 100644 --- a/google/cloud/monitoring_v3/proto/service_service_pb2.py +++ b/google/cloud/monitoring_v3/proto/service_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/service_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -30,12 +27,8 @@ name="google/cloud/monitoring_v3/proto/service_service.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\035ServiceMonitoringServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n6google/cloud/monitoring_v3/proto/service_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/monitoring_v3/proto/service.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x9a\x01\n\x14\x43reateServiceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!monitoring.googleapis.com/Service\x12\x12\n\nservice_id\x18\x03 \x01(\t\x12\x33\n\x07service\x18\x02 \x01(\x0b\x32\x1d.google.monitoring.v3.ServiceB\x03\xe0\x41\x02"L\n\x11GetServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service"\x87\x01\n\x13ListServicesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!monitoring.googleapis.com/Service\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"`\n\x14ListServicesResponse\x12/\n\x08services\x18\x01 \x03(\x0b\x32\x1d.google.monitoring.v3.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"|\n\x14UpdateServiceRequest\x12\x33\n\x07service\x18\x01 \x01(\x0b\x32\x1d.google.monitoring.v3.ServiceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"O\n\x14\x44\x65leteServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service"\xd6\x01\n"CreateServiceLevelObjectiveRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\x12"\n\x1aservice_level_objective_id\x18\x03 \x01(\t\x12Q\n\x17service_level_objective\x18\x02 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelObjectiveB\x03\xe0\x41\x02"\xa8\x01\n\x1fGetServiceLevelObjectiveRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/monitoring.googleapis.com/ServiceLevelObjective\x12>\n\x04view\x18\x02 \x01(\x0e\x32\x30.google.monitoring.v3.ServiceLevelObjective.View"\xd5\x01\n!ListServiceLevelObjectivesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12>\n\x04view\x18\x05 \x01(\x0e\x32\x30.google.monitoring.v3.ServiceLevelObjective.View"\x8c\x01\n"ListServiceLevelObjectivesResponse\x12M\n\x18service_level_objectives\x18\x01 \x03(\x0b\x32+.google.monitoring.v3.ServiceLevelObjective\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xa8\x01\n"UpdateServiceLevelObjectiveRequest\x12Q\n\x17service_level_objective\x18\x01 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelObjectiveB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"k\n"DeleteServiceLevelObjectiveRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/monitoring.googleapis.com/ServiceLevelObjective2\xea\x0f\n\x18ServiceMonitoringService\x12\x97\x01\n\rCreateService\x12*.google.monitoring.v3.CreateServiceRequest\x1a\x1d.google.monitoring.v3.Service";\x82\xd3\xe4\x93\x02$"\x19/v3/{parent=*/*}/services:\x07service\xda\x41\x0eparent,service\x12~\n\nGetService\x12\'.google.monitoring.v3.GetServiceRequest\x1a\x1d.google.monitoring.v3.Service"(\x82\xd3\xe4\x93\x02\x1b\x12\x19/v3/{name=*/*/services/*}\xda\x41\x04name\x12\x91\x01\n\x0cListServices\x12).google.monitoring.v3.ListServicesRequest\x1a*.google.monitoring.v3.ListServicesResponse"*\x82\xd3\xe4\x93\x02\x1b\x12\x19/v3/{parent=*/*}/services\xda\x41\x06parent\x12\x98\x01\n\rUpdateService\x12*.google.monitoring.v3.UpdateServiceRequest\x1a\x1d.google.monitoring.v3.Service"<\x82\xd3\xe4\x93\x02,2!/v3/{service.name=*/*/services/*}:\x07service\xda\x41\x07service\x12}\n\rDeleteService\x12*.google.monitoring.v3.DeleteServiceRequest\x1a\x16.google.protobuf.Empty"(\x82\xd3\xe4\x93\x02\x1b*\x19/v3/{name=*/*/services/*}\xda\x41\x04name\x12\xfa\x01\n\x1b\x43reateServiceLevelObjective\x12\x38.google.monitoring.v3.CreateServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective"t\x82\xd3\xe4\x93\x02M"2/v3/{parent=*/*/services/*}/serviceLevelObjectives:\x17service_level_objective\xda\x41\x1eparent,service_level_objective\x12\xc1\x01\n\x18GetServiceLevelObjective\x12\x35.google.monitoring.v3.GetServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=*/*/services/*/serviceLevelObjectives/*}\xda\x41\x04name\x12\xd4\x01\n\x1aListServiceLevelObjectives\x12\x37.google.monitoring.v3.ListServiceLevelObjectivesRequest\x1a\x38.google.monitoring.v3.ListServiceLevelObjectivesResponse"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{parent=*/*/services/*}/serviceLevelObjectives\xda\x41\x06parent\x12\x8c\x02\n\x1bUpdateServiceLevelObjective\x12\x38.google.monitoring.v3.UpdateServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective"\x85\x01\x82\xd3\xe4\x93\x02\x65\x32J/v3/{service_level_objective.name=*/*/services/*/serviceLevelObjectives/*}:\x17service_level_objective\xda\x41\x17service_level_objective\x12\xb2\x01\n\x1b\x44\x65leteServiceLevelObjective\x12\x38.google.monitoring.v3.DeleteServiceLevelObjectiveRequest\x1a\x16.google.protobuf.Empty"A\x82\xd3\xe4\x93\x02\x34*2/v3/{name=*/*/services/*/serviceLevelObjectives/*}\xda\x41\x04name\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xd5\x01\n\x18\x63om.google.monitoring.v3B\x1dServiceMonitoringServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\035ServiceMonitoringServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n6google/cloud/monitoring_v3/proto/service_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/monitoring_v3/proto/service.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x9a\x01\n\x14\x43reateServiceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!monitoring.googleapis.com/Service\x12\x12\n\nservice_id\x18\x03 \x01(\t\x12\x33\n\x07service\x18\x02 \x01(\x0b\x32\x1d.google.monitoring.v3.ServiceB\x03\xe0\x41\x02"L\n\x11GetServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service"\x87\x01\n\x13ListServicesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!monitoring.googleapis.com/Service\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"`\n\x14ListServicesResponse\x12/\n\x08services\x18\x01 \x03(\x0b\x32\x1d.google.monitoring.v3.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"|\n\x14UpdateServiceRequest\x12\x33\n\x07service\x18\x01 \x01(\x0b\x32\x1d.google.monitoring.v3.ServiceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"O\n\x14\x44\x65leteServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service"\xd6\x01\n"CreateServiceLevelObjectiveRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\x12"\n\x1aservice_level_objective_id\x18\x03 \x01(\t\x12Q\n\x17service_level_objective\x18\x02 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelObjectiveB\x03\xe0\x41\x02"\xa8\x01\n\x1fGetServiceLevelObjectiveRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/monitoring.googleapis.com/ServiceLevelObjective\x12>\n\x04view\x18\x02 \x01(\x0e\x32\x30.google.monitoring.v3.ServiceLevelObjective.View"\xd5\x01\n!ListServiceLevelObjectivesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!monitoring.googleapis.com/Service\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12>\n\x04view\x18\x05 \x01(\x0e\x32\x30.google.monitoring.v3.ServiceLevelObjective.View"\x8c\x01\n"ListServiceLevelObjectivesResponse\x12M\n\x18service_level_objectives\x18\x01 \x03(\x0b\x32+.google.monitoring.v3.ServiceLevelObjective\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xa8\x01\n"UpdateServiceLevelObjectiveRequest\x12Q\n\x17service_level_objective\x18\x01 \x01(\x0b\x32+.google.monitoring.v3.ServiceLevelObjectiveB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"k\n"DeleteServiceLevelObjectiveRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/monitoring.googleapis.com/ServiceLevelObjective2\xea\x0f\n\x18ServiceMonitoringService\x12\x97\x01\n\rCreateService\x12*.google.monitoring.v3.CreateServiceRequest\x1a\x1d.google.monitoring.v3.Service";\x82\xd3\xe4\x93\x02$"\x19/v3/{parent=*/*}/services:\x07service\xda\x41\x0eparent,service\x12~\n\nGetService\x12\'.google.monitoring.v3.GetServiceRequest\x1a\x1d.google.monitoring.v3.Service"(\x82\xd3\xe4\x93\x02\x1b\x12\x19/v3/{name=*/*/services/*}\xda\x41\x04name\x12\x91\x01\n\x0cListServices\x12).google.monitoring.v3.ListServicesRequest\x1a*.google.monitoring.v3.ListServicesResponse"*\x82\xd3\xe4\x93\x02\x1b\x12\x19/v3/{parent=*/*}/services\xda\x41\x06parent\x12\x98\x01\n\rUpdateService\x12*.google.monitoring.v3.UpdateServiceRequest\x1a\x1d.google.monitoring.v3.Service"<\x82\xd3\xe4\x93\x02,2!/v3/{service.name=*/*/services/*}:\x07service\xda\x41\x07service\x12}\n\rDeleteService\x12*.google.monitoring.v3.DeleteServiceRequest\x1a\x16.google.protobuf.Empty"(\x82\xd3\xe4\x93\x02\x1b*\x19/v3/{name=*/*/services/*}\xda\x41\x04name\x12\xfa\x01\n\x1b\x43reateServiceLevelObjective\x12\x38.google.monitoring.v3.CreateServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective"t\x82\xd3\xe4\x93\x02M"2/v3/{parent=*/*/services/*}/serviceLevelObjectives:\x17service_level_objective\xda\x41\x1eparent,service_level_objective\x12\xc1\x01\n\x18GetServiceLevelObjective\x12\x35.google.monitoring.v3.GetServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=*/*/services/*/serviceLevelObjectives/*}\xda\x41\x04name\x12\xd4\x01\n\x1aListServiceLevelObjectives\x12\x37.google.monitoring.v3.ListServiceLevelObjectivesRequest\x1a\x38.google.monitoring.v3.ListServiceLevelObjectivesResponse"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{parent=*/*/services/*}/serviceLevelObjectives\xda\x41\x06parent\x12\x8c\x02\n\x1bUpdateServiceLevelObjective\x12\x38.google.monitoring.v3.UpdateServiceLevelObjectiveRequest\x1a+.google.monitoring.v3.ServiceLevelObjective"\x85\x01\x82\xd3\xe4\x93\x02\x65\x32J/v3/{service_level_objective.name=*/*/services/*/serviceLevelObjectives/*}:\x17service_level_objective\xda\x41\x17service_level_objective\x12\xb2\x01\n\x1b\x44\x65leteServiceLevelObjective\x12\x38.google.monitoring.v3.DeleteServiceLevelObjectiveRequest\x1a\x16.google.protobuf.Empty"A\x82\xd3\xe4\x93\x02\x34*2/v3/{name=*/*/services/*/serviceLevelObjectives/*}\xda\x41\x04name\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xd5\x01\n\x18\x63om.google.monitoring.v3B\x1dServiceMonitoringServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -64,15 +57,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\022!monitoring.googleapis.com/Service" - ), + serialized_options=b"\340A\002\372A#\022!monitoring.googleapis.com/Service", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -84,7 +75,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -108,7 +99,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -141,15 +132,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!monitoring.googleapis.com/Service" - ), + serialized_options=b"\340A\002\372A#\n!monitoring.googleapis.com/Service", file=DESCRIPTOR, ) ], @@ -182,15 +171,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\022!monitoring.googleapis.com/Service" - ), + serialized_options=b"\340A\002\372A#\022!monitoring.googleapis.com/Service", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -202,7 +189,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -238,7 +225,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -295,7 +282,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -340,7 +327,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -391,15 +378,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!monitoring.googleapis.com/Service" - ), + serialized_options=b"\340A\002\372A#\n!monitoring.googleapis.com/Service", file=DESCRIPTOR, ) ], @@ -432,15 +417,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!monitoring.googleapis.com/Service" - ), + serialized_options=b"\340A\002\372A#\n!monitoring.googleapis.com/Service", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -452,7 +435,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -476,7 +459,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -509,15 +492,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A1\n/monitoring.googleapis.com/ServiceLevelObjective" - ), + serialized_options=b"\340A\002\372A1\n/monitoring.googleapis.com/ServiceLevelObjective", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -568,15 +549,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!monitoring.googleapis.com/Service" - ), + serialized_options=b"\340A\002\372A#\n!monitoring.googleapis.com/Service", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -588,7 +567,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -624,7 +603,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -699,7 +678,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -744,7 +723,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -795,15 +774,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A1\n/monitoring.googleapis.com/ServiceLevelObjective" - ), + serialized_options=b"\340A\002\372A1\n/monitoring.googleapis.com/ServiceLevelObjective", file=DESCRIPTOR, ) ], @@ -888,14 +865,16 @@ CreateServiceRequest = _reflection.GeneratedProtocolMessageType( "CreateServiceRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATESERVICEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``CreateService`` request. + { + "DESCRIPTOR": _CREATESERVICEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``CreateService`` request. + + Attributes: parent: Required. Resource name of the parent workspace. The format - is: :: projects/[PROJECT_ID_OR_NUMBER] + is: :: projects/[PROJECT_ID_OR_NUMBER] service_id: Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern @@ -904,53 +883,57 @@ Required. The ``Service`` to create. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateServiceRequest) - ), + }, ) _sym_db.RegisterMessage(CreateServiceRequest) GetServiceRequest = _reflection.GeneratedProtocolMessageType( "GetServiceRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSERVICEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``GetService`` request. + { + "DESCRIPTOR": _GETSERVICEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``GetService`` request. + + Attributes: name: Required. Resource name of the ``Service``. The format is: :: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetServiceRequest) - ), + }, ) _sym_db.RegisterMessage(GetServiceRequest) ListServicesRequest = _reflection.GeneratedProtocolMessageType( "ListServicesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSERVICESREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``ListServices`` request. + { + "DESCRIPTOR": _LISTSERVICESREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``ListServices`` request. + + Attributes: parent: Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The - formats are: :: projects/[PROJECT_ID_OR_NUMBER] + formats are: :: projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER] filter: A filter specifying what ``Service``\ s to return. The filter - currently supports the following fields: :: - - `identifier_case` - `app_engine.module_id` - - `cloud_endpoints.service` - `cluster_istio.location` - - `cluster_istio.cluster_name` - - `cluster_istio.service_namespace` - + currently supports the following fields: :: - + `identifier_case` - `app_engine.module_id` - + `cloud_endpoints.service` - `cluster_istio.location` - + `cluster_istio.cluster_name` - + `cluster_istio.service_namespace` - `cluster_istio.service_name` ``identifier_case`` refers to which option in the identifier oneof is populated. For example, the filter ``identifier_case = "CUSTOM"`` would match all services with a value for the ``custom`` field. Valid - options are "CUSTOM", "APP\_ENGINE", "CLOUD\_ENDPOINTS", and - "CLUSTER\_ISTIO". + options are “CUSTOM”, “APP_ENGINE”, “CLOUD_ENDPOINTS”, and + “CLUSTER_ISTIO”. page_size: A non-negative number that is the maximum number of results to return. When 0, use default page size. @@ -961,17 +944,19 @@ additional results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServicesRequest) - ), + }, ) _sym_db.RegisterMessage(ListServicesRequest) ListServicesResponse = _reflection.GeneratedProtocolMessageType( "ListServicesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSERVICESRESPONSE, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``ListServices`` response. + { + "DESCRIPTOR": _LISTSERVICESRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``ListServices`` response. + + Attributes: services: The ``Service``\ s matching the specified filter. @@ -982,17 +967,19 @@ this method. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServicesResponse) - ), + }, ) _sym_db.RegisterMessage(ListServicesResponse) UpdateServiceRequest = _reflection.GeneratedProtocolMessageType( "UpdateServiceRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATESERVICEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``UpdateService`` request. + { + "DESCRIPTOR": _UPDATESERVICEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``UpdateService`` request. + + Attributes: service: Required. The ``Service`` to draw updates from. The given @@ -1002,17 +989,19 @@ update. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateServiceRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateServiceRequest) DeleteServiceRequest = _reflection.GeneratedProtocolMessageType( "DeleteServiceRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETESERVICEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``DeleteService`` request. + { + "DESCRIPTOR": _DELETESERVICEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``DeleteService`` request. + + Attributes: name: Required. Resource name of the ``Service`` to delete. The @@ -1020,17 +1009,19 @@ projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteServiceRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteServiceRequest) CreateServiceLevelObjectiveRequest = _reflection.GeneratedProtocolMessageType( "CreateServiceLevelObjectiveRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATESERVICELEVELOBJECTIVEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``CreateServiceLevelObjective`` request. + { + "DESCRIPTOR": _CREATESERVICELEVELOBJECTIVEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``CreateServiceLevelObjective`` request. + + Attributes: parent: Required. Resource name of the parent ``Service``. The format @@ -1046,22 +1037,24 @@ ``ServiceLevelObjective`` exists with this name. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateServiceLevelObjectiveRequest) - ), + }, ) _sym_db.RegisterMessage(CreateServiceLevelObjectiveRequest) GetServiceLevelObjectiveRequest = _reflection.GeneratedProtocolMessageType( "GetServiceLevelObjectiveRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSERVICELEVELOBJECTIVEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``GetServiceLevelObjective`` request. + { + "DESCRIPTOR": _GETSERVICELEVELOBJECTIVEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``GetServiceLevelObjective`` request. + + Attributes: name: Required. Resource name of the ``ServiceLevelObjective`` to - get. The format is: :: projects/[PROJECT_ID_OR_NUMBER]/s - ervices/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] + get. The format is: :: projects/[PROJECT_ID_OR_NUMBER]/se + rvices/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] view: View of the ``ServiceLevelObjective`` to return. If ``DEFAULT``, return the ``ServiceLevelObjective`` as @@ -1071,17 +1064,19 @@ ``RequestBasedSli`` spelling out how the SLI is computed. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetServiceLevelObjectiveRequest) - ), + }, ) _sym_db.RegisterMessage(GetServiceLevelObjectiveRequest) ListServiceLevelObjectivesRequest = _reflection.GeneratedProtocolMessageType( "ListServiceLevelObjectivesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSERVICELEVELOBJECTIVESREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``ListServiceLevelObjectives`` request. + { + "DESCRIPTOR": _LISTSERVICELEVELOBJECTIVESREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``ListServiceLevelObjectives`` request. + + Attributes: parent: Required. Resource name of the parent containing the listed @@ -1109,17 +1104,19 @@ ``RequestBasedSli`` spelling out how the SLI is computed. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServiceLevelObjectivesRequest) - ), + }, ) _sym_db.RegisterMessage(ListServiceLevelObjectivesRequest) ListServiceLevelObjectivesResponse = _reflection.GeneratedProtocolMessageType( "ListServiceLevelObjectivesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSERVICELEVELOBJECTIVESRESPONSE, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``ListServiceLevelObjectives`` response. + { + "DESCRIPTOR": _LISTSERVICELEVELOBJECTIVESRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``ListServiceLevelObjectives`` response. + + Attributes: service_level_objectives: The ``ServiceLevelObjective``\ s matching the specified @@ -1131,17 +1128,19 @@ this method. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServiceLevelObjectivesResponse) - ), + }, ) _sym_db.RegisterMessage(ListServiceLevelObjectivesResponse) UpdateServiceLevelObjectiveRequest = _reflection.GeneratedProtocolMessageType( "UpdateServiceLevelObjectiveRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATESERVICELEVELOBJECTIVEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``UpdateServiceLevelObjective`` request. + { + "DESCRIPTOR": _UPDATESERVICELEVELOBJECTIVEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``UpdateServiceLevelObjective`` request. + + Attributes: service_level_objective: Required. The ``ServiceLevelObjective`` to draw updates from. @@ -1151,25 +1150,27 @@ update. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateServiceLevelObjectiveRequest) DeleteServiceLevelObjectiveRequest = _reflection.GeneratedProtocolMessageType( "DeleteServiceLevelObjectiveRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETESERVICELEVELOBJECTIVEREQUEST, - __module__="google.cloud.monitoring_v3.proto.service_service_pb2", - __doc__="""The ``DeleteServiceLevelObjective`` request. + { + "DESCRIPTOR": _DELETESERVICELEVELOBJECTIVEREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.service_service_pb2", + "__doc__": """The ``DeleteServiceLevelObjective`` request. + + Attributes: name: Required. Resource name of the ``ServiceLevelObjective`` to - delete. The format is: :: projects/[PROJECT_ID_OR_NUMBER - ]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] + delete. The format is: :: projects/[PROJECT_ID_OR_NUMBER] + /services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteServiceLevelObjectiveRequest) @@ -1197,9 +1198,7 @@ full_name="google.monitoring.v3.ServiceMonitoringService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read" - ), + serialized_options=b"\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read", serialized_start=2012, serialized_end=4038, methods=[ @@ -1210,9 +1209,7 @@ containing_service=None, input_type=_CREATESERVICEREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_service__pb2._SERVICE, - serialized_options=_b( - '\202\323\344\223\002$"\031/v3/{parent=*/*}/services:\007service\332A\016parent,service' - ), + serialized_options=b'\202\323\344\223\002$"\031/v3/{parent=*/*}/services:\007service\332A\016parent,service', ), _descriptor.MethodDescriptor( name="GetService", @@ -1221,9 +1218,7 @@ containing_service=None, input_type=_GETSERVICEREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_service__pb2._SERVICE, - serialized_options=_b( - "\202\323\344\223\002\033\022\031/v3/{name=*/*/services/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002\033\022\031/v3/{name=*/*/services/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListServices", @@ -1232,9 +1227,7 @@ containing_service=None, input_type=_LISTSERVICESREQUEST, output_type=_LISTSERVICESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002\033\022\031/v3/{parent=*/*}/services\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002\033\022\031/v3/{parent=*/*}/services\332A\006parent", ), _descriptor.MethodDescriptor( name="UpdateService", @@ -1243,9 +1236,7 @@ containing_service=None, input_type=_UPDATESERVICEREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_service__pb2._SERVICE, - serialized_options=_b( - "\202\323\344\223\002,2!/v3/{service.name=*/*/services/*}:\007service\332A\007service" - ), + serialized_options=b"\202\323\344\223\002,2!/v3/{service.name=*/*/services/*}:\007service\332A\007service", ), _descriptor.MethodDescriptor( name="DeleteService", @@ -1254,9 +1245,7 @@ containing_service=None, input_type=_DELETESERVICEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002\033*\031/v3/{name=*/*/services/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002\033*\031/v3/{name=*/*/services/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateServiceLevelObjective", @@ -1265,9 +1254,7 @@ containing_service=None, input_type=_CREATESERVICELEVELOBJECTIVEREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_service__pb2._SERVICELEVELOBJECTIVE, - serialized_options=_b( - '\202\323\344\223\002M"2/v3/{parent=*/*/services/*}/serviceLevelObjectives:\027service_level_objective\332A\036parent,service_level_objective' - ), + serialized_options=b'\202\323\344\223\002M"2/v3/{parent=*/*/services/*}/serviceLevelObjectives:\027service_level_objective\332A\036parent,service_level_objective', ), _descriptor.MethodDescriptor( name="GetServiceLevelObjective", @@ -1276,9 +1263,7 @@ containing_service=None, input_type=_GETSERVICELEVELOBJECTIVEREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_service__pb2._SERVICELEVELOBJECTIVE, - serialized_options=_b( - "\202\323\344\223\0024\0222/v3/{name=*/*/services/*/serviceLevelObjectives/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0024\0222/v3/{name=*/*/services/*/serviceLevelObjectives/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListServiceLevelObjectives", @@ -1287,9 +1272,7 @@ containing_service=None, input_type=_LISTSERVICELEVELOBJECTIVESREQUEST, output_type=_LISTSERVICELEVELOBJECTIVESRESPONSE, - serialized_options=_b( - "\202\323\344\223\0024\0222/v3/{parent=*/*/services/*}/serviceLevelObjectives\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0024\0222/v3/{parent=*/*/services/*}/serviceLevelObjectives\332A\006parent", ), _descriptor.MethodDescriptor( name="UpdateServiceLevelObjective", @@ -1298,9 +1281,7 @@ containing_service=None, input_type=_UPDATESERVICELEVELOBJECTIVEREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_service__pb2._SERVICELEVELOBJECTIVE, - serialized_options=_b( - "\202\323\344\223\002e2J/v3/{service_level_objective.name=*/*/services/*/serviceLevelObjectives/*}:\027service_level_objective\332A\027service_level_objective" - ), + serialized_options=b"\202\323\344\223\002e2J/v3/{service_level_objective.name=*/*/services/*/serviceLevelObjectives/*}:\027service_level_objective\332A\027service_level_objective", ), _descriptor.MethodDescriptor( name="DeleteServiceLevelObjective", @@ -1309,9 +1290,7 @@ containing_service=None, input_type=_DELETESERVICELEVELOBJECTIVEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0024*2/v3/{name=*/*/services/*/serviceLevelObjectives/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0024*2/v3/{name=*/*/services/*/serviceLevelObjectives/*}\332A\004name", ), ], ) diff --git a/google/cloud/monitoring_v3/proto/span_context_pb2.py b/google/cloud/monitoring_v3/proto/span_context_pb2.py index 92b13954..9e916e9c 100644 --- a/google/cloud/monitoring_v3/proto/span_context_pb2.py +++ b/google/cloud/monitoring_v3/proto/span_context_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/span_context.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/monitoring_v3/proto/span_context.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\020SpanContextProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n3google/cloud/monitoring_v3/proto/span_context.proto\x12\x14google.monitoring.v3" \n\x0bSpanContext\x12\x11\n\tspan_name\x18\x01 \x01(\tB\xc8\x01\n\x18\x63om.google.monitoring.v3B\x10SpanContextProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\020SpanContextProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n3google/cloud/monitoring_v3/proto/span_context.proto\x12\x14google.monitoring.v3" \n\x0bSpanContext\x12\x11\n\tspan_name\x18\x01 \x01(\tB\xc8\x01\n\x18\x63om.google.monitoring.v3B\x10SpanContextProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', ) @@ -44,7 +37,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -72,18 +65,24 @@ SpanContext = _reflection.GeneratedProtocolMessageType( "SpanContext", (_message.Message,), - dict( - DESCRIPTOR=_SPANCONTEXT, - __module__="google.cloud.monitoring_v3.proto.span_context_pb2", - __doc__="""The context of a span, attached to + { + "DESCRIPTOR": _SPANCONTEXT, + "__module__": "google.cloud.monitoring_v3.proto.span_context_pb2", + "__doc__": """The context of a span, attached to [Exemplars][google.api.Distribution.Exemplars] in - [Distribution][google.api.Distribution] values during aggregation. It - contains the name of a span with format: :: - projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] + [Distribution][google.api.Distribution] values during aggregation. + + It contains the name of a span with format: + + :: + + projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] + + Attributes: span_name: - The resource name of the span. The format is: :: project - s/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] + The resource name of the span. The format is: :: projects + /[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] ``[TRACE_ID]`` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. ``[SPAN_ID]`` is a unique identifier for a @@ -91,7 +90,7 @@ of an 8-byte array. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) - ), + }, ) _sym_db.RegisterMessage(SpanContext) diff --git a/google/cloud/monitoring_v3/proto/uptime_pb2.py b/google/cloud/monitoring_v3/proto/uptime_pb2.py index 5044c8ff..bc3389b9 100644 --- a/google/cloud/monitoring_v3/proto/uptime_pb2.py +++ b/google/cloud/monitoring_v3/proto/uptime_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/uptime.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -27,12 +24,8 @@ name="google/cloud/monitoring_v3/proto/uptime.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\013UptimeProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n-google/cloud/monitoring_v3/proto/uptime.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto"\xe6\x01\n\x0fInternalChecker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x10\n\x08gcp_zone\x18\x04 \x01(\t\x12\x17\n\x0fpeer_project_id\x18\x06 \x01(\t\x12:\n\x05state\x18\x07 \x01(\x0e\x32+.google.monitoring.v3.InternalChecker.State"3\n\x05State\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02:\x02\x18\x01"\xfb\x0f\n\x11UptimeCheckConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x12monitored_resource\x18\x03 \x01(\x0b\x32\x1d.google.api.MonitoredResourceH\x00\x12O\n\x0eresource_group\x18\x04 \x01(\x0b\x32\x35.google.monitoring.v3.UptimeCheckConfig.ResourceGroupH\x00\x12G\n\nhttp_check\x18\x05 \x01(\x0b\x32\x31.google.monitoring.v3.UptimeCheckConfig.HttpCheckH\x01\x12\x45\n\ttcp_check\x18\x06 \x01(\x0b\x32\x30.google.monitoring.v3.UptimeCheckConfig.TcpCheckH\x01\x12)\n\x06period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12P\n\x10\x63ontent_matchers\x18\t \x03(\x0b\x32\x36.google.monitoring.v3.UptimeCheckConfig.ContentMatcher\x12\x41\n\x10selected_regions\x18\n \x03(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x17\n\x0bis_internal\x18\x0f \x01(\x08\x42\x02\x18\x01\x12\x44\n\x11internal_checkers\x18\x0e \x03(\x0b\x32%.google.monitoring.v3.InternalCheckerB\x02\x18\x01\x1a\x61\n\rResourceGroup\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12>\n\rresource_type\x18\x02 \x01(\x0e\x32\'.google.monitoring.v3.GroupResourceType\x1a\xa8\x05\n\tHttpCheck\x12W\n\x0erequest_method\x18\x08 \x01(\x0e\x32?.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod\x12\x0f\n\x07use_ssl\x18\x01 \x01(\x08\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12X\n\tauth_info\x18\x04 \x01(\x0b\x32\x45.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication\x12\x14\n\x0cmask_headers\x18\x05 \x01(\x08\x12O\n\x07headers\x18\x06 \x03(\x0b\x32>.google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry\x12S\n\x0c\x63ontent_type\x18\t \x01(\x0e\x32=.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType\x12\x14\n\x0cvalidate_ssl\x18\x07 \x01(\x08\x12\x0c\n\x04\x62ody\x18\n \x01(\x0c\x1a\x39\n\x13\x42\x61sicAuthentication\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01":\n\rRequestMethod\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03GET\x10\x01\x12\x08\n\x04POST\x10\x02"4\n\x0b\x43ontentType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bURL_ENCODED\x10\x01\x1a\x18\n\x08TcpCheck\x12\x0c\n\x04port\x18\x01 \x01(\x05\x1a\x98\x02\n\x0e\x43ontentMatcher\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\\\n\x07matcher\x18\x02 \x01(\x0e\x32K.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption"\x96\x01\n\x14\x43ontentMatcherOption\x12&\n"CONTENT_MATCHER_OPTION_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43ONTAINS_STRING\x10\x01\x12\x17\n\x13NOT_CONTAINS_STRING\x10\x02\x12\x11\n\rMATCHES_REGEX\x10\x03\x12\x15\n\x11NOT_MATCHES_REGEX\x10\x04:\xf3\x01\xea\x41\xef\x01\n+monitoring.googleapis.com/UptimeCheckConfig\x12;projects/{project}/uptimeCheckConfigs/{uptime_check_config}\x12\x45organizations/{organization}/uptimeCheckConfigs/{uptime_check_config}\x12\x39\x66olders/{folder}/uptimeCheckConfigs/{uptime_check_config}\x12\x01*B\n\n\x08resourceB\x14\n\x12\x63heck_request_type"n\n\rUptimeCheckIp\x12\x37\n\x06region\x18\x01 \x01(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t*e\n\x11UptimeCheckRegion\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x07\n\x03USA\x10\x01\x12\n\n\x06\x45UROPE\x10\x02\x12\x11\n\rSOUTH_AMERICA\x10\x03\x12\x10\n\x0c\x41SIA_PACIFIC\x10\x04*[\n\x11GroupResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x19\n\x15\x41WS_ELB_LOAD_BALANCER\x10\x02\x42\xc3\x01\n\x18\x63om.google.monitoring.v3B\x0bUptimeProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\013UptimeProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n-google/cloud/monitoring_v3/proto/uptime.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto"\xe6\x01\n\x0fInternalChecker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x10\n\x08gcp_zone\x18\x04 \x01(\t\x12\x17\n\x0fpeer_project_id\x18\x06 \x01(\t\x12:\n\x05state\x18\x07 \x01(\x0e\x32+.google.monitoring.v3.InternalChecker.State"3\n\x05State\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02:\x02\x18\x01"\xfb\x0f\n\x11UptimeCheckConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x12monitored_resource\x18\x03 \x01(\x0b\x32\x1d.google.api.MonitoredResourceH\x00\x12O\n\x0eresource_group\x18\x04 \x01(\x0b\x32\x35.google.monitoring.v3.UptimeCheckConfig.ResourceGroupH\x00\x12G\n\nhttp_check\x18\x05 \x01(\x0b\x32\x31.google.monitoring.v3.UptimeCheckConfig.HttpCheckH\x01\x12\x45\n\ttcp_check\x18\x06 \x01(\x0b\x32\x30.google.monitoring.v3.UptimeCheckConfig.TcpCheckH\x01\x12)\n\x06period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12P\n\x10\x63ontent_matchers\x18\t \x03(\x0b\x32\x36.google.monitoring.v3.UptimeCheckConfig.ContentMatcher\x12\x41\n\x10selected_regions\x18\n \x03(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x17\n\x0bis_internal\x18\x0f \x01(\x08\x42\x02\x18\x01\x12\x44\n\x11internal_checkers\x18\x0e \x03(\x0b\x32%.google.monitoring.v3.InternalCheckerB\x02\x18\x01\x1a\x61\n\rResourceGroup\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12>\n\rresource_type\x18\x02 \x01(\x0e\x32\'.google.monitoring.v3.GroupResourceType\x1a\xa8\x05\n\tHttpCheck\x12W\n\x0erequest_method\x18\x08 \x01(\x0e\x32?.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod\x12\x0f\n\x07use_ssl\x18\x01 \x01(\x08\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12X\n\tauth_info\x18\x04 \x01(\x0b\x32\x45.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication\x12\x14\n\x0cmask_headers\x18\x05 \x01(\x08\x12O\n\x07headers\x18\x06 \x03(\x0b\x32>.google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry\x12S\n\x0c\x63ontent_type\x18\t \x01(\x0e\x32=.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType\x12\x14\n\x0cvalidate_ssl\x18\x07 \x01(\x08\x12\x0c\n\x04\x62ody\x18\n \x01(\x0c\x1a\x39\n\x13\x42\x61sicAuthentication\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01":\n\rRequestMethod\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x07\n\x03GET\x10\x01\x12\x08\n\x04POST\x10\x02"4\n\x0b\x43ontentType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bURL_ENCODED\x10\x01\x1a\x18\n\x08TcpCheck\x12\x0c\n\x04port\x18\x01 \x01(\x05\x1a\x98\x02\n\x0e\x43ontentMatcher\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\\\n\x07matcher\x18\x02 \x01(\x0e\x32K.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption"\x96\x01\n\x14\x43ontentMatcherOption\x12&\n"CONTENT_MATCHER_OPTION_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43ONTAINS_STRING\x10\x01\x12\x17\n\x13NOT_CONTAINS_STRING\x10\x02\x12\x11\n\rMATCHES_REGEX\x10\x03\x12\x15\n\x11NOT_MATCHES_REGEX\x10\x04:\xf3\x01\xea\x41\xef\x01\n+monitoring.googleapis.com/UptimeCheckConfig\x12;projects/{project}/uptimeCheckConfigs/{uptime_check_config}\x12\x45organizations/{organization}/uptimeCheckConfigs/{uptime_check_config}\x12\x39\x66olders/{folder}/uptimeCheckConfigs/{uptime_check_config}\x12\x01*B\n\n\x08resourceB\x14\n\x12\x63heck_request_type"n\n\rUptimeCheckIp\x12\x37\n\x06region\x18\x01 \x01(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t*e\n\x11UptimeCheckRegion\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x07\n\x03USA\x10\x01\x12\n\n\x06\x45UROPE\x10\x02\x12\x11\n\rSOUTH_AMERICA\x10\x03\x12\x10\n\x0c\x41SIA_PACIFIC\x10\x04*[\n\x11GroupResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x19\n\x15\x41WS_ELB_LOAD_BALANCER\x10\x02\x42\xc3\x01\n\x18\x63om.google.monitoring.v3B\x0bUptimeProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -252,7 +245,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -270,7 +263,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -288,7 +281,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -306,7 +299,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -324,7 +317,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -355,7 +348,7 @@ extensions=[], nested_types=[], enum_types=[_INTERNALCHECKER_STATE], - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -381,7 +374,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -437,7 +430,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -455,7 +448,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -493,7 +486,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -511,7 +504,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -524,7 +517,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -585,7 +578,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -711,7 +704,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -793,7 +786,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -849,7 +842,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -867,7 +860,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1035,7 +1028,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1053,7 +1046,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, ), ], @@ -1065,9 +1058,7 @@ _UPTIMECHECKCONFIG_CONTENTMATCHER, ], enum_types=[], - serialized_options=_b( - "\352A\357\001\n+monitoring.googleapis.com/UptimeCheckConfig\022;projects/{project}/uptimeCheckConfigs/{uptime_check_config}\022Eorganizations/{organization}/uptimeCheckConfigs/{uptime_check_config}\0229folders/{folder}/uptimeCheckConfigs/{uptime_check_config}\022\001*" - ), + serialized_options=b"\352A\357\001\n+monitoring.googleapis.com/UptimeCheckConfig\022;projects/{project}/uptimeCheckConfigs/{uptime_check_config}\022Eorganizations/{organization}/uptimeCheckConfigs/{uptime_check_config}\0229folders/{folder}/uptimeCheckConfigs/{uptime_check_config}\022\001*", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1126,7 +1117,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1144,7 +1135,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1259,29 +1250,31 @@ InternalChecker = _reflection.GeneratedProtocolMessageType( "InternalChecker", (_message.Message,), - dict( - DESCRIPTOR=_INTERNALCHECKER, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""An internal checker allows Uptime checks to run on private/internal - GCP resources. + { + "DESCRIPTOR": _INTERNALCHECKER, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """An internal checker allows Uptime checks to run on + private/internal GCP resources. + + Attributes: name: A unique resource name for this InternalChecker. The format - is: :: projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/ - [INTERNAL_CHECKER_ID] ``[PROJECT_ID_OR_NUMBER]`` is the + is: :: projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[ + INTERNAL_CHECKER_ID] ``[PROJECT_ID_OR_NUMBER]`` is the Stackdriver Workspace project for the Uptime check config associated with the internal checker. display_name: - The checker's human-readable name. The display name should be + 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. network: The `GCP VPC network `__ where the internal - resource lives (ex: "default"). + resource lives (ex: “default”). gcp_zone: The GCP zone the Uptime check should egress from. Only - respected for internal Uptime checks, where internal\_network + respected for internal Uptime checks, where internal_network is specified. peer_project_id: The GCP project ID where the internal checker lives. Not @@ -1290,22 +1283,25 @@ The current operational state of the internal checker. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) - ), + }, ) _sym_db.RegisterMessage(InternalChecker) UptimeCheckConfig = _reflection.GeneratedProtocolMessageType( "UptimeCheckConfig", (_message.Message,), - dict( - ResourceGroup=_reflection.GeneratedProtocolMessageType( + { + "ResourceGroup": _reflection.GeneratedProtocolMessageType( "ResourceGroup", (_message.Message,), - dict( - DESCRIPTOR=_UPTIMECHECKCONFIG_RESOURCEGROUP, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""The resource submessage for group checks. It can be used instead of a - monitored resource, when multiple resources are being monitored. + { + "DESCRIPTOR": _UPTIMECHECKCONFIG_RESOURCEGROUP, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """The resource submessage for group checks. It can be used + instead of a monitored resource, when multiple resources are being + monitored. + + Attributes: group_id: The group of resources being monitored. Should be only the @@ -1315,22 +1311,24 @@ The resource type of the group members. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) - ), + }, ), - HttpCheck=_reflection.GeneratedProtocolMessageType( + "HttpCheck": _reflection.GeneratedProtocolMessageType( "HttpCheck", (_message.Message,), - dict( - BasicAuthentication=_reflection.GeneratedProtocolMessageType( + { + "BasicAuthentication": _reflection.GeneratedProtocolMessageType( "BasicAuthentication", (_message.Message,), - dict( - DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""The authentication parameters to provide to the specified resource or - URL that requires a username and password. Currently, only `Basic HTTP - authentication `__ is supported - in Uptime checks. + { + "DESCRIPTOR": _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """The authentication parameters to provide to the specified + resource or URL that requires a username and password. Currently, only + `Basic HTTP authentication `__ is + supported in Uptime checks. + + Attributes: username: The username to use when authenticating with the HTTP server. @@ -1338,31 +1336,34 @@ The password to use when authenticating with the HTTP server. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) - ), + }, ), - HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry": _reflection.GeneratedProtocolMessageType( "HeadersEntry", (_message.Message,), - dict( - DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2" + { + "DESCRIPTOR": _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2" # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry) - ), + }, ), - DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""Information involved in an HTTP/HTTPS Uptime check request. + "DESCRIPTOR": _UPTIMECHECKCONFIG_HTTPCHECK, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """Information involved in an HTTP/HTTPS Uptime check + request. + + Attributes: request_method: The HTTP request method to use for the check. use_ssl: If ``true``, use HTTPS instead of HTTP to run the check. path: - Optional (defaults to "/"). The path to the page against which + Optional (defaults to “/”). The path to the page against which to run the check. Will be combined with the ``host`` (specified within the ``monitored_resource``) and ``port`` to construct the full URL. If the provided path does not begin - with "/", a "/" will be prepended automatically. + with “/”, a “/” will be prepended automatically. port: Optional (defaults to 80 when ``use_ssl`` is ``false``, and 443 when ``use_ssl`` is ``true``). The TCP port on the HTTP @@ -1407,15 +1408,17 @@ JSON representations are base64 encoded. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) - ), + }, ), - TcpCheck=_reflection.GeneratedProtocolMessageType( + "TcpCheck": _reflection.GeneratedProtocolMessageType( "TcpCheck", (_message.Message,), - dict( - DESCRIPTOR=_UPTIMECHECKCONFIG_TCPCHECK, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""Information required for a TCP Uptime check request. + { + "DESCRIPTOR": _UPTIMECHECKCONFIG_TCPCHECK, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """Information required for a TCP Uptime check request. + + Attributes: port: The TCP port on the server against which to run the check. @@ -1423,19 +1426,21 @@ ``monitored_resource``) to construct the full URL. Required. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) - ), + }, ), - ContentMatcher=_reflection.GeneratedProtocolMessageType( + "ContentMatcher": _reflection.GeneratedProtocolMessageType( "ContentMatcher", (_message.Message,), - dict( - DESCRIPTOR=_UPTIMECHECKCONFIG_CONTENTMATCHER, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""Optional. Used to perform content matching. This allows matching based - on substrings and regular expressions, together with their negations. - Only the first 4 MB of an HTTP or HTTPS check's response (and the - first 1 MB of a TCP check's response) are examined for purposes of - content matching. + { + "DESCRIPTOR": _UPTIMECHECKCONFIG_CONTENTMATCHER, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """Optional. Used to perform content matching. This allows + matching based on substrings and regular expressions, together with + their negations. Only the first 4 MB of an HTTP or HTTPS check’s + response (and the first 1 MB of a TCP check’s response) are examined for + purposes of content matching. + + Attributes: content: String or regex content to match. Maximum 1024 bytes. An empty @@ -1447,17 +1452,19 @@ run. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) - ), - ), - DESCRIPTOR=_UPTIMECHECKCONFIG, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""This message configures which resources and services to monitor for - availability. + }, + ), + "DESCRIPTOR": _UPTIMECHECKCONFIG, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """This message configures which resources and services to + monitor for availability. + + Attributes: name: A unique resource name for this Uptime check configuration. - The format is: :: projects/[PROJECT_ID_OR_NUMBER]/uptim - eCheckConfigs/[UPTIME_CHECK_ID] This field should be omitted + The format is: :: projects/[PROJECT_ID_OR_NUMBER]/uptime + CheckConfigs/[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. @@ -1507,10 +1514,10 @@ available regions. is_internal: If this is ``true``, then checks are made only from the - 'internal\_checkers'. If it is ``false``, then checks are made - only from the 'selected\_regions'. It is an error to provide - 'selected\_regions' when is\_internal is ``true``, or to - provide 'internal\_checkers' when is\_internal is ``false``. + ‘internal_checkers’. If it is ``false``, then checks are made + only from the ‘selected_regions’. It is an error to provide + ‘selected_regions’ when is_internal is ``true``, or to provide + ‘internal_checkers’ when is_internal is ``false``. internal_checkers: The internal checkers that this check will egress from. If ``is_internal`` is ``true`` and this list is empty, the check @@ -1518,7 +1525,7 @@ project that owns this ``UptimeCheckConfig``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig) - ), + }, ) _sym_db.RegisterMessage(UptimeCheckConfig) _sym_db.RegisterMessage(UptimeCheckConfig.ResourceGroup) @@ -1531,11 +1538,13 @@ UptimeCheckIp = _reflection.GeneratedProtocolMessageType( "UptimeCheckIp", (_message.Message,), - dict( - DESCRIPTOR=_UPTIMECHECKIP, - __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""Contains the region, location, and list of IP addresses where checkers - in the location run from. + { + "DESCRIPTOR": _UPTIMECHECKIP, + "__module__": "google.cloud.monitoring_v3.proto.uptime_pb2", + "__doc__": """Contains the region, location, and list of IP addresses + where checkers in the location run from. + + Attributes: region: A broad region category in which the IP address is located. @@ -1553,7 +1562,7 @@ field in either IPv4 or IPv6 format. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckIp) - ), + }, ) _sym_db.RegisterMessage(UptimeCheckIp) diff --git a/google/cloud/monitoring_v3/proto/uptime_service_pb2.py b/google/cloud/monitoring_v3/proto/uptime_service_pb2.py index 3c0fdfef..ec031050 100644 --- a/google/cloud/monitoring_v3/proto/uptime_service_pb2.py +++ b/google/cloud/monitoring_v3/proto/uptime_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/monitoring_v3/proto/uptime_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -31,12 +28,8 @@ name="google/cloud/monitoring_v3/proto/uptime_service.proto", package="google.monitoring.v3", syntax="proto3", - serialized_options=_b( - "\n\030com.google.monitoring.v3B\022UptimeServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3" - ), - serialized_pb=_b( - '\n5google/cloud/monitoring_v3/proto/uptime_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/uptime.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x8b\x01\n\x1dListUptimeCheckConfigsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+monitoring.googleapis.com/UptimeCheckConfig\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x94\x01\n\x1eListUptimeCheckConfigsResponse\x12\x45\n\x14uptime_check_configs\x18\x01 \x03(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05"`\n\x1bGetUptimeCheckConfigRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+monitoring.googleapis.com/UptimeCheckConfig"\xb0\x01\n\x1e\x43reateUptimeCheckConfigRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+monitoring.googleapis.com/UptimeCheckConfig\x12I\n\x13uptime_check_config\x18\x02 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfigB\x03\xe0\x41\x02"\x9c\x01\n\x1eUpdateUptimeCheckConfigRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x13uptime_check_config\x18\x03 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfigB\x03\xe0\x41\x02"c\n\x1e\x44\x65leteUptimeCheckConfigRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+monitoring.googleapis.com/UptimeCheckConfig"B\n\x19ListUptimeCheckIpsRequest\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"t\n\x1aListUptimeCheckIpsResponse\x12=\n\x10uptime_check_ips\x18\x01 \x03(\x0b\x32#.google.monitoring.v3.UptimeCheckIp\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xbd\n\n\x12UptimeCheckService\x12\xc0\x01\n\x16ListUptimeCheckConfigs\x12\x33.google.monitoring.v3.ListUptimeCheckConfigsRequest\x1a\x34.google.monitoring.v3.ListUptimeCheckConfigsResponse";\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*}/uptimeCheckConfigs\xda\x41\x06parent\x12\xad\x01\n\x14GetUptimeCheckConfig\x12\x31.google.monitoring.v3.GetUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/uptimeCheckConfigs/*}\xda\x41\x04name\x12\xde\x01\n\x17\x43reateUptimeCheckConfig\x12\x34.google.monitoring.v3.CreateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"d\x82\xd3\xe4\x93\x02\x41"*/v3/{parent=projects/*}/uptimeCheckConfigs:\x13uptime_check_config\xda\x41\x1aparent,uptime_check_config\x12\xeb\x01\n\x17UpdateUptimeCheckConfig\x12\x34.google.monitoring.v3.UpdateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"q\x82\xd3\xe4\x93\x02U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\x13uptime_check_config\xda\x41\x13uptime_check_config\x12\xa2\x01\n\x17\x44\x65leteUptimeCheckConfig\x12\x34.google.monitoring.v3.DeleteUptimeCheckConfigRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/uptimeCheckConfigs/*}\xda\x41\x04name\x12\x93\x01\n\x12ListUptimeCheckIps\x12/.google.monitoring.v3.ListUptimeCheckIpsRequest\x1a\x30.google.monitoring.v3.ListUptimeCheckIpsResponse"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v3/uptimeCheckIps\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xca\x01\n\x18\x63om.google.monitoring.v3B\x12UptimeServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3' - ), + serialized_options=b"\n\030com.google.monitoring.v3B\022UptimeServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::Monitoring::V3", + serialized_pb=b'\n5google/cloud/monitoring_v3/proto/uptime_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/monitoring_v3/proto/uptime.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x8b\x01\n\x1dListUptimeCheckConfigsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+monitoring.googleapis.com/UptimeCheckConfig\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x94\x01\n\x1eListUptimeCheckConfigsResponse\x12\x45\n\x14uptime_check_configs\x18\x01 \x03(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05"`\n\x1bGetUptimeCheckConfigRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+monitoring.googleapis.com/UptimeCheckConfig"\xb0\x01\n\x1e\x43reateUptimeCheckConfigRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+monitoring.googleapis.com/UptimeCheckConfig\x12I\n\x13uptime_check_config\x18\x02 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfigB\x03\xe0\x41\x02"\x9c\x01\n\x1eUpdateUptimeCheckConfigRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x13uptime_check_config\x18\x03 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfigB\x03\xe0\x41\x02"c\n\x1e\x44\x65leteUptimeCheckConfigRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+monitoring.googleapis.com/UptimeCheckConfig"B\n\x19ListUptimeCheckIpsRequest\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"t\n\x1aListUptimeCheckIpsResponse\x12=\n\x10uptime_check_ips\x18\x01 \x03(\x0b\x32#.google.monitoring.v3.UptimeCheckIp\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xbd\n\n\x12UptimeCheckService\x12\xc0\x01\n\x16ListUptimeCheckConfigs\x12\x33.google.monitoring.v3.ListUptimeCheckConfigsRequest\x1a\x34.google.monitoring.v3.ListUptimeCheckConfigsResponse";\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*}/uptimeCheckConfigs\xda\x41\x06parent\x12\xad\x01\n\x14GetUptimeCheckConfig\x12\x31.google.monitoring.v3.GetUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/uptimeCheckConfigs/*}\xda\x41\x04name\x12\xde\x01\n\x17\x43reateUptimeCheckConfig\x12\x34.google.monitoring.v3.CreateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"d\x82\xd3\xe4\x93\x02\x41"*/v3/{parent=projects/*}/uptimeCheckConfigs:\x13uptime_check_config\xda\x41\x1aparent,uptime_check_config\x12\xeb\x01\n\x17UpdateUptimeCheckConfig\x12\x34.google.monitoring.v3.UpdateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"q\x82\xd3\xe4\x93\x02U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\x13uptime_check_config\xda\x41\x13uptime_check_config\x12\xa2\x01\n\x17\x44\x65leteUptimeCheckConfig\x12\x34.google.monitoring.v3.DeleteUptimeCheckConfigRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/uptimeCheckConfigs/*}\xda\x41\x04name\x12\x93\x01\n\x12ListUptimeCheckIps\x12/.google.monitoring.v3.ListUptimeCheckIpsRequest\x1a\x30.google.monitoring.v3.ListUptimeCheckIpsResponse"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v3/uptimeCheckIps\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xca\x01\n\x18\x63om.google.monitoring.v3B\x12UptimeServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -66,15 +59,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\022+monitoring.googleapis.com/UptimeCheckConfig" - ), + serialized_options=b"\340A\002\372A-\022+monitoring.googleapis.com/UptimeCheckConfig", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -104,7 +95,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -161,7 +152,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -218,15 +209,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+monitoring.googleapis.com/UptimeCheckConfig" - ), + serialized_options=b"\340A\002\372A-\n+monitoring.googleapis.com/UptimeCheckConfig", file=DESCRIPTOR, ) ], @@ -259,15 +248,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\022+monitoring.googleapis.com/UptimeCheckConfig" - ), + serialized_options=b"\340A\002\372A-\022+monitoring.googleapis.com/UptimeCheckConfig", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -285,7 +272,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -342,7 +329,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -375,15 +362,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+monitoring.googleapis.com/UptimeCheckConfig" - ), + serialized_options=b"\340A\002\372A-\n+monitoring.googleapis.com/UptimeCheckConfig", file=DESCRIPTOR, ) ], @@ -434,7 +419,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -491,7 +476,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -565,20 +550,21 @@ ListUptimeCheckConfigsRequest = _reflection.GeneratedProtocolMessageType( "ListUptimeCheckConfigsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTUPTIMECHECKCONFIGSREQUEST, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``ListUptimeCheckConfigs`` request. + { + "DESCRIPTOR": _LISTUPTIMECHECKCONFIGSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``ListUptimeCheckConfigs`` request. + + Attributes: parent: Required. The project whose Uptime check configurations are - listed. The format is: :: - projects/[PROJECT_ID_OR_NUMBER] + listed. The format is: :: projects/[PROJECT_ID_OR_NUMBER] page_size: 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. + returned in a single page. If the page_size is <=0, the server + will decide the number of results to be returned. page_token: If this field is not empty then it must contain the ``nextPageToken`` value returned by a previous call to this @@ -586,17 +572,19 @@ results from the previous method call. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) - ), + }, ) _sym_db.RegisterMessage(ListUptimeCheckConfigsRequest) ListUptimeCheckConfigsResponse = _reflection.GeneratedProtocolMessageType( "ListUptimeCheckConfigsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTUPTIMECHECKCONFIGSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``ListUptimeCheckConfigs`` response. + { + "DESCRIPTOR": _LISTUPTIMECHECKCONFIGSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``ListUptimeCheckConfigs`` response. + + Attributes: uptime_check_configs: The returned Uptime check configurations. @@ -604,62 +592,68 @@ 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). + results, the value of the next_page_token is passed to the + subsequent List method call (in the request message’s + page_token field). total_size: The total number of Uptime check configurations for the project, irrespective of any pagination. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) - ), + }, ) _sym_db.RegisterMessage(ListUptimeCheckConfigsResponse) GetUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( "GetUptimeCheckConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETUPTIMECHECKCONFIGREQUEST, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``GetUptimeCheckConfig`` request. + { + "DESCRIPTOR": _GETUPTIMECHECKCONFIGREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``GetUptimeCheckConfig`` request. + + Attributes: name: Required. The Uptime check configuration to retrieve. The - format is: :: projects/[PROJECT_ID_OR_NUMBER]/uptimeChec - kConfigs/[UPTIME_CHECK_ID] + format is: :: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheck + Configs/[UPTIME_CHECK_ID] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) - ), + }, ) _sym_db.RegisterMessage(GetUptimeCheckConfigRequest) CreateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( "CreateUptimeCheckConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEUPTIMECHECKCONFIGREQUEST, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``CreateUptimeCheckConfig`` request. + { + "DESCRIPTOR": _CREATEUPTIMECHECKCONFIGREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``CreateUptimeCheckConfig`` request. + + Attributes: parent: Required. The project in which to create the Uptime check. The - format is: :: projects/[PROJECT_ID_OR_NUMBER] + format is: :: projects/[PROJECT_ID_OR_NUMBER] uptime_check_config: Required. The new Uptime check configuration. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) - ), + }, ) _sym_db.RegisterMessage(CreateUptimeCheckConfigRequest) UpdateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( "UpdateUptimeCheckConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEUPTIMECHECKCONFIGREQUEST, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``UpdateUptimeCheckConfig`` request. + { + "DESCRIPTOR": _UPDATEUPTIMECHECKCONFIGREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``UpdateUptimeCheckConfig`` request. + + Attributes: update_mask: Optional. If present, only the listed fields in the current @@ -680,42 +674,46 @@ ``timeout``, ``content_matchers``, and ``selected_regions``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateUptimeCheckConfigRequest) DeleteUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( "DeleteUptimeCheckConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEUPTIMECHECKCONFIGREQUEST, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``DeleteUptimeCheckConfig`` request. + { + "DESCRIPTOR": _DELETEUPTIMECHECKCONFIGREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``DeleteUptimeCheckConfig`` request. + + Attributes: name: Required. The Uptime check configuration to delete. The format - is: :: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfig - s/[UPTIME_CHECK_ID] + is: :: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs + /[UPTIME_CHECK_ID] """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteUptimeCheckConfigRequest) ListUptimeCheckIpsRequest = _reflection.GeneratedProtocolMessageType( "ListUptimeCheckIpsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTUPTIMECHECKIPSREQUEST, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``ListUptimeCheckIps`` request. + { + "DESCRIPTOR": _LISTUPTIMECHECKIPSREQUEST, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``ListUptimeCheckIps`` request. + + Attributes: page_size: 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. NOTE: - this field is not yet implemented + returned in a single page. If the page_size is <=0, the server + will decide the number of results to be returned. NOTE: this + field is not yet implemented page_token: If this field is not empty then it must contain the ``nextPageToken`` value returned by a previous call to this @@ -724,17 +722,19 @@ yet implemented """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) - ), + }, ) _sym_db.RegisterMessage(ListUptimeCheckIpsRequest) ListUptimeCheckIpsResponse = _reflection.GeneratedProtocolMessageType( "ListUptimeCheckIpsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTUPTIMECHECKIPSRESPONSE, - __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", - __doc__="""The protocol for the ``ListUptimeCheckIps`` response. + { + "DESCRIPTOR": _LISTUPTIMECHECKIPSRESPONSE, + "__module__": "google.cloud.monitoring_v3.proto.uptime_service_pb2", + "__doc__": """The protocol for the ``ListUptimeCheckIps`` response. + + Attributes: uptime_check_ips: The returned list of IP addresses (including region and @@ -743,12 +743,12 @@ 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). NOTE: this field is not yet implemented + results, the value of the next_page_token is passed to the + subsequent List method call (in the request message’s + page_token field). NOTE: this field is not yet implemented """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) - ), + }, ) _sym_db.RegisterMessage(ListUptimeCheckIpsResponse) @@ -766,9 +766,7 @@ full_name="google.monitoring.v3.UptimeCheckService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read" - ), + serialized_options=b"\312A\031monitoring.googleapis.com\322A\211\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read", serialized_start=1353, serialized_end=2694, methods=[ @@ -779,9 +777,7 @@ containing_service=None, input_type=_LISTUPTIMECHECKCONFIGSREQUEST, output_type=_LISTUPTIMECHECKCONFIGSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptimeCheckConfigs\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptimeCheckConfigs\332A\006parent", ), _descriptor.MethodDescriptor( name="GetUptimeCheckConfig", @@ -790,9 +786,7 @@ containing_service=None, input_type=_GETUPTIMECHECKCONFIGREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - serialized_options=_b( - "\202\323\344\223\002,\022*/v3/{name=projects/*/uptimeCheckConfigs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002,\022*/v3/{name=projects/*/uptimeCheckConfigs/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateUptimeCheckConfig", @@ -801,9 +795,7 @@ containing_service=None, input_type=_CREATEUPTIMECHECKCONFIGREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - serialized_options=_b( - '\202\323\344\223\002A"*/v3/{parent=projects/*}/uptimeCheckConfigs:\023uptime_check_config\332A\032parent,uptime_check_config' - ), + serialized_options=b'\202\323\344\223\002A"*/v3/{parent=projects/*}/uptimeCheckConfigs:\023uptime_check_config\332A\032parent,uptime_check_config', ), _descriptor.MethodDescriptor( name="UpdateUptimeCheckConfig", @@ -812,9 +804,7 @@ containing_service=None, input_type=_UPDATEUPTIMECHECKCONFIGREQUEST, output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - serialized_options=_b( - "\202\323\344\223\002U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\023uptime_check_config\332A\023uptime_check_config" - ), + serialized_options=b"\202\323\344\223\002U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\023uptime_check_config\332A\023uptime_check_config", ), _descriptor.MethodDescriptor( name="DeleteUptimeCheckConfig", @@ -823,9 +813,7 @@ containing_service=None, input_type=_DELETEUPTIMECHECKCONFIGREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002,**/v3/{name=projects/*/uptimeCheckConfigs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002,**/v3/{name=projects/*/uptimeCheckConfigs/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListUptimeCheckIps", @@ -834,7 +822,7 @@ containing_service=None, input_type=_LISTUPTIMECHECKIPSREQUEST, output_type=_LISTUPTIMECHECKIPSRESPONSE, - serialized_options=_b("\202\323\344\223\002\024\022\022/v3/uptimeCheckIps"), + serialized_options=b"\202\323\344\223\002\024\022\022/v3/uptimeCheckIps", ), ], ) diff --git a/synth.metadata b/synth.metadata index 3868bb32..a10eff91 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/python-monitoring", - "sha": "843fa976bd58079917d6278d85785bb5b2ad1352" + "sha": "cdd09cd01428dbc43f45b538e1761f9f2529d153" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3f5f8a2258c6a41f9fbf7b80acbca631dda0a952", - "internalRef": "308922843" + "sha": "c8e291e6a4d60771219205b653715d5aeec3e96b", + "internalRef": "311222505" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "01b6f23d24b27878b48667ce597876d66b59780e" + "sha": "c585ac3b5eff5cd2097a5315ffd9cf4823cc1ed2" } } ], diff --git a/synth.py b/synth.py index 1e68c7c2..9f8eda59 100644 --- a/synth.py +++ b/synth.py @@ -70,11 +70,28 @@ "", ) + +s.replace( + "google/cloud/**/service_pb2.py", + """is: :: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ + ID\]/serviceLevelObjectives/\[SLO_NAME\]""", + """is: :: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]""" +) + s.replace( - "google/cloud/monitoring_v3/proto/metric_service_pb2.py", - """(\s+)resource\.type - = starts_with\("gce_"\) AND resource\.label:id""", - """\n resource.type = starts_with("gce_") AND resource.label:id""" + "google/cloud/**/metric_service_pb2.py", + """:: resource\.type = + starts_with\("gce_"\) AND resource\.label:id""", + """:: + + resource.type = starts_with("gce_") AND resource.label:id""" +) + +s.replace( + "google/cloud/**/alert_pb2.py", + """:: projects/\[PROJECT_ID_ + OR_NUMBER\]/notificationChannels/\[CHANNEL_ID\]""", + """projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]""" ) # Deal with long lines due to long proto name @@ -91,10 +108,11 @@ "notification_client.NotificationChannelServiceClient", ) + # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- -templated_files = common.py_library(cov_level=92, system_test_dependencies=["test_utils"]) +templated_files = common.py_library(cov_level=92) s.move(templated_files) s.shell.run(["nox", "-s", "blacken"], hide_output=False)