Skip to content

Commit 64577f0

Browse files
authored
Merge pull request #41 from atlassian/release-from-bitbucket
Release from bitbucket
2 parents 612089e + 4600f50 commit 64577f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4469
-12
lines changed

docs/resources/api_integration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ description: |-
2929
### Read-Only
3030

3131
- `advanced` (Boolean) Indicates whether this is an advanced API integration with additional configuration options.
32+
- `api_key` (String, Sensitive) The API key for the integration. Only available after the integration is created and cannot be fetch later. This key is used for authentication and should be kept secret.
3233
- `directions` (List of String) List of supported communication directions for this integration (e.g., 'inbound', 'outbound').
3334
- `domains` (List of String) List of domains associated with this API integration. Used for routing and security purposes.
3435
- `id` (String) The unique identifier of the API integration. This is automatically generated when the integration is created.

docs/resources/heartbeat.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "atlassian-operations_heartbeat Resource - atlassian-operations"
4+
subcategory: ""
5+
description: |-
6+
Manage heartbeats in Atlassian Operations.
7+
---
8+
9+
# atlassian-operations_heartbeat (Resource)
10+
11+
Manage heartbeats in Atlassian Operations.
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `interval` (Number) The interval value for the heartbeat check.
21+
- `interval_unit` (String) The unit for the interval (e.g., 'minutes', 'hours', 'days').
22+
- `name` (String) The name of the heartbeat. This is a unique identifier and cannot be changed after creation.
23+
- `team_id` (String) The ID of the team that owns the heartbeat.
24+
25+
### Optional
26+
27+
- `alert_message` (String) The message to be displayed when an alert is triggered due to missed heartbeat.
28+
- `alert_priority` (String) The priority of the alert to be created when heartbeat is missed (e.g., 'P1', 'P2').
29+
- `alert_tags` (Set of String) Tags to be associated with the alert when triggered.
30+
- `description` (String) Description of the heartbeat.
31+
- `enabled` (Boolean) Whether the heartbeat is enabled or not.
32+
33+
### Read-Only
34+
35+
- `status` (String) The current status of the heartbeat.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "atlassian-operations_integration_action Resource - atlassian-operations"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# atlassian-operations_integration_action (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `direction` (String) The direction of the integration action (incoming or outgoing)
21+
- `domain` (String) The domain of the integration action
22+
- `integration_id` (String) The ID of the integration that integration action is going to be
23+
- `name` (String) The name of the integration action
24+
- `type` (String) The type of the integration action
25+
26+
### Optional
27+
28+
- `action_mapping` (Attributes) The action mapping configuration (see [below for nested schema](#nestedatt--action_mapping))
29+
- `enabled` (Boolean) Whether the integration action is enabled
30+
- `field_mappings` (String) Field mappings for the integration action
31+
- `filter` (Attributes) The filter configuration for the integration action (see [below for nested schema](#nestedatt--filter))
32+
- `group_type` (String) The group type of the integration action
33+
- `type_specific_properties` (String) Type-specific properties for the integration action
34+
35+
### Read-Only
36+
37+
- `id` (String) The ID of the integration action
38+
39+
<a id="nestedatt--action_mapping"></a>
40+
### Nested Schema for `action_mapping`
41+
42+
Required:
43+
44+
- `type` (String) The type of action mapping
45+
46+
Optional:
47+
48+
- `parameter` (String) Parameters for the action mapping
49+
50+
51+
<a id="nestedatt--filter"></a>
52+
### Nested Schema for `filter`
53+
54+
Required:
55+
56+
- `condition_match_type` (String) The type of condition matching to apply
57+
- `conditions_empty` (Boolean) Whether the conditions list is empty
58+
59+
Optional:
60+
61+
- `conditions` (Attributes List) List of conditions for the filter (see [below for nested schema](#nestedatt--filter--conditions))
62+
63+
<a id="nestedatt--filter--conditions"></a>
64+
### Nested Schema for `filter.conditions`
65+
66+
Required:
67+
68+
- `field` (String) The incident field to evaluate (e.g., 'message', 'priority', 'tags').
69+
- `operation` (String) The comparison operation to perform (e.g., 'matches', 'contains', 'starts-with', 'ends-with', 'equals', 'contains-key', 'contains-value', 'greater-than', 'less-than', 'is-empty', 'equals-ignore-whitespace').
70+
71+
Optional:
72+
73+
- `expected_value` (String) The value to compare against the field value.
74+
- `key` (String) If field is set as extra-properties, key could be used for key-value pair.
75+
- `not` (Boolean) Indicates behaviour of the given operation.
76+
- `order` (Number) Order of the condition in conditions list.
77+
- `system_condition` (Boolean) Whether the condition is a system condition

docs/resources/maintenance.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "atlassian-operations_maintenance Resource - atlassian-operations"
4+
subcategory: ""
5+
description: |-
6+
Manage maintenance windows in Atlassian Operations.
7+
---
8+
9+
# atlassian-operations_maintenance (Resource)
10+
11+
Manage maintenance windows in Atlassian Operations.
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `end_date` (String) The end date/time of the maintenance window in ISO8601 format (e.g., 2023-06-15T14:00:00Z)
21+
- `rules` (Attributes List) A list of rules defining what entities are affected during the maintenance window (see [below for nested schema](#nestedatt--rules))
22+
- `start_date` (String) The start date/time of the maintenance window in ISO8601 format (e.g., 2023-06-15T10:00:00Z)
23+
24+
### Optional
25+
26+
- `description` (String) The description of the maintenance window
27+
- `team_id` (String) The ID of the team associated with this maintenance window
28+
29+
### Read-Only
30+
31+
- `id` (String) The unique identifier of the maintenance window
32+
- `status` (String) The status of the maintenance window (e.g., scheduled, in_progress, completed, cancelled)
33+
34+
<a id="nestedatt--rules"></a>
35+
### Nested Schema for `rules`
36+
37+
Required:
38+
39+
- `entity` (Attributes) The entity affected by this maintenance rule (see [below for nested schema](#nestedatt--rules--entity))
40+
- `state` (String) The state to apply to the entity during maintenance (e.g., disabled, enabled, noMaintenance)
41+
42+
<a id="nestedatt--rules--entity"></a>
43+
### Nested Schema for `rules.entity`
44+
45+
Required:
46+
47+
- `id` (String) The identifier of the entity (e.g., integration ID, policy ID)
48+
- `type` (String) The type of the entity (e.g., integration, policy, sync)
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "atlassian-operations_notification_policy Resource - atlassian-operations"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# atlassian-operations_notification_policy (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `enabled` (Boolean) Whether the notification policy is enabled
21+
- `name` (String) The name of the notification policy
22+
- `team_id` (String) The ID of the team this notification policy belongs to
23+
- `type` (String) The type of the notification policy. Must be 'notification'.
24+
25+
### Optional
26+
27+
- `auto_close_action` (Attributes) Configuration for automatically closing alerts (see [below for nested schema](#nestedatt--auto_close_action))
28+
- `auto_restart_action` (Attributes) Configuration for automatically restarting alerts (see [below for nested schema](#nestedatt--auto_restart_action))
29+
- `deduplication_action` (Attributes) Configuration for alert deduplication (see [below for nested schema](#nestedatt--deduplication_action))
30+
- `delay_action` (Attributes) Configuration for delaying alert notifications (see [below for nested schema](#nestedatt--delay_action))
31+
- `description` (String) The description of the notification policy
32+
- `filter` (Attributes) The filter configuration for the notification policy (see [below for nested schema](#nestedatt--filter))
33+
- `order` (Number) Order of the notification policy
34+
- `suppress` (Boolean) Whether to suppress notifications for this policy
35+
- `time_restriction` (Attributes) Time restriction configuration for the notification policy (see [below for nested schema](#nestedatt--time_restriction))
36+
37+
### Read-Only
38+
39+
- `id` (String) The ID of this resource.
40+
41+
<a id="nestedatt--auto_close_action"></a>
42+
### Nested Schema for `auto_close_action`
43+
44+
Optional:
45+
46+
- `duration_format` (String) Message to include with the auto-close action. Possible values are 'nanos', 'micros', 'millis', 'seconds', 'minutes', 'hours', 'days'
47+
- `wait_duration` (Number) Wait Duration amount for the auto-close action
48+
49+
50+
<a id="nestedatt--auto_restart_action"></a>
51+
### Nested Schema for `auto_restart_action`
52+
53+
Required:
54+
55+
- `max_repeat_count` (Number) Maximum number of times to repeat the restart. Must be between 1 and 20.
56+
57+
Optional:
58+
59+
- `duration_format` (String) Message to include with the auto-restart action. Possible values are 'nanos', 'micros', 'millis', 'seconds', 'minutes', 'hours', 'days'
60+
- `wait_duration` (Number) Wait Duration amount for the auto-restart action
61+
62+
63+
<a id="nestedatt--deduplication_action"></a>
64+
### Nested Schema for `deduplication_action`
65+
66+
Required:
67+
68+
- `deduplication_action_type` (String) The type of deduplication to perform
69+
70+
Optional:
71+
72+
- `count_value_limit` (Number) Number of alerts to trigger deduplication
73+
- `duration_format` (String) Message to include with the deduplication_action action. Possible values are 'nanos', 'micros', 'millis', 'seconds', 'minutes', 'hours', 'days'
74+
- `frequency` (Number) Duration in seconds for the deduplication window
75+
- `wait_duration` (Number) Wait Duration amount for the deduplication_action action
76+
77+
78+
<a id="nestedatt--delay_action"></a>
79+
### Nested Schema for `delay_action`
80+
81+
Required:
82+
83+
- `delay_option` (String) Option for how to apply the delay
84+
- `delay_time` (Attributes) Duration in seconds to delay the alert (see [below for nested schema](#nestedatt--delay_action--delay_time))
85+
86+
Optional:
87+
88+
- `duration_format` (String) Message to include with the delay_action action. Possible values are 'nanos', 'micros', 'millis', 'seconds', 'minutes', 'hours', 'days'
89+
- `wait_duration` (Number) Wait Duration amount for the delay_action action
90+
91+
<a id="nestedatt--delay_action--delay_time"></a>
92+
### Nested Schema for `delay_action.delay_time`
93+
94+
Required:
95+
96+
- `hours` (Number) Number of hours to delay the alert
97+
- `minutes` (Number) Number of minutes to delay the alert
98+
99+
100+
101+
<a id="nestedatt--filter"></a>
102+
### Nested Schema for `filter`
103+
104+
Required:
105+
106+
- `conditions` (Attributes List) List of filter conditions (see [below for nested schema](#nestedatt--filter--conditions))
107+
- `type` (String) The type of the filter
108+
109+
<a id="nestedatt--filter--conditions"></a>
110+
### Nested Schema for `filter.conditions`
111+
112+
Required:
113+
114+
- `expected_value` (String) The expected value for the condition
115+
- `field` (String) The field to filter on
116+
- `operation` (String) The operation to perform
117+
118+
Optional:
119+
120+
- `key` (String) The key to filter on
121+
- `not` (Boolean) Whether to negate the condition
122+
- `order` (Number) The order of the condition
123+
124+
125+
126+
<a id="nestedatt--time_restriction"></a>
127+
### Nested Schema for `time_restriction`
128+
129+
Required:
130+
131+
- `enabled` (Boolean) Whether time restrictions are enabled
132+
- `time_restrictions` (Attributes List) List of time restriction periods (see [below for nested schema](#nestedatt--time_restriction--time_restrictions))
133+
134+
<a id="nestedatt--time_restriction--time_restrictions"></a>
135+
### Nested Schema for `time_restriction.time_restrictions`
136+
137+
Required:
138+
139+
- `end_hour` (Number) End hour of the restriction period
140+
- `end_minute` (Number) End minute of the restriction period
141+
- `start_hour` (Number) Start hour of the restriction period
142+
- `start_minute` (Number) Start minute of the restriction period

docs/resources/user_contact.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ description: |-
1717

1818
### Required
1919

20-
- `method` (String)
21-
- `to` (String)
20+
- `method` (String) The method of contact for the user. Valid values are 'email', 'sms', 'voice', or 'mobile'.
21+
- `to` (String) The contact information for the user, such as an email address or phone number.
2222

2323
### Optional
2424

25-
- `enabled` (Boolean)
25+
- `enabled` (Boolean) Whether this contact method is enabled for the user.
2626

2727
### Read-Only
2828

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
terraform import atlassian-operations_heartbeat.example heartbeat_name,team_id
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
terraform {
2+
required_providers {
3+
atlassian-operations = {
4+
source = "atlassian/atlassian-operations"
5+
}
6+
}
7+
}
8+
9+
# This example demonstrates how to create a heartbeat in Atlassian Operations.
10+
resource "atlassian-operations_heartbeat" "example" {
11+
name = "api-health-check"
12+
description = "Monitors the health of our API service"
13+
interval = 5
14+
interval_unit = "minutes"
15+
enabled = true
16+
team_id = "team-123"
17+
18+
# Alert configuration if heartbeat is missed
19+
alert_message = "API service is not responding"
20+
alert_tags = ["critical", "api", "infrastructure"]
21+
alert_priority = "P1"
22+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Integration Action can be imported by providing the notification rule id, integration-id
2+
terraform import atlassian-operations_integration_action.example "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

0 commit comments

Comments
 (0)