Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.ess.getAlarms
Explore with Pulumi AI
This data source provides available alarm resources.
NOTE Available in 1.72.0+
Using getAlarms
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlarms(args: GetAlarmsArgs, opts?: InvokeOptions): Promise<GetAlarmsResult>
function getAlarmsOutput(args: GetAlarmsOutputArgs, opts?: InvokeOptions): Output<GetAlarmsResult>
def get_alarms(ids: Optional[Sequence[str]] = None,
metric_type: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
scaling_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlarmsResult
def get_alarms_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
metric_type: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
scaling_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlarmsResult]
func GetAlarms(ctx *Context, args *GetAlarmsArgs, opts ...InvokeOption) (*GetAlarmsResult, error)
func GetAlarmsOutput(ctx *Context, args *GetAlarmsOutputArgs, opts ...InvokeOption) GetAlarmsResultOutput
> Note: This function is named GetAlarms
in the Go SDK.
public static class GetAlarms
{
public static Task<GetAlarmsResult> InvokeAsync(GetAlarmsArgs args, InvokeOptions? opts = null)
public static Output<GetAlarmsResult> Invoke(GetAlarmsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlarmsResult> getAlarms(GetAlarmsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ess/getAlarms:getAlarms
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of alarm IDs.
- Metric
Type string - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- Name
Regex string - A regex string to filter resulting alarms by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Scaling
Group stringId - Scaling group id the alarms belong to.
- Ids []string
- A list of alarm IDs.
- Metric
Type string - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- Name
Regex string - A regex string to filter resulting alarms by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Scaling
Group stringId - Scaling group id the alarms belong to.
- ids List<String>
- A list of alarm IDs.
- metric
Type String - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name
Regex String - A regex string to filter resulting alarms by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - scaling
Group StringId - Scaling group id the alarms belong to.
- ids string[]
- A list of alarm IDs.
- metric
Type string - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name
Regex string - A regex string to filter resulting alarms by name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - scaling
Group stringId - Scaling group id the alarms belong to.
- ids Sequence[str]
- A list of alarm IDs.
- metric_
type str - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name_
regex str - A regex string to filter resulting alarms by name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - scaling_
group_ strid - Scaling group id the alarms belong to.
- ids List<String>
- A list of alarm IDs.
- metric
Type String - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name
Regex String - A regex string to filter resulting alarms by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - scaling
Group StringId - Scaling group id the alarms belong to.
getAlarms Result
The following output properties are available:
- Alarms
List<Pulumi.
Ali Cloud. Ess. Outputs. Get Alarms Alarm> - A list of alarms. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of alarm ids.
- Names List<string>
- A list of alarm names.
- Metric
Type string - The type for the alarm's associated metric.
- Name
Regex string - Output
File string - Scaling
Group stringId - The scaling group associated with this alarm.
- Alarms
[]Get
Alarms Alarm - A list of alarms. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of alarm ids.
- Names []string
- A list of alarm names.
- Metric
Type string - The type for the alarm's associated metric.
- Name
Regex string - Output
File string - Scaling
Group stringId - The scaling group associated with this alarm.
- alarms
List<Get
Alarms Alarm> - A list of alarms. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of alarm ids.
- names List<String>
- A list of alarm names.
- metric
Type String - The type for the alarm's associated metric.
- name
Regex String - output
File String - scaling
Group StringId - The scaling group associated with this alarm.
- alarms
Get
Alarms Alarm[] - A list of alarms. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of alarm ids.
- names string[]
- A list of alarm names.
- metric
Type string - The type for the alarm's associated metric.
- name
Regex string - output
File string - scaling
Group stringId - The scaling group associated with this alarm.
- alarms
Sequence[Get
Alarms Alarm] - A list of alarms. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of alarm ids.
- names Sequence[str]
- A list of alarm names.
- metric_
type str - The type for the alarm's associated metric.
- name_
regex str - output_
file str - scaling_
group_ strid - The scaling group associated with this alarm.
- alarms List<Property Map>
- A list of alarms. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of alarm ids.
- names List<String>
- A list of alarm names.
- metric
Type String - The type for the alarm's associated metric.
- name
Regex String - output
File String - scaling
Group StringId - The scaling group associated with this alarm.
Supporting Types
GetAlarmsAlarm
- Alarm
Actions List<string> - The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
- Cloud
Monitor intGroup Id - Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
- Comparison
Operator string - The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
- Description string
- The description for the alarm.
- Dimensions Dictionary<string, string>
- The dimension map for the alarm's associated metric.
- Enable bool
- Whether to enable specific ess alarm.
- Evaluation
Count int - The number of times that needs to satisfies comparison condition before transition into ALARM state.
- Id string
- The id of alarm.
- Metric
Name string - The name for the alarm's associated metric.
- Metric
Type string - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- Name string
- The name for ess alarm.
- Period int
- The period in seconds over which the specified statistic is applied.
- Scaling
Group stringId - Scaling group id the alarms belong to.
- State string
- The state of alarm task.
- Statistics string
- The statistic to apply to the alarm's associated metric.
- Threshold string
- The value against which the specified statistics is compared.
- Alarm
Actions []string - The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
- Cloud
Monitor intGroup Id - Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
- Comparison
Operator string - The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
- Description string
- The description for the alarm.
- Dimensions map[string]string
- The dimension map for the alarm's associated metric.
- Enable bool
- Whether to enable specific ess alarm.
- Evaluation
Count int - The number of times that needs to satisfies comparison condition before transition into ALARM state.
- Id string
- The id of alarm.
- Metric
Name string - The name for the alarm's associated metric.
- Metric
Type string - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- Name string
- The name for ess alarm.
- Period int
- The period in seconds over which the specified statistic is applied.
- Scaling
Group stringId - Scaling group id the alarms belong to.
- State string
- The state of alarm task.
- Statistics string
- The statistic to apply to the alarm's associated metric.
- Threshold string
- The value against which the specified statistics is compared.
- alarm
Actions List<String> - The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
- cloud
Monitor IntegerGroup Id - Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
- comparison
Operator String - The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
- description String
- The description for the alarm.
- dimensions Map<String,String>
- The dimension map for the alarm's associated metric.
- enable Boolean
- Whether to enable specific ess alarm.
- evaluation
Count Integer - The number of times that needs to satisfies comparison condition before transition into ALARM state.
- id String
- The id of alarm.
- metric
Name String - The name for the alarm's associated metric.
- metric
Type String - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name String
- The name for ess alarm.
- period Integer
- The period in seconds over which the specified statistic is applied.
- scaling
Group StringId - Scaling group id the alarms belong to.
- state String
- The state of alarm task.
- statistics String
- The statistic to apply to the alarm's associated metric.
- threshold String
- The value against which the specified statistics is compared.
- alarm
Actions string[] - The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
- cloud
Monitor numberGroup Id - Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
- comparison
Operator string - The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
- description string
- The description for the alarm.
- dimensions {[key: string]: string}
- The dimension map for the alarm's associated metric.
- enable boolean
- Whether to enable specific ess alarm.
- evaluation
Count number - The number of times that needs to satisfies comparison condition before transition into ALARM state.
- id string
- The id of alarm.
- metric
Name string - The name for the alarm's associated metric.
- metric
Type string - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name string
- The name for ess alarm.
- period number
- The period in seconds over which the specified statistic is applied.
- scaling
Group stringId - Scaling group id the alarms belong to.
- state string
- The state of alarm task.
- statistics string
- The statistic to apply to the alarm's associated metric.
- threshold string
- The value against which the specified statistics is compared.
- alarm_
actions Sequence[str] - The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
- cloud_
monitor_ intgroup_ id - Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
- comparison_
operator str - The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
- description str
- The description for the alarm.
- dimensions Mapping[str, str]
- The dimension map for the alarm's associated metric.
- enable bool
- Whether to enable specific ess alarm.
- evaluation_
count int - The number of times that needs to satisfies comparison condition before transition into ALARM state.
- id str
- The id of alarm.
- metric_
name str - The name for the alarm's associated metric.
- metric_
type str - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name str
- The name for ess alarm.
- period int
- The period in seconds over which the specified statistic is applied.
- scaling_
group_ strid - Scaling group id the alarms belong to.
- state str
- The state of alarm task.
- statistics str
- The statistic to apply to the alarm's associated metric.
- threshold str
- The value against which the specified statistics is compared.
- alarm
Actions List<String> - The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
- cloud
Monitor NumberGroup Id - Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
- comparison
Operator String - The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
- description String
- The description for the alarm.
- dimensions Map<String>
- The dimension map for the alarm's associated metric.
- enable Boolean
- Whether to enable specific ess alarm.
- evaluation
Count Number - The number of times that needs to satisfies comparison condition before transition into ALARM state.
- id String
- The id of alarm.
- metric
Name String - The name for the alarm's associated metric.
- metric
Type String - The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
- name String
- The name for ess alarm.
- period Number
- The period in seconds over which the specified statistic is applied.
- scaling
Group StringId - Scaling group id the alarms belong to.
- state String
- The state of alarm task.
- statistics String
- The statistic to apply to the alarm's associated metric.
- threshold String
- The value against which the specified statistics is compared.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.