Alarm
Create a Alarm Resource
new Alarm(name: string, args: AlarmArgs, opts?: CustomResourceOptions);def Alarm(resource_name, opts=None, enabled=None, instance_id=None, message_type=None, queue_regex=None, recipients=None, time_threshold=None, type=None, value_threshold=None, vhost_regex=None, __props__=None);public Alarm(string name, AlarmArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AlarmArgs
- 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 AlarmArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Alarm Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Alarm resource accepts the following input properties:
- Enabled bool
Enable or disable an alarm
- Instance
Id int Instance identifier
- Recipients List<int>
Identifiers for recipients to be notified.
- Type string
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- Message
Type string Message types (total, unacked, ready) of the queue to trigger the alarm
- Queue
Regex string Regex for which queues to check
- Time
Threshold int For how long (in seconds) the value_threshold should be active before trigger alarm
- Value
Threshold int What value to trigger the alarm for
- Vhost
Regex string Regex for which vhost the queues are in
- Enabled bool
Enable or disable an alarm
- Instance
Id int Instance identifier
- Recipients []int
Identifiers for recipients to be notified.
- Type string
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- Message
Type string Message types (total, unacked, ready) of the queue to trigger the alarm
- Queue
Regex string Regex for which queues to check
- Time
Threshold int For how long (in seconds) the value_threshold should be active before trigger alarm
- Value
Threshold int What value to trigger the alarm for
- Vhost
Regex string Regex for which vhost the queues are in
- enabled boolean
Enable or disable an alarm
- instance
Id number Instance identifier
- recipients number[]
Identifiers for recipients to be notified.
- type string
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- message
Type string Message types (total, unacked, ready) of the queue to trigger the alarm
- queue
Regex string Regex for which queues to check
- time
Threshold number For how long (in seconds) the value_threshold should be active before trigger alarm
- value
Threshold number What value to trigger the alarm for
- vhost
Regex string Regex for which vhost the queues are in
- enabled bool
Enable or disable an alarm
- instance_
id float Instance identifier
- recipients List[Integer]
Identifiers for recipients to be notified.
- type str
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- message_
type str Message types (total, unacked, ready) of the queue to trigger the alarm
- queue_
regex str Regex for which queues to check
- time_
threshold float For how long (in seconds) the value_threshold should be active before trigger alarm
- value_
threshold float What value to trigger the alarm for
- vhost_
regex str Regex for which vhost the queues are in
Outputs
All input properties are implicitly available as output properties. Additionally, the Alarm resource produces the following output properties:
Look up an Existing Alarm Resource
Get an existing Alarm 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?: AlarmState, opts?: CustomResourceOptions): Alarmstatic get(resource_name, id, opts=None, enabled=None, instance_id=None, message_type=None, queue_regex=None, recipients=None, time_threshold=None, type=None, value_threshold=None, vhost_regex=None, __props__=None);func GetAlarm(ctx *Context, name string, id IDInput, state *AlarmState, opts ...ResourceOption) (*Alarm, error)public static Alarm Get(string name, Input<string> id, AlarmState? 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:
- Enabled bool
Enable or disable an alarm
- Instance
Id int Instance identifier
- Message
Type string Message types (total, unacked, ready) of the queue to trigger the alarm
- Queue
Regex string Regex for which queues to check
- Recipients List<int>
Identifiers for recipients to be notified.
- Time
Threshold int For how long (in seconds) the value_threshold should be active before trigger alarm
- Type string
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- Value
Threshold int What value to trigger the alarm for
- Vhost
Regex string Regex for which vhost the queues are in
- Enabled bool
Enable or disable an alarm
- Instance
Id int Instance identifier
- Message
Type string Message types (total, unacked, ready) of the queue to trigger the alarm
- Queue
Regex string Regex for which queues to check
- Recipients []int
Identifiers for recipients to be notified.
- Time
Threshold int For how long (in seconds) the value_threshold should be active before trigger alarm
- Type string
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- Value
Threshold int What value to trigger the alarm for
- Vhost
Regex string Regex for which vhost the queues are in
- enabled boolean
Enable or disable an alarm
- instance
Id number Instance identifier
- message
Type string Message types (total, unacked, ready) of the queue to trigger the alarm
- queue
Regex string Regex for which queues to check
- recipients number[]
Identifiers for recipients to be notified.
- time
Threshold number For how long (in seconds) the value_threshold should be active before trigger alarm
- type string
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- value
Threshold number What value to trigger the alarm for
- vhost
Regex string Regex for which vhost the queues are in
- enabled bool
Enable or disable an alarm
- instance_
id float Instance identifier
- message_
type str Message types (total, unacked, ready) of the queue to trigger the alarm
- queue_
regex str Regex for which queues to check
- recipients List[Integer]
Identifiers for recipients to be notified.
- time_
threshold float For how long (in seconds) the value_threshold should be active before trigger alarm
- type str
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
- value_
threshold float What value to trigger the alarm for
- vhost_
regex str Regex for which vhost the queues are in
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqpTerraform Provider.