Skip to content

Commit 7642b7f

Browse files
committed
v1.39.0
1 parent bbd0604 commit 7642b7f

File tree

8 files changed

+143
-7
lines changed

8 files changed

+143
-7
lines changed

docs/guides/export-v2.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ Invoking the export functionality requires
1414
* Optionally the environment variable `DYNATRACE_TARGET_FOLDER`. If it's not set, the output folder `./configuration` is assumed
1515

1616
### Execution
17-
Windows: `terraform-provider-dynatrace.exe -export [-ref] [-id] [-flat] [-exclude] [<resourcename>[=<id>]]`
17+
Windows: `terraform-provider-dynatrace.exe -export [-ref] [-migrate] [-import-state] [-id] [-flat] [-exclude] [<resourcename>[=<id>]]`
1818

19-
Linux: `./terraform-provider-dynatrace -export [-ref] [-id] [-flat] [-exclude] [<resourcename>[=<id>]]`
19+
Linux: `./terraform-provider-dynatrace -export [-ref] [-migrate] [-import-state] [-id] [-flat] [-exclude] [<resourcename>[=<id>]]`
2020

2121
### Options
2222
* `-ref` Enable resources with data sources and dependencies
2323
* `-migrate` Enable resources with dependencies, no data sources. More information available in the [Environment Migration](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/environment-migration) guide.
24+
* `-import-state` Automatically initializes the terraform modules and imports downloaded resources into the state
2425
* `-id` Enable commented id output in resource files
2526
* `-flat` All downloaded resources end up directly within the target folder - no module structure will be created
2627
* `-exclude` Exclude specified resource(s) from export
@@ -33,6 +34,8 @@ Linux: `./terraform-provider-dynatrace -export [-ref] [-id] [-flat] [-exclude] [
3334
* `./terraform-provider-dynatrace -export -ref dynatrace_dashboard dynatrace_web_application` downloads all available dashboards, web applications and resource dependencies with references
3435
* `./terraform-provider-dynatrace -export -ref dynatrace_alerting=4f5942d4-3450-40a8-818f-c5faeb3563d0 dynatrace_alerting=9c4b75f1-9a64-4b44-a8e4-149154fd5325` downloads the alerting profiles with the ids `4f5942d4-3450-40a8-818f-c5faeb3563d0` and `9c4b75f1-9a64-4b44-a8e4-149154fd5325`, includes all resource dependencies with references
3536
* `./terraform-provider-dynatrace -export -ref dynatrace_calculated_service_metric dynatrace_alerting=4f5942d4-3450-40a8-818f-c5faeb3563d0` downloads all available calculated service metrics and also the alerting profile with the id `4f5942d4-3450-40a8-818f-c5faeb3563d0`, includes all resource dependencies with references
37+
* `./terraform-provider-dynatrace -export -import-state` downloads all available configuration settings and imports resources into the state
38+
* `./terraform-provider-dynatrace -export -import-state dynatrace_web_application` downloads all web applications and imports resources into the state
3639
* `./terraform-provider-dynatrace -export -ref -exclude dynatrace_calculated_service_metric dynatrace_alerting` download all available configuration settings except `dynatrace_calculated_service_metric` and `dynatrace_alerting`, includes all resource dependencies with references
3740

3841
### Additional Information

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Use the links to the left to learn about the available resources, data sources,
1818
terraform {
1919
required_providers {
2020
dynatrace = {
21-
version = "1.38.0"
21+
version = "1.39.0"
2222
source = "dynatrace-oss/dynatrace"
2323
}
2424
}

docs/resources/ag_token.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ resource "dynatrace_ag_token" "#name#" {
5858
### Read-Only
5959

6060
- `id` (String) The ID of this resource.
61+
- `tenant_token` (String, Sensitive) The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You require the permission `InstallerDownload` for that attribute to get populated
6162
- `token` (String, Sensitive) The secret of the token.
6263

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
layout: ""
3+
page_title: dynatrace_business_events_security_context Resource - terraform-provider-dynatrace"
4+
subcategory: "Business Events"
5+
description: |-
6+
The resource `dynatrace_business_events_security_context` covers configuration for business security context
7+
---
8+
9+
# dynatrace_business_events_security_context (Resource)
10+
11+
-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`)
12+
13+
## Dynatrace Documentation
14+
15+
- Business Analytics - https://www.dynatrace.com/support/help/platform-modules/business-analytics
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:bizevents-security-context-rules`)
18+
19+
## Export Example Usage
20+
21+
- `terraform-provider-dynatrace -export dynatrace_business_events_security_context` downloads all existing business event security context configuration
22+
23+
The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2).
24+
25+
## Resource Example Usage
26+
27+
```terraform
28+
resource "dynatrace_business_events_security_context" "#name#" {
29+
security_context_rule {
30+
query = "matchesPhrase(content, \"#name#\")"
31+
rule_name = "#name#"
32+
value_source_field = "#name#"
33+
value_source = "FIELD"
34+
}
35+
}
36+
```
37+
38+
<!-- schema generated by tfplugindocs -->
39+
## Schema
40+
41+
### Required
42+
43+
- `security_context_rule` (Block List, Min: 1, Max: 1) no documentation available (see [below for nested schema](#nestedblock--security_context_rule))
44+
45+
### Read-Only
46+
47+
- `id` (String) The ID of this resource.
48+
49+
<a id="nestedblock--security_context_rule"></a>
50+
### Nested Schema for `security_context_rule`
51+
52+
Required:
53+
54+
- `query` (String) Matcher
55+
- `rule_name` (String) Rule name
56+
- `value_source` (String) Possible Values: `FIELD`, `LITERAL`
57+
58+
Optional:
59+
60+
- `value` (String) Literal value to be set
61+
- `value_source_field` (String) Name of field used to copy value
62+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
layout: ""
3+
page_title: dynatrace_log_security_context Resource - terraform-provider-dynatrace"
4+
subcategory: "Log Monitoring"
5+
description: |-
6+
The resource `dynatrace_log_security_context` covers configuration for log security context rules
7+
---
8+
9+
# dynatrace_log_security_context (Resource)
10+
11+
-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`)
12+
13+
## Dynatrace Documentation
14+
15+
- Log Management and Analytics - https://www.dynatrace.com/support/help/observe-and-explore/logs/log-management-and-analytics
16+
17+
- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:logmonitoring.log-security-context-rules`)
18+
19+
## Export Example Usage
20+
21+
- `terraform-provider-dynatrace -export dynatrace_log_security_context` downloads all existing log security context configuration
22+
23+
The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2).
24+
25+
## Resource Example Usage
26+
27+
```terraform
28+
resource "dynatrace_log_security_context" "#name#" {
29+
security_context_rule {
30+
query = "matchesPhrase(content, \"#name#\")"
31+
rule_name = "#name#"
32+
value_source_field = "#name#"
33+
value_source = "FIELD"
34+
}
35+
}
36+
```
37+
38+
<!-- schema generated by tfplugindocs -->
39+
## Schema
40+
41+
### Required
42+
43+
- `security_context_rule` (Block List, Min: 1, Max: 1) no documentation available (see [below for nested schema](#nestedblock--security_context_rule))
44+
45+
### Read-Only
46+
47+
- `id` (String) The ID of this resource.
48+
49+
<a id="nestedblock--security_context_rule"></a>
50+
### Nested Schema for `security_context_rule`
51+
52+
Required:
53+
54+
- `query` (String) Matcher
55+
- `rule_name` (String) Rule name
56+
- `value_source` (String) Possible Values: `FIELD`, `LITERAL`
57+
58+
Optional:
59+
60+
- `value` (String) Literal value to be set
61+
- `value_source_field` (String) Name of field used to copy value
62+

docs/resources/slo.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ description: |-
88

99
# dynatrace_slo (Resource)
1010

11-
!> This resource is utilizing an older API endpoint, please use [dynatrace_slo_v2](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/resources/slo_v2) instead.
12-
1311
-> This resource requires the API token scopes **Read SLO** (`slo.read`) and **Write SLO** (`slo.write`)
1412

1513
## Dynatrace Documentation
@@ -54,12 +52,22 @@ resource "dynatrace_slo" "#name#" {
5452
- `denominator` (String) The total count metric (the denominator in rate calculation)
5553
- `description` (String) The custom description of the SLO (optional)
5654
- `disabled` (Boolean) The SLO is enabled (`false`) or disabled (`true`)
55+
- `error_budget_burn_rate` (Block List, Max: 1) Error budget burn rate configuration of a service-level objective (SLO). (see [below for nested schema](#nestedblock--error_budget_burn_rate))
5756
- `filter` (String) The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector)
5857
- `metric_expression` (String) The percentage-based metric expression for the calculation of the SLO
58+
- `metric_name` (String) The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
5959
- `numerator` (String, Deprecated) The metric for the count of successes (the numerator in rate calculation)
6060
- `rate` (String) The percentage-based metric for the calculation of the SLO
6161

6262
### Read-Only
6363

6464
- `id` (String) The ID of this resource.
65+
66+
<a id="nestedblock--error_budget_burn_rate"></a>
67+
### Nested Schema for `error_budget_burn_rate`
68+
69+
Optional:
70+
71+
- `burn_rate_visualization_enabled` (Boolean) The error budget burn rate calculation is enabled (true) or disabled (false).
72+
- `fast_burn_threshold` (Number) The threshold between a slow and a fast burn rate.
6573

provider/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
package version
1919

20-
const Current = "1.38.0"
20+
const Current = "1.39.0"

templates/index.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Use the links to the left to learn about the available resources, data sources,
1818
terraform {
1919
required_providers {
2020
dynatrace = {
21-
version = "1.38.0"
21+
version = "1.39.0"
2222
source = "dynatrace-oss/dynatrace"
2323
}
2424
}

0 commit comments

Comments
 (0)