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);
func NewAlarm(ctx *Context, name string, args AlarmArgs, opts ...ResourceOption) (*Alarm, error)
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

InstanceId 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

MessageType string

Message types (total, unacked, ready) of the queue to trigger the alarm

QueueRegex string

Regex for which queues to check

TimeThreshold int

For how long (in seconds) the value_threshold should be active before trigger alarm

ValueThreshold int

What value to trigger the alarm for

VhostRegex string

Regex for which vhost the queues are in

Enabled bool

Enable or disable an alarm

InstanceId 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

MessageType string

Message types (total, unacked, ready) of the queue to trigger the alarm

QueueRegex string

Regex for which queues to check

TimeThreshold int

For how long (in seconds) the value_threshold should be active before trigger alarm

ValueThreshold int

What value to trigger the alarm for

VhostRegex string

Regex for which vhost the queues are in

enabled boolean

Enable or disable an alarm

instanceId 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

messageType string

Message types (total, unacked, ready) of the queue to trigger the alarm

queueRegex string

Regex for which queues to check

timeThreshold number

For how long (in seconds) the value_threshold should be active before trigger alarm

valueThreshold number

What value to trigger the alarm for

vhostRegex 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:

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 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): Alarm
static 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

InstanceId int

Instance identifier

MessageType string

Message types (total, unacked, ready) of the queue to trigger the alarm

QueueRegex string

Regex for which queues to check

Recipients List<int>

Identifiers for recipients to be notified.

TimeThreshold 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

ValueThreshold int

What value to trigger the alarm for

VhostRegex string

Regex for which vhost the queues are in

Enabled bool

Enable or disable an alarm

InstanceId int

Instance identifier

MessageType string

Message types (total, unacked, ready) of the queue to trigger the alarm

QueueRegex string

Regex for which queues to check

Recipients []int

Identifiers for recipients to be notified.

TimeThreshold 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

ValueThreshold int

What value to trigger the alarm for

VhostRegex string

Regex for which vhost the queues are in

enabled boolean

Enable or disable an alarm

instanceId number

Instance identifier

messageType string

Message types (total, unacked, ready) of the queue to trigger the alarm

queueRegex string

Regex for which queues to check

recipients number[]

Identifiers for recipients to be notified.

timeThreshold 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

valueThreshold number

What value to trigger the alarm for

vhostRegex 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 cloudamqp Terraform Provider.