Class AlertPolicyState
Inherited Members
Namespace: Pulumi.Gcp.Monitoring
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class AlertPolicyState : ResourceArgs
Constructors
View SourceAlertPolicyState()
Declaration
public AlertPolicyState()
Properties
View SourceCombiner
How to combine the results of multiple conditions to determine if an incident should be opened.
Declaration
public Input<string> Combiner { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Conditions
A list of conditions for the policy. The conditions are combined by AND or OR according to the combiner field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. Structure is documented below.
Declaration
public InputList<AlertPolicyConditionGetArgs> Conditions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<AlertPolicyConditionGetArgs> |
CreationRecord
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.
Declaration
public Input<AlertPolicyCreationRecordGetArgs> CreationRecord { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<AlertPolicyCreationRecordGetArgs> |
DisplayName
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.
Declaration
public Input<string> DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Documentation
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. Structure is documented below.
Declaration
public Input<AlertPolicyDocumentationGetArgs> Documentation { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<AlertPolicyDocumentationGetArgs> |
Enabled
Whether or not the policy is enabled. The default is true.
Declaration
public Input<bool> Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Name
The unique resource name for this condition. Its syntax is: projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] [CONDITION_ID] is assigned by Stackdriver Monitoring when the condition is created as part of a new or updated alerting policy.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NotificationChannels
Identifies the notification channels to which notifications should be
sent when incidents are opened or closed or when new violations occur
on an already opened incident. Each element of this array corresponds
to the name field in each of the NotificationChannel objects that are
returned from the notificationChannels.list method. The syntax of the
entries in this field is
projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
Declaration
public InputList<string> NotificationChannels { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Input<string> Project { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
UserLabels
This field is intended 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.
Declaration
public InputMap<string> UserLabels { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.String> |