github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/newrelic/d/application.html.markdown (about)

     1  ---
     2  layout: "newrelic"
     3  page_title: "New Relic: newrelic_application"
     4  sidebar_current: "docs-newrelic-datasource-application"
     5  description: |-
     6    Looks up the information about an application in New Relic.
     7  ---
     8  
     9  # newrelic\_application
    10  
    11  Use this data source to get information about a specific application in New Relic.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "newrelic_application" "app" {
    17    name = "my-app"
    18  }
    19  
    20  resource "newrelic_alert_policy" "foo" {
    21    name = "foo"
    22  }
    23  
    24  resource "newrelic_alert_condition" "foo" {
    25    policy_id = "${newrelic_alert_policy.foo.id}"
    26  
    27    name        = "foo"
    28    type        = "apm_app_metric"
    29    entities    = ["${data.newrelic_application.app.id}"]
    30    metric      = "apdex"
    31    runbook_url = "https://www.example.com"
    32  
    33    term {
    34      duration      = 5
    35      operator      = "below"
    36      priority      = "critical"
    37      threshold     = "0.75"
    38      time_function = "all"
    39    }
    40  }
    41  ```
    42  
    43  ## Argument Reference
    44  
    45  The following arguments are supported:
    46  
    47  * `name` - (Required) The name of the application in New Relic.
    48  
    49  ## Attributes Reference
    50  * `id` - The ID of the application.
    51  * `instance_ids` - A list of instance IDs associated with the application.
    52  * `host_ids` - A list of host IDs associated with the application.