Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datafeed.html.markdown #154

Merged
merged 2 commits into from
Jun 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion website/docs/r/datafeed.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ resource "ns1_datasource" "example" {
sourcetype = "nsone_v1"
}

resource "ns1_datasource" "example_monitoring" {
name = "example_monitoring"
sourcetype = "nsone_monitoring"
}

resource "ns1_datafeed" "uswest_feed" {
name = "uswest_feed"
source_id = "${ns1_datasource.example.id}"
Expand All @@ -35,6 +40,16 @@ resource "ns1_datafeed" "useast_feed" {
label = "useast"
}
}

resource "ns1_datafeed" "useast_monitor_feed" {
name = "useast_monitor_feed"
source_id = "${ns1_datasource.example_monitoring.id}"

config = {
jobid = "${ns1_monitoringjob.example_job.id}"
}
}

```

## Argument Reference
Expand All @@ -44,7 +59,7 @@ The following arguments are supported:
* `source_id` - (Required) The data source id that this feed is connected to.
* `name` - (Required) The free form name of the data feed.
* `config` - (Optional) The feeds configuration matching the specification in
`feed_config` from /data/sourcetypes.
`feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.

## Attributes Reference

Expand Down