github.com/GoogleCloudPlatform/terraformer@v0.8.18/tests/datadog/resources/synthetics.tf (about)

     1  resource "datadog_synthetics_test" "test_api_example" {
     2    type = "api"
     3    subtype = "http"
     4    request = {
     5      method = "GET"
     6      url = "https://www.example.org"
     7    }
     8    request_headers = {
     9      Content-Type = "application/json"
    10      Authentication = "Token: 1234566789"
    11    }
    12    assertion {
    13      type = "statusCode"
    14      operator = "is"
    15      target = "200"
    16    }
    17    locations = [ "aws:eu-central-1" ]
    18    options_list {
    19      tick_every = 900
    20  
    21      retry {
    22        count = 2
    23        interval = 300
    24      }
    25  
    26      monitor_options {
    27        renotify_interval = 100
    28      }
    29    }
    30    name = "An API test on example.org"
    31    message = "Notify @pagerduty"
    32    tags = ["foo:bar", "foo", "env:test"]
    33  
    34    status = "live"
    35  }