newrelic_key_transaction
Use this data source to get information about a specific key transaction in New Relic.
Example Usage
data "newrelic_key_transaction" "txn" { name = "txn" } resource "newrelic_alert_policy" "foo" { name = "foo" } resource "newrelic_alert_condition" "foo" { policy_id = "${newrelic_alert_policy.foo.id}" name = "foo" type = "apm_kt_metric" entities = ["${data.newrelic_key_transaction.txn.id}"] metric = "error_percentage" runbook_url = "https://www.example.com" term { duration = 5 operator = "below" priority = "critical" threshold = "0.75" time_function = "all" } }
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the application in New Relic.
Attributes Reference
-
id
- The ID of the application.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/newrelic/d/key_transaction.html