Class ClusterAlterRule
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class ClusterAlterRule : CustomResource
Constructors
View SourceClusterAlterRule(String, ClusterAlterRuleArgs, CustomResourceOptions)
Create a ClusterAlterRule resource with the given unique name, arguments, and options.
Declaration
public ClusterAlterRule(string name, ClusterAlterRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ClusterAlterRuleArgs | 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 cluster 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>> |
ClusterId
The cluster id where create cluster alert rule (string)
Declaration
public Output<string> ClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EventRule
The cluster alert rule event rule. ConflictsWith: `"metric_rule", "node_rule", "system_service_rule"`` (list Maxitems:1)
Declaration
public Output<ClusterAlterRuleEventRule> EventRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClusterAlterRuleEventRule> |
GroupId
The cluster alert rule alert group ID (string)
Declaration
public Output<string> GroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupIntervalSeconds
The cluster 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 cluster 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 cluster alert rule inherited. Default: true (bool)
Declaration
public Output<bool?> Inherited { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Labels
The cluster 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 cluster alert rule metric rule. ConflictsWith: `"event_rule", "node_rule", "system_service_rule"`` (list Maxitems:1)
Declaration
public Output<ClusterAlterRuleMetricRule> MetricRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClusterAlterRuleMetricRule> |
Name
The cluster alert rule name (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NodeRule
The cluster alert rule node rule. ConflictsWith: `"event_rule", "metric_rule", "system_service_rule"`` (list Maxitems:1)
Declaration
public Output<ClusterAlterRuleNodeRule> NodeRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClusterAlterRuleNodeRule> |
RepeatIntervalSeconds
The cluster alert rule wait seconds. Default: 3600 (int)
Declaration
public Output<int?> RepeatIntervalSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Severity
The cluster alert rule severity. Supported values : "critical" | "info" | "warning". Default: critical (string)
Declaration
public Output<string> Severity { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SystemServiceRule
The cluster alert rule system service rule. ConflictsWith: `"event_rule", "metric_rule", "node_rule"`` (list Maxitems:1)
Declaration
public Output<ClusterAlterRuleSystemServiceRule> SystemServiceRule { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClusterAlterRuleSystemServiceRule> |
Methods
View SourceGet(String, Input<String>, ClusterAlterRuleState, CustomResourceOptions)
Get an existing ClusterAlterRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ClusterAlterRule Get(string name, Input<string> id, ClusterAlterRuleState 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. |
| ClusterAlterRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ClusterAlterRule |