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:
- Cluster
Id string Alert rule cluster ID
- Group
Id string Alert rule group ID
- Annotations Dictionary<string, object>
Annotations of the resource
- Event
Rule ClusterAlter Rule Event Rule Args Alert event rule
- Group
Interval intSeconds Alert rule interval seconds
- Group
Wait intSeconds Alert rule wait seconds
- Inherited bool
Alert rule inherited
- Labels Dictionary<string, object>
Labels of the resource
- Metric
Rule ClusterAlter Rule Metric Rule Args Alert metric rule
- Name string
Alert rule name
- Node
Rule ClusterAlter Rule Node Rule Args Alert node rule
- Repeat
Interval intSeconds Alert rule repeat interval seconds
- Severity string
Alert rule severity
- System
Service ClusterRule Alter Rule System Service Rule Args Alert system service rule
- Cluster
Id string Alert rule cluster ID
- Group
Id string Alert rule group ID
- Annotations map[string]interface{}
Annotations of the resource
- Event
Rule ClusterAlter Rule Event Rule Alert event rule
- Group
Interval intSeconds Alert rule interval seconds
- Group
Wait intSeconds Alert rule wait seconds
- Inherited bool
Alert rule inherited
- Labels map[string]interface{}
Labels of the resource
- Metric
Rule ClusterAlter Rule Metric Rule Alert metric rule
- Name string
Alert rule name
- Node
Rule ClusterAlter Rule Node Rule Alert node rule
- Repeat
Interval intSeconds Alert rule repeat interval seconds
- Severity string
Alert rule severity
- System
Service ClusterRule Alter Rule System Service Rule Alert system service rule
- cluster
Id string Alert rule cluster ID
- group
Id string Alert rule group ID
- annotations {[key: string]: any}
Annotations of the resource
- event
Rule ClusterAlter Rule Event Rule Alert event rule
- group
Interval numberSeconds Alert rule interval seconds
- group
Wait numberSeconds Alert rule wait seconds
- inherited boolean
Alert rule inherited
- labels {[key: string]: any}
Labels of the resource
- metric
Rule ClusterAlter Rule Metric Rule Alert metric rule
- name string
Alert rule name
- node
Rule ClusterAlter Rule Node Rule Alert node rule
- repeat
Interval numberSeconds Alert rule repeat interval seconds
- severity string
Alert rule severity
- system
Service ClusterRule Alter Rule System Service Rule 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 ClusterAlter Rule Event Rule Args Alert event rule
- group_
interval_ intseconds Alert rule interval seconds
- group_
wait_ intseconds Alert rule wait seconds
- inherited bool
Alert rule inherited
- labels Mapping[str, Any]
Labels of the resource
- metric_
rule ClusterAlter Rule Metric Rule Args Alert metric rule
- name str
Alert rule name
- node_
rule ClusterAlter Rule Node Rule Args Alert node rule
- repeat_
interval_ intseconds Alert rule repeat interval seconds
- severity str
Alert rule severity
- system_
service_ Clusterrule Alter Rule System Service Rule Args 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
- Cluster
Id string Alert rule cluster ID
- Event
Rule ClusterAlter Rule Event Rule Args Alert event rule
- Group
Id string Alert rule group ID
- Group
Interval intSeconds Alert rule interval seconds
- Group
Wait intSeconds Alert rule wait seconds
- Inherited bool
Alert rule inherited
- Labels Dictionary<string, object>
Labels of the resource
- Metric
Rule ClusterAlter Rule Metric Rule Args Alert metric rule
- Name string
Alert rule name
- Node
Rule ClusterAlter Rule Node Rule Args Alert node rule
- Repeat
Interval intSeconds Alert rule repeat interval seconds
- Severity string
Alert rule severity
- System
Service ClusterRule Alter Rule System Service Rule Args Alert system service rule
- Annotations map[string]interface{}
Annotations of the resource
- Cluster
Id string Alert rule cluster ID
- Event
Rule ClusterAlter Rule Event Rule Alert event rule
- Group
Id string Alert rule group ID
- Group
Interval intSeconds Alert rule interval seconds
- Group
Wait intSeconds Alert rule wait seconds
- Inherited bool
Alert rule inherited
- Labels map[string]interface{}
Labels of the resource
- Metric
Rule ClusterAlter Rule Metric Rule Alert metric rule
- Name string
Alert rule name
- Node
Rule ClusterAlter Rule Node Rule Alert node rule
- Repeat
Interval intSeconds Alert rule repeat interval seconds
- Severity string
Alert rule severity
- System
Service ClusterRule Alter Rule System Service Rule Alert system service rule
- annotations {[key: string]: any}
Annotations of the resource
- cluster
Id string Alert rule cluster ID
- event
Rule ClusterAlter Rule Event Rule Alert event rule
- group
Id string Alert rule group ID
- group
Interval numberSeconds Alert rule interval seconds
- group
Wait numberSeconds Alert rule wait seconds
- inherited boolean
Alert rule inherited
- labels {[key: string]: any}
Labels of the resource
- metric
Rule ClusterAlter Rule Metric Rule Alert metric rule
- name string
Alert rule name
- node
Rule ClusterAlter Rule Node Rule Alert node rule
- repeat
Interval numberSeconds Alert rule repeat interval seconds
- severity string
Alert rule severity
- system
Service ClusterRule Alter Rule System Service Rule Alert system service rule
- annotations Mapping[str, Any]
Annotations of the resource
- cluster_
id str Alert rule cluster ID
- event_
rule ClusterAlter Rule Event Rule Args Alert event rule
- group_
id str Alert rule group ID
- group_
interval_ intseconds Alert rule interval seconds
- group_
wait_ intseconds Alert rule wait seconds
- inherited bool
Alert rule inherited
- labels Mapping[str, Any]
Labels of the resource
- metric_
rule ClusterAlter Rule Metric Rule Args Alert metric rule
- name str
Alert rule name
- node_
rule ClusterAlter Rule Node Rule Args Alert node rule
- repeat_
interval_ intseconds Alert rule repeat interval seconds
- severity str
Alert rule severity
- system_
service_ Clusterrule Alter Rule System Service Rule Args Alert system service rule
Supporting Types
ClusterAlterRuleEventRule
- Resource
Kind string - Event
Type string
- Resource
Kind string - Event
Type string
- resource
Kind string - event
Type string
- resource_
kind str - event_
type str
ClusterAlterRuleMetricRule
- Duration string
- Expression string
- Threshold
Value double - Comparison string
- Description string
- Duration string
- Expression string
- Threshold
Value float64 - Comparison string
- Description string
- duration string
- expression string
- threshold
Value number - comparison string
- description string
- duration str
- expression str
- threshold_
value float - comparison str
- description str
ClusterAlterRuleNodeRule
- Condition string
- Cpu
Threshold int - Mem
Threshold int - Node
Id string - Selector Dictionary<string, object>
- Condition string
- Cpu
Threshold int - Mem
Threshold int - Node
Id string - Selector map[string]interface{}
- condition string
- cpu
Threshold number - mem
Threshold number - node
Id 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
- condition str
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.