github.com/pbthorste/terraform@v0.8.6-0.20170127005045-deb56bd93da2/website/source/docs/providers/ns1/r/monitoringjob.html.markdown (about) 1 --- 2 layout: "ns1" 3 page_title: "NS1: ns1_monitoringjob" 4 sidebar_current: "docs-ns1-resource-monitoringjob" 5 description: |- 6 Provides a NS1 Monitoring Job resource. 7 --- 8 9 # ns1\_monitoringjob 10 11 Provides a NS1 Monitoring Job resource. This can be used to create, modify, and delete monitoring jobs. 12 13 ## Example Usage 14 15 ``` 16 resource "ns1_monitoringjob" "uswest_monitor" { 17 name = "uswest" 18 active = true 19 regions = ["sjc", "sin", "lga"] 20 job_type = "tcp" 21 frequency = 60 22 rapid_recheck = true 23 policy = "quorum" 24 config = { 25 send = "HEAD / HTTP/1.0\r\n\r\n" 26 port = 80 27 host = "example-elb-uswest.aws.amazon.com" 28 } 29 rules = { 30 value = "200 OK" 31 comparison = "contains" 32 key = "output" 33 } 34 } 35 ``` 36 37 ## Argument Reference 38 39 The following arguments are supported: 40 41 * `name` - (Required) The free-form display name for the monitoring job. 42 * `job_type` - (Required) The type of monitoring job to be run. 43 * `active` - (Required) Indicates if the job is active or temporaril.y disabled. 44 * `regions` - (Required) The list of region codes in which to run the monitoring job. 45 * `frequency` - (Required) The frequency, in seconds, at which to run the monitoring job in each region. 46 * `rapid_recheck` - (Required) If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification. 47 * `policy` - (Required) The policy for determining the monitor's global status based on the status of the job in all regions. 48 * `config` - (Required) A configuration dictionary with keys and values depending on the jobs' type. 49 * `notify_delay` - (Optional) The time in seconds after a failure to wait before sending a notification. 50 * `notify_repeat` - (Optional) The time in seconds between repeat notifications of a failed job. 51 * `notify_failback` - (Optional) If true, a notification is sent when a job returns to an "up" state. 52 * `notify_regional` - (Optional) If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications. 53 * `notify_list` - (Optional) The id of the notification list to send notifications to. 54 * `notes` - (Optional) Freeform notes to be included in any notifications about this job. 55 * `rules` - (Optional) A list of rules for determining failure conditions. Job Rules are documented below. 56 57 Monitoring Job Rules (`rules`) support the following: 58 59 * `key` - (Required) The output key. 60 * `comparison` - (Required) The comparison to perform on the the output. 61 * `value` - (Required) The value to compare to. 62