diff --git a/docs/resources/site_integration.md b/docs/resources/site_integration.md
index 40c9214..27f2d25 100644
--- a/docs/resources/site_integration.md
+++ b/docs/resources/site_integration.md
@@ -35,12 +35,21 @@ resource "sigsci_site_integration" "test_integration" {
### Optional
- `events` (Set of String) Array of event types. Visit https://docs.fastly.com/signalsciences/integrations to find out which events the service you are connecting allows.
+- `fields` (Block Set) (see [below for nested schema](#nestedblock--fields))
### Read-Only
- `id` (String) The ID of this resource.
- `name` (String) name
+
+### Nested Schema for `fields`
+
+Required:
+
+- `name` (String)
+- `value` (String)
+
## Import
Import is supported using the following syntax:
diff --git a/go.mod b/go.mod
index d376bbb..a879280 100644
--- a/go.mod
+++ b/go.mod
@@ -6,7 +6,7 @@ require (
github.com/davecgh/go-spew v1.1.1
github.com/hashicorp/terraform-plugin-docs v0.14.1
github.com/hashicorp/terraform-plugin-sdk v1.14.0
- github.com/signalsciences/go-sigsci v0.1.23
+ github.com/signalsciences/go-sigsci v0.1.24
golang.org/x/lint v0.0.0-20190409202823-959b441ac422
honnef.co/go/tools v0.4.2
)
diff --git a/go.sum b/go.sum
index d4cba25..128303c 100644
--- a/go.sum
+++ b/go.sum
@@ -257,14 +257,8 @@ github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
-github.com/signalsciences/go-sigsci v0.1.20 h1:lMirioZwNWhnizOqryzvr1dsvOpmOn2e4MK+XEzlXrA=
-github.com/signalsciences/go-sigsci v0.1.20/go.mod h1:CXwoXk81ZwFdne6o8cnAYwxvke5kcLg7zE6Bl/e1KUo=
-github.com/signalsciences/go-sigsci v0.1.21 h1:5lkqv66jlPxqe7BHv46eEefttGo/6nRqLjqAqNuA5xA=
-github.com/signalsciences/go-sigsci v0.1.21/go.mod h1:CXwoXk81ZwFdne6o8cnAYwxvke5kcLg7zE6Bl/e1KUo=
-github.com/signalsciences/go-sigsci v0.1.22 h1:WDDYLS5sVbUcPgDAOrxjDfIWdfuBjISOtHvwDIR1U7M=
-github.com/signalsciences/go-sigsci v0.1.22/go.mod h1:CXwoXk81ZwFdne6o8cnAYwxvke5kcLg7zE6Bl/e1KUo=
-github.com/signalsciences/go-sigsci v0.1.23 h1:NrqxMi5JpNfpIUobbhnG/KDmNqM5h4/D/DVIqbyhN3k=
-github.com/signalsciences/go-sigsci v0.1.23/go.mod h1:CXwoXk81ZwFdne6o8cnAYwxvke5kcLg7zE6Bl/e1KUo=
+github.com/signalsciences/go-sigsci v0.1.24 h1:9KeviWFDsTo2N9vVBNcYlEMS7q2Lg50lLG40W1bGNAs=
+github.com/signalsciences/go-sigsci v0.1.24/go.mod h1:CXwoXk81ZwFdne6o8cnAYwxvke5kcLg7zE6Bl/e1KUo=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc=
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
diff --git a/main.tf b/main.tf
index 829b50a..3ffbcd6 100644
--- a/main.tf
+++ b/main.tf
@@ -356,6 +356,23 @@ resource "sigsci_site_integration" "test_integration" {
events = ["listCreated"]
}
+resource "sigsci_site_integration" "test_integration_datadog" {
+ site_short_name = sigsci_site.my-site.short_name
+ type = "datadog"
+ url = ""
+ events = ["flag", "agentAlert"]
+
+ fields {
+ name = "site"
+ value = "us1"
+ }
+
+ fields {
+ name = "apiKey"
+ value = "your_api_key"
+ }
+}
+
resource "sigsci_corp_cloudwaf_certificate" "test_cloudwaf_certificate" {
name = "Certificate Name"
certificate_body = <