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)"
      }

      Terraform language logo
      influxdb_continuous_query

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.