A description of the conditions under which some aspect of
your system is considered to be “unhealthy” and the ways to notify
people or services about this state. For an overview of alert policies,
see Introduction to
Alerting <https://cloud.google.com/monitoring/alerts/>
__.
A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don’t use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.
User-supplied key/value data to be used for organizing and
identifying the AlertPolicy
objects. The field can
contain up to 64 entries. Each key and value is limited to 63
Unicode characters or 128 bytes, whichever is smaller. Labels
and values can contain only lowercase letters, numerals,
underscores, and dashes. Keys must begin with a letter.
How to combine the results of multiple conditions to determine
if an incident should be opened. If
condition_time_series_query_language
is present, this must
be COMBINE_UNSPECIFIED
.
Read-only description of how the alert policy is invalid. OK if the alert policy is valid. If not OK, the alert policy will not generate incidents.
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.
Classes
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.
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.
A condition that compares a time series against a threshold.
Documentation
A content string and a MIME type that describes the content string’s format.
The format of the content
field. Presently, only the value
"text/markdown"
is supported. See Markdown
<https://en.wikipedia.org/wiki/Markdown>
__ for more
information.
UserLabelsEntry
API documentation for monitoring_v3.types.AlertPolicy.UserLabelsEntry
class.