Skip to content

Commit 64e2ab9

Browse files
committed
Fix test and docs
1 parent fb015fa commit 64e2ab9

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

sumologic/resource_sumologic_ingest_budget_v2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestAccIngestBudgetV2_update(t *testing.T) {
9595

9696
testUpdatedName := "Developer BudgetUpdate"
9797
testUpdatedScope := "_sourceCategory=*prod*nginx*Update"
98-
testUpdatedTimezone := "America/Los_AngelesUpdate"
98+
testUpdatedTimezone := "America/Lima"
9999
testUpdatedResetTime := "22:05"
100100
testUpdatedAuditThreshold := 86
101101
testUpdatedDescription := "description-pY8kDUpdate"
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_ingest_budget_v2"
4+
description: |-
5+
Provides a Sumologic Ingest Budget v2
6+
---
7+
8+
# sumologic_ingest_budget_v2
9+
Provides a [Sumologic Ingest Budget v2][1].
10+
11+
## Example Usage
12+
```hcl
13+
resource "sumologic_ingest_budget_v2" "budget" {
14+
name = "testBudget"
15+
scope = "_sourceCategory=*prod*nginx*"
16+
capacity_bytes = 30000000000
17+
description = "For testing purposes"
18+
}
19+
```
20+
21+
## Argument Reference
22+
23+
The following arguments are supported:
24+
25+
* `name` - (Required) Display name of the ingest budget. This must be unique across all of the ingest budgets
26+
* `scope` - (Required) A scope is a constraint that will be used to identify the messages on which budget needs to be applied. A scope is consists of key and value separated by =. The field must be enabled in the fields table.
27+
* `capacity_bytes` - (Required) Capacity of the ingest budget, in bytes.
28+
* `description` - (Optional) The description of the collector.
29+
* `timezone` - (Optional) The time zone to use for this collector. The value follows the [tzdata][2] naming convention. Defaults to `Etc/UTC`
30+
* `reset_time` - (Optional) Reset time of the ingest budget in HH:MM format. Defaults to `00:00`
31+
* `reset_time` - (Optional) Reset time of the ingest budget in HH:MM format. Defaults to `00:00`
32+
* `description` - (Optional) Description of the ingest budget.
33+
* `action` - (Optional) Action to take when ingest budget's capacity is reached. All actions are audited. Supported values are `stopCollecting` and `keepCollecting`.
34+
35+
The following attributes are exported:
36+
37+
* `id` - The internal ID of the ingest budget. This can be used to assign collectors to the ingest budget.
38+
39+
## Import
40+
Ingest budgets can be imported using the name, e.g.:
41+
42+
```hcl
43+
terraform import sumologic_ingest_budget_v2.budget budgetName
44+
```
45+
46+
[1]: https://help.sumologic.com/Beta/Metadata_Ingest_Budgets
47+
[2]: https://en.wikipedia.org/wiki/Tz_database

0 commit comments

Comments
 (0)