Skip to content

Commit

Permalink
v1.39.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawa12 committed Aug 15, 2023
1 parent bbd0604 commit 7642b7f
Show file tree
Hide file tree
Showing 8 changed files with 143 additions and 7 deletions.
7 changes: 5 additions & 2 deletions docs/guides/export-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ Invoking the export functionality requires
* Optionally the environment variable `DYNATRACE_TARGET_FOLDER`. If it's not set, the output folder `./configuration` is assumed

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

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

### Options
* `-ref` Enable resources with data sources and dependencies
* `-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.
* `-import-state` Automatically initializes the terraform modules and imports downloaded resources into the state
* `-id` Enable commented id output in resource files
* `-flat` All downloaded resources end up directly within the target folder - no module structure will be created
* `-exclude` Exclude specified resource(s) from export
Expand All @@ -33,6 +34,8 @@ Linux: `./terraform-provider-dynatrace -export [-ref] [-id] [-flat] [-exclude] [
* `./terraform-provider-dynatrace -export -ref dynatrace_dashboard dynatrace_web_application` downloads all available dashboards, web applications and resource dependencies with references
* `./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
* `./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
* `./terraform-provider-dynatrace -export -import-state` downloads all available configuration settings and imports resources into the state
* `./terraform-provider-dynatrace -export -import-state dynatrace_web_application` downloads all web applications and imports resources into the state
* `./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

### Additional Information
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Use the links to the left to learn about the available resources, data sources,
terraform {
required_providers {
dynatrace = {
version = "1.38.0"
version = "1.39.0"
source = "dynatrace-oss/dynatrace"
}
}
Expand Down
1 change: 1 addition & 0 deletions docs/resources/ag_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ resource "dynatrace_ag_token" "#name#" {
### Read-Only

- `id` (String) The ID of this resource.
- `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
- `token` (String, Sensitive) The secret of the token.

62 changes: 62 additions & 0 deletions docs/resources/business_events_security_context.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
layout: ""
page_title: dynatrace_business_events_security_context Resource - terraform-provider-dynatrace"
subcategory: "Business Events"
description: |-
The resource `dynatrace_business_events_security_context` covers configuration for business security context
---

# dynatrace_business_events_security_context (Resource)

-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`)

## Dynatrace Documentation

- Business Analytics - https://www.dynatrace.com/support/help/platform-modules/business-analytics

- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:bizevents-security-context-rules`)

## Export Example Usage

- `terraform-provider-dynatrace -export dynatrace_business_events_security_context` downloads all existing business event security context configuration

The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2).

## Resource Example Usage

```terraform
resource "dynatrace_business_events_security_context" "#name#" {
security_context_rule {
query = "matchesPhrase(content, \"#name#\")"
rule_name = "#name#"
value_source_field = "#name#"
value_source = "FIELD"
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `security_context_rule` (Block List, Min: 1, Max: 1) no documentation available (see [below for nested schema](#nestedblock--security_context_rule))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--security_context_rule"></a>
### Nested Schema for `security_context_rule`

Required:

- `query` (String) Matcher
- `rule_name` (String) Rule name
- `value_source` (String) Possible Values: `FIELD`, `LITERAL`

Optional:

- `value` (String) Literal value to be set
- `value_source_field` (String) Name of field used to copy value

62 changes: 62 additions & 0 deletions docs/resources/log_security_context.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
layout: ""
page_title: dynatrace_log_security_context Resource - terraform-provider-dynatrace"
subcategory: "Log Monitoring"
description: |-
The resource `dynatrace_log_security_context` covers configuration for log security context rules
---

# dynatrace_log_security_context (Resource)

-> This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`)

## Dynatrace Documentation

- Log Management and Analytics - https://www.dynatrace.com/support/help/observe-and-explore/logs/log-management-and-analytics

- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:logmonitoring.log-security-context-rules`)

## Export Example Usage

- `terraform-provider-dynatrace -export dynatrace_log_security_context` downloads all existing log security context configuration

The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2).

## Resource Example Usage

```terraform
resource "dynatrace_log_security_context" "#name#" {
security_context_rule {
query = "matchesPhrase(content, \"#name#\")"
rule_name = "#name#"
value_source_field = "#name#"
value_source = "FIELD"
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `security_context_rule` (Block List, Min: 1, Max: 1) no documentation available (see [below for nested schema](#nestedblock--security_context_rule))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--security_context_rule"></a>
### Nested Schema for `security_context_rule`

Required:

- `query` (String) Matcher
- `rule_name` (String) Rule name
- `value_source` (String) Possible Values: `FIELD`, `LITERAL`

Optional:

- `value` (String) Literal value to be set
- `value_source_field` (String) Name of field used to copy value

12 changes: 10 additions & 2 deletions docs/resources/slo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ description: |-

# dynatrace_slo (Resource)

!> 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.

-> This resource requires the API token scopes **Read SLO** (`slo.read`) and **Write SLO** (`slo.write`)

## Dynatrace Documentation
Expand Down Expand Up @@ -54,12 +52,22 @@ resource "dynatrace_slo" "#name#" {
- `denominator` (String) The total count metric (the denominator in rate calculation)
- `description` (String) The custom description of the SLO (optional)
- `disabled` (Boolean) The SLO is enabled (`false`) or disabled (`true`)
- `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))
- `filter` (String) The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector)
- `metric_expression` (String) The percentage-based metric expression for the calculation of the SLO
- `metric_name` (String) The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
- `numerator` (String, Deprecated) The metric for the count of successes (the numerator in rate calculation)
- `rate` (String) The percentage-based metric for the calculation of the SLO

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--error_budget_burn_rate"></a>
### Nested Schema for `error_budget_burn_rate`

Optional:

- `burn_rate_visualization_enabled` (Boolean) The error budget burn rate calculation is enabled (true) or disabled (false).
- `fast_burn_threshold` (Number) The threshold between a slow and a fast burn rate.

2 changes: 1 addition & 1 deletion provider/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

package version

const Current = "1.38.0"
const Current = "1.39.0"
2 changes: 1 addition & 1 deletion templates/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Use the links to the left to learn about the available resources, data sources,
terraform {
required_providers {
dynatrace = {
version = "1.38.0"
version = "1.39.0"
source = "dynatrace-oss/dynatrace"
}
}
Expand Down

0 comments on commit 7642b7f

Please sign in to comment.