-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #6 by removing the arguments forecasted_date and triggered from…
… the alert, fixes #4 by adding a budget example"
- Loading branch information
Showing
5 changed files
with
78 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,43 @@ description: |- | |
|
||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "doit_budget" "my_budget" { | ||
name = "test budget terraform" | ||
description = "hellogo test2" | ||
alerts = [ | ||
{ | ||
percentage = 50 | ||
}, | ||
{ | ||
percentage = 85, | ||
}, | ||
{ | ||
percentage = 100, | ||
} | ||
] | ||
recipients = [ | ||
"[email protected]" | ||
] | ||
collaborators = [ | ||
{ | ||
"email" : "[email protected]", | ||
"role" : "owner" | ||
}, | ||
] | ||
scope = [ | ||
"Evct3J0DYcyXIVuAXORd" | ||
] | ||
amount = 200 | ||
currency = "AUD" | ||
growth_per_period = 10 | ||
time_interval = "month" | ||
type = "recurring" | ||
use_prev_spend = false | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
@@ -57,9 +93,7 @@ Required: | |
|
||
Optional: | ||
|
||
- `forecasted_date` (Number) | ||
- `percentage` (Number) | ||
- `triggered` (Boolean) | ||
|
||
|
||
<a id="nestedatt--recipients_slack_channels"></a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
resource "doit_budget" "my_budget" { | ||
name = "test budget terraform" | ||
description = "hellogo test2" | ||
alerts = [ | ||
{ | ||
percentage = 50 | ||
}, | ||
{ | ||
percentage = 85, | ||
}, | ||
{ | ||
percentage = 100, | ||
} | ||
] | ||
recipients = [ | ||
"[email protected]" | ||
] | ||
collaborators = [ | ||
{ | ||
"email" : "[email protected]", | ||
"role" : "owner" | ||
}, | ||
] | ||
scope = [ | ||
"Evct3J0DYcyXIVuAXORd" | ||
] | ||
amount = 200 | ||
currency = "AUD" | ||
growth_per_period = 10 | ||
time_interval = "month" | ||
type = "recurring" | ||
use_prev_spend = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters