我正在尝试为 dynamodb 读取容量单位创建 cloudwatch 警报
这是我的代码,我将阈值设为“4”,但在控制台中阈值为“0.07”
resource "aws_cloudwatch_metric_alarm" "consumed_read_units" {
alarm_name = "dynamodb_${var.dynamodb_table_name}_consumed_read_units"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "5"
metric_name = "ConsumedReadCapacityUnits"
namespace = "AWS/DynamoDB"
period = "60"
statistic = "Average"
dimensions = {
TableName = "${var.dynamodb_table_name}"
}
threshold = 4
alarm_description = "This metric monitors DynamoDB ConsumedReadCapacityUnits for ${var.dynamodb_table_name}"
insufficient_data_actions = []
}
输入阈值是否有任何计算?