observe_poller

Example Usage

data "observe_workspace" "default" {
  name = "Default"
}

resource "observe_datastream" "example" {
  workspace = data.observe_workspace.default.oid
  name      = "Example"
}

resource "observe_poller" "weather" {
  workspace = data.observe_workspace.default.oid
  interval  = "5m"
  name      = "OpenWeather"

  datastream = observe_datastream.example.oid

  http {
    template {
      url = "https://api.openweathermap.org/data/2.5/weather"
      params = {
        units = "metric"
        appid = "my-api-key"
      }
    }

    request {
      params = {
        q = "San Francisco"
      }
    }

    request {
      params = {
        q = "New York"
      }
    }
  }
}

Schema

Required

  • name (String)

  • workspace (String)

Optional

Read-Only

  • id (String) The ID of this resource.

  • kind (String)

  • oid (String)

Nested Schema for chunk

Required:

  • enabled (Boolean)

Optional:

  • size (Number)

Nested Schema for gcp_monitoring

Required:

  • json_key (String)

  • project_id (String)

Optional:

  • exclude_metric_type_prefixes (List of String)

  • include_metric_type_prefixes (List of String)

  • rate_limit (Number)

  • total_limit (Number)

Nested Schema for http

Optional:

Nested Schema for http.request

Optional:

  • auth_scheme (String)

  • body (String)

  • headers (Map of String)

  • method (String)

  • params (Map of String)

  • password (String)

  • url (String)

  • username (String)

Nested Schema for http.rule

Required:

Optional:

Nested Schema for http.rule.match

Optional:

  • auth_scheme (String)

  • body (String)

  • headers (Map of String)

  • method (String)

  • params (Map of String)

  • password (String)

  • url (String)

  • username (String)

Nested Schema for http.rule.decoder

Required:

  • type (String)

Nested Schema for http.template

Optional:

  • auth_scheme (String)

  • body (String)

  • headers (Map of String)

  • method (String)

  • params (Map of String)

  • password (String)

  • url (String)

  • username (String)

Nested Schema for mongodbatlas

Required:

  • private_key (String, Sensitive)

  • public_key (String)

Optional:

  • exclude_groups (List of String)

  • include_groups (List of String)

Nested Schema for pubsub

Required:

  • json_key (String)

  • project_id (String)

  • subscription_id (String)

Import

Import is supported using the following syntax:

terraform import observe_poller.example 1414010