Skip to content

Commit a701b25

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 3511fef commit a701b25

17 files changed

+389
-62
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_action_item.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Optional:
8383
- `incident_condition_visibility` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
8484
- `incident_conditional_inactivity` (String)
8585
- `incident_inactivity_duration` (String) ex. 10 min, 1h, 3 days, 2 weeks
86-
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`.
86+
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`, `scheduled_sub`.
8787
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `scheduled`, `in_progress`, `completed`.
8888
- `incident_visibilities` (List of String)
8989
- `trigger_type` (String) Value must be one off `action_item`.

docs/resources/workflow_incident.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Optional:
9696
- `incident_condition_visibility` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
9797
- `incident_conditional_inactivity` (String)
9898
- `incident_inactivity_duration` (String) ex. 10 min, 1h, 3 days, 2 weeks
99-
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`.
99+
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`, `scheduled_sub`.
100100
- `incident_post_mortem_condition_cause` (String) [DEPRECATED] Use incident_condition_cause instead. Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
101101
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `scheduled`, `in_progress`, `completed`.
102102
- `incident_visibilities` (List of String)

docs/resources/workflow_post_mortem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Optional:
7575
- `incident_condition_visibility` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
7676
- `incident_conditional_inactivity` (String)
7777
- `incident_inactivity_duration` (String) ex. 10 min, 1h, 3 days, 2 weeks
78-
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`.
78+
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`, `scheduled_sub`.
7979
- `incident_post_mortem_condition` (String) Value must be one off `ALL`, `ANY`, `NONE`.
8080
- `incident_post_mortem_condition_cause` (String) [DEPRECATED] Use incident_condition_cause instead. Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
8181
- `incident_post_mortem_condition_status` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.

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_route_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func TestAccResourceAlertRoute(t *testing.T) {
10-
resName := "rootly_alert_route.test"
10+
resName := "rootly_alert_route.test"
1111

1212
resource.UnitTest(t, resource.TestCase{
1313
IsUnitTest: false,
@@ -40,17 +40,17 @@ func TestAccResourceAlertRoute(t *testing.T) {
4040
resource.TestCheckResourceAttr(resName, "rules.0.fallback_rule", "false"),
4141
),
4242
},
43-
{
44-
ResourceName: resName,
45-
ImportState: true,
43+
{
44+
ResourceName: resName,
45+
ImportState: true,
4646
ImportStateVerify: true,
4747
},
4848
},
4949
})
5050
}
5151

5252
func TestAccResourceAlertRouteWithMultipleTeams(t *testing.T) {
53-
resName := "rootly_alert_route.multi_team"
53+
resName := "rootly_alert_route.multi_team"
5454

5555
resource.UnitTest(t, resource.TestCase{
5656
IsUnitTest: false,
@@ -67,17 +67,17 @@ func TestAccResourceAlertRouteWithMultipleTeams(t *testing.T) {
6767
resource.TestCheckResourceAttrSet(resName, "id"),
6868
),
6969
},
70-
{
71-
ResourceName: resName,
72-
ImportState: true,
70+
{
71+
ResourceName: resName,
72+
ImportState: true,
7373
ImportStateVerify: true,
7474
},
7575
},
7676
})
7777
}
7878

7979
func TestAccResourceAlertRouteDisabled(t *testing.T) {
80-
resName := "rootly_alert_route.disabled"
80+
resName := "rootly_alert_route.disabled"
8181

8282
resource.UnitTest(t, resource.TestCase{
8383
IsUnitTest: false,
@@ -94,9 +94,9 @@ func TestAccResourceAlertRouteDisabled(t *testing.T) {
9494
resource.TestCheckResourceAttrSet(resName, "id"),
9595
),
9696
},
97-
{
98-
ResourceName: resName,
99-
ImportState: true,
97+
{
98+
ResourceName: resName,
99+
ImportState: true,
100100
ImportStateVerify: true,
101101
},
102102
},

0 commit comments

Comments
 (0)