Index
AlertPolicyService
(interface)GroupService
(interface)MetricService
(interface)NotificationChannelService
(interface)QueryService
(interface)ServiceMonitoringService
(interface)SnoozeService
(interface)UptimeCheckService
(interface)Aggregation
(message)Aggregation.Aligner
(enum)Aggregation.Reducer
(enum)AlertPolicy
(message)AlertPolicy.AlertStrategy
(message)AlertPolicy.AlertStrategy.NotificationChannelStrategy
(message)AlertPolicy.AlertStrategy.NotificationPrompt
(enum)AlertPolicy.AlertStrategy.NotificationRateLimit
(message)AlertPolicy.Condition
(message)AlertPolicy.Condition.EvaluationMissingData
(enum)AlertPolicy.Condition.LogMatch
(message)AlertPolicy.Condition.MetricAbsence
(message)AlertPolicy.Condition.MetricThreshold
(message)AlertPolicy.Condition.MetricThreshold.ForecastOptions
(message)AlertPolicy.Condition.MonitoringQueryLanguageCondition
(message)AlertPolicy.Condition.PrometheusQueryLanguageCondition
(message)AlertPolicy.Condition.SqlCondition
(message)AlertPolicy.Condition.SqlCondition.BooleanTest
(message)AlertPolicy.Condition.SqlCondition.Daily
(message)AlertPolicy.Condition.SqlCondition.Hourly
(message)AlertPolicy.Condition.SqlCondition.Minutes
(message)AlertPolicy.Condition.SqlCondition.RowCountTest
(message)AlertPolicy.Condition.Trigger
(message)AlertPolicy.ConditionCombinerType
(enum)AlertPolicy.Documentation
(message)AlertPolicy.Documentation.Link
(message)AlertPolicy.Severity
(enum)BasicSli
(message)BasicSli.AvailabilityCriteria
(message)BasicSli.LatencyCriteria
(message)ComparisonType
(enum)CreateAlertPolicyRequest
(message)CreateGroupRequest
(message)CreateMetricDescriptorRequest
(message)CreateNotificationChannelRequest
(message)CreateServiceLevelObjectiveRequest
(message)CreateServiceRequest
(message)CreateSnoozeRequest
(message)CreateTimeSeriesError
(message)CreateTimeSeriesRequest
(message)CreateTimeSeriesSummary
(message)CreateTimeSeriesSummary.Error
(message)CreateUptimeCheckConfigRequest
(message)DeleteAlertPolicyRequest
(message)DeleteGroupRequest
(message)DeleteMetricDescriptorRequest
(message)DeleteNotificationChannelRequest
(message)DeleteServiceLevelObjectiveRequest
(message)DeleteServiceRequest
(message)DeleteUptimeCheckConfigRequest
(message)DistributionCut
(message)DroppedLabels
(message)GetAlertPolicyRequest
(message)GetGroupRequest
(message)GetMetricDescriptorRequest
(message)GetMonitoredResourceDescriptorRequest
(message)GetNotificationChannelDescriptorRequest
(message)GetNotificationChannelRequest
(message)GetNotificationChannelVerificationCodeRequest
(message)GetNotificationChannelVerificationCodeResponse
(message)GetServiceLevelObjectiveRequest
(message)GetServiceRequest
(message)GetSnoozeRequest
(message)GetUptimeCheckConfigRequest
(message)Group
(message)GroupResourceType
(enum)InternalChecker
(message) (deprecated)InternalChecker.State
(enum)LabelValue
(message)ListAlertPoliciesRequest
(message)ListAlertPoliciesResponse
(message)ListGroupMembersRequest
(message)ListGroupMembersResponse
(message)ListGroupsRequest
(message)ListGroupsResponse
(message)ListMetricDescriptorsRequest
(message)ListMetricDescriptorsResponse
(message)ListMonitoredResourceDescriptorsRequest
(message)ListMonitoredResourceDescriptorsResponse
(message)ListNotificationChannelDescriptorsRequest
(message)ListNotificationChannelDescriptorsResponse
(message)ListNotificationChannelsRequest
(message)ListNotificationChannelsResponse
(message)ListServiceLevelObjectivesRequest
(message)ListServiceLevelObjectivesResponse
(message)ListServicesRequest
(message)ListServicesResponse
(message)ListSnoozesRequest
(message)ListSnoozesResponse
(message)ListTimeSeriesRequest
(message)ListTimeSeriesRequest.TimeSeriesView
(enum)ListTimeSeriesResponse
(message)ListUptimeCheckConfigsRequest
(message)ListUptimeCheckConfigsResponse
(message)ListUptimeCheckIpsRequest
(message)ListUptimeCheckIpsResponse
(message)MutationRecord
(message)NotificationChannel
(message)NotificationChannel.VerificationStatus
(enum)NotificationChannelDescriptor
(message)Point
(message)QueryError
(message)QueryErrorList
(message)QueryTimeSeriesRequest
(message) (deprecated)QueryTimeSeriesResponse
(message) (deprecated)Range
(message)RequestBasedSli
(message)SendNotificationChannelVerificationCodeRequest
(message)Service
(message)Service.AppEngine
(message)Service.BasicService
(message)Service.CloudRun
(message)Service.ClusterIstio
(message)Service.Custom
(message)Service.GkeNamespace
(message)Service.GkeService
(message)Service.GkeWorkload
(message)Service.IstioCanonicalService
(message)Service.MeshIstio
(message)Service.Telemetry
(message)ServiceLevelIndicator
(message)ServiceLevelObjective
(message)ServiceLevelObjective.View
(enum)Snooze
(message)Snooze.Criteria
(message)SpanContext
(message)SyntheticMonitorTarget
(message)SyntheticMonitorTarget.CloudFunctionV2Target
(message)TextLocator
(message)TextLocator.Position
(message)TimeInterval
(message)TimeSeries
(message)TimeSeriesData
(message)TimeSeriesData.PointData
(message)TimeSeriesDescriptor
(message)TimeSeriesDescriptor.ValueDescriptor
(message)TimeSeriesRatio
(message)TypedValue
(message)UpdateAlertPolicyRequest
(message)UpdateGroupRequest
(message)UpdateNotificationChannelRequest
(message)UpdateServiceLevelObjectiveRequest
(message)UpdateServiceRequest
(message)UpdateSnoozeRequest
(message)UpdateUptimeCheckConfigRequest
(message)UptimeCheckConfig
(message)UptimeCheckConfig.CheckerType
(enum)UptimeCheckConfig.ContentMatcher
(message)UptimeCheckConfig.ContentMatcher.ContentMatcherOption
(enum)UptimeCheckConfig.ContentMatcher.JsonPathMatcher
(message)UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption
(enum)UptimeCheckConfig.HttpCheck
(message)UptimeCheckConfig.HttpCheck.BasicAuthentication
(message)UptimeCheckConfig.HttpCheck.ContentType
(enum)UptimeCheckConfig.HttpCheck.RequestMethod
(enum)UptimeCheckConfig.HttpCheck.ResponseStatusCode
(message)UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass
(enum)UptimeCheckConfig.HttpCheck.ServiceAgentAuthentication
(message)UptimeCheckConfig.HttpCheck.ServiceAgentAuthentication.ServiceAgentAuthenticationType
(enum)UptimeCheckConfig.PingConfig
(message)UptimeCheckConfig.ResourceGroup
(message)UptimeCheckConfig.TcpCheck
(message)UptimeCheckIp
(message)UptimeCheckRegion
(enum)VerifyNotificationChannelRequest
(message)WindowsBasedSli
(message)WindowsBasedSli.MetricRange
(message)WindowsBasedSli.PerformanceThreshold
(message)
AlertPolicyService
The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Cloud Monitoring. An alerting policy is 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. In addition to using this API, alert policies can also be managed through Cloud Monitoring, which can be reached by clicking the "Monitoring" tab in Cloud console.
CreateAlertPolicy |
---|
Creates a new alerting policy. Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
DeleteAlertPolicy |
---|
Deletes an alerting policy. Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
GetAlertPolicy |
---|
Gets a single alerting policy.
|
ListAlertPolicies |
---|
Lists the existing alerting policies for the workspace.
|
UpdateAlertPolicy |
---|
Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
GroupService
The Group API lets you inspect and manage your groups.
A group is a named filter that is used to identify a collection of monitored resources. Groups are typically used to mirror the physical and/or logical topology of the environment. Because group membership is computed dynamically, monitored resources that are started in the future are automatically placed in matching groups. By using a group to name monitored resources in, for example, an alert policy, the target of that alert policy is updated automatically as monitored resources are added and removed from the infrastructure.
CreateGroup |
---|
Creates a new group.
|
DeleteGroup |
---|
Deletes an existing group.
|
GetGroup |
---|
Gets a single group.
|
ListGroupMembers |
---|
Lists the monitored resources that are members of a group.
|
ListGroups |
---|
Lists the existing groups.
|
UpdateGroup |
---|
Updates an existing group. You can change any group attributes except
|
MetricService
Manages metric descriptors, monitored resource descriptors, and time series data.
CreateMetricDescriptor |
---|
Creates a new metric descriptor. The creation is executed asynchronously. User-created metric descriptors define custom metrics. The metric descriptor is updated if it already exists, except that metric labels are never removed.
|
CreateTimeSeries |
---|
Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support resource locations constraint of an organization policy.
|
DeleteMetricDescriptor |
---|
Deletes a metric descriptor. Only user-created custom metrics can be deleted.
|
GetMetricDescriptor |
---|
Gets a single metric descriptor.
|
GetMonitoredResourceDescriptor |
---|
Gets a single monitored resource descriptor.
|
ListMetricDescriptors |
---|
Lists metric descriptors that match a filter.
|
ListMonitoredResourceDescriptors |
---|
Lists monitored resource descriptors that match a filter.
|
ListTimeSeries |
---|
Lists time series that match a filter.
|
NotificationChannelService
The Notification Channel API provides access to configuration that controls how messages related to incidents are sent.
CreateNotificationChannel |
---|
Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service. Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
DeleteNotificationChannel |
---|
Deletes a notification channel. Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
GetNotificationChannel |
---|
Gets a single notification channel. The channel includes the relevant configuration details with which the channel was created. However, the response may truncate or omit passwords, API keys, or other private key matter and thus the response may not be 100% identical to the information that was supplied in the call to the create method.
|
GetNotificationChannelDescriptor |
---|
Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type.
|
GetNotificationChannelVerificationCode |
---|
Requests a verification code for an already verified channel that can then be used in a call to VerifyNotificationChannel() on a different channel with an equivalent identity in the same or in a different project. This makes it possible to copy a channel between projects without requiring manual reverification of the channel. If the channel is not in the verified state, this method will fail (in other words, this may only be used if the SendNotificationChannelVerificationCode and VerifyNotificationChannel paths have already been used to put the given channel into the verified state). There is no guarantee that the verification codes returned by this method will be of a similar structure or form as the ones that are delivered to the channel via SendNotificationChannelVerificationCode; while VerifyNotificationChannel() will recognize both the codes delivered via SendNotificationChannelVerificationCode() and returned from GetNotificationChannelVerificationCode(), it is typically the case that the verification codes delivered via SendNotificationChannelVerificationCode() will be shorter and also have a shorter expiration (e.g. codes such as "G-123456") whereas GetVerificationCode() will typically return a much longer, websafe base 64 encoded string that has a longer expiration time.
|
ListNotificationChannelDescriptors |
---|
Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added.
|
ListNotificationChannels |
---|
Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the
|
SendNotificationChannelVerificationCode |
---|
Causes a verification code to be delivered to the channel. The code can then be supplied in
|
UpdateNotificationChannel |
---|
Updates a notification channel. Fields not specified in the field mask remain unchanged. Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
VerifyNotificationChannel |
---|
Verifies a
|
QueryService
The QueryService API is used to manage time series data in Cloud Monitoring. Time series data is a collection of data points that describes the time-varying values of a metric.
QueryTimeSeries |
---|
Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice.
|
ServiceMonitoringService
The Cloud Monitoring Service-Oriented Monitoring API has endpoints for managing and querying aspects of a Metrics Scope's services. These include the Service
's monitored resources, its Service-Level Objectives, and a taxonomy of categorized Health Metrics.
CreateService |
---|
Create a
|
CreateServiceLevelObjective |
---|
Create a
|
DeleteService |
---|
Soft delete this
|
DeleteServiceLevelObjective |
---|
Delete the given
|
GetService |
---|
Get the named
|
GetServiceLevelObjective |
---|
Get a
|
ListServiceLevelObjectives |
---|
List the
|
ListServices |
---|
List
|
UpdateService |
---|
Update this
|
UpdateServiceLevelObjective |
---|
Update the given
|
SnoozeService
The SnoozeService API is used to temporarily prevent an alert policy from generating alerts. A Snooze is a description of the criteria under which one or more alert policies should not fire alerts for the specified duration.
CreateSnooze |
---|
Creates a
|
GetSnooze |
---|
Retrieves a
|
ListSnoozes |
---|
Lists the
|
UpdateSnooze |
---|
Updates a
|
UptimeCheckService
The UptimeCheckService API is used to manage (list, create, delete, edit) Uptime check configurations in the Cloud Monitoring product. An Uptime check is a piece of configuration that determines which resources and services to monitor for availability. These configurations can also be configured interactively by navigating to the Cloud console, selecting the appropriate project, clicking on "Monitoring" on the left-hand side to navigate to Cloud Monitoring, and then clicking on "Uptime".
CreateUptimeCheckConfig |
---|
Creates a new Uptime check configuration.
|
DeleteUptimeCheckConfig |
---|
Deletes an Uptime check configuration. Note that this method will fail if the Uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion.
|
GetUptimeCheckConfig |
---|
Gets a single Uptime check configuration.
|
ListUptimeCheckConfigs |
---|
Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations).
|
ListUptimeCheckIps |
---|
Returns the list of IP addresses that checkers run from.
|
UpdateUptimeCheckConfig |
---|
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
|
Aggregation
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.
Fields | |
---|---|
alignment_ |
The The value must be at least 60 seconds. If a per-series aligner other than The maximum value of the |
per_ |
An Not all alignment operations may be applied to all time series. The valid choices depend on the Time series data must be aligned in order to perform cross-time series reduction. If |
cross_ |
The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series. Not all reducer operations can be applied to all time series. The valid choices depend on the Time series data must first be aligned (see |
group_ |
The set of fields to preserve when |
Aligner
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 data values. An aligned time series has a single data value at the end of each alignment_period
.
An alignment operation can change the data type of the values, too. For example, if you apply a counting operation to boolean values, the data value_type
in the original time series is BOOLEAN
, but the value_type
in the aligned result is INT64
.
Enums | |
---|---|
ALIGN_NONE |
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 |
Align and convert to This alignment is valid for |
ALIGN_RATE |
Align and convert to a rate. The result is computed as This aligner is valid for If, by "rate", you mean "percentage change", see the |
ALIGN_INTERPOLATE |
Align by interpolating between adjacent points around the alignment period boundary. This aligner is valid for GAUGE metrics with numeric values. The value_type of the aligned result is the same as the value_type of the input. |
ALIGN_NEXT_OLDER |
Align by moving the most recent data point before the end of the 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 |
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 |
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 |
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 . |
ALIGN_COUNT |
Align the time series by returning the number of values in each alignment period. This aligner is valid for GAUGE and DELTA metrics with numeric or Boolean values. The value_type of the aligned result is INT64 . |
ALIGN_SUM |
Align the time series by returning the sum of the values in each 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 |
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 |
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 |
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 |
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 |
Align the time series by using percentile aggregation. The resulting data point in each alignment period is the 99th percentile of all data points in the period. This aligner is valid for GAUGE and DELTA metrics with distribution values. The output is a GAUGE metric with value_type DOUBLE . |
ALIGN_PERCENTILE_95 |
Align the time series by using percentile aggregation. The resulting data point in each alignment period is the 95th percentile of all data points in the period. This aligner is valid for GAUGE and DELTA metrics with distribution values. The output is a GAUGE metric with value_type DOUBLE . |
ALIGN_PERCENTILE_50 |
Align the time series by using percentile aggregation. The resulting data point in each alignment period is the 50th percentile of all data points in the period. This aligner is valid for GAUGE and DELTA metrics with distribution values. The output is a GAUGE metric with value_type DOUBLE . |
ALIGN_PERCENTILE_05 |
Align the time series by using percentile aggregation. The resulting data point in each alignment period is the 5th percentile of all data points in the period. This aligner is valid for GAUGE and DELTA metrics with distribution values. The output is a GAUGE metric with value_type DOUBLE . |
ALIGN_PERCENT_CHANGE |
Align and convert to a percentage change. This aligner is valid for If the values of A 10-minute moving mean is computed at each point of the alignment period prior to the above calculation to smooth the metric and prevent false positives from very short-lived spikes. The moving mean is only applicable for data whose values are |
Reducer
A Reducer operation describes how to aggregate data points from multiple time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.
Enums | |
---|---|
REDUCE_NONE |
No cross-time series reduction. The output of the Aligner is returned. |
REDUCE_MEAN |
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 |
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 same as the value_type of the input. |
REDUCE_MAX |
Reduce by computing the maximum 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 same as the value_type of the input. |
REDUCE_SUM |
Reduce by computing the sum across time series for each alignment 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 |
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 |
Reduce by computing the number of data points across time series for each alignment period. This reducer is valid for DELTA and GAUGE metrics of numeric, Boolean, distribution, and string value_type . The value_type of the output is INT64 . |
REDUCE_COUNT_TRUE |
Reduce by computing the number of True -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_COUNT_FALSE |
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 |
Reduce by computing the ratio of the number of True -valued data points to the total number of data points for each alignment period. This reducer is valid for DELTA and GAUGE metrics of Boolean value_type . The output value is in the range [0.0, 1.0] and has value_type DOUBLE . |
REDUCE_PERCENTILE_99 |
Reduce by computing the 99th percentile of data points across time series for each alignment period. This reducer is valid for GAUGE and DELTA metrics of numeric and distribution type. The value of the output is DOUBLE . |
REDUCE_PERCENTILE_95 |
Reduce by computing the 95th percentile of data points across time series for each alignment period. This reducer is valid for GAUGE and DELTA metrics of numeric and distribution type. The value of the output is DOUBLE . |
REDUCE_PERCENTILE_50 |
Reduce by computing the 50th percentile of data points across time series for each alignment period. This reducer is valid for GAUGE and DELTA metrics of numeric and distribution type. The value of the output is DOUBLE . |
REDUCE_PERCENTILE_05 |
Reduce by computing the 5th percentile of data points across time series for each alignment period. This reducer is valid for GAUGE and DELTA metrics of numeric and distribution type. The value of the output is DOUBLE . |
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 alerting policies, see Introduction to Alerting.
Fields | |
---|---|
name |
Identifier. Required if the policy exists. The resource name for this policy. The format is:
|
display_ |
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. The convention for the display_name of a PrometheusQueryLanguageCondition is "{rule group name}/{alert name}", where the {rule group name} and {alert name} should be taken from the corresponding Prometheus configuration file. This convention is not enforced. In any case the display_name is not a unique key of the AlertPolicy. |
documentation |
Documentation that is included with notifications and incidents related to this policy. Best practice is for the documentation to include information to help responders understand, mitigate, escalate, and correct the underlying problems detected by the alerting policy. Notification channels that have limited capacity might not show this documentation. |
user_ |
User-supplied key/value data to be used for organizing and identifying the 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. Note that Prometheus {alert name} is a valid Prometheus label names, whereas Prometheus {rule group} is an unrestricted UTF-8 string. This means that they cannot be stored as-is in user labels, because they may contain characters that are not allowed in user-label values. |
conditions[] |
A list of conditions for the policy. The conditions are combined by AND or OR according to the |
combiner |
How to combine the results of multiple conditions to determine if an incident should be opened. If |
enabled |
Whether or not the policy is enabled. On write, the default interpretation if unset is that the policy is enabled. On read, clients should not make any assumption about the state if it has not been populated. The field should always be populated on List and Get operations, unless a field projection has been specified that strips it out. |
validity |
Read-only description of how the alerting policy is invalid. This field is only set when the alerting policy is invalid. An invalid alerting policy will not generate incidents. |
notification_ |
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
|
creation_ |
A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored. |
mutation_ |
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. |
alert_ |
Control over how this alerting policy's notification channels are notified. |
severity |
Optional. The severity of an alerting policy indicates how important incidents generated by that policy are. The severity level will be displayed on the Incident detail page and in notifications. |
AlertStrategy
Control over how the notification channels in notification_channels
are notified when this alert fires.
Fields | |
---|---|
notification_ |
Required for log-based alerting policies, i.e. policies with a This limit is not implemented for alerting policies that do not have a LogMatch condition. |
notification_ |
For log-based alert policies, the notification prompts is always [OPENED]. For non log-based alert policies, the notification prompts can be [OPENED] or [OPENED, CLOSED]. |
auto_ |
If an alerting policy that was active has no data for this long, any open incidents will close |
notification_ |
Control how notifications will be sent out, on a per-channel basis. |
NotificationChannelStrategy
Control over how the notification channels in notification_channels
are notified when this alert fires, on a per-channel basis.
Fields | |
---|---|
notification_ |
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is:
|
renotify_ |
The frequency at which to send reminder notifications for open incidents. |
NotificationPrompt
Control when notifications will be sent out.
Enums | |
---|---|
NOTIFICATION_PROMPT_UNSPECIFIED |
No strategy specified. Treated as error. |
OPENED |
Notify when an incident is opened. |
CLOSED |
Notify when an incident is closed. |
NotificationRateLimit
Control over the rate of notifications sent to this alerting policy's notification channels.
Fields | |
---|---|
period |
Not more than one notification per |
Condition
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.
Fields | |
---|---|
name |
Required if the condition exists. The unique resource name for this condition. Its format is:
When calling the When calling the Best practice is to preserve |
display_ |
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 same policy. |
Union field condition . Only one of the following condition types will be specified. condition can be only one of the following: |
|
condition_ |
A condition that compares a time series against a threshold. |
condition_ |
A condition that checks that a time series continues to receive new data points. |
condition_ |
A condition that checks for log messages matching given constraints. If set, no other conditions can be present. |
condition_ |
A condition that uses the Monitoring Query Language to define alerts. |
condition_ |
A condition that uses the Prometheus query language to define alerts. |
condition_ |
A condition that periodically evaluates a SQL query result. |
EvaluationMissingData
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. This control doesn't affect metric-absence policies.
Enums | |
---|---|
EVALUATION_MISSING_DATA_UNSPECIFIED |
An unspecified evaluation missing data option. Equivalent to EVALUATION_MISSING_DATA_NO_OP. |
EVALUATION_MISSING_DATA_INACTIVE |
If there is no data to evaluate the condition, then evaluate the condition as false. |
EVALUATION_MISSING_DATA_ACTIVE |
If there is no data to evaluate the condition, then evaluate the condition as true. |
EVALUATION_MISSING_DATA_NO_OP |
Do not evaluate the condition to any value if there is no data. |
LogMatch
A condition type that checks whether a log message in the scoping project satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.
Fields | |
---|---|
filter |
Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed. |
label_ |
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match Please see the documentation on logs-based metric |
MetricAbsence
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
.
Fields | |
---|---|
filter |
Required. A filter that identifies which time series should be compared with the threshold. The filter is similar to the one that is specified in the |
aggregations[] |
Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified. This field is similar to the one in the |
duration |
The amount of time that a time series must fail to report new data to be considered failing. The minimum value of this field is 120 seconds. Larger values that are a multiple of a minute--for example, 240 or 300 seconds--are supported. If an invalid value is given, an error will be returned. The |
trigger |
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by |
MetricThreshold
A condition type that compares a collection of time series against a threshold.
Fields | |
---|---|
filter |
Required. A filter that identifies which time series should be compared with the threshold. The filter is similar to the one that is specified in the |
aggregations[] |
Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified. This field is similar to the one in the |
denominator_ |
A filter that identifies a time series that should be used as the denominator of a ratio that will be compared with the threshold. If a The filter must specify the metric type and optionally may contain restrictions on resource type, resource labels, and metric labels. This field may not exceed 2048 Unicode characters in length. |
denominator_ |
Specifies the alignment of data points in individual time series selected by When computing ratios, the |
forecast_ |
When this field is present, the |
comparison |
The comparison to apply between the time series (indicated by Only |
threshold_ |
A value against which to compare the time series. |
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 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 |
trigger |
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by |
evaluation_ |
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. To use this control, the value of the |
ForecastOptions
Options used when forecasting the time series and testing the predicted value against the threshold.
Fields | |
---|---|
forecast_ |
Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured |
MonitoringQueryLanguageCondition
A condition type that allows alerting policies to be defined using Monitoring Query Language.
Fields | |
---|---|
query |
Monitoring Query Language query that outputs a boolean stream. |
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 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 |
trigger |
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by |
evaluation_ |
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. |
PrometheusQueryLanguageCondition
A condition type that allows alerting policies to be defined using Prometheus Query Language (PromQL).
The PrometheusQueryLanguageCondition message contains information from a Prometheus alerting rule and its associated rule group.
A Prometheus alerting rule is described here. The semantics of a Prometheus alerting rule is described here.
A Prometheus rule group is described here. The semantics of a Prometheus rule group is described here.
Because Cloud Alerting has no representation of a Prometheus rule group resource, we must embed the information of the parent rule group inside each of the conditions that refer to it. We must also update the contents of all Prometheus alerts in case the information of their rule group changes.
The PrometheusQueryLanguageCondition protocol buffer combines the information of the corresponding rule group and alerting rule. The structure of the PrometheusQueryLanguageCondition protocol buffer does NOT mimic the structure of the Prometheus rule group and alerting rule YAML declarations. The PrometheusQueryLanguageCondition protocol buffer may change in the future to support future rule group and/or alerting rule features. There are no new such features at the present time (2023-06-26).
Fields | |
---|---|
query |
Required. The PromQL expression to evaluate. Every evaluation cycle this expression is evaluated at the current time, and all resultant time series become pending/firing alerts. This field must not be empty. |
duration |
Optional. Alerts are considered firing once their PromQL expression was evaluated to be "true" for this long. Alerts whose PromQL expression was not evaluated to be "true" for long enough are considered pending. Must be a non-negative duration or missing. This field is optional. Its default value is zero. |
evaluation_ |
Optional. How often this rule should be evaluated. Must be a positive multiple of 30 seconds or missing. This field is optional. Its default value is 30 seconds. If this PrometheusQueryLanguageCondition was generated from a Prometheus alerting rule, then this value should be taken from the enclosing rule group. |
labels |
Optional. Labels to add to or overwrite in the PromQL query result. Label names must be valid. Label values can be templatized by using variables. The only available variable names are the names of the labels in the PromQL result, including "__name__" and "value". "labels" may be empty. |
rule_ |
Optional. The rule group name of this alert in the corresponding Prometheus configuration file. Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future. This field is optional. If this field is not empty, then it must contain a valid UTF-8 string. This field may not exceed 2048 Unicode characters in length. |
alert_ |
Optional. The alerting rule name of this alert in the corresponding Prometheus configuration file. Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future. This field is optional. If this field is not empty, then it must be a valid Prometheus label name. This field may not exceed 2048 Unicode characters in length. |
SqlCondition
A condition that allows alerting policies to be defined using GoogleSQL. SQL conditions examine a sliding window of logs using GoogleSQL. Alert policies with SQL conditions may incur additional billing.
Fields | |
---|---|
query |
Required. The Log Analytics SQL query to run, as a string. The query must conform to the required shape. Specifically, the query must not try to filter the input by time. A filter will automatically be applied to filter the input so that the query receives all rows received since the last time the query was run. For example, the following query extracts all log entries containing an HTTP request: SELECT timestamp, log_name, severity, http_request, resource, labels FROM my-project.global._Default._AllLogs WHERE http_request IS NOT NULL |
Union field schedule . The schedule indicates how often the query should be run. schedule can be only one of the following: |
|
minutes |
Schedule the query to execute every so many minutes. |
hourly |
Schedule the query to execute every so many hours. |
daily |
Schedule the query to execute every so many days. |
Union field evaluate . The test to be run against the SQL result set. evaluate can be only one of the following: |
|
row_ |
Test the row count against a threshold. |
boolean_ |
Test the boolean value in the indicated column. |
BooleanTest
A test that uses an alerting result in a boolean column produced by the SQL query.
Fields | |
---|---|
column |
Required. The name of the column containing the boolean value. If the value in a row is NULL, that row is ignored. |
Daily
Used to schedule the query to run every so many days.
Fields | |
---|---|
periodicity |
Required. The number of days between runs. Must be greater than or equal to 1 day and less than or equal to 31 days. |
execution_ |
Optional. The time of day (in UTC) at which the query should run. If left unspecified, the server picks an arbitrary time of day and runs the query at the same time each day. |
Hourly
Used to schedule the query to run every so many hours.
Fields | |
---|---|
periodicity |
Required. The number of hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours. |
minute_ |
Optional. The number of minutes after the hour (in UTC) to run the query. Must be greater than or equal to 0 minutes and less than or equal to 59 minutes. If left unspecified, then an arbitrary offset is used. |
Minutes
Used to schedule the query to run every so many minutes.
Fields | |
---|---|
periodicity |
Required. Number of minutes between runs. The interval must be greater than or equal to 5 minutes and less than or equal to 1440 minutes. |
RowCountTest
A test that checks if the number of rows in the result set violates some threshold.
Fields | |
---|---|
comparison |
Required. The comparison to apply between the number of rows returned by the query and the threshold. |
threshold |
Required. The value against which to compare the row count. |
Trigger
Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a {count: 1}
trigger is used.
Fields | |
---|---|
Union field type . A type of trigger. type can be only one of the following: |
|
count |
The absolute number of time series that must fail the predicate for the condition to be triggered. |
percent |
The percentage of time series that must fail the predicate for the condition to be triggered. |
ConditionCombinerType
Operators for combining conditions.
Enums | |
---|---|
COMBINE_UNSPECIFIED |
An unspecified combiner. |
AND |
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 |
Combine conditions using the logical OR operator. An incident is created if any of the listed conditions is met. |
AND_WITH_MATCHING_RESOURCE |
Combine conditions using logical AND operator, but unlike the regular AND option, an incident is created only if all conditions are met simultaneously on at least one resource. |
Documentation
Documentation that is included in the notifications and incidents pertaining to this policy.
Fields | |
---|---|
content |
The body of the documentation, interpreted according to |
mime_ |
The format of the |
subject |
Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by this thread. It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255). The contents of the subject line can be templatized by using variables. If this field is missing or empty, a default subject line will be generated. |
links[] |
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries. |
Link
Links to content such as playbooks, repositories, and other resources.
Fields | |
---|---|
display_ |
A short display name for the link. The display name must not be empty or exceed 63 characters. Example: "playbook". |
url |
The url of a webpage. A url can be templatized by using variables in the path or the query parameters. The total length of a URL should not exceed 2083 characters before and after variable expansion. Example: "https://my_domain.com/playbook?name=${resource.name}" |
Severity
An enumeration of possible severity level for an alerting policy.
Enums | |
---|---|
SEVERITY_UNSPECIFIED |
No severity is specified. This is the default value. |
CRITICAL |
This is the highest severity level. Use this if the problem could cause significant damage or downtime. |
ERROR |
This is the medium severity level. Use this if the problem could cause minor damage or downtime. |
WARNING |
This is the lowest severity level. Use this if the problem is not causing any damage or downtime, but could potentially lead to a problem in the future. |
BasicSli
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.
Fields | |
---|---|
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 breaking down by method, setting this field will result in an error. |
location[] |
OPTIONAL: The set of locations to which this SLI is relevant. 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 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 support breaking down by version, setting this field will result in an error. |
Union field sli_criteria . This SLI can be evaluated on the basis of availability or latency. sli_criteria can be only one of the following: |
|
availability |
Good service is defined to be the count of requests made to this service that return successfully. |
latency |
Good service is defined to be the count of requests made to this service that are fast enough with respect to |
AvailabilityCriteria
This type has no fields.
Future parameters for the availability SLI.
LatencyCriteria
Parameters for a latency threshold SLI.
Fields | |
---|---|
threshold |
Good service is defined to be the count of requests made to this service that return in no more than |
ComparisonType
Specifies an ordering relationship on two arguments, called left
and right
.
Enums | |
---|---|
COMPARISON_UNSPECIFIED |
No ordering relationship is specified. |
COMPARISON_GT |
True if the left argument is greater than the right argument. |
COMPARISON_GE |
True if the left argument is greater than or equal to the right argument. |
COMPARISON_LT |
True if the left argument is less than the right argument. |
COMPARISON_LE |
True if the left argument is less than or equal to the right argument. |
COMPARISON_EQ |
True if the left argument is equal to the right argument. |
COMPARISON_NE |
True if the left argument is not equal to the right argument. |
CreateAlertPolicyRequest
The protocol for the CreateAlertPolicy
request.
Fields | |
---|---|
name |
Required. The project in which to create the alerting policy. The format is:
Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. |name| must be a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form Authorization requires the following IAM permission on the specified resource
|
alert_ |
Required. The requested alerting policy. You should omit the |
CreateGroupRequest
The CreateGroup
request.
Fields | |
---|---|
name |
Required. The project in which to create the group. The format is:
|
group |
Required. A group definition. It is an error to define the |
validate_ |
If true, validate this request but do not create the group. |
CreateMetricDescriptorRequest
The CreateMetricDescriptor
request.
Fields | |
---|---|
name |
Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER] |
metric_ |
Required. The new custom metric descriptor. |
CreateNotificationChannelRequest
The CreateNotificationChannel
request.
Fields | |
---|---|
name |
Required. The project on which to execute the request. The format is:
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 Authorization requires the following IAM permission on the specified resource
|
notification_ |
Required. The definition of the |
CreateServiceLevelObjectiveRequest
The CreateServiceLevelObjective
request.
Fields | |
---|---|
parent |
Required. Resource name of the parent
|
service_ |
Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern |
service_ |
Required. The |
CreateServiceRequest
The CreateService
request.
Fields | |
---|---|
parent |
Required. Resource name of the parent Metrics Scope. The format is:
|
service_ |
Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern |
service |
Required. The |
CreateSnoozeRequest
The message definition for creating a Snooze
. Users must provide the body of the Snooze
to be created but must omit the Snooze
field, name
.
Fields | |
---|---|
parent |
Required. The project in which a
|
snooze |
Required. The |
CreateTimeSeriesError
DEPRECATED. Used to hold per-time-series error status.
Fields | |
---|---|
time_series |
DEPRECATED. Time series ID that resulted in the |
status |
DEPRECATED. The status of the requested write operation for |
CreateTimeSeriesRequest
The CreateTimeSeries
request.
Fields | |
---|---|
name |
Required. The project on which to execute the request. The format is:
|
time_ |
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 The maximum number of |
CreateTimeSeriesSummary
Summary of the result of a failed request to write data to a time series.
Fields | |
---|---|
total_ |
The number of points in the request. |
success_ |
The number of points that were successfully written. |
errors[] |
The number of points that failed to be written. Order is not guaranteed. |
Error
Detailed information about an error category.
Fields | |
---|---|
status |
The status of the requested write operation. |
point_ |
The number of points that couldn't be written because of |
CreateUptimeCheckConfigRequest
The protocol for the CreateUptimeCheckConfig
request.
Fields | |
---|---|
parent |
Required. The project in which to create the Uptime check. The format is:
Authorization requires the following IAM permission on the specified resource
|
uptime_ |
Required. The new Uptime check configuration. |
DeleteAlertPolicyRequest
The protocol for the DeleteAlertPolicy
request.
Fields | |
---|---|
name |
Required. The alerting policy to delete. The format is:
For more information, see Authorization requires the following IAM permission on the specified resource
|
DeleteGroupRequest
The DeleteGroup
request. The default behavior is to be able to delete a single group without any descendants.
Fields | |
---|---|
name |
Required. The group to delete. The format is:
|
recursive |
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. |
DeleteMetricDescriptorRequest
The DeleteMetricDescriptor
request.
Fields | |
---|---|
name |
Required. The metric descriptor on which to execute the request. The format is:
An example of |
DeleteNotificationChannelRequest
The DeleteNotificationChannel
request.
Fields | |
---|---|
name |
Required. The channel for which to execute the request. The format is:
Authorization requires the following IAM permission on the specified resource
|
force |
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, this operation will fail if the notification channel is referenced by existing alerting policies. |
DeleteServiceLevelObjectiveRequest
The DeleteServiceLevelObjective
request.
Fields | |
---|---|
name |
Required. Resource name of the
|
DeleteServiceRequest
The DeleteService
request.
Fields | |
---|---|
name |
Required. Resource name of the
|
DeleteUptimeCheckConfigRequest
The protocol for the DeleteUptimeCheckConfig
request.
Fields | |
---|---|
name |
Required. The Uptime check configuration to delete. The format is:
Authorization requires the following IAM permission on the specified resource
|
DistributionCut
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 estimated count of values in the Distribution
that fall within the specified min
and max
.
Fields | |
---|---|
distribution_ |
A monitoring filter specifying a |
range |
Range of values considered "good." For a one-sided range, set one bound to an infinite value. |
DroppedLabels
A set of (label, value) pairs that were removed from a Distribution time series during aggregation and then added as an attachment to a Distribution.Exemplar.
The full label set for the exemplars is constructed by using the dropped pairs in combination with the label values that remain on the aggregated Distribution time series. The constructed full label set can be used to identify the specific entity, such as the instance or job, which might be contributing to a long-tail. However, with dropped labels, the storage requirements are reduced because only the aggregated distribution values for a large group of time series are stored.
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.
Fields | |
---|---|
label |
Map from label to its value, for all labels dropped in any aggregation. |
GetAlertPolicyRequest
The protocol for the GetAlertPolicy
request.
Fields | |
---|---|
name |
Required. The alerting policy to retrieve. The format is:
Authorization requires the following IAM permission on the specified resource
|
GetGroupRequest
The GetGroup
request.
Fields | |
---|---|
name |
Required. The group to retrieve. The format is:
|
GetMetricDescriptorRequest
The GetMetricDescriptor
request.
Fields | |
---|---|
name |
Required. The metric descriptor on which to execute the request. The format is:
An example value of |
GetMonitoredResourceDescriptorRequest
The GetMonitoredResourceDescriptor
request.
Fields | |
---|---|
name |
Required. The monitored resource descriptor to get. The format is:
The |
GetNotificationChannelDescriptorRequest
The GetNotificationChannelDescriptor
response.
Fields | |
---|---|
name |
Required. The channel type for which to execute the request. The format is:
|
GetNotificationChannelRequest
The GetNotificationChannel
request.
Fields | |
---|---|
name |
Required. The channel for which to execute the request. The format is:
Authorization requires the following IAM permission on the specified resource
|
GetNotificationChannelVerificationCodeRequest
The GetNotificationChannelVerificationCode
request.
Fields | |
---|---|
name |
Required. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail. Authorization requires the following IAM permission on the specified resource
|
expire_ |
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.
Fields | |
---|---|
code |
The verification code, which may be used to verify other 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). |
expire_ |
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. |
GetServiceLevelObjectiveRequest
The GetServiceLevelObjective
request.
Fields | |
---|---|
name |
Required. Resource name of the
|
view |
View of the |
GetServiceRequest
The GetService
request.
Fields | |
---|---|
name |
Required. Resource name of the
|
GetSnoozeRequest
The message definition for retrieving a Snooze
. Users must specify the field, name
, which identifies the Snooze
.
Fields | |
---|---|
name |
Required. The ID of the
|
GetUptimeCheckConfigRequest
The protocol for the GetUptimeCheckConfig
request.
Fields | |
---|---|
name |
Required. The Uptime check configuration to retrieve. The format is:
Authorization requires the following IAM permission on the specified resource
|
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.
Fields | |
---|---|
name |
Output only. The name of this group. The format is:
When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to |
display_ |
A user-assigned name for this group, used only for display purposes. |
parent_ |
The name of the group's parent, if it has one. The format is:
For groups with no parent, |
filter |
The filter used to determine which monitored resources belong to this group. |
is_ |
If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters. |
GroupResourceType
The supported resource types that can be used as values of group_resource.resource_type
. INSTANCE
includes gce_instance
and aws_ec2_instance
resource types. The resource types gae_app
and uptime_url
are not valid here because group checks on App Engine modules and URLs are not allowed.
Enums | |
---|---|
RESOURCE_TYPE_UNSPECIFIED |
Default value (not valid). |
INSTANCE |
A group of instances from Google Cloud Platform (GCP) or Amazon Web Services (AWS). |
AWS_ELB_LOAD_BALANCER |
A group of Amazon ELB load balancers. |
InternalChecker
An internal checker allows Uptime checks to run on private/internal GCP resources.
Fields | |
---|---|
name |
A unique resource name for this InternalChecker. The format is:
|
display_ |
The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope 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"). |
gcp_ |
The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified. |
peer_ |
The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project. |
state |
The current operational state of the internal checker. |
State
Operational states for an internal checker.
Enums | |
---|---|
UNSPECIFIED |
An internal checker should never be in the unspecified state. |
CREATING |
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 |
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. |
LabelValue
A label value.
Fields | |
---|---|
Union field value . The label value can be a bool, int64, or string. value can be only one of the following: |
|
bool_ |
A bool label value. |
int64_ |
An int64 label value. |
string_ |
A string label value. |
ListAlertPoliciesRequest
The protocol for the ListAlertPolicies
request.
Fields | |
---|---|
name |
Required. The project whose alert policies are to be listed. The format is:
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 Authorization requires the following IAM permission on the specified resource
|
filter |
Optional. 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_ |
Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the For more details, see sorting and filtering. |
page_ |
Optional. The maximum number of results to return in a single response. |
page_ |
Optional. If this field is not empty then it must contain the |
ListAlertPoliciesResponse
The protocol for the ListAlertPolicies
response.
Fields | |
---|---|
alert_ |
The returned alert policies. |
next_ |
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 |
total_ |
The total number of alert policies in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158 |
ListGroupMembersRequest
The ListGroupMembers
request.
Fields | |
---|---|
name |
Required. The group whose members are listed. The format is:
|
page_ |
A positive number that is the maximum number of results to return. |
page_ |
If this field is not empty then it must contain the |
filter |
An optional list filter 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:
|
interval |
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 membership over the last minute is returned. |
ListGroupMembersResponse
The ListGroupMembers
response.
Fields | |
---|---|
members[] |
A set of monitored resources in the group. |
next_ |
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 |
total_ |
The total number of elements matching this request. |
ListGroupsRequest
The ListGroup
request.
Fields | |
---|---|
name |
Required. The project whose groups are to be listed. The format is:
|
page_ |
A positive number that is the maximum number of results to return. |
page_ |
If this field is not empty then it must contain the |
Union field filter . 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. filter can be only one of the following: |
|
children_ |
A group name. The format is:
Returns groups whose |
ancestors_ |
A group name. The format is:
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. |
descendants_ |
A group name. The format is:
Returns the descendants of the specified group. This is a superset of the results returned by the |
ListGroupsResponse
The ListGroups
response.
Fields | |
---|---|
group[] |
The groups that match the specified filters. |
next_ |
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 |
ListMetricDescriptorsRequest
The ListMetricDescriptors
request.
Fields | |
---|---|
name |
Required. The project on which to execute the request. The format is:
|
filter |
Optional. 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 metrics:
|
page_ |
Optional. A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted, will instead return a maximum of 10,000 results. |
page_ |
Optional. If this field is not empty then it must contain the |
ListMetricDescriptorsResponse
The ListMetricDescriptors
response.
Fields | |
---|---|
metric_ |
The metric descriptors that are available to the project and that match the value of |
next_ |
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 |
ListMonitoredResourceDescriptorsRequest
The ListMonitoredResourceDescriptors
request.
Fields | |
---|---|
name |
Required. The project on which to execute the request. The format is:
|
filter |
An optional filter 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
|
page_ |
A positive number that is the maximum number of results to return. |
page_ |
If this field is not empty then it must contain the |
ListMonitoredResourceDescriptorsResponse
The ListMonitoredResourceDescriptors
response.
Fields | |
---|---|
resource_ |
The monitored resource descriptors that are available to this project and that match |
next_ |
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 |
ListNotificationChannelDescriptorsRequest
The ListNotificationChannelDescriptors
request.
Fields | |
---|---|
name |
Required. The REST resource name of the parent from which to retrieve the notification channel descriptors. The expected syntax is:
Note that this names the parent container in which to look for the descriptors; to retrieve a single descriptor by name, use the Authorization requires the following IAM permission on the specified resource
|
page_ |
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. |
page_ |
If non-empty, |
ListNotificationChannelDescriptorsResponse
The ListNotificationChannelDescriptors
response.
Fields | |
---|---|
channel_ |
The monitored resource descriptors supported for the specified project, optionally filtered. |
next_ |
If not empty, indicates that there may be more results that match the request. Use the value in the |
ListNotificationChannelsRequest
The ListNotificationChannels
request.
Fields | |
---|---|
name |
Required. The project on which to execute the request. The format is:
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 Authorization requires the following IAM permission on the specified resource
|
filter |
Optional. 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. |
order_ |
Optional. A comma-separated list of fields by which to sort the result. Supports the same set of fields as in For more details, see sorting and filtering. |
page_ |
Optional. 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. |
page_ |
Optional. If non-empty, |
ListNotificationChannelsResponse
The ListNotificationChannels
response.
Fields | |
---|---|
notification_ |
The notification channels defined for the specified project. |
next_ |
If not empty, indicates that there may be more results that match the request. Use the value in the |
total_ |
The total number of notification channels in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158 |
ListServiceLevelObjectivesRequest
The ListServiceLevelObjectives
request.
Fields | |
---|---|
parent |
Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are:
|
filter |
A filter specifying what |
page_ |
A non-negative number that is the maximum number of results to return. When 0, use default page size. |
page_ |
If this field is not empty then it must contain the |
view |
View of the |
ListServiceLevelObjectivesResponse
The ListServiceLevelObjectives
response.
Fields | |
---|---|
service_ |
The |
next_ |
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 |
ListServicesRequest
The ListServices
request.
Fields | |
---|---|
parent |
Required. Resource name of the parent containing the listed services, either a project or a Monitoring Metrics Scope. The formats are:
|
filter |
A filter specifying what To filter on a particular service-identifier type, the To filter on an attribute of a service-identifier type, apply the filter name by using the snake case of the service-identifier type and the attribute of that service-identifier type, and join the two with a period. For example, to filter by the |
page_ |
A non-negative number that is the maximum number of results to return. When 0, use default page size. |
page_ |
If this field is not empty then it must contain the |
ListServicesResponse
The ListServices
response.
Fields | |
---|---|
services[] |
The |
next_ |
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 |
ListSnoozesRequest
The message definition for listing Snooze
s associated with the given parent
, satisfying the optional filter
.
Fields | |
---|---|
parent |
Required. The project whose
|
filter |
Optional. Optional filter to restrict results to the given criteria. The following fields are supported.
For example:
|
page_ |
Optional. The maximum number of results to return for a single query. The server may further constrain the maximum number of results returned in a single page. The value should be in the range [1, 1000]. If the value given is outside this range, the server will decide the number of results to be returned. |
page_ |
Optional. The |
ListSnoozesResponse
The results of a successful ListSnoozes
call, containing the matching Snooze
s.
Fields | |
---|---|
snoozes[] |
|
next_ |
Page token for repeated calls to |
ListTimeSeriesRequest
The ListTimeSeries
request.
Fields | |
---|---|
name |
Required. The project, organization or folder on which to execute the request. The format is:
|
filter |
Required. A monitoring filter 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:
|
interval |
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. |
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 |
secondary_ |
Apply a second aggregation after |
order_ |
Unsupported: must be left blank. The points in each time series are currently returned in reverse time order (most recent to oldest). |
view |
Required. Specifies which information is returned about the time series. |
page_ |
A positive number that is the maximum number of results to return. If |
page_ |
If this field is not empty then it must contain the |
TimeSeriesView
Controls which fields are returned by ListTimeSeries*
.
Enums | |
---|---|
FULL |
Returns the identity of the metric(s), the time series, and the time series data. |
HEADERS |
Returns the identity of the metric and the time series resource, but not the time series data. |
ListTimeSeriesResponse
The ListTimeSeries
response.
Fields | |
---|---|
time_ |
One or more time series that match the filter included in the request. |
next_ |
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 |
execution_ |
Query execution errors that may have caused the time series data returned to be incomplete. |
unit |
The unit in which all |
ListUptimeCheckConfigsRequest
The protocol for the ListUptimeCheckConfigs
request.
Fields | |
---|---|
parent |
Required. The project whose Uptime check configurations are listed. The format is:
Authorization requires the following IAM permission on the specified resource
|
filter |
If provided, this field specifies the criteria that must be met by uptime checks to be included in the response. For more details, see Filtering syntax. |
page_ |
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. |
page_ |
If this field is not empty then it must contain the |
ListUptimeCheckConfigsResponse
The protocol for the ListUptimeCheckConfigs
response.
Fields | |
---|---|
uptime_ |
The returned Uptime check configurations. |
next_ |
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). |
total_ |
The total number of Uptime check configurations for the project, irrespective of any pagination. |
ListUptimeCheckIpsRequest
The protocol for the ListUptimeCheckIps
request.
Fields | |
---|---|
page_ |
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 |
page_ |
If this field is not empty then it must contain the |
ListUptimeCheckIpsResponse
The protocol for the ListUptimeCheckIps
response.
Fields | |
---|---|
uptime_ |
The returned list of IP addresses (including region and location) that the checkers run from. |
next_ |
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 |
MutationRecord
Describes a change made to a configuration.
Fields | |
---|---|
mutate_ |
When the change occurred. |
mutated_ |
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.
Fields | |
---|---|
type |
The type of the notification channel. This field matches the value of the |
name |
Identifier. The full REST resource name for this channel. The format is:
The |
display_ |
An optional human-readable name for this notification channel. It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters. |
description |
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 exceed 1024 Unicode characters. |
labels |
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the |
user_ |
User-supplied key/value data that does not need to conform to the corresponding 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. |
verification_ |
Indicates whether this channel has been verified or not. On a If the value is If the channel is neither This field cannot be modified using a standard |
enabled |
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. |
creation_ |
Record of the creation of this channel. |
mutation_ |
Records of the modification of this channel. |
VerificationStatus
Indicates whether the channel has been verified or not. It is illegal to specify this field in a
or an CreateNotificationChannel
operation.UpdateNotificationChannel
Enums | |
---|---|
VERIFICATION_STATUS_UNSPECIFIED |
Sentinel value used to indicate that the state is unknown, omitted, or is not applicable (as in the case of channels that neither support nor require verification in order to function). |
UNVERIFIED |
The channel has yet to be verified and requires verification to function. Note that this state also applies to the case where the verification process has been initiated by sending a verification code but where the verification code has not been submitted to complete the process. |
VERIFIED |
It has been proven that notifications can be received on this notification channel and that someone on the project has access to messages that are delivered to that channel. |
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.
Fields | |
---|---|
name |
The full REST resource name for this descriptor. The format is:
In the above, |
type |
The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors. Notification channel types are globally unique. |
display_ |
A human-readable name for the notification channel type. This form of the name is suitable for a user interface. |
description |
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. |
labels[] |
The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated. |
launch_ |
The product launch stage for channels of this type. |
Point
A single data point in a time series.
Fields | |
---|---|
interval |
The time interval to which the data point applies. For |
value |
The value of the data point. |
QueryError
An error associated with a query in the time series query language format.
Fields | |
---|---|
locator |
The location of the time series query language text that this error applies to. |
message |
The error message. |
QueryErrorList
This is an error detail intended to be used with INVALID_ARGUMENT errors.
Fields | |
---|---|
errors[] |
Errors in parsing the time series query language text. The number of errors in the response may be limited. |
error_ |
A summary of all the errors. |
QueryTimeSeriesRequest
The QueryTimeSeries
request. For information about the status of Monitoring Query Language (MQL), see the MQL deprecation notice.
Fields | |
---|---|
name |
Required. The project on which to execute the request. The format is:
|
query |
Required. The query in the Monitoring Query Language format. The default time zone is in UTC. |
page_ |
A positive number that is the maximum number of time_series_data to return. |
page_ |
If this field is not empty then it must contain the |
QueryTimeSeriesResponse
The QueryTimeSeries
response. For information about the status of Monitoring Query Language (MQL), see the MQL deprecation notice.
Fields | |
---|---|
time_ |
The descriptor for the time series data. |
time_ |
The time series data. |
next_ |
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 |
partial_ |
Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response. |
Range
Range of numerical values within min
and max
.
Fields | |
---|---|
min |
Range minimum. |
max |
Range maximum. |
RequestBasedSli
Service Level Indicators for which atomic units of service are counted directly.
Fields | |
---|---|
Union field method . The means to compute a ratio of good_service to total_service . method can be only one of the following: |
|
good_ |
|
distribution_ |
|
SendNotificationChannelVerificationCodeRequest
The SendNotificationChannelVerificationCode
request.
Fields | |
---|---|
name |
Required. The notification channel to which to send a verification code. Authorization requires the following IAM permission on the specified resource
|
Service
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.
Fields | |
---|---|
name |
Identifier. Resource name for this Service. The format is:
|
display_ |
Name used for UI elements listing this Service. |
basic_ |
Message that contains the service type and service labels of this service if it is a basic service. Documentation and examples here. |
telemetry |
Configuration for how to query telemetry on a Service. |
user_ |
Labels which have been used to annotate the service. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value. |
Union field identifier . REQUIRED. Service-identifying atoms specifying the underlying service. identifier can be only one of the following: |
|
custom |
Custom service type. |
app_ |
Type used for App Engine services. |
cluster_ |
Type used for Istio services that live in a Kubernetes cluster. |
mesh_ |
Type used for Istio services scoped to an Istio mesh. |
istio_ |
Type used for canonical services scoped to an Istio mesh. Metrics for Istio are documented here |
cloud_ |
Type used for Cloud Run services. |
gke_ |
Type used for GKE Namespaces. |
gke_ |
Type used for GKE Workloads. |
gke_ |
Type used for GKE Services (the Kubernetes concept of a service). |
AppEngine
App Engine service. Learn more at https://cloud.google.com/appengine.
Fields | |
---|---|
module_ |
The ID of the App Engine module underlying this service. Corresponds to the |
BasicService
A well-known service type, defined by its service type and service labels. Documentation and examples here.
Fields | |
---|---|
service_ |
The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here. |
service_ |
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this |
CloudRun
Cloud Run service. Learn more at https://cloud.google.com/run.
Fields | |
---|---|
service_ |
The name of the Cloud Run service. Corresponds to the |
location |
The location the service is run. Corresponds to the |
ClusterIstio
Istio service scoped to a single Kubernetes cluster. Learn more at https://istio.io. Clusters running OSS Istio will have their services ingested as this type.
Fields | |
---|---|
location |
The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the |
cluster_ |
The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the |
service_ |
The namespace of the Istio service underlying this service. Corresponds to the |
service_ |
The name of the Istio service underlying this service. Corresponds to the |
Custom
This type has no fields.
Use a custom service to designate a service that you want to monitor when none of the other service types (like App Engine, Cloud Run, or a GKE type) matches your intended service.
GkeNamespace
GKE Namespace. The field names correspond to the resource metadata labels on monitored resources that fall under a namespace (for example, k8s_container
or k8s_pod
).
Fields | |
---|---|
project_ |
Output only. The project this resource lives in. For legacy services migrated from the |
location |
The location of the parent cluster. This may be a zone or region. |
cluster_ |
The name of the parent cluster. |
namespace_ |
The name of this namespace. |
GkeService
GKE Service. The "service" here represents a Kubernetes service object. The field names correspond to the resource labels on k8s_service
monitored resources.
Fields | |
---|---|
project_ |
Output only. The project this resource lives in. For legacy services migrated from the |
location |
The location of the parent cluster. This may be a zone or region. |
cluster_ |
The name of the parent cluster. |
namespace_ |
The name of the parent namespace. |
service_ |
The name of this service. |
GkeWorkload
A GKE Workload (Deployment, StatefulSet, etc). The field names correspond to the metadata labels on monitored resources that fall under a workload (for example, k8s_container
or k8s_pod
).
Fields | |
---|---|
project_ |
Output only. The project this resource lives in. For legacy services migrated from the |
location |
The location of the parent cluster. This may be a zone or region. |
cluster_ |
The name of the parent cluster. |
namespace_ |
The name of the parent namespace. |
top_ |
The type of this workload (for example, "Deployment" or "DaemonSet") |
top_ |
The name of this workload. |
IstioCanonicalService
Canonical service scoped to an Istio mesh. Anthos clusters running ASM >= 1.6.8 will have their services ingested as this type.
Fields | |
---|---|
mesh_ |
Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the |
canonical_ |
The namespace of the canonical service underlying this service. Corresponds to the |
canonical_ |
The name of the canonical service underlying this service. Corresponds to the |
MeshIstio
Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8 will have their services ingested as this type.
Fields | |
---|---|
mesh_ |
Identifier for the mesh in which this Istio service is defined. Corresponds to the |
service_ |
The namespace of the Istio service underlying this service. Corresponds to the |
service_ |
The name of the Istio service underlying this service. Corresponds to the |
Telemetry
Configuration for how to query telemetry on a Service.
Fields | |
---|---|
resource_ |
The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names. |
ServiceLevelIndicator
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.
Fields | |
---|---|
Union field type . 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 type can be only one of the following: |
|
basic_ |
Basic SLI on a well-known service type. |
request_ |
Request-based SLIs |
windows_ |
Windows-based SLIs |
ServiceLevelObjective
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."
Fields | |
---|---|
name |
Identifier. Resource name for this
|
display_ |
Name used for UI elements listing this SLO. |
service_ |
The definition of good service, used to measure and calculate the quality of the |
goal |
The fraction of service that must be good in order for this objective to be met. |
user_ |
Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value. |
Union field period . The time period over which the objective will be evaluated. period can be only one of the following: |
|
rolling_ |
A rolling time period, semantically "in the past |
calendar_ |
A calendar period, semantically "since the start of the current |
View
ServiceLevelObjective.View
determines what form of ServiceLevelObjective
is returned from GetServiceLevelObjective
, ListServiceLevelObjectives
, and ListServiceLevelObjectiveVersions
RPCs.
Enums | |
---|---|
VIEW_UNSPECIFIED |
Same as FULL. |
FULL |
Return the embedded ServiceLevelIndicator in the form in which it was defined. If it was defined using a BasicSli , return that BasicSli . |
EXPLICIT |
For ServiceLevelIndicator s using BasicSli articulation, instead return the ServiceLevelIndicator with its mode of computation fully spelled out as a RequestBasedSli . For ServiceLevelIndicator s using RequestBasedSli or WindowsBasedSli , return the ServiceLevelIndicator as it was provided. |
Snooze
A Snooze
will prevent any alerts from being opened, and close any that are already open. The Snooze
will work on alerts that match the criteria defined in the Snooze
. The Snooze
will be active from interval.start_time
through interval.end_time
.
Fields | |
---|---|
name |
Required. Identifier. The name of the
The ID of the |
criteria |
Required. This defines the criteria for applying the |
interval |
Required. The |
display_ |
Required. A display name for the |
Criteria
Criteria specific to the AlertPolicy
s that this Snooze
applies to. The Snooze
will suppress alerts that come from one of the AlertPolicy
s whose names are supplied.
Fields | |
---|---|
policies[] |
The specific
There is a limit of 16 policies per snooze. This limit is checked during snooze creation. |
SpanContext
The context of a span. This is attached to an Exemplar
in Distribution
values during aggregation.
It contains the name of a span with format:
projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
Fields | |
---|---|
span_ |
The resource name of the span. The format is:
|
SyntheticMonitorTarget
Describes a Synthetic Monitor to be invoked by Uptime.
Fields | |
---|---|
Union field target . Specifies a Synthetic Monitor's execution stack. target can be only one of the following: |
|
cloud_ |
Target a Synthetic Monitor GCFv2 instance. |
CloudFunctionV2Target
A Synthetic Monitor deployed to a Cloud Functions V2 instance.
Fields | |
---|---|
name |
Required. Fully qualified GCFv2 resource name i.e. |
cloud_ |
Output only. The |
TextLocator
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".
Fields | |
---|---|
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 macro definition referenced in the text of the query), in which case this is the name of the source (e.g. the macro name). |
start_ |
The position of the first byte within the text. |
end_ |
The position of the last byte within the text. |
nested_ |
If |
nesting_ |
When |
Position
The position of a byte within the text.
Fields | |
---|---|
line |
The line, starting with 1, where the byte is positioned. |
column |
The column within the line, starting with 1, where the byte is positioned. This is a byte index even though the text is UTF-8. |
TimeInterval
Describes a time interval:
- Reads: A half-open time interval. It includes the end time but excludes the start time:
(startTime, endTime]
. The start time must be specified, must be earlier than the end time, and should be no older than the data retention period for the metric. - Writes: A closed time interval. It extends from the start time to the end time, and includes both:
[startTime, endTime]
. Valid time intervals depend on theMetricKind
of the metric value. The end time must not be earlier than the start time, and the end time must not be more than 25 hours in the past or more than five minutes in the future.- For
GAUGE
metrics, thestartTime
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 forGAUGE
metrics, which are point-in-time measurements. The end time of a new interval must be at least a millisecond after the end time of the previous interval. - For
DELTA
metrics, the start time and end time must specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. ForDELTA
metrics, the start time of the next interval must be at least a millisecond after the end time of the previous interval. - For
CUMULATIVE
metrics, the start time and end time must specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points. The new start time must be at least a millisecond after the end time of the previous interval. - The start time of a new interval must be at least a millisecond after the end time of the previous interval because intervals are closed. If the start time of a new interval is the same as the end time of the previous interval, then data written at the new start time could overwrite data written at the previous end time.
- For
Fields | |
---|---|
end_ |
Required. The end of the time interval. |
start_ |
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.
Fields | |
---|---|
metric |
The associated metric. A fully-specified metric used to identify the time series. |
resource |
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics. |
metadata |
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored. |
metric_ |
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 |
value_ |
The value type of the time series. When listing time series, this value type might be different from the value type 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 type of the data in the |
points[] |
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 |
unit |
The units in which the metric value is reported. It is only applicable if the |
description |
Input only. A detailed description of the time series that will be associated with the |
TimeSeriesData
Represents the values of a time series associated with a TimeSeriesDescriptor.
Fields | |
---|---|
label_ |
The values of the labels in the time series identifier, given in the same order as the |
point_ |
The points in the time series. |
PointData
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.
Fields | |
---|---|
values[] |
The values that make up the point. |
time_ |
The time interval associated with the point. |
TimeSeriesDescriptor
A descriptor for the labels and points in a time series.
Fields | |
---|---|
label_ |
Descriptors for the labels. |
point_ |
Descriptors for the point data value columns. |
ValueDescriptor
A descriptor for the value columns in a data point.
Fields | |
---|---|
key |
The value key. |
value_ |
The value type. |
metric_ |
The value stream kind. |
unit |
The unit in which |
TimeSeriesRatio
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.
Fields | |
---|---|
good_ |
A monitoring filter specifying a |
bad_ |
A monitoring filter specifying a |
total_ |
A monitoring filter specifying a |
TypedValue
A single strongly-typed value.
Fields | |
---|---|
Union field value . The typed value field. value can be only one of the following: |
|
bool_ |
A Boolean value: |
int64_ |
A 64-bit integer. Its range is approximately ±9.2x1018. |
double_ |
A 64-bit double-precision floating-point number. Its magnitude is approximately ±10±300 and it has 16 significant digits of precision. |
string_ |
A variable-length string value. |
distribution_ |
A distribution value. |
UpdateAlertPolicyRequest
The protocol for the UpdateAlertPolicy
request.
Fields | |
---|---|
update_ |
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 ( Examples of valid field masks include If this field is empty, then the supplied alerting policy replaces the existing policy. It is the same as deleting the existing policy and adding the supplied policy, except for the following:
|
alert_ |
Required. The updated alerting policy or the updated values for the fields listed in Authorization requires the following IAM permission on the specified resource
|
UpdateGroupRequest
The UpdateGroup
request.
Fields | |
---|---|
group |
Required. The new definition of the group. All fields of the existing group, excepting |
validate_ |
If true, validate this request but do not update the existing group. |
UpdateNotificationChannelRequest
The UpdateNotificationChannel
request.
Fields | |
---|---|
update_ |
Optional. The fields to update. |
notification_ |
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 |
UpdateServiceLevelObjectiveRequest
The UpdateServiceLevelObjective
request.
Fields | |
---|---|
service_ |
Required. The |
update_ |
A set of field paths defining which fields to use for the update. |
UpdateServiceRequest
The UpdateService
request.
Fields | |
---|---|
service |
Required. The |
update_ |
A set of field paths defining which fields to use for the update. |
UpdateSnoozeRequest
The message definition for updating a Snooze
. The field, snooze.name
identifies the Snooze
to be updated. The remainder of snooze
gives the content the Snooze
in question will be assigned.
What fields can be updated depends on the start time and end time of the Snooze
.
- end time is in the past: These
Snooze
s are considered read-only and cannot be updated. - start time is in the past and end time is in the future:
display_name
andinterval.end_time
can be updated. - start time is in the future:
display_name
,interval.start_time
andinterval.end_time
can be updated.
Fields | |
---|---|
snooze |
Required. The |
update_ |
Required. The fields to update. For each field listed in
Fields not listed retain their existing value. The following are the field names that are accepted in
That said, the start time and end time of the |
UpdateUptimeCheckConfigRequest
The protocol for the UpdateUptimeCheckConfig
request.
Fields | |
---|---|
update_ |
Optional. If present, only the listed fields in the current Uptime check configuration are updated with values from the new configuration. If this field is empty, then the current configuration is completely replaced with the new configuration. |
uptime_ |
Required. If an The following fields can be updated: Authorization requires the following IAM permission on the specified resource
|
UptimeCheckConfig
This message configures which resources and services to monitor for availability.
Fields | |
---|---|
name |
Identifier. A unique resource name for this Uptime check configuration. The format is:
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. |
display_ |
A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required. |
period |
How often, in seconds, the Uptime check is performed. Currently, the only supported values are |
timeout |
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required. |
content_ |
The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the |
checker_ |
The type of checkers to use to execute the Uptime check. |
selected_ |
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 must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions. |
is_internal |
If this is |
internal_checkers[] |
The internal checkers that this check will egress from. If |
user_ |
User-supplied key/value data to be used for organizing and identifying the 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. |
Union field resource . The resource the check is checking. Required. resource can be only one of the following: |
|
monitored_ |
The monitored resource associated with the configuration. The following monitored resource types are valid for this field: |
resource_ |
The group resource associated with the configuration. |
synthetic_ |
Specifies a Synthetic Monitor to invoke. |
Union field check_request_type . The type of Uptime check request. check_request_type can be only one of the following: |
|
http_ |
Contains information needed to make an HTTP or HTTPS check. |
tcp_ |
Contains information needed to make a TCP check. |
CheckerType
What kind of checkers are available to be used by the check.
Enums | |
---|---|
CHECKER_TYPE_UNSPECIFIED |
The default checker type. Currently converted to STATIC_IP_CHECKERS on creation, the default conversion behavior may change in the future. |
STATIC_IP_CHECKERS |
STATIC_IP_CHECKERS are used for uptime checks that perform egress across the public internet. STATIC_IP_CHECKERS use the static IP addresses returned by ListUptimeCheckIps . |
VPC_CHECKERS |
VPC_CHECKERS are used for uptime checks that perform egress using Service Directory and private network access. When using VPC_CHECKERS , the monitored resource type must be servicedirectory_service . |
ContentMatcher
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.
Fields | |
---|---|
content |
String, regex or JSON content to match. Maximum 1024 bytes. An empty |
matcher |
The type of content matcher that will be applied to the server output, compared to the |
Union field additional_matcher_info . Certain ContentMatcherOption types require additional information. MATCHES_JSON_PATH or NOT_MATCHES_JSON_PATH require a JsonPathMatcher ; not used for other options. additional_matcher_info can be only one of the following: |
|
json_ |
Matcher information for |
ContentMatcherOption
Options to perform content matching.
Enums | |
---|---|
CONTENT_MATCHER_OPTION_UNSPECIFIED |
No content matcher type specified (maintained for backward compatibility, but deprecated for future use). Treated as CONTAINS_STRING . |
CONTAINS_STRING |
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 |
Selects negation of substring matching. The match succeeds if the output does NOT contain the content string. |
MATCHES_REGEX |
Selects regular-expression matching. The match succeeds if the output matches the regular expression specified in the content string. Regex matching is only supported for HTTP/HTTPS checks. |
NOT_MATCHES_REGEX |
Selects negation of regular-expression matching. The match succeeds if the output does NOT match the regular expression specified in the content string. Regex matching is only supported for HTTP/HTTPS checks. |
MATCHES_JSON_PATH |
Selects JSONPath matching. See JsonPathMatcher for details on when the match succeeds. JSONPath matching is only supported for HTTP/HTTPS checks. |
NOT_MATCHES_JSON_PATH |
Selects JSONPath matching. See JsonPathMatcher for details on when the match succeeds. Succeeds when output does NOT match as specified. JSONPath is only supported for HTTP/HTTPS checks. |
JsonPathMatcher
Information needed to perform a JSONPath content match. Used for ContentMatcherOption::MATCHES_JSON_PATH
and ContentMatcherOption::NOT_MATCHES_JSON_PATH
.
Fields | |
---|---|
json_ |
JSONPath within the response output pointing to the expected |
json_ |
The type of JSONPath match that will be applied to the JSON output ( |
JsonPathMatcherOption
Options to perform JSONPath content matching.
Enums | |
---|---|
JSON_PATH_MATCHER_OPTION_UNSPECIFIED |
No JSONPath matcher type specified (not valid). |
EXACT_MATCH |
Selects 'exact string' matching. The match succeeds if the content at the json_path within the output is exactly the same as the content string. |
REGEX_MATCH |
Selects regular-expression matching. The match succeeds if the content at the json_path within the output matches the regular expression specified in the content string. |
HttpCheck
Information involved in an HTTP/HTTPS Uptime check request.
Fields | |
---|---|
request_ |
The HTTP request method to use for the check. If set to |
use_ |
If |
path |
Optional (defaults to "/"). The path to the page against which to run the check. Will be combined with the |
port |
Optional (defaults to 80 when |
auth_ |
The authentication information. Optional when creating an HTTP check; defaults to empty. Do not set both |
mask_ |
Boolean specifying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if |
headers |
The list of headers to send as part of the Uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100. |
content_ |
The content type header to use for the check. The following configurations result in errors: 1. Content type is specified in both the |
custom_ |
A user provided content type header to use for the check. The invalid configurations outlined in the |
validate_ |
Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where |
body |
The request body associated with the HTTP POST request. If Note: If client libraries aren't used (which performs the conversion automatically) base64 encode your |
accepted_ |
If present, the check will only pass if the HTTP response status code is in this set of status codes. If empty, the HTTP status code will only pass if the HTTP status code is 200-299. |
ping_ |
Contains information needed to add pings to an HTTP check. |
Union field auth_method . This field is optional and should be set only by users interested in an authenticated uptime check. Do not set both auth_method and auth_info . auth_method can be only one of the following: |
|
service_ |
If specified, Uptime will generate and attach an OIDC JWT token for the Monitoring service agent service account as an |
BasicAuthentication
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.
Fields | |
---|---|
username |
The username to use when authenticating with the HTTP server. |
password |
The password to use when authenticating with the HTTP server. |
ContentType
Header options corresponding to the content type of a HTTP request body.
Enums | |
---|---|
TYPE_UNSPECIFIED |
No content type specified. |
URL_ENCODED |
body is in URL-encoded form. Equivalent to setting the Content-Type to application/x-www-form-urlencoded in the HTTP request. |
USER_PROVIDED |
body is in custom_content_type form. Equivalent to setting the Content-Type to the contents of custom_content_type in the HTTP request. |
RequestMethod
The HTTP request method options.
Enums | |
---|---|
METHOD_UNSPECIFIED |
No request method specified. |
GET |
GET request. |
POST |
POST request. |
ResponseStatusCode
A status to accept. Either a status code class like "2xx", or an integer status code like "200".
Fields | |
---|---|
Union field status_code . Either a specific value or a class of status codes. status_code can be only one of the following: |
|
status_ |
A status code to accept. |
status_ |
A class of status codes to accept. |
StatusClass
An HTTP status code class.
Enums | |
---|---|
STATUS_CLASS_UNSPECIFIED |
Default value that matches no status codes. |
STATUS_CLASS_1XX |
The class of status codes between 100 and 199. |
STATUS_CLASS_2XX |
The class of status codes between 200 and 299. |
STATUS_CLASS_3XX |
The class of status codes between 300 and 399. |
STATUS_CLASS_4XX |
The class of status codes between 400 and 499. |
STATUS_CLASS_5XX |
The class of status codes between 500 and 599. |
STATUS_CLASS_ANY |
The class of all status codes. |
ServiceAgentAuthentication
Contains information needed for generating either an OpenID Connect token or OAuth token. The token will be generated for the Monitoring service agent service account.
Fields | |
---|---|
type |
Type of authentication. |
ServiceAgentAuthenticationType
Type of authentication.
Enums | |
---|---|
SERVICE_AGENT_AUTHENTICATION_TYPE_UNSPECIFIED |
Default value, will result in OIDC Authentication. |
OIDC_TOKEN |
OIDC Authentication |
PingConfig
Information involved in sending ICMP pings alongside public HTTP/TCP checks. For HTTP, the pings are performed for each part of the redirect chain.
Fields | |
---|---|
pings_ |
Number of ICMP pings. A maximum of 3 ICMP pings is currently supported. |
ResourceGroup
The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored.
Fields | |
---|---|
group_ |
The group of resources being monitored. Should be only the |
resource_ |
The resource type of the group members. |
TcpCheck
Information required for a TCP Uptime check request.
Fields | |
---|---|
port |
The TCP port on the server against which to run the check. Will be combined with host (specified within the |
ping_ |
Contains information needed to add pings to a TCP check. |
UptimeCheckIp
Contains the region, location, and list of IP addresses where checkers in the location run from.
Fields | |
---|---|
region |
A broad region category in which the IP address is located. |
location |
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. |
ip_ |
The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format. |
UptimeCheckRegion
The regions from which an Uptime check can be run.
Enums | |
---|---|
REGION_UNSPECIFIED |
Default value if no region is specified. Will result in Uptime checks running from all regions. |
USA |
Allows checks to run from locations within the United States of America. |
EUROPE |
Allows checks to run from locations within the continent of Europe. |
SOUTH_AMERICA |
Allows checks to run from locations within the continent of South America. |
ASIA_PACIFIC |
Allows checks to run from locations within the Asia Pacific area (ex: Singapore). |
USA_OREGON |
Allows checks to run from locations within the western United States of America |
USA_IOWA |
Allows checks to run from locations within the central United States of America |
USA_VIRGINIA |
Allows checks to run from locations within the eastern United States of America |
VerifyNotificationChannelRequest
The VerifyNotificationChannel
request.
Fields | |
---|---|
name |
Required. The notification channel to verify. Authorization requires the following IAM permission on the specified resource
|
code |
Required. The verification code that was delivered to the channel as a result of invoking the |
WindowsBasedSli
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
.
Fields | |
---|---|
window_ |
Duration over which window quality is evaluated. Must be an integer fraction of a day and at least |
Union field window_criterion . The criterion to use for evaluating window goodness. window_criterion can be only one of the following: |
|
good_ |
A monitoring filter specifying a |
good_ |
A window is good if its |
metric_ |
A window is good if the metric's value is in a good range, averaged across returned streams. |
metric_ |
A window is good if the metric's value is in a good range, summed across returned streams. |
MetricRange
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
.
Fields | |
---|---|
time_ |
A monitoring filter specifying the |
range |
Range of values considered "good." For a one-sided range, set one bound to an infinite value. |
PerformanceThreshold
A PerformanceThreshold
is used when each window is good when that window has a sufficiently high performance
.
Fields | |
---|---|
threshold |
If window |
Union field type . The means, either a request-based SLI or a basic SLI, by which to compute performance over a window. type can be only one of the following: |
|
performance |
|
basic_ |
|