Class Alarm
Inherited Members
Namespace: Pulumi.CloudAmqp
Assembly: Pulumi.CloudAmqp.dll
Syntax
public class Alarm : CustomResource
Constructors
View SourceAlarm(String, AlarmArgs, CustomResourceOptions)
Create a Alarm resource with the given unique name, arguments, and options.
Declaration
public Alarm(string name, AlarmArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AlarmArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEnabled
Enable or disable an alarm
Declaration
public Output<bool> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
InstanceId
Instance identifier
Declaration
public Output<int> InstanceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
MessageType
Message types (total, unacked, ready) of the queue to trigger the alarm
Declaration
public Output<string> MessageType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
QueueRegex
Regex for which queues to check
Declaration
public Output<string> QueueRegex { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Recipients
Identifiers for recipients to be notified.
Declaration
public Output<ImmutableArray<int>> Recipients { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.Int32>> |
TimeThreshold
For how long (in seconds) the value_threshold should be active before trigger alarm
Declaration
public Output<int?> TimeThreshold { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Type
Type of the alarm, valid options are: cpu, memory, disk_usage, queue_length, connection_count, consumers_count, net_split
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ValueThreshold
What value to trigger the alarm for
Declaration
public Output<int?> ValueThreshold { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
VhostRegex
Regex for which vhost the queues are in
Declaration
public Output<string> VhostRegex { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AlarmState, CustomResourceOptions)
Get an existing Alarm resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Alarm Get(string name, Input<string> id, AlarmState 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. |
| AlarmState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Alarm |