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¶
chunk
(Block List, Max: 1) (see below for nested schema)datastream
(String)disabled
(Boolean)gcp_monitoring
(Block List, Max: 1) (see below for nested schema)http
(Block List, Max: 1) (see below for nested schema)interval
(String)mongodbatlas
(Block List, Max: 1) (see below for nested schema)pubsub
(Block List, Max: 1) (see below for nested schema)retries
(Number)tags
(Map of String)
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:
body
(String, Deprecated)content_type
(String, Deprecated)endpoint
(String, Deprecated)headers
(Map of String, Deprecated)method
(String, Deprecated)request
(Block List) (see below for nested schema)rule
(Block List) (see below for nested schema)template
(Block List, Max: 1) (see below for nested schema)
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:
match
(Block List, Min: 1, Max: 1) (see below for nested schema)
Optional:
decoder
(Block List, Max: 1) (see below for nested schema)follow
(String)
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