Skip to content

cloud-labs-infra/terraform-huaweicloud-alarm

Repository files navigation

Huawei Cloud LTS Alarm

Requirements

Name Version
terraform ~> 1.7
huaweicloud ~>1.63

Providers

Name Version
huaweicloud ~>1.63

Modules

No modules.

Resources

Name Type
huaweicloud_lts_keywords_alarm_rule.alarm resource

Inputs

Name Description Type Default Required
frequency Specifies the alarm frequency configurations:
* type - Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE
* fixed_rate_unit - Specifies the unit of search time range. The value can be: minute and hour
* fixed_rate - This parameter is used when type is set to FIXED_RATE. Specifies the search time range:
* When the fixed_rate_unit is minute, the value ranges from 1 to 60
* When the fixed_rate_unit is hour, the value ranges from 1 to 24
object({
type = string
fixed_rate_unit = optional(string)
fixed_rate = optional(number)
})
{
"fixed_rate": 5,
"fixed_rate_unit": "minute",
"type": "FIXED_RATE"
}
no
keywords_requests Specifies the keywords requests:
* keywords - Specifies the keywords
* condition - Specifies the keywords request condition. The value can be: >=, <=, < and >
* number - Specifies the line number
* log_group_id - Specifies the log group id
* log_stream_id - Specifies the log stream id
* search_time_range_unit - Specifies the unit of search time range. The value can be: minute and hour
* search_time_range - Specifies the search time range:
* When the search_time_range_unit is minute, the value ranges from 1 to 60
* When the search_time_range_unit is hour, the value ranges from 1 to 24
object({
keywords = string
condition = string
number = number
log_group_id = string
log_stream_id = string
search_time_range_unit = string
search_time_range = number
})
n/a yes
level Specifies the alarm level string "INFO" no
name Specifies the name of the keywords alarm rule string n/a yes
name_postfix Name Postfix string null no
notification_rule Specifies the notification rule:
* template_name - Specifies the notification template name
* user_name - Specifies the user name
* topics - Specifies the SMN topics:
* 'name' - Specifies the topic name
* 'topic_urn' - Specifies the topic URN
object({
template_name = string
user_name = string
topics = list(object({
name = string
topic_urn = string
}))
})
n/a yes
send_notifications Specifies whether to send notifications bool true no

Outputs

No outputs.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages