Skip to content

Commit

Permalink
Merge pull request #895 from schmickie/master
Browse files Browse the repository at this point in the history
fix(entity): add VIZ domain, update docs to mention that all domains …
  • Loading branch information
sanderblue authored Sep 23, 2020
2 parents 03d9abf + ee13bf5 commit df69a4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions newrelic/data_source_newrelic_entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func dataSourceNewRelicEntity() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, and WORRKLOAD.",
Description: "The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, and WORKLOAD.",
ValidateFunc: validation.StringInSlice([]string{"APPLICATION", "DASHBOARD", "HOST", "MONITOR", "WORKLOAD"}, true),
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.EqualFold(old, new) // Case fold this attribute when diffing
Expand All @@ -33,8 +33,8 @@ func dataSourceNewRelicEntity() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, and SYNTH.",
ValidateFunc: validation.StringInSlice([]string{"APM", "BROWSER", "INFRA", "MOBILE", "SYNTH"}, true),
Description: "The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and VIZ. If not specified, all domains are searched.",
ValidateFunc: validation.StringInSlice([]string{"APM", "BROWSER", "INFRA", "MOBILE", "SYNTH", "VIZ"}, true),
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.EqualFold(old, new) // Case fold this attribute when diffing
},
Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/entity.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ resource "newrelic_nrql_alert_condition" "foo" {
The following arguments are supported:

* `name` - (Required) The name of the entity in New Relic One. The first entity matching this name for the given search parameters will be returned.
* `type` - (Optional) The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, and WORRKLOAD.
* `domain` - (Optional) The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, and SYNTH.
* `type` - (Optional) The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, and WORKLOAD.
* `domain` - (Optional) The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and VIZ. If not specified, all domains are searched.
* `tags` - (Optional) A tag applied to the entity.

## Attributes Reference
Expand Down

0 comments on commit df69a4d

Please sign in to comment.