terraform/website/source/docs/providers/influxdb/r/continuous_query.html.md

1.0 KiB

layout page_title sidebar_current description
influxdb InfluxDB: influxdb_continuous_query docs-influxdb-resource-continuous_query The influxdb_continuous_query resource allows an InfluxDB continuous query to be managed.

influxdb_continuous_query

The continuous_query resource allows a continuous query to be created on an InfluxDB server.

Example Usage

resource "influxdb_database" "test" {
    name = "terraform-test"
}

resource "influxdb_continuous_query" "minnie" {
    name = "minnie"
    database = "${influxdb_database.test.name}"
    query = "SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name for the continuous_query. This must be unique on the InfluxDB server.
  • database - (Required) The database for the continuous_query. This must be an existing influxdb database.
  • query - (Required) The query for the continuous_query.

Attributes Reference

This resource exports no further attributes.