github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/influxdb/r/continuous_query.html.md (about) 1 --- 2 layout: "influxdb" 3 page_title: "InfluxDB: influxdb_continuous_query" 4 sidebar_current: "docs-influxdb-resource-continuous_query" 5 description: |- 6 The influxdb_continuous_query resource allows an InfluxDB continuous query to be managed. 7 --- 8 9 # influxdb\_continuous\_query 10 11 The continuous_query resource allows a continuous query to be created on an InfluxDB server. 12 13 ## Example Usage 14 15 ``` 16 resource "influxdb_database" "test" { 17 name = "terraform-test" 18 } 19 20 resource "influxdb_continuous_query" "minnie" { 21 name = "minnie" 22 database = "${influxdb_database.test.name}" 23 query = "SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)" 24 } 25 26 ``` 27 28 ## Argument Reference 29 30 The following arguments are supported: 31 32 * `name` - (Required) The name for the continuous_query. This must be unique on the InfluxDB server. 33 * `database` - (Required) The database for the continuous_query. This must be an existing influxdb database. 34 * `query` - (Required) The query for the continuous_query. 35 36 ## Attributes Reference 37 38 This resource exports no further attributes.