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

     1  ---
     2  layout: "newrelic"
     3  page_title: "New Relic: newrelic_alert_policy"
     4  sidebar_current: "docs-newrelic-resource-alert-policy"
     5  description: |-
     6    Create and manage alert policies in New Relic.
     7  ---
     8  
     9  # newrelic\_alert\_policy
    10  
    11  ## Example Usage
    12  
    13  ```hcl
    14  resource "newrelic_alert_policy" "foo" {
    15    name = "foo"
    16  }
    17  ```
    18  
    19  ## Argument Reference
    20  
    21  The following arguments are supported:
    22  
    23    * `name` - (Required) The name of the policy.
    24    * `incident_preference` - (Optional) The rollup strategy for the policy.  Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`.  The default is `PER_POLICY`.
    25  
    26  ## Attributes Reference
    27  
    28  The following attributes are exported:
    29  
    30    * `id` - The ID of the policy.
    31    * `created_at` - The time the policy was created.
    32    * `updated_at` - The time the policy was last updated.
    33  
    34  ## Import
    35  
    36  Alert policies can be imported using the `id`, e.g.
    37  
    38  ```
    39  $ terraform import newrelic_alert_policy.main 12345
    40  ```