Class ProjectAlertRule
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class ProjectAlertRule : CustomResource
Constructors
View SourceProjectAlertRule(String, ProjectAlertRuleArgs, CustomResourceOptions)
Create a ProjectAlertRule resource with the given unique name, arguments, and options.
Declaration
public ProjectAlertRule(string name, ProjectAlertRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProjectAlertRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAnnotations
The project alert rule annotations (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
GroupId
The project alert rule alert group ID (string)
Declaration
public Output<string> GroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupIntervalSeconds
The project alert rule group interval seconds. Default: 180 (int)
Declaration
public Output<int?> GroupIntervalSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
GroupWaitSeconds
The project alert rule group wait seconds. Default: 180 (int)
Declaration
public Output<int?> GroupWaitSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Inherited
The project alert rule inherited. Default: true (bool)
Declaration
public Output<bool?> Inherited { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Labels
The project alert rule labels (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
MetricRule
The project alert rule metric rule. ConflictsWith: `"pod_rule", "workload_rule"`` (list Maxitems:1)
Declaration
public Output<ProjectAlertRuleMetricRule> MetricRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectAlertRuleMetricRule> |
Name
The project alert rule name (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PodRule
The project alert rule pod rule. ConflictsWith: `"metric_rule", "workload_rule"`` (list Maxitems:1)
Declaration
public Output<ProjectAlertRulePodRule> PodRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectAlertRulePodRule> |
ProjectId
The project id where create project alert rule (string)
Declaration
public Output<string> ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RepeatIntervalSeconds
The project alert rule wait seconds. Default: 3600 (int)
Declaration
public Output<int?> RepeatIntervalSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Severity
The project alert rule severity. Supported values : "critical" | "info" | "warning". Default: critical (string)
Declaration
public Output<string> Severity { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WorkloadRule
The project alert rule workload rule. ConflictsWith: `"metric_rule", "pod_rule"`` (list Maxitems:1)
Declaration
public Output<ProjectAlertRuleWorkloadRule> WorkloadRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectAlertRuleWorkloadRule> |
Methods
View SourceGet(String, Input<String>, ProjectAlertRuleState, CustomResourceOptions)
Get an existing ProjectAlertRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ProjectAlertRule Get(string name, Input<string> id, ProjectAlertRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProjectAlertRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ProjectAlertRule |