Skip to content

Commit 0838348

Browse files
v1.78.0
1 parent 9ceae96 commit 0838348

13 files changed

+293
-5
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
layout: ""
3+
page_title: "dynatrace_platform_slo_template Data Source - terraform-provider-dynatrace"
4+
subcategory: "Service-level Objective"
5+
description: |-
6+
The data source `dynatrace_platform_slo_template` covers queries for the ID of a SLO objective template based on name
7+
---
8+
9+
# dynatrace_platform_slo_template (Data Source)
10+
11+
-> To utilize this data source, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **View SLOs** (`slo:slos:read`) and **View SLO objective templates** (`slo:objective-templates:read`).
12+
13+
The SLO objective template data source allows the ID to be retrieved by its name.
14+
15+
- `name` (String) Name of the SLO objective template
16+
17+
## Example Usage
18+
19+
```terraform
20+
data "dynatrace_platform_slo_template" "HostCPU" {
21+
name = "Host CPU usage utilization"
22+
}
23+
24+
resource "dynatrace_platform_slo" "#name#" {
25+
name = "#name#"
26+
description = "Measures the CPU usage of selected hosts over time."
27+
criteria {
28+
criteria_detail {
29+
target = 95
30+
timeframe_from = "now-7d"
31+
timeframe_to = "now"
32+
}
33+
}
34+
sli_reference {
35+
template_id = data.dynatrace_platform_slo_template.HostCPU.id
36+
variables {
37+
sli_reference_variable {
38+
name = "hosts"
39+
value = "\"HOST-1234567890000000\""
40+
}
41+
}
42+
}
43+
}
44+
```
45+
46+
<!-- schema generated by tfplugindocs -->
47+
## Schema
48+
49+
### Required
50+
51+
- `name` (String) Name of the SLO objective template
52+
53+
### Read-Only
54+
55+
- `id` (String) ID of the SLO objective template
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: ""
3+
page_title: "dynatrace_platform_slo_templates Data Source - terraform-provider-dynatrace"
4+
subcategory: "Service-level Objective"
5+
description: |-
6+
The data source `dynatrace_platform_slo_templates` covers queries for the list of SLO objective templates
7+
---
8+
9+
# dynatrace_platform_slo_templates (Data Source)
10+
11+
-> To utilize this data source, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **View SLOs** (`slo:slos:read`) and **View SLO objective templates** (`slo:objective-templates:read`).
12+
13+
The SLO objective templates data source allows to retrieve a list of all templates.
14+
15+
## Example Usage
16+
17+
```terraform
18+
data "dynatrace_platform_slo_templates" "Test" {
19+
}
20+
21+
output "test" {
22+
value = data.dynatrace_platform_slo_templates.Test
23+
}
24+
```
25+
26+
<!-- schema generated by tfplugindocs -->
27+
## Schema
28+
29+
### Read-Only
30+
31+
- `id` (String) The ID of this resource.
32+
- `templates` (List of Object) (see [below for nested schema](#nestedatt--templates))
33+
34+
<a id="nestedatt--templates"></a>
35+
### Nested Schema for `templates`
36+
37+
Read-Only:
38+
39+
- `id` (String)
40+
- `name` (String)

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ Define `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` based off of the crea
7878
* **Delete direct-shares** (`document:direct-shares:delete`)
7979
* **Read OpenPipeline configurations** (`openpipeline:configurations:read`)
8080
* **Write OpenPipeline configurations** (`openpipeline:configurations:write`)
81+
* **View SLOs** (`slo:slos:read`)
82+
* **Create and edit SLOs** (`slo:slos:write`)
83+
* **View SLO objective templates** (`slo:objective-templates:read`)
8184
* **View bizevents** (`storage:bizevents:read`)
8285
* **View bucket metadata** (`storage:bucket-definitions:read`)
8386
* **Write buckets** (`storage:bucket-definitions:write`)

docs/resources/attack_settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ Required:
5757
Optional:
5858

5959
- `blocking_strategy_dot_net` (String) (v1.290) Possible Values: `BLOCK`, `MONITOR`, `OFF`
60+
- `blocking_strategy_go` (String) Possible Values: `BLOCK`, `MONITOR`, `OFF`
6061

docs/resources/automation_controller_connections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The full documentation of the export feature is available [here](https://dt-url.
2727
```terraform
2828
resource "dynatrace_automation_controller_connections" "#name#"{
2929
name = "#name#"
30-
url = "www.#name#.com"
30+
url = "https://www.google.com"
3131
type = "api-token"
3232
token = "#######"
3333
}

docs/resources/event_driven_ansible_connections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The full documentation of the export feature is available [here](https://dt-url.
2727
```terraform
2828
resource "dynatrace_event_driven_ansible_connections" "#name#"{
2929
name = "#name#"
30-
url = "www.#name#.com"
30+
url = "https://www.google.com"
3131
type = "api-token"
3232
token = "######"
3333
}

docs/resources/github_connection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The full documentation of the export feature is available [here](https://dt-url.
2828
resource "dynatrace_github_connection" "#name#"{
2929
name = "#name#"
3030
type = "pat"
31-
token = "#######"
31+
token = "azAZ09"
3232
}
3333
```
3434

docs/resources/platform_slo.md

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
---
2+
layout: ""
3+
page_title: Resource - terraform-provider-dynatrace"
4+
subcategory: "Service-level Objective"
5+
description: |-
6+
The resource `dynatrace_platform_slo` covers configuration for platform service-level objectives
7+
---
8+
9+
# dynatrace_platform_slo (Resource)
10+
11+
-> **Dynatrace SaaS only**
12+
13+
-> To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **View SLOs** (`slo:slos:read`) and **Create and edit SLOs** (`slo:slos:write`).
14+
15+
-> This resource is excluded by default in the export utility, please explicitly specify the resource to retrieve existing configuration.
16+
17+
## Dynatrace Documentation
18+
19+
- Service-Level Objectives overview - hhttps://docs.dynatrace.com/docs/deliver/service-level-objectives
20+
21+
- SLO Service Public API - https://########.apps.dynatrace.com/platform/swagger-ui/index.html?urls.primaryName=Service-Level+Objectives
22+
23+
## Resource Example Usage
24+
25+
```terraform
26+
resource "dynatrace_platform_slo" "#name#" {
27+
name = "#name#"
28+
description = "Sample custom SLO"
29+
tags = [ "ExampleKey:ExampleValue" ]
30+
criteria {
31+
criteria_detail {
32+
target = 96
33+
timeframe_from = "now-30d"
34+
timeframe_to = "now"
35+
warning = 99
36+
}
37+
}
38+
custom_sli {
39+
indicator =<<-EOT
40+
timeseries { total=sum(dt.service.request.count) ,failures=sum(dt.service.request.failure_count) }, by: { dt.entity.service }
41+
| fieldsAdd tags=entityAttr(dt.entity.service, "tags")
42+
| filter in(tags, "criticality:Gold")
43+
| fieldsAdd entityName = entityName(dt.entity.service)
44+
| fieldsAdd sli=(((total[]-failures[])/total[])*(100))
45+
| fieldsRemove total, failures, tags
46+
EOT
47+
}
48+
}
49+
```
50+
51+
52+
<!-- schema generated by tfplugindocs -->
53+
## Schema
54+
55+
### Required
56+
57+
- `criteria` (Block List, Min: 1, Max: 1) Criteria of the SLO (see [below for nested schema](#nestedblock--criteria))
58+
- `name` (String) Name of the SLO
59+
60+
### Optional
61+
62+
- `custom_sli` (Block List, Max: 1) Custom SLI of the SLO (see [below for nested schema](#nestedblock--custom_sli))
63+
- `description` (String) Description of the SLO
64+
- `sli_reference` (Block List, Max: 1) SLI reference of the SLO (see [below for nested schema](#nestedblock--sli_reference))
65+
- `tags` (Set of String) Tags of the SLO. Example: `Stage:DEV`
66+
67+
### Read-Only
68+
69+
- `id` (String) The ID of this resource.
70+
71+
<a id="nestedblock--criteria"></a>
72+
### Nested Schema for `criteria`
73+
74+
Required:
75+
76+
- `criteria_detail` (Block List, Min: 1) (see [below for nested schema](#nestedblock--criteria--criteria_detail))
77+
78+
<a id="nestedblock--criteria--criteria_detail"></a>
79+
### Nested Schema for `criteria.criteria_detail`
80+
81+
Required:
82+
83+
- `target` (Number) Criteria target, example: `99.8`
84+
- `timeframe_from` (String) Timeframe from, example: `now-7d`
85+
86+
Optional:
87+
88+
- `timeframe_to` (String) Timeframe to, example: `now`
89+
- `warning` (Number) Criteria warning, example: `99.9`
90+
91+
92+
93+
<a id="nestedblock--custom_sli"></a>
94+
### Nested Schema for `custom_sli`
95+
96+
Required:
97+
98+
- `indicator` (String) Indicator of the custom SLI. Example: `timeseries sli=avg(dt.host.cpu.idle)`
99+
100+
Optional:
101+
102+
- `filter_segments` (Block List, Max: 1) A filter segment is identified by an ID. Each segment includes a list of variable definitions. (see [below for nested schema](#nestedblock--custom_sli--filter_segments))
103+
104+
<a id="nestedblock--custom_sli--filter_segments"></a>
105+
### Nested Schema for `custom_sli.filter_segments`
106+
107+
Required:
108+
109+
- `filter_segment` (Block List, Min: 1) (see [below for nested schema](#nestedblock--custom_sli--filter_segments--filter_segment))
110+
111+
<a id="nestedblock--custom_sli--filter_segments--filter_segment"></a>
112+
### Nested Schema for `custom_sli.filter_segments.filter_segment`
113+
114+
Required:
115+
116+
- `id` (String) The ID of the filter segment
117+
118+
Optional:
119+
120+
- `variables` (Block List, Max: 1) Defines a variable with a name and a list of values (see [below for nested schema](#nestedblock--custom_sli--filter_segments--filter_segment--variables))
121+
122+
<a id="nestedblock--custom_sli--filter_segments--filter_segment--variables"></a>
123+
### Nested Schema for `custom_sli.filter_segments.filter_segment.variables`
124+
125+
Required:
126+
127+
- `filter_segment_variable` (Block List, Min: 1) (see [below for nested schema](#nestedblock--custom_sli--filter_segments--filter_segment--variables--filter_segment_variable))
128+
129+
<a id="nestedblock--custom_sli--filter_segments--filter_segment--variables--filter_segment_variable"></a>
130+
### Nested Schema for `custom_sli.filter_segments.filter_segment.variables.filter_segment_variable`
131+
132+
Required:
133+
134+
- `name` (String) Name of the filter segment variable
135+
- `values` (Set of String) Values of the filter segment variable
136+
137+
138+
139+
140+
141+
142+
<a id="nestedblock--sli_reference"></a>
143+
### Nested Schema for `sli_reference`
144+
145+
Required:
146+
147+
- `template_id` (String) Template ID of the SLI reference
148+
- `variables` (Block List, Min: 1, Max: 1) Variables of the SLI reference (see [below for nested schema](#nestedblock--sli_reference--variables))
149+
150+
<a id="nestedblock--sli_reference--variables"></a>
151+
### Nested Schema for `sli_reference.variables`
152+
153+
Required:
154+
155+
- `sli_reference_variable` (Block List, Min: 1) (see [below for nested schema](#nestedblock--sli_reference--variables--sli_reference_variable))
156+
157+
<a id="nestedblock--sli_reference--variables--sli_reference_variable"></a>
158+
### Nested Schema for `sli_reference.variables.sli_reference_variable`
159+
160+
Required:
161+
162+
- `name` (String) Name of the SLI reference variable. Example: `hostIds`
163+
- `value` (String) Value of the SLI reference variable. Example: `HOST-123456789ABCDEFG`

docs/resources/request_attribute.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,22 @@ Optional:
139139

140140
- `capturing_and_storage_location` (String) Specifies the location where the values are captured and stored. Required if the **source** is one of the following: `GET_PARAMETER`, `URI`, `REQUEST_HEADER`, `RESPONSE_HEADER`. Not applicable in other cases. If the **source** value is `REQUEST_HEADER` or `RESPONSE_HEADER`, the `CAPTURE_AND_STORE_ON_BOTH` location is not allowed
141141
- `cics_sdk_method_node_condition` (Block List, Max: 1) IBM integration bus label node name condition for which the value is captured (see [below for nested schema](#nestedblock--data_sources--cics_sdk_method_node_condition))
142+
- `cics_transaction_call_type` (String) CICS transaction call type condition for which the value is captured. Required if the source is: `CICS_TRANSACTION_CALL_TYPE`. Not applicable in other cases.
142143
- `iib_label_method_node_condition` (Block List, Max: 1) IBM integration bus label node name condition for which the value is captured (see [below for nested schema](#nestedblock--data_sources--iib_label_method_node_condition))
143144
- `iib_method_node_condition` (Block List, Max: 1) IBM integration bus label node name condition for which the value is captured (see [below for nested schema](#nestedblock--data_sources--iib_method_node_condition))
144145
- `iib_node_type` (String) The IBM integration bus node type for which the value is captured. This or `iibMethodNodeCondition` is required if the **source** is: `IIB_NODE`. Not applicable in other cases
146+
- `iib_node_type_condition` (Block List, Max: 1) IBM integration bus label node name condition for which the value is captured (see [below for nested schema](#nestedblock--data_sources--iib_node_type_condition))
147+
- `ims_transaction_call_type` (String) IMS transaction call type condition for which the value is captured. Required if the source is: `IMS_TRANSACTION_CALL_TYPE`. Not applicable in other cases.
145148
- `methods` (Block List) The method specification if the **source** value is `METHOD_PARAM`. Not applicable in other cases (see [below for nested schema](#nestedblock--data_sources--methods))
146149
- `parameter_name` (String) The name of the web request parameter to capture. Required if the **source** is one of the following: `POST_PARAMETER`, `GET_PARAMETER`, `REQUEST_HEADER`, `RESPONSE_HEADER`, `CUSTOM_ATTRIBUTE`. Not applicable in other cases
147150
- `scope` (Block List, Max: 1) Conditions for data capturing (see [below for nested schema](#nestedblock--data_sources--scope))
151+
- `server_variable_technology` (String) The technology of the server variable to capture if the source value is SERVER_VARIABLE.
152+
153+
Not applicable in other cases.
148154
- `session_attribute_technology` (String) The technology of the session attribute to capture if the **source** value is `SESSION_ATTRIBUTE`.
149155

150156
Not applicable in other cases
157+
- `span_attribute_key` (String) The key of the span attribute to capture. Required if the source is: `SPAN_ATTRIBUTE`. Not applicable in other cases.
151158
- `technology` (String) The technology of the method to capture if the **source** value is `METHOD_PARAM`.
152159

153160
Not applicable in other cases
@@ -196,6 +203,20 @@ Optional:
196203
- `unknowns` (String) allows for configuring properties that are not explicitly supported by the current version of this provider
197204

198205

206+
<a id="nestedblock--data_sources--iib_node_type_condition"></a>
207+
### Nested Schema for `data_sources.iib_node_type_condition`
208+
209+
Required:
210+
211+
- `operator` (String) Operator comparing the extracted value to the comparison value
212+
- `value` (String) The value to compare to
213+
214+
Optional:
215+
216+
- `negate` (Boolean) Negate the comparison
217+
- `unknowns` (String) allows for configuring properties that are not explicitly supported by the current version of this provider
218+
219+
199220
<a id="nestedblock--data_sources--methods"></a>
200221
### Nested Schema for `data_sources.methods`
201222

docs/resources/synthetic_location.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ resource "dynatrace_synthetic_location" "#name#" {
7171
Only applicable when **availability_location_outage** or **availability_node_outage** is set to `true`
7272
- `max_active_gate_count` (Number) The maximum number of Active Gates required for that location. Not required when `deployment_type` is set to `STANDARD`
7373
- `min_active_gate_count` (Number) The minimum number of Active Gates required for that location. Not required when `deployment_type` is set to `STANDARD`
74+
- `nam_execution_supported` (Boolean) Boolean value describes if icmp monitors will be executed on this location
7475
- `node_size` (String) Possible values: `UNSUPPORTED`, `XS`, `S` and `M`. Not required when `deployment_type` is set to `STANDARD`.
7576
- `nodes` (Set of String) A list of synthetic nodes belonging to the location.
7677

7778
You can retrieve the list of available nodes with the [GET all nodes](https://dt-url.net/miy3rpl) call
7879
- `region_code` (String) The region code of the location.
7980

8081
To fetch the list of available region codes, use the [GET regions of the country](https://dt-url.net/az230x0) request
82+
- `use_new_kubernetes_version` (Boolean) Boolean value describes which kubernetes version will be used
8183

8284
### Read-Only
8385

0 commit comments

Comments
 (0)