Skip to content

Commit

Permalink
Fix retention_days and daily_limit attributes (#1118)
Browse files Browse the repository at this point in the history
* datadog_logs_index - daily_limit is optional

Signed-off-by: Jared Ledvina <[email protected]>

* make docs

Signed-off-by: Jared Ledvina <[email protected]>

* Update resource_datadog_logs_index.go

* Update logs_index.md

* Update resource_datadog_logs_index.go

Co-authored-by: Hippolyte HENRY <[email protected]>
  • Loading branch information
jaredledvina and zippolyte authored Jun 22, 2021
1 parent 5aba9bc commit 88c2230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions datadog/resource_datadog_logs_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ var indexSchema = map[string]*schema.Schema{
"daily_limit": {
Description: "The number of log events you can send in this index per day before you are rate-limited.",
Type: schema.TypeInt,
Required: true,
Optional: true,
},
"retention_days": {
Description: "The number of days before logs are deleted from this index.",
Type: schema.TypeInt,
Required: true,
Optional: true,
Computed: true,
},
"filter": {
Description: "Logs filter",
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/logs_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ resource "datadog_logs_index" "sample_index" {

### Required

- **daily_limit** (Number) The number of log events you can send in this index per day before you are rate-limited.
- **filter** (Block List, Min: 1) Logs filter (see [below for nested schema](#nestedblock--filter))
- **name** (String) The name of the index.
- **retention_days** (Number) The number of days before logs are deleted from this index.

### Optional

- **daily_limit** (Number) The number of log events you can send in this index per day before you are rate-limited.
- **exclusion_filter** (Block List) List of exclusion filters. (see [below for nested schema](#nestedblock--exclusion_filter))
- **retention_days** (Number) The number of days before logs are deleted from this index.

### Read-Only

Expand Down

0 comments on commit 88c2230

Please sign in to comment.