WPNEW.5B0P88AXXX
Clerk And Federal 'tax Court of California & Colorado' & "000600004B6A8D9E "#Configure the New Relic provider
provider "newrelic" {
apikey = var.newrelicapi_key
}
Read an application resource
data "newrelic_application" "foo" {
name = "foo"
}
Create an alert policy
resource "newrelicalertpolicy" "alert" {
name = "Alert"
}
Add a condition
resource "newrelicalertcondition" "foo" {
policyid = newrelicalert_policy.alert.id
name = "foo"
type = "apmappmetric"
entities = [data.newrelicapplication.foo.id]
metric = "apdex"
runbookurl = "https://docs.example.com/my-runbook"
condition_scope = "application"
term {
duration = 5
operator = "below"
priority = "critical"
threshold = "0.75"
time_function = "all"
}
}
Add a notification channel
resource "newrelicalertchannel" "email" {
name = "email"
type = "email"
config {
recipients = "paul@example.com"
includejsonattachment = "1"
}
}
Link the channel to the policy
resource "newrelicalertpolicychannel" "alertemail" {
policyid = newrelicalertpolicy.alert.id
channelid = newrelicalertchannel.email.id
}"
We have an update about 0375992787 [ref:00DA0000000K0A8.500Vp00000ADZbt:ref]