Module types (0.33.0)

API documentation for monitoring_v3.types module.

Classes

Aggregation

Describes how to combine multiple time series to provide different views of the data. Aggregation consists of an alignment step on individual time series (alignment_period and per_series_aligner) followed by an optional reduction step of the data across the aligned time series (cross_series_reducer and group_by_fields). For more details, see Aggregation </monitoring/api/learn_more#aggregation>__.

The approach to be used to align individual time series. Not all alignment functions may be applied to all time series, depending on the metric type and value type of the original time series. Alignment may change the metric type or the value type of the time series. Time series data must be aligned in order to perform cross-time series reduction. If crossSeriesReducer is specified, then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is returned.

The set of fields to preserve when crossSeriesReducer is specified. The groupByFields determine how the time series are partitioned into subsets prior to applying the aggregation function. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The crossSeriesReducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in groupByFields are aggregated away. If groupByFields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If crossSeriesReducer is not defined, this field is ignored.

AlertPolicy

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 </monitoring/alerts/>__.

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 same project. The name is limited to 512 Unicode characters.

User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

How to combine the results of multiple conditions to determine if an incident should be opened.

Identifies the notification channels to which notifications should be sent when incidents are opened or closed or when new 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 syntax of the entries in this field is: :: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]

A read-only record of the most recent change to the alerting policy. If provided in a call to create or update, this field will be ignored.

Any

API documentation for monitoring_v3.types.Any class.

BoolValue

API documentation for monitoring_v3.types.BoolValue class.

BytesValue

API documentation for monitoring_v3.types.BytesValue class.

CreateAlertPolicyRequest

The protocol for the CreateAlertPolicy request.

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.

CreateGroupRequest

The CreateGroup request.

A group definition. It is an error to define the name field because the system assigns the name.

CreateMetricDescriptorRequest

The CreateMetricDescriptor request.

The new custom metric </monitoring/custom-metrics>__ descriptor.

CreateNotificationChannelRequest

The CreateNotificationChannel request.

The definition of the NotificationChannel to create.

CreateTimeSeriesError

Describes the result of a failed request to write data to a time series.

The status of the requested write operation.

CreateTimeSeriesRequest

The CreateTimeSeries request.

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 TimeSeries value must fully specify a unique time series by supplying all label values for the metric and the monitored resource.

CreateUptimeCheckConfigRequest

The protocol for the CreateUptimeCheckConfig request.

The new uptime check configuration.

DeleteAlertPolicyRequest

The protocol for the DeleteAlertPolicy request.

DeleteGroupRequest

The DeleteGroup request. You can only delete a group if it has no children.

DeleteMetricDescriptorRequest

The DeleteMetricDescriptor request.

DeleteNotificationChannelRequest

The DeleteNotificationChannel request.

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 alerting policy will fail to be deleted in a delete operation.

DeleteUptimeCheckConfigRequest

The protocol for the DeleteUptimeCheckConfig request.

Distribution

API documentation for monitoring_v3.types.Distribution class.

DoubleValue

API documentation for monitoring_v3.types.DoubleValue class.

DroppedLabels

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 ambiguities.

Duration

API documentation for monitoring_v3.types.Duration class.

Empty

API documentation for monitoring_v3.types.Empty class.

FieldMask

API documentation for monitoring_v3.types.FieldMask class.

FloatValue

API documentation for monitoring_v3.types.FloatValue class.

GetAlertPolicyRequest

The protocol for the GetAlertPolicy request.

GetGroupRequest

The GetGroup request.

GetMetricDescriptorRequest

The GetMetricDescriptor request.

GetMonitoredResourceDescriptorRequest

The GetMonitoredResourceDescriptor request.

GetNotificationChannelDescriptorRequest

The GetNotificationChannelDescriptor response.

GetNotificationChannelRequest

The GetNotificationChannel request.

GetNotificationChannelVerificationCodeRequest

The GetNotificationChannelVerificationCode request.

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of 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 API does impose an upper limit on the maximum expiration that is permitted).

GetNotificationChannelVerificationCodeResponse

The GetNotificationChannelVerificationCode request.

The expiration time associated with the code that was returned. If an expiration was provided in the request, this is the minimum of the requested expiration in the request and the max permitted expiration.

GetUptimeCheckConfigRequest

The protocol for the GetUptimeCheckConfig request.

Group

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.

A user-assigned name for this group, used only for display purposes.

The filter used to determine which monitored resources belong to this group.

Int32Value

API documentation for monitoring_v3.types.Int32Value class.

Int64Value

API documentation for monitoring_v3.types.Int64Value class.

InternalChecker

An internal checker allows uptime checks to run on private/internal GCP resources.

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.

The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.

LabelDescriptor

API documentation for monitoring_v3.types.LabelDescriptor class.

ListAlertPoliciesRequest

The protocol for the ListAlertPolicies request.

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 </monitoring/api/v3/sorting-and-filtering>__.

The maximum number of results to return in a single response.

ListAlertPoliciesResponse

The protocol for the ListAlertPolicies response.

If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.

ListGroupMembersRequest

The ListGroupMembers request.

A positive number that is the maximum number of results to return.

An optional list filter </monitoring/api/learn_more#filtering>__ describing the members to be 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 = "gce_instance"

ListGroupMembersResponse

The ListGroupMembers response.

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.

ListGroupsRequest

The ListGroup request.

An optional filter consisting of a single group name. The filters limit the groups returned based on their parent-child relationship with the specified group. If no filter is specified, all groups are returned.

A group name: "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 the most distant ancestor. If the specified group has no immediate parent, the results are empty.

A positive number that is the maximum number of results to return.

ListGroupsResponse

The ListGroups response.

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.

ListMetricDescriptorsRequest

The ListMetricDescriptors request.

If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter </monitoring/api/v3/filters> specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics </monitoring/custom- metrics>: :: metric.type = starts_with("custom.googleapis.com/")

If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.

ListMetricDescriptorsResponse

The ListMetricDescriptors response.

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.

ListMonitoredResourceDescriptorsRequest

The ListMonitoredResourceDescriptors request.

An optional filter </monitoring/api/v3/filters>__ describing the descriptors to be returned. The filter can reference the descriptor's type and labels. For example, the following filter returns only Google Compute Engine descriptors that have an id label::

   resource.type = starts_with("gce_") AND resource.label:id

If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.

ListMonitoredResourceDescriptorsResponse

The ListMonitoredResourceDescriptors response.

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.

ListNotificationChannelDescriptorsRequest

The ListNotificationChannelDescriptors request.

The maximum number of results to return in a single response. If not set to a positive number, a reasonable value will be chosen by the service.

ListNotificationChannelDescriptorsResponse

The ListNotificationChannelDescriptors response.

If not empty, indicates that there may be more results that match the request. Use the value in the page_token field in a subsequent request to fetch the next set of results. If empty, all results have been returned.

ListNotificationChannelsRequest

The ListNotificationChannels request.

If provided, this field specifies the criteria that must be met by notification channels to be included in the response. For more details, see sorting and filtering </monitoring/api/v3/sorting-and-filtering>__.

The maximum number of results to return in a single response. If not set to a positive number, a reasonable value will be chosen by the service.

ListNotificationChannelsResponse

The ListNotificationChannels response.

If not empty, indicates that there may be more results that match the request. Use the value in the page_token field in a subsequent request to fetch the next set of results. If empty, all results have been returned.

ListTimeSeriesRequest

The ListTimeSeries request.

A monitoring filter </monitoring/api/v3/filters>__ that specifies which time series should be returned. The filter 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.label.instance_name = "my-instance-name"

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

Specifies which information is returned about the time series.

If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.

ListTimeSeriesResponse

The ListTimeSeries response.

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.

ListUptimeCheckConfigsRequest

The protocol for the ListUptimeCheckConfigs request.

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.

ListUptimeCheckConfigsResponse

The protocol for the ListUptimeCheckConfigs response.

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).

ListUptimeCheckIpsRequest

The protocol for the ListUptimeCheckIps request.

If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call. NOTE: this field is not yet implemented

ListUptimeCheckIpsResponse

The protocol for the ListUptimeCheckIps response.

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

ListValue

API documentation for monitoring_v3.types.ListValue class.

Metric

API documentation for monitoring_v3.types.Metric class.

MetricDescriptor

API documentation for monitoring_v3.types.MetricDescriptor class.

MonitoredResource

API documentation for monitoring_v3.types.MonitoredResource class.

MonitoredResourceDescriptor

API documentation for monitoring_v3.types.MonitoredResourceDescriptor class.

MonitoredResourceMetadata

API documentation for monitoring_v3.types.MonitoredResourceMetadata class.

MutationRecord

Describes a change made to a configuration.

The email address of the user making the change.

NotificationChannel

A NotificationChannel is a medium through which an alert is delivered when a policy violation is detected. Examples of channels include email, SMS, and third-party messaging applications. Fields containing sensitive information like authentication tokens or contact info are only partially populated on retrieval.

The full REST resource name for this channel. The syntax is: :: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is automatically assigned by the server on creation.

An optional human-readable description of this notification channel. This description may provide additional details, beyond the display name, for the channel. This may not exceeed 1024 Unicode characters.

User-supplied key/value data that does not need to conform to the corresponding NotificationChannelDescriptor's schema, unlike the labels field. This field is intended to be used for organizing and identifying the NotificationChannel objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.

NotificationChannelDescriptor

A description of a notification channel. The descriptor includes the properties of the channel and the set of labels or fields that must be specified to configure channels of a given type.

The type of notification channel, such as "email", "sms", etc. Notification channel types are globally unique.

A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation.

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

Point

A single data point in a time series.

The value of the data point.

SendNotificationChannelVerificationCodeRequest

The SendNotificationChannelVerificationCode request.

SpanContext

The context of a span, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation.

It contains the name of a span with format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]

Status

API documentation for monitoring_v3.types.Status class.

StringValue

API documentation for monitoring_v3.types.StringValue class.

Struct

API documentation for monitoring_v3.types.Struct class.

TimeInterval

A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

TimeSeries

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.

The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data.

The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or 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 specifies the metric kind of the new descriptor and must be either GAUGE (the default) or CUMULATIVE.

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 be auto-created, then the value type of the descriptor is determined by the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.

Timestamp

API documentation for monitoring_v3.types.Timestamp class.

TypedValue

A single strongly-typed value.

A Boolean value: true or false.

A 64-bit double-precision floating-point number. Its magnitude is approximately ±10±300 and it has 16 significant digits of precision.

A distribution value.

UInt32Value

API documentation for monitoring_v3.types.UInt32Value class.

UInt64Value

API documentation for monitoring_v3.types.UInt64Value class.

UpdateAlertPolicyRequest

The protocol for the UpdateAlertPolicy request.

Required. The updated alerting policy or the updated values for the fields listed in update_mask. If update_mask is not empty, any fields in this policy that are not in update_mask are ignored.

UpdateGroupRequest

The UpdateGroup request.

If true, validate this request but do not update the existing group.

UpdateNotificationChannelRequest

The UpdateNotificationChannel request.

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.

UpdateUptimeCheckConfigRequest

The protocol for the UpdateUptimeCheckConfig request.

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 uptime check configuration, it has the effect of deleting/clearing the field from the configuration on the server. The following fields can be updated: display_name, http_check, tcp_check, timeout, content_matchers, and selected_regions.

UptimeCheckConfig

This message configures which resources and services to monitor for availability.

A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.

The monitored resource <https://cloud.google.com/monitoring/api/resources>__ associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer

The type of uptime check request.

Contains information needed to make a TCP check.

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.

UptimeCheckIp

Contains the region, location, and list of IP addresses where checkers in the location run from.

A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.

Value

API documentation for monitoring_v3.types.Value class.

VerifyNotificationChannelRequest

The VerifyNotificationChannel request.

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 guaranteed that the code is valid UTF-8; one should not make any assumptions regarding the structure or format of the code).