0
0
llucycodes42
The code defines a resource named "librato_alert" and specifies the following properties:
name: "librato_alert"
description: "An alerted state for the myResourceName"
services: [ "${librato_service.myservice.id}" ]
condition {
type: "above"
threshold: 10
metric_name: "librato.cpu.percent.
Shortcut: tf_librato_alert
resource "librato_alert" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
services = [ "\${librato_service.myservice.id}" ]
condition {
type = "above"
threshold = 10
metric_name = "librato.cpu.percent.idle"
}
}