Skip to content

Commit 031fec5

Browse files
jianyuangithub-actions[bot]
authored andcommitted
chore: update Terraform provider and generated code
- Ran `make codegen` to regenerate resources and data sources. - Updated documentation via `make docs`. - Automated update to keep provider and generated documentation in sync.
1 parent a145031 commit 031fec5

10 files changed

+697
-61
lines changed

docs/resources/alert_routing_rule.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ description: |-
3737
<a id="nestedblock--destination"></a>
3838
### Nested Schema for `destination`
3939

40-
Optional:
40+
Required:
4141

4242
- `target_id` (String) The ID of the target
43+
44+
Optional:
45+
4346
- `target_type` (String) The type of the target. Value must be one of `Service`, `Group`, `EscalationPolicy`.
4447

4548

docs/resources/workflow_task_create_incident.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Required:
3939

4040
Optional:
4141

42-
- `custom_fields_mapping` (String) Custom field mappings. Can contain liquid markup and need to be valid JSON
42+
- `custom_fields_mapping` (String) Custom field mappings. Can contain liquid markup and need to be valid JSON. Use 'services', 'functionalities', or 'groups' keys with arrays of names/slugs for name/slug lookup
4343
- `environment_ids` (List of String)
44-
- `functionality_ids` (List of String)
45-
- `group_ids` (List of String)
44+
- `functionality_ids` (List of String) Array of functionality UUIDs
45+
- `group_ids` (List of String) Array of group/team UUIDs
4646
- `incident_type_ids` (List of String)
4747
- `private` (Boolean) Value must be one of true or false
48-
- `service_ids` (List of String)
48+
- `service_ids` (List of String) Array of service UUIDs
4949
- `severity_id` (String)
5050
- `summary` (String) The incident summary
5151
- `task_type` (String)

docs/resources/workflow_task_create_openai_chat_completion.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ Required:
4040

4141
Optional:
4242

43+
- `max_tokens` (String) Maximum number of tokens to generate in the response
44+
- `reasoning_effort` (String) Constrains effort on reasoning for GPT-5 and o-series models. Value must be one of `minimal`, `low`, `medium`, `high`.
45+
- `reasoning_summary` (String) Summary of the reasoning performed by the model for GPT-5 and o-series models. Value must be one of `auto`, `concise`, `detailed`.
4346
- `system_prompt` (String) The system prompt to send to OpenAI (optional)
4447
- `task_type` (String)
48+
- `temperature` (Number) Controls randomness in the response. Higher values make output more random
49+
- `top_p` (Number) Controls diversity via nucleus sampling. Lower values make output more focused
4550

4651
## Import
4752

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
page_title: "Resource rootly_workflow_task_create_sub_incident - terraform-provider-rootly"
3+
subcategory: Workflow Tasks
4+
description: |-
5+
Manages workflow create_sub_incident task.
6+
---
7+
8+
# Resource (rootly_workflow_task_create_sub_incident)
9+
10+
Manages workflow create_sub_incident task.
11+
12+
13+
14+
<!-- schema generated by tfplugindocs -->
15+
## Schema
16+
17+
### Required
18+
19+
- `task_params` (Block List, Min: 1, Max: 1) The parameters for this workflow task. (see [below for nested schema](#nestedblock--task_params))
20+
- `workflow_id` (String) The ID of the parent workflow
21+
22+
### Optional
23+
24+
- `enabled` (Boolean) Enable/disable this workflow task
25+
- `name` (String) Name of the workflow task
26+
- `position` (Number) The position of the workflow task (1 being top of list)
27+
- `skip_on_failure` (Boolean) Skip workflow task if any failures
28+
29+
### Read-Only
30+
31+
- `id` (String) The ID of this resource.
32+
33+
<a id="nestedblock--task_params"></a>
34+
### Nested Schema for `task_params`
35+
36+
Required:
37+
38+
- `title` (String) The sub incident title
39+
40+
Optional:
41+
42+
- `summary` (String) The sub incident summary
43+
- `task_type` (String)
44+
45+
## Import
46+
47+
rootly_workflow_task_create_sub_incident can be imported using the [`import` command](https://developer.hashicorp.com/terraform/cli/commands/import).
48+
49+
```sh
50+
terraform import rootly_workflow_task_create_sub_incident.primary a816421c-6ceb-481a-87c4-585e47451f24
51+
```
52+
53+
Or using an [`import` block](https://developer.hashicorp.com/terraform/language/import).
54+
55+
```terraform
56+
import {
57+
to = rootly_workflow_task_create_sub_incident.primary
58+
id = "a816421c-6ceb-481a-87c4-585e47451f24"
59+
}
60+
```
61+
62+
Locate the resource id in the web app, or retrieve it by listing resources through the API if it's not visible in the web app.
63+
64+
HCL can be generated from the import block using the `-generate-config-out` flag.
65+
66+
```sh
67+
terraform plan -generate-config-out=generated.tf
68+
```

docs/resources/workflow_task_update_incident.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ Optional:
4141

4242
- `acknowledged_at` (String)
4343
- `attribute_to_query_by` (String) Value must be one of `id`, `slug`, `sequential_id`, `pagerduty_incident_id`, `opsgenie_incident_id`, `victor_ops_incident_id`, `jira_issue_id`, `asana_task_id`, `shortcut_task_id`, `linear_issue_id`, `zendesk_ticket_id`, `motion_task_id`, `trello_card_id`, `airtable_record_id`, `shortcut_story_id`, `github_issue_id`, `gitlab_issue_id`, `freshservice_ticket_id`, `freshservice_task_id`, `clickup_task_id`.
44-
- `custom_fields_mapping` (String) Custom field mappings. Can contain liquid markup and need to be valid JSON
44+
- `custom_fields_mapping` (String) Custom field mappings. Can contain liquid markup and need to be valid JSON. Use 'services', 'functionalities', or 'groups' keys with arrays of names/slugs for name/slug lookup
4545
- `detected_at` (String)
4646
- `environment_ids` (List of String)
47-
- `functionality_ids` (List of String)
48-
- `group_ids` (List of String)
47+
- `functionality_ids` (List of String) Array of functionality UUIDs
48+
- `group_ids` (List of String) Array of group/team UUIDs
4949
- `incident_type_ids` (List of String)
5050
- `mitigated_at` (String)
5151
- `private` (Boolean) Value must be one of true or false
5252
- `resolved_at` (String)
53-
- `service_ids` (List of String)
53+
- `service_ids` (List of String) Array of service UUIDs
5454
- `severity_id` (String)
5555
- `started_at` (String)
5656
- `status` (String)

provider/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ func New(version string) func() *schema.Provider {
220220
"rootly_workflow_task_create_google_meeting": resourceWorkflowTaskCreateGoogleMeeting(),
221221
"rootly_workflow_task_create_go_to_meeting": resourceWorkflowTaskCreateGoToMeeting(),
222222
"rootly_workflow_task_create_incident": resourceWorkflowTaskCreateIncident(),
223+
"rootly_workflow_task_create_sub_incident": resourceWorkflowTaskCreateSubIncident(),
223224
"rootly_workflow_task_create_incident_postmortem": resourceWorkflowTaskCreateIncidentPostmortem(),
224225
"rootly_workflow_task_create_jira_issue": resourceWorkflowTaskCreateJiraIssue(),
225226
"rootly_workflow_task_create_jira_subtask": resourceWorkflowTaskCreateJiraSubtask(),

provider/resource_alert_routing_rule.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ func resourceAlertRoutingRule() *schema.Resource {
185185

186186
"target_id": &schema.Schema{
187187
Type: schema.TypeString,
188-
Computed: true,
189-
Required: false,
190-
Optional: true,
188+
Computed: false,
189+
Required: true,
190+
Optional: false,
191191
Sensitive: false,
192192
ForceNew: false,
193193
WriteOnly: false,

provider/resource_workflow_task_create_openai_chat_completion.go

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,46 @@ func resourceWorkflowTaskCreateOpenaiChatCompletion() *schema.Resource {
8989
Type: schema.TypeString,
9090
Required: true,
9191
},
92+
"temperature": &schema.Schema{
93+
Description: "Controls randomness in the response. Higher values make output more random",
94+
Type: schema.TypeInt,
95+
Optional: true,
96+
Default: nil,
97+
},
98+
"max_tokens": &schema.Schema{
99+
Description: "Maximum number of tokens to generate in the response",
100+
Type: schema.TypeString,
101+
Optional: true,
102+
},
103+
"top_p": &schema.Schema{
104+
Description: "Controls diversity via nucleus sampling. Lower values make output more focused",
105+
Type: schema.TypeInt,
106+
Optional: true,
107+
Default: nil,
108+
},
109+
"reasoning_effort": &schema.Schema{
110+
Description: "Constrains effort on reasoning for GPT-5 and o-series models. Value must be one of `minimal`, `low`, `medium`, `high`.",
111+
Type: schema.TypeString,
112+
Optional: true,
113+
Default: nil,
114+
ValidateFunc: validation.StringInSlice([]string{
115+
"minimal",
116+
"low",
117+
"medium",
118+
"high",
119+
}, false),
120+
},
121+
"reasoning_summary": &schema.Schema{
122+
Description: "Summary of the reasoning performed by the model for GPT-5 and o-series models. Value must be one of `auto`, `concise`, `detailed`.",
123+
Type: schema.TypeString,
124+
Optional: true,
125+
Default: nil,
126+
ValidateFunc: validation.StringInSlice([]string{
127+
"auto",
128+
"concise",
129+
"detailed",
130+
}, false),
131+
},
92132
},
93133
},
94134
},

0 commit comments

Comments
 (0)