Skip to content

Commit

Permalink
Add an example of a browser test
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguylebarzic committed Apr 15, 2019
1 parent 7f76203 commit 57ab95b
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions website/docs/r/synthetics.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Provides a Datadog synthetics test resource. This can be used to create and mana
## Example Usage

```hcl
# Create a new Datadog synthetics test on https://www.example.org
# Create a new Datadog Synthetics API test on https://www.example.org
resource "datadog_synthetics_test" "foo" {
type = "api"
request {
Expand All @@ -35,10 +35,33 @@ resource "datadog_synthetics_test" "foo" {
options {
tick_every = 900
}
name = "updated name"
name = "An API test on example.org"
message = "Notify @pagerduty"
tags = ["foo:bar", "foo", "env:test"]
status = "live"
}
# Create a new Datadog Synthetics Browser test starting on https://www.example.org
resource "datadog_synthetics_test" "bar" {
type = "browser"
request {
method = "GET"
url = "https://app.datadoghq.com"
}
device_ids = ["laptop_large"]
locations = ["aws:eu-central-1"]
options {
tick_every = 3600
}
name = "A Browser test on example.org"
message = "Notify @qa"
tags = []
status = "paused"
}
```
Expand Down

0 comments on commit 57ab95b

Please sign in to comment.