influxdb_retention_policy

Manage InfluxDB 0.9-1.x retention policies statefully.

Important

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

saltext.influxdb.states.influxdb_retention_policy.convert_duration(duration)[source]

Convert the a duration string into XXhYYmZZs format

duration

Duration to convert

Returns: duration_string

String representation of duration in XXhYYmZZs format

saltext.influxdb.states.influxdb_retention_policy.present(name, database, duration='7d', replication=1, default=False, **client_args)[source]

Ensure that given retention policy is present.

name

Name of the retention policy to create.

database

Database to create retention policy on.

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

Ensure that given retention policy is absent.

name

Name of the retention policy to remove.

database

Name of the database that the retention policy was defined on.