influxdb_continuous_query

Manage InfluxDB 0.9-1.x continuous queries statefully.

Important

You can optionally specify default connection parameters via the general influxdb setup.

saltext.influxdb.states.influxdb_continuous_query.present(name, database, query, resample_time=None, coverage_period=None, **client_args)[source]

Ensure that given continuous query is present.

name

Name of the continuous query to create.

database

Database to create continuous query on.

query

The query content

resample_timeNone

Duration between continuous query resampling.

coverage_periodNone

Duration specifying time period per sample.

saltext.influxdb.states.influxdb_continuous_query.absent(name, database, **client_args)[source]

Ensure that given continuous query is absent.

name

Name of the continuous query to remove.

database

Name of the database that the continuous query was defined on.