Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

ClusterAlterRule

Deprecated: rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule

Create a ClusterAlterRule Resource

new ClusterAlterRule(name: string, args: ClusterAlterRuleArgs, opts?: CustomResourceOptions);
def ClusterAlterRule(resource_name: str, opts: Optional[ResourceOptions] = None, annotations: Optional[Mapping[str, Any]] = None, cluster_id: Optional[str] = None, event_rule: Optional[ClusterAlterRuleEventRuleArgs] = None, group_id: Optional[str] = None, group_interval_seconds: Optional[int] = None, group_wait_seconds: Optional[int] = None, inherited: Optional[bool] = None, labels: Optional[Mapping[str, Any]] = None, metric_rule: Optional[ClusterAlterRuleMetricRuleArgs] = None, name: Optional[str] = None, node_rule: Optional[ClusterAlterRuleNodeRuleArgs] = None, repeat_interval_seconds: Optional[int] = None, severity: Optional[str] = None, system_service_rule: Optional[ClusterAlterRuleSystemServiceRuleArgs] = None)
func NewClusterAlterRule(ctx *Context, name string, args ClusterAlterRuleArgs, opts ...ResourceOption) (*ClusterAlterRule, error)
public ClusterAlterRule(string name, ClusterAlterRuleArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ClusterAlterRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ClusterAlterRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ClusterAlterRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ClusterAlterRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ClusterAlterRule resource accepts the following input properties:

ClusterId string

Alert rule cluster ID

GroupId string

Alert rule group ID

Annotations Dictionary<string, object>

Annotations of the resource

EventRule ClusterAlterRuleEventRuleArgs

Alert event rule

GroupIntervalSeconds int

Alert rule interval seconds

GroupWaitSeconds int

Alert rule wait seconds

Inherited bool

Alert rule inherited

Labels Dictionary<string, object>

Labels of the resource

MetricRule ClusterAlterRuleMetricRuleArgs

Alert metric rule

Name string

Alert rule name

NodeRule ClusterAlterRuleNodeRuleArgs

Alert node rule

RepeatIntervalSeconds int

Alert rule repeat interval seconds

Severity string

Alert rule severity

SystemServiceRule ClusterAlterRuleSystemServiceRuleArgs

Alert system service rule

ClusterId string

Alert rule cluster ID

GroupId string

Alert rule group ID

Annotations map[string]interface{}

Annotations of the resource

EventRule ClusterAlterRuleEventRule

Alert event rule

GroupIntervalSeconds int

Alert rule interval seconds

GroupWaitSeconds int

Alert rule wait seconds

Inherited bool

Alert rule inherited

Labels map[string]interface{}

Labels of the resource

MetricRule ClusterAlterRuleMetricRule

Alert metric rule

Name string

Alert rule name

NodeRule ClusterAlterRuleNodeRule

Alert node rule

RepeatIntervalSeconds int

Alert rule repeat interval seconds

Severity string

Alert rule severity

SystemServiceRule ClusterAlterRuleSystemServiceRule

Alert system service rule

clusterId string

Alert rule cluster ID

groupId string

Alert rule group ID

annotations {[key: string]: any}

Annotations of the resource

eventRule ClusterAlterRuleEventRule

Alert event rule

groupIntervalSeconds number

Alert rule interval seconds

groupWaitSeconds number

Alert rule wait seconds

inherited boolean

Alert rule inherited

labels {[key: string]: any}

Labels of the resource

metricRule ClusterAlterRuleMetricRule

Alert metric rule

name string

Alert rule name

nodeRule ClusterAlterRuleNodeRule

Alert node rule

repeatIntervalSeconds number

Alert rule repeat interval seconds

severity string

Alert rule severity

systemServiceRule ClusterAlterRuleSystemServiceRule

Alert system service rule

cluster_id str

Alert rule cluster ID

group_id str

Alert rule group ID

annotations Mapping[str, Any]

Annotations of the resource

event_rule ClusterAlterRuleEventRuleArgs

Alert event rule

group_interval_seconds int

Alert rule interval seconds

group_wait_seconds int

Alert rule wait seconds

inherited bool

Alert rule inherited

labels Mapping[str, Any]

Labels of the resource

metric_rule ClusterAlterRuleMetricRuleArgs

Alert metric rule

name str

Alert rule name

node_rule ClusterAlterRuleNodeRuleArgs

Alert node rule

repeat_interval_seconds int

Alert rule repeat interval seconds

severity str

Alert rule severity

system_service_rule ClusterAlterRuleSystemServiceRuleArgs

Alert system service rule

Outputs

All input properties are implicitly available as output properties. Additionally, the ClusterAlterRule resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ClusterAlterRule Resource

Get an existing ClusterAlterRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ClusterAlterRuleState, opts?: CustomResourceOptions): ClusterAlterRule
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, annotations: Optional[Mapping[str, Any]] = None, cluster_id: Optional[str] = None, event_rule: Optional[ClusterAlterRuleEventRuleArgs] = None, group_id: Optional[str] = None, group_interval_seconds: Optional[int] = None, group_wait_seconds: Optional[int] = None, inherited: Optional[bool] = None, labels: Optional[Mapping[str, Any]] = None, metric_rule: Optional[ClusterAlterRuleMetricRuleArgs] = None, name: Optional[str] = None, node_rule: Optional[ClusterAlterRuleNodeRuleArgs] = None, repeat_interval_seconds: Optional[int] = None, severity: Optional[str] = None, system_service_rule: Optional[ClusterAlterRuleSystemServiceRuleArgs] = None) -> ClusterAlterRule
func GetClusterAlterRule(ctx *Context, name string, id IDInput, state *ClusterAlterRuleState, opts ...ResourceOption) (*ClusterAlterRule, error)
public static ClusterAlterRule Get(string name, Input<string> id, ClusterAlterRuleState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Annotations Dictionary<string, object>

Annotations of the resource

ClusterId string

Alert rule cluster ID

EventRule ClusterAlterRuleEventRuleArgs

Alert event rule

GroupId string

Alert rule group ID

GroupIntervalSeconds int

Alert rule interval seconds

GroupWaitSeconds int

Alert rule wait seconds

Inherited bool

Alert rule inherited

Labels Dictionary<string, object>

Labels of the resource

MetricRule ClusterAlterRuleMetricRuleArgs

Alert metric rule

Name string

Alert rule name

NodeRule ClusterAlterRuleNodeRuleArgs

Alert node rule

RepeatIntervalSeconds int

Alert rule repeat interval seconds

Severity string

Alert rule severity

SystemServiceRule ClusterAlterRuleSystemServiceRuleArgs

Alert system service rule

Annotations map[string]interface{}

Annotations of the resource

ClusterId string

Alert rule cluster ID

EventRule ClusterAlterRuleEventRule

Alert event rule

GroupId string

Alert rule group ID

GroupIntervalSeconds int

Alert rule interval seconds

GroupWaitSeconds int

Alert rule wait seconds

Inherited bool

Alert rule inherited

Labels map[string]interface{}

Labels of the resource

MetricRule ClusterAlterRuleMetricRule

Alert metric rule

Name string

Alert rule name

NodeRule ClusterAlterRuleNodeRule

Alert node rule

RepeatIntervalSeconds int

Alert rule repeat interval seconds

Severity string

Alert rule severity

SystemServiceRule ClusterAlterRuleSystemServiceRule

Alert system service rule

annotations {[key: string]: any}

Annotations of the resource

clusterId string

Alert rule cluster ID

eventRule ClusterAlterRuleEventRule

Alert event rule

groupId string

Alert rule group ID

groupIntervalSeconds number

Alert rule interval seconds

groupWaitSeconds number

Alert rule wait seconds

inherited boolean

Alert rule inherited

labels {[key: string]: any}

Labels of the resource

metricRule ClusterAlterRuleMetricRule

Alert metric rule

name string

Alert rule name

nodeRule ClusterAlterRuleNodeRule

Alert node rule

repeatIntervalSeconds number

Alert rule repeat interval seconds

severity string

Alert rule severity

systemServiceRule ClusterAlterRuleSystemServiceRule

Alert system service rule

annotations Mapping[str, Any]

Annotations of the resource

cluster_id str

Alert rule cluster ID

event_rule ClusterAlterRuleEventRuleArgs

Alert event rule

group_id str

Alert rule group ID

group_interval_seconds int

Alert rule interval seconds

group_wait_seconds int

Alert rule wait seconds

inherited bool

Alert rule inherited

labels Mapping[str, Any]

Labels of the resource

metric_rule ClusterAlterRuleMetricRuleArgs

Alert metric rule

name str

Alert rule name

node_rule ClusterAlterRuleNodeRuleArgs

Alert node rule

repeat_interval_seconds int

Alert rule repeat interval seconds

severity str

Alert rule severity

system_service_rule ClusterAlterRuleSystemServiceRuleArgs

Alert system service rule

Supporting Types

ClusterAlterRuleEventRule

ResourceKind string
EventType string
ResourceKind string
EventType string
resourceKind string
eventType string

ClusterAlterRuleMetricRule

Duration string
Expression string
ThresholdValue float64
Comparison string
Description string

ClusterAlterRuleNodeRule

Condition string
CpuThreshold int
MemThreshold int
NodeId string
Selector Dictionary<string, object>
Condition string
CpuThreshold int
MemThreshold int
NodeId string
Selector map[string]interface{}
condition string
cpuThreshold number
memThreshold number
nodeId string
selector {[key: string]: any}
condition str
cpu_threshold int
mem_threshold int
node_id str
selector Mapping[str, Any]

ClusterAlterRuleSystemServiceRule

Condition string
Condition string
condition string

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.