influxdb_continuous_query

    0

    0

    lucycodes42

    Terraform snippets

    This code will create a continuous query that will query the zoo database every 30 minutes. The name of the query is "min_mouse", and the database it will query is "test.name".

    Shortcut: tf_influxdb_continuous_query

    resource "influxdb_continuous_query" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
    
       database = "\${influxdb_database.test.name}"
       query = "SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)"
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.