pulumi-newrelic 5.48.0a1753156041__py3-none-any.whl → 5.49.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/__init__.py +1 -1
- pulumi_newrelic/_inputs.py +3759 -3760
- pulumi_newrelic/account_management.py +35 -36
- pulumi_newrelic/alert_channel.py +55 -56
- pulumi_newrelic/alert_condition.py +217 -218
- pulumi_newrelic/alert_muting_rule.py +92 -93
- pulumi_newrelic/alert_policy.py +69 -70
- pulumi_newrelic/alert_policy_channel.py +52 -53
- pulumi_newrelic/api_access_key.py +112 -113
- pulumi_newrelic/browser_application.py +113 -114
- pulumi_newrelic/cloud/__init__.py +1 -1
- pulumi_newrelic/cloud/_inputs.py +2129 -2130
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +95 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +69 -70
- pulumi_newrelic/cloud/aws_integrations.py +194 -195
- pulumi_newrelic/cloud/aws_link_account.py +69 -70
- pulumi_newrelic/cloud/azure_integrations.py +131 -132
- pulumi_newrelic/cloud/azure_link_account.py +103 -104
- pulumi_newrelic/cloud/gcp_integrations.py +113 -114
- pulumi_newrelic/cloud/gcp_link_account.py +52 -53
- pulumi_newrelic/cloud/outputs.py +1417 -1418
- pulumi_newrelic/config/__init__.py +1 -1
- pulumi_newrelic/config/__init__.pyi +1 -2
- pulumi_newrelic/config/vars.py +14 -15
- pulumi_newrelic/data_partition_rule.py +112 -113
- pulumi_newrelic/entity_tags.py +21 -22
- pulumi_newrelic/events_to_metrics_rule.py +95 -96
- pulumi_newrelic/get_account.py +21 -22
- pulumi_newrelic/get_alert_channel.py +20 -21
- pulumi_newrelic/get_alert_policy.py +25 -26
- pulumi_newrelic/get_application.py +13 -14
- pulumi_newrelic/get_authentication_domain.py +9 -10
- pulumi_newrelic/get_cloud_account.py +21 -22
- pulumi_newrelic/get_entity.py +52 -53
- pulumi_newrelic/get_group.py +17 -18
- pulumi_newrelic/get_key_transaction.py +25 -26
- pulumi_newrelic/get_notification_destination.py +29 -30
- pulumi_newrelic/get_obfuscation_expression.py +15 -16
- pulumi_newrelic/get_service_level_alert_helper.py +53 -54
- pulumi_newrelic/get_test_grok_pattern.py +22 -23
- pulumi_newrelic/get_user.py +21 -22
- pulumi_newrelic/group.py +52 -53
- pulumi_newrelic/infra_alert_condition.py +255 -256
- pulumi_newrelic/insights/__init__.py +1 -1
- pulumi_newrelic/insights/_inputs.py +32 -33
- pulumi_newrelic/insights/event.py +4 -5
- pulumi_newrelic/insights/outputs.py +22 -23
- pulumi_newrelic/key_transaction.py +104 -105
- pulumi_newrelic/log_parsing_rule.py +146 -147
- pulumi_newrelic/monitor_downtime.py +143 -144
- pulumi_newrelic/notification_channel.py +115 -116
- pulumi_newrelic/notification_destination.py +111 -112
- pulumi_newrelic/nrql_alert_condition.py +430 -431
- pulumi_newrelic/nrql_drop_rule.py +78 -79
- pulumi_newrelic/obfuscation_expression.py +69 -70
- pulumi_newrelic/obfuscation_rule.py +89 -90
- pulumi_newrelic/one_dashboard.py +93 -94
- pulumi_newrelic/one_dashboard_json.py +62 -63
- pulumi_newrelic/one_dashboard_raw.py +90 -91
- pulumi_newrelic/outputs.py +2646 -2647
- pulumi_newrelic/plugins/__init__.py +1 -1
- pulumi_newrelic/plugins/_inputs.py +158 -159
- pulumi_newrelic/plugins/application_settings.py +167 -168
- pulumi_newrelic/plugins/outputs.py +108 -109
- pulumi_newrelic/plugins/workload.py +131 -132
- pulumi_newrelic/provider.py +106 -107
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +76 -77
- pulumi_newrelic/synthetics/__init__.py +1 -1
- pulumi_newrelic/synthetics/_inputs.py +127 -128
- pulumi_newrelic/synthetics/alert_condition.py +95 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +197 -198
- pulumi_newrelic/synthetics/cert_check_monitor.py +205 -206
- pulumi_newrelic/synthetics/get_private_location.py +21 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +19 -20
- pulumi_newrelic/synthetics/monitor.py +378 -379
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +118 -119
- pulumi_newrelic/synthetics/outputs.py +85 -86
- pulumi_newrelic/synthetics/private_location.py +105 -106
- pulumi_newrelic/synthetics/script_monitor.py +302 -303
- pulumi_newrelic/synthetics/secure_credential.py +86 -87
- pulumi_newrelic/synthetics/step_monitor.py +220 -221
- pulumi_newrelic/user.py +69 -70
- pulumi_newrelic/workflow.py +139 -140
- {pulumi_newrelic-5.48.0a1753156041.dist-info → pulumi_newrelic-5.49.0.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.49.0.dist-info/RECORD +90 -0
- pulumi_newrelic-5.48.0a1753156041.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.48.0a1753156041.dist-info → pulumi_newrelic-5.49.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.48.0a1753156041.dist-info → pulumi_newrelic-5.49.0.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -22,42 +21,42 @@ __all__ = ['InfraAlertConditionArgs', 'InfraAlertCondition']
|
|
|
22
21
|
@pulumi.input_type
|
|
23
22
|
class InfraAlertConditionArgs:
|
|
24
23
|
def __init__(__self__, *,
|
|
25
|
-
policy_id: pulumi.Input[
|
|
26
|
-
type: pulumi.Input[
|
|
27
|
-
comparison: Optional[pulumi.Input[
|
|
24
|
+
policy_id: pulumi.Input[_builtins.str],
|
|
25
|
+
type: pulumi.Input[_builtins.str],
|
|
26
|
+
comparison: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
27
|
critical: Optional[pulumi.Input['InfraAlertConditionCriticalArgs']] = None,
|
|
29
|
-
description: Optional[pulumi.Input[
|
|
30
|
-
enabled: Optional[pulumi.Input[
|
|
31
|
-
event: Optional[pulumi.Input[
|
|
32
|
-
integration_provider: Optional[pulumi.Input[
|
|
33
|
-
name: Optional[pulumi.Input[
|
|
34
|
-
process_where: Optional[pulumi.Input[
|
|
35
|
-
runbook_url: Optional[pulumi.Input[
|
|
36
|
-
select: Optional[pulumi.Input[
|
|
37
|
-
violation_close_timer: Optional[pulumi.Input[
|
|
28
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
|
+
event: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
|
+
integration_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
process_where: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
|
+
select: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
|
+
violation_close_timer: Optional[pulumi.Input[_builtins.int]] = None,
|
|
38
37
|
warning: Optional[pulumi.Input['InfraAlertConditionWarningArgs']] = None,
|
|
39
|
-
where: Optional[pulumi.Input[
|
|
38
|
+
where: Optional[pulumi.Input[_builtins.str]] = None):
|
|
40
39
|
"""
|
|
41
40
|
The set of arguments for constructing a InfraAlertCondition resource.
|
|
42
|
-
:param pulumi.Input[
|
|
43
|
-
:param pulumi.Input[
|
|
44
|
-
:param pulumi.Input[
|
|
41
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the alert policy where this condition should be used.
|
|
42
|
+
:param pulumi.Input[_builtins.str] type: The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
|
43
|
+
:param pulumi.Input[_builtins.str] comparison: The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infra_metric` and `infra_process_running` condition types.
|
|
45
44
|
:param pulumi.Input['InfraAlertConditionCriticalArgs'] critical: Identifies the threshold parameters for opening a critical alert incident. See Thresholds below for details.
|
|
46
|
-
:param pulumi.Input[
|
|
47
|
-
:param pulumi.Input[
|
|
48
|
-
:param pulumi.Input[
|
|
49
|
-
:param pulumi.Input[
|
|
50
|
-
:param pulumi.Input[
|
|
51
|
-
:param pulumi.Input[
|
|
52
|
-
:param pulumi.Input[
|
|
53
|
-
:param pulumi.Input[
|
|
54
|
-
:param pulumi.Input[
|
|
45
|
+
:param pulumi.Input[_builtins.str] description: The description of the Infrastructure alert condition.
|
|
46
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`.
|
|
47
|
+
:param pulumi.Input[_builtins.str] event: The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infra_metric` condition type.
|
|
48
|
+
:param pulumi.Input[_builtins.str] integration_provider: For alerts on integrations, use this instead of `event`. Supported by the `infra_metric` condition type.
|
|
49
|
+
:param pulumi.Input[_builtins.str] name: The Infrastructure alert condition's name.
|
|
50
|
+
:param pulumi.Input[_builtins.str] process_where: Any filters applied to processes; for example: `commandName = 'java'`. Required by the `infra_process_running` condition type.
|
|
51
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
52
|
+
:param pulumi.Input[_builtins.str] select: The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
|
53
|
+
:param pulumi.Input[_builtins.int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
|
55
54
|
|
|
56
55
|
```
|
|
57
56
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
|
58
57
|
```
|
|
59
58
|
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
|
60
|
-
:param pulumi.Input[
|
|
59
|
+
:param pulumi.Input[_builtins.str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
|
61
60
|
"""
|
|
62
61
|
pulumi.set(__self__, "policy_id", policy_id)
|
|
63
62
|
pulumi.set(__self__, "type", type)
|
|
@@ -88,43 +87,43 @@ class InfraAlertConditionArgs:
|
|
|
88
87
|
if where is not None:
|
|
89
88
|
pulumi.set(__self__, "where", where)
|
|
90
89
|
|
|
91
|
-
@property
|
|
90
|
+
@_builtins.property
|
|
92
91
|
@pulumi.getter(name="policyId")
|
|
93
|
-
def policy_id(self) -> pulumi.Input[
|
|
92
|
+
def policy_id(self) -> pulumi.Input[_builtins.str]:
|
|
94
93
|
"""
|
|
95
94
|
The ID of the alert policy where this condition should be used.
|
|
96
95
|
"""
|
|
97
96
|
return pulumi.get(self, "policy_id")
|
|
98
97
|
|
|
99
98
|
@policy_id.setter
|
|
100
|
-
def policy_id(self, value: pulumi.Input[
|
|
99
|
+
def policy_id(self, value: pulumi.Input[_builtins.str]):
|
|
101
100
|
pulumi.set(self, "policy_id", value)
|
|
102
101
|
|
|
103
|
-
@property
|
|
102
|
+
@_builtins.property
|
|
104
103
|
@pulumi.getter
|
|
105
|
-
def type(self) -> pulumi.Input[
|
|
104
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
106
105
|
"""
|
|
107
106
|
The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
|
108
107
|
"""
|
|
109
108
|
return pulumi.get(self, "type")
|
|
110
109
|
|
|
111
110
|
@type.setter
|
|
112
|
-
def type(self, value: pulumi.Input[
|
|
111
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
113
112
|
pulumi.set(self, "type", value)
|
|
114
113
|
|
|
115
|
-
@property
|
|
114
|
+
@_builtins.property
|
|
116
115
|
@pulumi.getter
|
|
117
|
-
def comparison(self) -> Optional[pulumi.Input[
|
|
116
|
+
def comparison(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
118
117
|
"""
|
|
119
118
|
The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infra_metric` and `infra_process_running` condition types.
|
|
120
119
|
"""
|
|
121
120
|
return pulumi.get(self, "comparison")
|
|
122
121
|
|
|
123
122
|
@comparison.setter
|
|
124
|
-
def comparison(self, value: Optional[pulumi.Input[
|
|
123
|
+
def comparison(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
125
124
|
pulumi.set(self, "comparison", value)
|
|
126
125
|
|
|
127
|
-
@property
|
|
126
|
+
@_builtins.property
|
|
128
127
|
@pulumi.getter
|
|
129
128
|
def critical(self) -> Optional[pulumi.Input['InfraAlertConditionCriticalArgs']]:
|
|
130
129
|
"""
|
|
@@ -136,105 +135,105 @@ class InfraAlertConditionArgs:
|
|
|
136
135
|
def critical(self, value: Optional[pulumi.Input['InfraAlertConditionCriticalArgs']]):
|
|
137
136
|
pulumi.set(self, "critical", value)
|
|
138
137
|
|
|
139
|
-
@property
|
|
138
|
+
@_builtins.property
|
|
140
139
|
@pulumi.getter
|
|
141
|
-
def description(self) -> Optional[pulumi.Input[
|
|
140
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
142
141
|
"""
|
|
143
142
|
The description of the Infrastructure alert condition.
|
|
144
143
|
"""
|
|
145
144
|
return pulumi.get(self, "description")
|
|
146
145
|
|
|
147
146
|
@description.setter
|
|
148
|
-
def description(self, value: Optional[pulumi.Input[
|
|
147
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
149
148
|
pulumi.set(self, "description", value)
|
|
150
149
|
|
|
151
|
-
@property
|
|
150
|
+
@_builtins.property
|
|
152
151
|
@pulumi.getter
|
|
153
|
-
def enabled(self) -> Optional[pulumi.Input[
|
|
152
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
154
153
|
"""
|
|
155
154
|
Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`.
|
|
156
155
|
"""
|
|
157
156
|
return pulumi.get(self, "enabled")
|
|
158
157
|
|
|
159
158
|
@enabled.setter
|
|
160
|
-
def enabled(self, value: Optional[pulumi.Input[
|
|
159
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
161
160
|
pulumi.set(self, "enabled", value)
|
|
162
161
|
|
|
163
|
-
@property
|
|
162
|
+
@_builtins.property
|
|
164
163
|
@pulumi.getter
|
|
165
|
-
def event(self) -> Optional[pulumi.Input[
|
|
164
|
+
def event(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
166
165
|
"""
|
|
167
166
|
The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infra_metric` condition type.
|
|
168
167
|
"""
|
|
169
168
|
return pulumi.get(self, "event")
|
|
170
169
|
|
|
171
170
|
@event.setter
|
|
172
|
-
def event(self, value: Optional[pulumi.Input[
|
|
171
|
+
def event(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
173
172
|
pulumi.set(self, "event", value)
|
|
174
173
|
|
|
175
|
-
@property
|
|
174
|
+
@_builtins.property
|
|
176
175
|
@pulumi.getter(name="integrationProvider")
|
|
177
|
-
def integration_provider(self) -> Optional[pulumi.Input[
|
|
176
|
+
def integration_provider(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
178
177
|
"""
|
|
179
178
|
For alerts on integrations, use this instead of `event`. Supported by the `infra_metric` condition type.
|
|
180
179
|
"""
|
|
181
180
|
return pulumi.get(self, "integration_provider")
|
|
182
181
|
|
|
183
182
|
@integration_provider.setter
|
|
184
|
-
def integration_provider(self, value: Optional[pulumi.Input[
|
|
183
|
+
def integration_provider(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
185
184
|
pulumi.set(self, "integration_provider", value)
|
|
186
185
|
|
|
187
|
-
@property
|
|
186
|
+
@_builtins.property
|
|
188
187
|
@pulumi.getter
|
|
189
|
-
def name(self) -> Optional[pulumi.Input[
|
|
188
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
190
189
|
"""
|
|
191
190
|
The Infrastructure alert condition's name.
|
|
192
191
|
"""
|
|
193
192
|
return pulumi.get(self, "name")
|
|
194
193
|
|
|
195
194
|
@name.setter
|
|
196
|
-
def name(self, value: Optional[pulumi.Input[
|
|
195
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
197
196
|
pulumi.set(self, "name", value)
|
|
198
197
|
|
|
199
|
-
@property
|
|
198
|
+
@_builtins.property
|
|
200
199
|
@pulumi.getter(name="processWhere")
|
|
201
|
-
def process_where(self) -> Optional[pulumi.Input[
|
|
200
|
+
def process_where(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
202
201
|
"""
|
|
203
202
|
Any filters applied to processes; for example: `commandName = 'java'`. Required by the `infra_process_running` condition type.
|
|
204
203
|
"""
|
|
205
204
|
return pulumi.get(self, "process_where")
|
|
206
205
|
|
|
207
206
|
@process_where.setter
|
|
208
|
-
def process_where(self, value: Optional[pulumi.Input[
|
|
207
|
+
def process_where(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
209
208
|
pulumi.set(self, "process_where", value)
|
|
210
209
|
|
|
211
|
-
@property
|
|
210
|
+
@_builtins.property
|
|
212
211
|
@pulumi.getter(name="runbookUrl")
|
|
213
|
-
def runbook_url(self) -> Optional[pulumi.Input[
|
|
212
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
214
213
|
"""
|
|
215
214
|
Runbook URL to display in notifications.
|
|
216
215
|
"""
|
|
217
216
|
return pulumi.get(self, "runbook_url")
|
|
218
217
|
|
|
219
218
|
@runbook_url.setter
|
|
220
|
-
def runbook_url(self, value: Optional[pulumi.Input[
|
|
219
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
221
220
|
pulumi.set(self, "runbook_url", value)
|
|
222
221
|
|
|
223
|
-
@property
|
|
222
|
+
@_builtins.property
|
|
224
223
|
@pulumi.getter
|
|
225
|
-
def select(self) -> Optional[pulumi.Input[
|
|
224
|
+
def select(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
226
225
|
"""
|
|
227
226
|
The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
|
228
227
|
"""
|
|
229
228
|
return pulumi.get(self, "select")
|
|
230
229
|
|
|
231
230
|
@select.setter
|
|
232
|
-
def select(self, value: Optional[pulumi.Input[
|
|
231
|
+
def select(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
233
232
|
pulumi.set(self, "select", value)
|
|
234
233
|
|
|
235
|
-
@property
|
|
234
|
+
@_builtins.property
|
|
236
235
|
@pulumi.getter(name="violationCloseTimer")
|
|
237
|
-
def violation_close_timer(self) -> Optional[pulumi.Input[
|
|
236
|
+
def violation_close_timer(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
238
237
|
"""
|
|
239
238
|
Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
|
240
239
|
|
|
@@ -245,10 +244,10 @@ class InfraAlertConditionArgs:
|
|
|
245
244
|
return pulumi.get(self, "violation_close_timer")
|
|
246
245
|
|
|
247
246
|
@violation_close_timer.setter
|
|
248
|
-
def violation_close_timer(self, value: Optional[pulumi.Input[
|
|
247
|
+
def violation_close_timer(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
249
248
|
pulumi.set(self, "violation_close_timer", value)
|
|
250
249
|
|
|
251
|
-
@property
|
|
250
|
+
@_builtins.property
|
|
252
251
|
@pulumi.getter
|
|
253
252
|
def warning(self) -> Optional[pulumi.Input['InfraAlertConditionWarningArgs']]:
|
|
254
253
|
"""
|
|
@@ -260,64 +259,64 @@ class InfraAlertConditionArgs:
|
|
|
260
259
|
def warning(self, value: Optional[pulumi.Input['InfraAlertConditionWarningArgs']]):
|
|
261
260
|
pulumi.set(self, "warning", value)
|
|
262
261
|
|
|
263
|
-
@property
|
|
262
|
+
@_builtins.property
|
|
264
263
|
@pulumi.getter
|
|
265
|
-
def where(self) -> Optional[pulumi.Input[
|
|
264
|
+
def where(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
266
265
|
"""
|
|
267
266
|
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
|
268
267
|
"""
|
|
269
268
|
return pulumi.get(self, "where")
|
|
270
269
|
|
|
271
270
|
@where.setter
|
|
272
|
-
def where(self, value: Optional[pulumi.Input[
|
|
271
|
+
def where(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
273
272
|
pulumi.set(self, "where", value)
|
|
274
273
|
|
|
275
274
|
|
|
276
275
|
@pulumi.input_type
|
|
277
276
|
class _InfraAlertConditionState:
|
|
278
277
|
def __init__(__self__, *,
|
|
279
|
-
comparison: Optional[pulumi.Input[
|
|
280
|
-
created_at: Optional[pulumi.Input[
|
|
278
|
+
comparison: Optional[pulumi.Input[_builtins.str]] = None,
|
|
279
|
+
created_at: Optional[pulumi.Input[_builtins.int]] = None,
|
|
281
280
|
critical: Optional[pulumi.Input['InfraAlertConditionCriticalArgs']] = None,
|
|
282
|
-
description: Optional[pulumi.Input[
|
|
283
|
-
enabled: Optional[pulumi.Input[
|
|
284
|
-
entity_guid: Optional[pulumi.Input[
|
|
285
|
-
event: Optional[pulumi.Input[
|
|
286
|
-
integration_provider: Optional[pulumi.Input[
|
|
287
|
-
name: Optional[pulumi.Input[
|
|
288
|
-
policy_id: Optional[pulumi.Input[
|
|
289
|
-
process_where: Optional[pulumi.Input[
|
|
290
|
-
runbook_url: Optional[pulumi.Input[
|
|
291
|
-
select: Optional[pulumi.Input[
|
|
292
|
-
type: Optional[pulumi.Input[
|
|
293
|
-
updated_at: Optional[pulumi.Input[
|
|
294
|
-
violation_close_timer: Optional[pulumi.Input[
|
|
281
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
282
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
283
|
+
entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
284
|
+
event: Optional[pulumi.Input[_builtins.str]] = None,
|
|
285
|
+
integration_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
286
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
287
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
288
|
+
process_where: Optional[pulumi.Input[_builtins.str]] = None,
|
|
289
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
290
|
+
select: Optional[pulumi.Input[_builtins.str]] = None,
|
|
291
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
292
|
+
updated_at: Optional[pulumi.Input[_builtins.int]] = None,
|
|
293
|
+
violation_close_timer: Optional[pulumi.Input[_builtins.int]] = None,
|
|
295
294
|
warning: Optional[pulumi.Input['InfraAlertConditionWarningArgs']] = None,
|
|
296
|
-
where: Optional[pulumi.Input[
|
|
295
|
+
where: Optional[pulumi.Input[_builtins.str]] = None):
|
|
297
296
|
"""
|
|
298
297
|
Input properties used for looking up and filtering InfraAlertCondition resources.
|
|
299
|
-
:param pulumi.Input[
|
|
300
|
-
:param pulumi.Input[
|
|
298
|
+
:param pulumi.Input[_builtins.str] comparison: The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infra_metric` and `infra_process_running` condition types.
|
|
299
|
+
:param pulumi.Input[_builtins.int] created_at: The timestamp the alert condition was created.
|
|
301
300
|
:param pulumi.Input['InfraAlertConditionCriticalArgs'] critical: Identifies the threshold parameters for opening a critical alert incident. See Thresholds below for details.
|
|
302
|
-
:param pulumi.Input[
|
|
303
|
-
:param pulumi.Input[
|
|
304
|
-
:param pulumi.Input[
|
|
305
|
-
:param pulumi.Input[
|
|
306
|
-
:param pulumi.Input[
|
|
307
|
-
:param pulumi.Input[
|
|
308
|
-
:param pulumi.Input[
|
|
309
|
-
:param pulumi.Input[
|
|
310
|
-
:param pulumi.Input[
|
|
311
|
-
:param pulumi.Input[
|
|
312
|
-
:param pulumi.Input[
|
|
313
|
-
:param pulumi.Input[
|
|
314
|
-
:param pulumi.Input[
|
|
301
|
+
:param pulumi.Input[_builtins.str] description: The description of the Infrastructure alert condition.
|
|
302
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`.
|
|
303
|
+
:param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
304
|
+
:param pulumi.Input[_builtins.str] event: The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infra_metric` condition type.
|
|
305
|
+
:param pulumi.Input[_builtins.str] integration_provider: For alerts on integrations, use this instead of `event`. Supported by the `infra_metric` condition type.
|
|
306
|
+
:param pulumi.Input[_builtins.str] name: The Infrastructure alert condition's name.
|
|
307
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the alert policy where this condition should be used.
|
|
308
|
+
:param pulumi.Input[_builtins.str] process_where: Any filters applied to processes; for example: `commandName = 'java'`. Required by the `infra_process_running` condition type.
|
|
309
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
310
|
+
:param pulumi.Input[_builtins.str] select: The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
|
311
|
+
:param pulumi.Input[_builtins.str] type: The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
|
312
|
+
:param pulumi.Input[_builtins.int] updated_at: The timestamp the alert condition was last updated.
|
|
313
|
+
:param pulumi.Input[_builtins.int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
|
315
314
|
|
|
316
315
|
```
|
|
317
316
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
|
318
317
|
```
|
|
319
318
|
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
|
320
|
-
:param pulumi.Input[
|
|
319
|
+
:param pulumi.Input[_builtins.str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
|
321
320
|
"""
|
|
322
321
|
if comparison is not None:
|
|
323
322
|
pulumi.set(__self__, "comparison", comparison)
|
|
@@ -356,31 +355,31 @@ class _InfraAlertConditionState:
|
|
|
356
355
|
if where is not None:
|
|
357
356
|
pulumi.set(__self__, "where", where)
|
|
358
357
|
|
|
359
|
-
@property
|
|
358
|
+
@_builtins.property
|
|
360
359
|
@pulumi.getter
|
|
361
|
-
def comparison(self) -> Optional[pulumi.Input[
|
|
360
|
+
def comparison(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
362
361
|
"""
|
|
363
362
|
The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infra_metric` and `infra_process_running` condition types.
|
|
364
363
|
"""
|
|
365
364
|
return pulumi.get(self, "comparison")
|
|
366
365
|
|
|
367
366
|
@comparison.setter
|
|
368
|
-
def comparison(self, value: Optional[pulumi.Input[
|
|
367
|
+
def comparison(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
369
368
|
pulumi.set(self, "comparison", value)
|
|
370
369
|
|
|
371
|
-
@property
|
|
370
|
+
@_builtins.property
|
|
372
371
|
@pulumi.getter(name="createdAt")
|
|
373
|
-
def created_at(self) -> Optional[pulumi.Input[
|
|
372
|
+
def created_at(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
374
373
|
"""
|
|
375
374
|
The timestamp the alert condition was created.
|
|
376
375
|
"""
|
|
377
376
|
return pulumi.get(self, "created_at")
|
|
378
377
|
|
|
379
378
|
@created_at.setter
|
|
380
|
-
def created_at(self, value: Optional[pulumi.Input[
|
|
379
|
+
def created_at(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
381
380
|
pulumi.set(self, "created_at", value)
|
|
382
381
|
|
|
383
|
-
@property
|
|
382
|
+
@_builtins.property
|
|
384
383
|
@pulumi.getter
|
|
385
384
|
def critical(self) -> Optional[pulumi.Input['InfraAlertConditionCriticalArgs']]:
|
|
386
385
|
"""
|
|
@@ -392,153 +391,153 @@ class _InfraAlertConditionState:
|
|
|
392
391
|
def critical(self, value: Optional[pulumi.Input['InfraAlertConditionCriticalArgs']]):
|
|
393
392
|
pulumi.set(self, "critical", value)
|
|
394
393
|
|
|
395
|
-
@property
|
|
394
|
+
@_builtins.property
|
|
396
395
|
@pulumi.getter
|
|
397
|
-
def description(self) -> Optional[pulumi.Input[
|
|
396
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
398
397
|
"""
|
|
399
398
|
The description of the Infrastructure alert condition.
|
|
400
399
|
"""
|
|
401
400
|
return pulumi.get(self, "description")
|
|
402
401
|
|
|
403
402
|
@description.setter
|
|
404
|
-
def description(self, value: Optional[pulumi.Input[
|
|
403
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
405
404
|
pulumi.set(self, "description", value)
|
|
406
405
|
|
|
407
|
-
@property
|
|
406
|
+
@_builtins.property
|
|
408
407
|
@pulumi.getter
|
|
409
|
-
def enabled(self) -> Optional[pulumi.Input[
|
|
408
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
410
409
|
"""
|
|
411
410
|
Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`.
|
|
412
411
|
"""
|
|
413
412
|
return pulumi.get(self, "enabled")
|
|
414
413
|
|
|
415
414
|
@enabled.setter
|
|
416
|
-
def enabled(self, value: Optional[pulumi.Input[
|
|
415
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
417
416
|
pulumi.set(self, "enabled", value)
|
|
418
417
|
|
|
419
|
-
@property
|
|
418
|
+
@_builtins.property
|
|
420
419
|
@pulumi.getter(name="entityGuid")
|
|
421
|
-
def entity_guid(self) -> Optional[pulumi.Input[
|
|
420
|
+
def entity_guid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
422
421
|
"""
|
|
423
422
|
The unique entity identifier of the condition in New Relic.
|
|
424
423
|
"""
|
|
425
424
|
return pulumi.get(self, "entity_guid")
|
|
426
425
|
|
|
427
426
|
@entity_guid.setter
|
|
428
|
-
def entity_guid(self, value: Optional[pulumi.Input[
|
|
427
|
+
def entity_guid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
429
428
|
pulumi.set(self, "entity_guid", value)
|
|
430
429
|
|
|
431
|
-
@property
|
|
430
|
+
@_builtins.property
|
|
432
431
|
@pulumi.getter
|
|
433
|
-
def event(self) -> Optional[pulumi.Input[
|
|
432
|
+
def event(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
434
433
|
"""
|
|
435
434
|
The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infra_metric` condition type.
|
|
436
435
|
"""
|
|
437
436
|
return pulumi.get(self, "event")
|
|
438
437
|
|
|
439
438
|
@event.setter
|
|
440
|
-
def event(self, value: Optional[pulumi.Input[
|
|
439
|
+
def event(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
441
440
|
pulumi.set(self, "event", value)
|
|
442
441
|
|
|
443
|
-
@property
|
|
442
|
+
@_builtins.property
|
|
444
443
|
@pulumi.getter(name="integrationProvider")
|
|
445
|
-
def integration_provider(self) -> Optional[pulumi.Input[
|
|
444
|
+
def integration_provider(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
446
445
|
"""
|
|
447
446
|
For alerts on integrations, use this instead of `event`. Supported by the `infra_metric` condition type.
|
|
448
447
|
"""
|
|
449
448
|
return pulumi.get(self, "integration_provider")
|
|
450
449
|
|
|
451
450
|
@integration_provider.setter
|
|
452
|
-
def integration_provider(self, value: Optional[pulumi.Input[
|
|
451
|
+
def integration_provider(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
453
452
|
pulumi.set(self, "integration_provider", value)
|
|
454
453
|
|
|
455
|
-
@property
|
|
454
|
+
@_builtins.property
|
|
456
455
|
@pulumi.getter
|
|
457
|
-
def name(self) -> Optional[pulumi.Input[
|
|
456
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
458
457
|
"""
|
|
459
458
|
The Infrastructure alert condition's name.
|
|
460
459
|
"""
|
|
461
460
|
return pulumi.get(self, "name")
|
|
462
461
|
|
|
463
462
|
@name.setter
|
|
464
|
-
def name(self, value: Optional[pulumi.Input[
|
|
463
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
465
464
|
pulumi.set(self, "name", value)
|
|
466
465
|
|
|
467
|
-
@property
|
|
466
|
+
@_builtins.property
|
|
468
467
|
@pulumi.getter(name="policyId")
|
|
469
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
|
468
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
470
469
|
"""
|
|
471
470
|
The ID of the alert policy where this condition should be used.
|
|
472
471
|
"""
|
|
473
472
|
return pulumi.get(self, "policy_id")
|
|
474
473
|
|
|
475
474
|
@policy_id.setter
|
|
476
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
|
475
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
477
476
|
pulumi.set(self, "policy_id", value)
|
|
478
477
|
|
|
479
|
-
@property
|
|
478
|
+
@_builtins.property
|
|
480
479
|
@pulumi.getter(name="processWhere")
|
|
481
|
-
def process_where(self) -> Optional[pulumi.Input[
|
|
480
|
+
def process_where(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
482
481
|
"""
|
|
483
482
|
Any filters applied to processes; for example: `commandName = 'java'`. Required by the `infra_process_running` condition type.
|
|
484
483
|
"""
|
|
485
484
|
return pulumi.get(self, "process_where")
|
|
486
485
|
|
|
487
486
|
@process_where.setter
|
|
488
|
-
def process_where(self, value: Optional[pulumi.Input[
|
|
487
|
+
def process_where(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
489
488
|
pulumi.set(self, "process_where", value)
|
|
490
489
|
|
|
491
|
-
@property
|
|
490
|
+
@_builtins.property
|
|
492
491
|
@pulumi.getter(name="runbookUrl")
|
|
493
|
-
def runbook_url(self) -> Optional[pulumi.Input[
|
|
492
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
494
493
|
"""
|
|
495
494
|
Runbook URL to display in notifications.
|
|
496
495
|
"""
|
|
497
496
|
return pulumi.get(self, "runbook_url")
|
|
498
497
|
|
|
499
498
|
@runbook_url.setter
|
|
500
|
-
def runbook_url(self, value: Optional[pulumi.Input[
|
|
499
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
501
500
|
pulumi.set(self, "runbook_url", value)
|
|
502
501
|
|
|
503
|
-
@property
|
|
502
|
+
@_builtins.property
|
|
504
503
|
@pulumi.getter
|
|
505
|
-
def select(self) -> Optional[pulumi.Input[
|
|
504
|
+
def select(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
506
505
|
"""
|
|
507
506
|
The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
|
508
507
|
"""
|
|
509
508
|
return pulumi.get(self, "select")
|
|
510
509
|
|
|
511
510
|
@select.setter
|
|
512
|
-
def select(self, value: Optional[pulumi.Input[
|
|
511
|
+
def select(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
513
512
|
pulumi.set(self, "select", value)
|
|
514
513
|
|
|
515
|
-
@property
|
|
514
|
+
@_builtins.property
|
|
516
515
|
@pulumi.getter
|
|
517
|
-
def type(self) -> Optional[pulumi.Input[
|
|
516
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
518
517
|
"""
|
|
519
518
|
The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
|
520
519
|
"""
|
|
521
520
|
return pulumi.get(self, "type")
|
|
522
521
|
|
|
523
522
|
@type.setter
|
|
524
|
-
def type(self, value: Optional[pulumi.Input[
|
|
523
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
525
524
|
pulumi.set(self, "type", value)
|
|
526
525
|
|
|
527
|
-
@property
|
|
526
|
+
@_builtins.property
|
|
528
527
|
@pulumi.getter(name="updatedAt")
|
|
529
|
-
def updated_at(self) -> Optional[pulumi.Input[
|
|
528
|
+
def updated_at(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
530
529
|
"""
|
|
531
530
|
The timestamp the alert condition was last updated.
|
|
532
531
|
"""
|
|
533
532
|
return pulumi.get(self, "updated_at")
|
|
534
533
|
|
|
535
534
|
@updated_at.setter
|
|
536
|
-
def updated_at(self, value: Optional[pulumi.Input[
|
|
535
|
+
def updated_at(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
537
536
|
pulumi.set(self, "updated_at", value)
|
|
538
537
|
|
|
539
|
-
@property
|
|
538
|
+
@_builtins.property
|
|
540
539
|
@pulumi.getter(name="violationCloseTimer")
|
|
541
|
-
def violation_close_timer(self) -> Optional[pulumi.Input[
|
|
540
|
+
def violation_close_timer(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
542
541
|
"""
|
|
543
542
|
Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
|
544
543
|
|
|
@@ -549,10 +548,10 @@ class _InfraAlertConditionState:
|
|
|
549
548
|
return pulumi.get(self, "violation_close_timer")
|
|
550
549
|
|
|
551
550
|
@violation_close_timer.setter
|
|
552
|
-
def violation_close_timer(self, value: Optional[pulumi.Input[
|
|
551
|
+
def violation_close_timer(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
553
552
|
pulumi.set(self, "violation_close_timer", value)
|
|
554
553
|
|
|
555
|
-
@property
|
|
554
|
+
@_builtins.property
|
|
556
555
|
@pulumi.getter
|
|
557
556
|
def warning(self) -> Optional[pulumi.Input['InfraAlertConditionWarningArgs']]:
|
|
558
557
|
"""
|
|
@@ -564,16 +563,16 @@ class _InfraAlertConditionState:
|
|
|
564
563
|
def warning(self, value: Optional[pulumi.Input['InfraAlertConditionWarningArgs']]):
|
|
565
564
|
pulumi.set(self, "warning", value)
|
|
566
565
|
|
|
567
|
-
@property
|
|
566
|
+
@_builtins.property
|
|
568
567
|
@pulumi.getter
|
|
569
|
-
def where(self) -> Optional[pulumi.Input[
|
|
568
|
+
def where(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
570
569
|
"""
|
|
571
570
|
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
|
572
571
|
"""
|
|
573
572
|
return pulumi.get(self, "where")
|
|
574
573
|
|
|
575
574
|
@where.setter
|
|
576
|
-
def where(self, value: Optional[pulumi.Input[
|
|
575
|
+
def where(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
577
576
|
pulumi.set(self, "where", value)
|
|
578
577
|
|
|
579
578
|
|
|
@@ -583,21 +582,21 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
583
582
|
def __init__(__self__,
|
|
584
583
|
resource_name: str,
|
|
585
584
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
586
|
-
comparison: Optional[pulumi.Input[
|
|
585
|
+
comparison: Optional[pulumi.Input[_builtins.str]] = None,
|
|
587
586
|
critical: Optional[pulumi.Input[Union['InfraAlertConditionCriticalArgs', 'InfraAlertConditionCriticalArgsDict']]] = None,
|
|
588
|
-
description: Optional[pulumi.Input[
|
|
589
|
-
enabled: Optional[pulumi.Input[
|
|
590
|
-
event: Optional[pulumi.Input[
|
|
591
|
-
integration_provider: Optional[pulumi.Input[
|
|
592
|
-
name: Optional[pulumi.Input[
|
|
593
|
-
policy_id: Optional[pulumi.Input[
|
|
594
|
-
process_where: Optional[pulumi.Input[
|
|
595
|
-
runbook_url: Optional[pulumi.Input[
|
|
596
|
-
select: Optional[pulumi.Input[
|
|
597
|
-
type: Optional[pulumi.Input[
|
|
598
|
-
violation_close_timer: Optional[pulumi.Input[
|
|
587
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
588
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
589
|
+
event: Optional[pulumi.Input[_builtins.str]] = None,
|
|
590
|
+
integration_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
591
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
592
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
593
|
+
process_where: Optional[pulumi.Input[_builtins.str]] = None,
|
|
594
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
595
|
+
select: Optional[pulumi.Input[_builtins.str]] = None,
|
|
596
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
597
|
+
violation_close_timer: Optional[pulumi.Input[_builtins.int]] = None,
|
|
599
598
|
warning: Optional[pulumi.Input[Union['InfraAlertConditionWarningArgs', 'InfraAlertConditionWarningArgsDict']]] = None,
|
|
600
|
-
where: Optional[pulumi.Input[
|
|
599
|
+
where: Optional[pulumi.Input[_builtins.str]] = None,
|
|
601
600
|
__props__=None):
|
|
602
601
|
"""
|
|
603
602
|
Use this resource to create and manage Infrastructure alert conditions in New Relic.
|
|
@@ -731,25 +730,25 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
731
730
|
|
|
732
731
|
:param str resource_name: The name of the resource.
|
|
733
732
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
734
|
-
:param pulumi.Input[
|
|
733
|
+
:param pulumi.Input[_builtins.str] comparison: The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infra_metric` and `infra_process_running` condition types.
|
|
735
734
|
:param pulumi.Input[Union['InfraAlertConditionCriticalArgs', 'InfraAlertConditionCriticalArgsDict']] critical: Identifies the threshold parameters for opening a critical alert incident. See Thresholds below for details.
|
|
736
|
-
:param pulumi.Input[
|
|
737
|
-
:param pulumi.Input[
|
|
738
|
-
:param pulumi.Input[
|
|
739
|
-
:param pulumi.Input[
|
|
740
|
-
:param pulumi.Input[
|
|
741
|
-
:param pulumi.Input[
|
|
742
|
-
:param pulumi.Input[
|
|
743
|
-
:param pulumi.Input[
|
|
744
|
-
:param pulumi.Input[
|
|
745
|
-
:param pulumi.Input[
|
|
746
|
-
:param pulumi.Input[
|
|
735
|
+
:param pulumi.Input[_builtins.str] description: The description of the Infrastructure alert condition.
|
|
736
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`.
|
|
737
|
+
:param pulumi.Input[_builtins.str] event: The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infra_metric` condition type.
|
|
738
|
+
:param pulumi.Input[_builtins.str] integration_provider: For alerts on integrations, use this instead of `event`. Supported by the `infra_metric` condition type.
|
|
739
|
+
:param pulumi.Input[_builtins.str] name: The Infrastructure alert condition's name.
|
|
740
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the alert policy where this condition should be used.
|
|
741
|
+
:param pulumi.Input[_builtins.str] process_where: Any filters applied to processes; for example: `commandName = 'java'`. Required by the `infra_process_running` condition type.
|
|
742
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
743
|
+
:param pulumi.Input[_builtins.str] select: The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
|
744
|
+
:param pulumi.Input[_builtins.str] type: The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
|
745
|
+
:param pulumi.Input[_builtins.int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
|
747
746
|
|
|
748
747
|
```
|
|
749
748
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
|
750
749
|
```
|
|
751
750
|
:param pulumi.Input[Union['InfraAlertConditionWarningArgs', 'InfraAlertConditionWarningArgsDict']] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
|
752
|
-
:param pulumi.Input[
|
|
751
|
+
:param pulumi.Input[_builtins.str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
|
753
752
|
"""
|
|
754
753
|
...
|
|
755
754
|
@overload
|
|
@@ -902,21 +901,21 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
902
901
|
def _internal_init(__self__,
|
|
903
902
|
resource_name: str,
|
|
904
903
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
905
|
-
comparison: Optional[pulumi.Input[
|
|
904
|
+
comparison: Optional[pulumi.Input[_builtins.str]] = None,
|
|
906
905
|
critical: Optional[pulumi.Input[Union['InfraAlertConditionCriticalArgs', 'InfraAlertConditionCriticalArgsDict']]] = None,
|
|
907
|
-
description: Optional[pulumi.Input[
|
|
908
|
-
enabled: Optional[pulumi.Input[
|
|
909
|
-
event: Optional[pulumi.Input[
|
|
910
|
-
integration_provider: Optional[pulumi.Input[
|
|
911
|
-
name: Optional[pulumi.Input[
|
|
912
|
-
policy_id: Optional[pulumi.Input[
|
|
913
|
-
process_where: Optional[pulumi.Input[
|
|
914
|
-
runbook_url: Optional[pulumi.Input[
|
|
915
|
-
select: Optional[pulumi.Input[
|
|
916
|
-
type: Optional[pulumi.Input[
|
|
917
|
-
violation_close_timer: Optional[pulumi.Input[
|
|
906
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
907
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
908
|
+
event: Optional[pulumi.Input[_builtins.str]] = None,
|
|
909
|
+
integration_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
910
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
911
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
912
|
+
process_where: Optional[pulumi.Input[_builtins.str]] = None,
|
|
913
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
914
|
+
select: Optional[pulumi.Input[_builtins.str]] = None,
|
|
915
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
916
|
+
violation_close_timer: Optional[pulumi.Input[_builtins.int]] = None,
|
|
918
917
|
warning: Optional[pulumi.Input[Union['InfraAlertConditionWarningArgs', 'InfraAlertConditionWarningArgsDict']]] = None,
|
|
919
|
-
where: Optional[pulumi.Input[
|
|
918
|
+
where: Optional[pulumi.Input[_builtins.str]] = None,
|
|
920
919
|
__props__=None):
|
|
921
920
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
922
921
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -958,24 +957,24 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
958
957
|
def get(resource_name: str,
|
|
959
958
|
id: pulumi.Input[str],
|
|
960
959
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
961
|
-
comparison: Optional[pulumi.Input[
|
|
962
|
-
created_at: Optional[pulumi.Input[
|
|
960
|
+
comparison: Optional[pulumi.Input[_builtins.str]] = None,
|
|
961
|
+
created_at: Optional[pulumi.Input[_builtins.int]] = None,
|
|
963
962
|
critical: Optional[pulumi.Input[Union['InfraAlertConditionCriticalArgs', 'InfraAlertConditionCriticalArgsDict']]] = None,
|
|
964
|
-
description: Optional[pulumi.Input[
|
|
965
|
-
enabled: Optional[pulumi.Input[
|
|
966
|
-
entity_guid: Optional[pulumi.Input[
|
|
967
|
-
event: Optional[pulumi.Input[
|
|
968
|
-
integration_provider: Optional[pulumi.Input[
|
|
969
|
-
name: Optional[pulumi.Input[
|
|
970
|
-
policy_id: Optional[pulumi.Input[
|
|
971
|
-
process_where: Optional[pulumi.Input[
|
|
972
|
-
runbook_url: Optional[pulumi.Input[
|
|
973
|
-
select: Optional[pulumi.Input[
|
|
974
|
-
type: Optional[pulumi.Input[
|
|
975
|
-
updated_at: Optional[pulumi.Input[
|
|
976
|
-
violation_close_timer: Optional[pulumi.Input[
|
|
963
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
964
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
965
|
+
entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
966
|
+
event: Optional[pulumi.Input[_builtins.str]] = None,
|
|
967
|
+
integration_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
968
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
969
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
970
|
+
process_where: Optional[pulumi.Input[_builtins.str]] = None,
|
|
971
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
972
|
+
select: Optional[pulumi.Input[_builtins.str]] = None,
|
|
973
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
974
|
+
updated_at: Optional[pulumi.Input[_builtins.int]] = None,
|
|
975
|
+
violation_close_timer: Optional[pulumi.Input[_builtins.int]] = None,
|
|
977
976
|
warning: Optional[pulumi.Input[Union['InfraAlertConditionWarningArgs', 'InfraAlertConditionWarningArgsDict']]] = None,
|
|
978
|
-
where: Optional[pulumi.Input[
|
|
977
|
+
where: Optional[pulumi.Input[_builtins.str]] = None) -> 'InfraAlertCondition':
|
|
979
978
|
"""
|
|
980
979
|
Get an existing InfraAlertCondition resource's state with the given name, id, and optional extra
|
|
981
980
|
properties used to qualify the lookup.
|
|
@@ -983,28 +982,28 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
983
982
|
:param str resource_name: The unique name of the resulting resource.
|
|
984
983
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
985
984
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
986
|
-
:param pulumi.Input[
|
|
987
|
-
:param pulumi.Input[
|
|
985
|
+
:param pulumi.Input[_builtins.str] comparison: The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infra_metric` and `infra_process_running` condition types.
|
|
986
|
+
:param pulumi.Input[_builtins.int] created_at: The timestamp the alert condition was created.
|
|
988
987
|
:param pulumi.Input[Union['InfraAlertConditionCriticalArgs', 'InfraAlertConditionCriticalArgsDict']] critical: Identifies the threshold parameters for opening a critical alert incident. See Thresholds below for details.
|
|
989
|
-
:param pulumi.Input[
|
|
990
|
-
:param pulumi.Input[
|
|
991
|
-
:param pulumi.Input[
|
|
992
|
-
:param pulumi.Input[
|
|
993
|
-
:param pulumi.Input[
|
|
994
|
-
:param pulumi.Input[
|
|
995
|
-
:param pulumi.Input[
|
|
996
|
-
:param pulumi.Input[
|
|
997
|
-
:param pulumi.Input[
|
|
998
|
-
:param pulumi.Input[
|
|
999
|
-
:param pulumi.Input[
|
|
1000
|
-
:param pulumi.Input[
|
|
1001
|
-
:param pulumi.Input[
|
|
988
|
+
:param pulumi.Input[_builtins.str] description: The description of the Infrastructure alert condition.
|
|
989
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`.
|
|
990
|
+
:param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
991
|
+
:param pulumi.Input[_builtins.str] event: The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infra_metric` condition type.
|
|
992
|
+
:param pulumi.Input[_builtins.str] integration_provider: For alerts on integrations, use this instead of `event`. Supported by the `infra_metric` condition type.
|
|
993
|
+
:param pulumi.Input[_builtins.str] name: The Infrastructure alert condition's name.
|
|
994
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the alert policy where this condition should be used.
|
|
995
|
+
:param pulumi.Input[_builtins.str] process_where: Any filters applied to processes; for example: `commandName = 'java'`. Required by the `infra_process_running` condition type.
|
|
996
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
997
|
+
:param pulumi.Input[_builtins.str] select: The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
|
998
|
+
:param pulumi.Input[_builtins.str] type: The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
|
999
|
+
:param pulumi.Input[_builtins.int] updated_at: The timestamp the alert condition was last updated.
|
|
1000
|
+
:param pulumi.Input[_builtins.int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
|
1002
1001
|
|
|
1003
1002
|
```
|
|
1004
1003
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
|
1005
1004
|
```
|
|
1006
1005
|
:param pulumi.Input[Union['InfraAlertConditionWarningArgs', 'InfraAlertConditionWarningArgsDict']] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
|
1007
|
-
:param pulumi.Input[
|
|
1006
|
+
:param pulumi.Input[_builtins.str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
|
1008
1007
|
"""
|
|
1009
1008
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1010
1009
|
|
|
@@ -1030,23 +1029,23 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
1030
1029
|
__props__.__dict__["where"] = where
|
|
1031
1030
|
return InfraAlertCondition(resource_name, opts=opts, __props__=__props__)
|
|
1032
1031
|
|
|
1033
|
-
@property
|
|
1032
|
+
@_builtins.property
|
|
1034
1033
|
@pulumi.getter
|
|
1035
|
-
def comparison(self) -> pulumi.Output[Optional[
|
|
1034
|
+
def comparison(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1036
1035
|
"""
|
|
1037
1036
|
The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infra_metric` and `infra_process_running` condition types.
|
|
1038
1037
|
"""
|
|
1039
1038
|
return pulumi.get(self, "comparison")
|
|
1040
1039
|
|
|
1041
|
-
@property
|
|
1040
|
+
@_builtins.property
|
|
1042
1041
|
@pulumi.getter(name="createdAt")
|
|
1043
|
-
def created_at(self) -> pulumi.Output[
|
|
1042
|
+
def created_at(self) -> pulumi.Output[_builtins.int]:
|
|
1044
1043
|
"""
|
|
1045
1044
|
The timestamp the alert condition was created.
|
|
1046
1045
|
"""
|
|
1047
1046
|
return pulumi.get(self, "created_at")
|
|
1048
1047
|
|
|
1049
|
-
@property
|
|
1048
|
+
@_builtins.property
|
|
1050
1049
|
@pulumi.getter
|
|
1051
1050
|
def critical(self) -> pulumi.Output[Optional['outputs.InfraAlertConditionCritical']]:
|
|
1052
1051
|
"""
|
|
@@ -1054,105 +1053,105 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
1054
1053
|
"""
|
|
1055
1054
|
return pulumi.get(self, "critical")
|
|
1056
1055
|
|
|
1057
|
-
@property
|
|
1056
|
+
@_builtins.property
|
|
1058
1057
|
@pulumi.getter
|
|
1059
|
-
def description(self) -> pulumi.Output[Optional[
|
|
1058
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1060
1059
|
"""
|
|
1061
1060
|
The description of the Infrastructure alert condition.
|
|
1062
1061
|
"""
|
|
1063
1062
|
return pulumi.get(self, "description")
|
|
1064
1063
|
|
|
1065
|
-
@property
|
|
1064
|
+
@_builtins.property
|
|
1066
1065
|
@pulumi.getter
|
|
1067
|
-
def enabled(self) -> pulumi.Output[Optional[
|
|
1066
|
+
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1068
1067
|
"""
|
|
1069
1068
|
Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`.
|
|
1070
1069
|
"""
|
|
1071
1070
|
return pulumi.get(self, "enabled")
|
|
1072
1071
|
|
|
1073
|
-
@property
|
|
1072
|
+
@_builtins.property
|
|
1074
1073
|
@pulumi.getter(name="entityGuid")
|
|
1075
|
-
def entity_guid(self) -> pulumi.Output[
|
|
1074
|
+
def entity_guid(self) -> pulumi.Output[_builtins.str]:
|
|
1076
1075
|
"""
|
|
1077
1076
|
The unique entity identifier of the condition in New Relic.
|
|
1078
1077
|
"""
|
|
1079
1078
|
return pulumi.get(self, "entity_guid")
|
|
1080
1079
|
|
|
1081
|
-
@property
|
|
1080
|
+
@_builtins.property
|
|
1082
1081
|
@pulumi.getter
|
|
1083
|
-
def event(self) -> pulumi.Output[
|
|
1082
|
+
def event(self) -> pulumi.Output[_builtins.str]:
|
|
1084
1083
|
"""
|
|
1085
1084
|
The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infra_metric` condition type.
|
|
1086
1085
|
"""
|
|
1087
1086
|
return pulumi.get(self, "event")
|
|
1088
1087
|
|
|
1089
|
-
@property
|
|
1088
|
+
@_builtins.property
|
|
1090
1089
|
@pulumi.getter(name="integrationProvider")
|
|
1091
|
-
def integration_provider(self) -> pulumi.Output[Optional[
|
|
1090
|
+
def integration_provider(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1092
1091
|
"""
|
|
1093
1092
|
For alerts on integrations, use this instead of `event`. Supported by the `infra_metric` condition type.
|
|
1094
1093
|
"""
|
|
1095
1094
|
return pulumi.get(self, "integration_provider")
|
|
1096
1095
|
|
|
1097
|
-
@property
|
|
1096
|
+
@_builtins.property
|
|
1098
1097
|
@pulumi.getter
|
|
1099
|
-
def name(self) -> pulumi.Output[
|
|
1098
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1100
1099
|
"""
|
|
1101
1100
|
The Infrastructure alert condition's name.
|
|
1102
1101
|
"""
|
|
1103
1102
|
return pulumi.get(self, "name")
|
|
1104
1103
|
|
|
1105
|
-
@property
|
|
1104
|
+
@_builtins.property
|
|
1106
1105
|
@pulumi.getter(name="policyId")
|
|
1107
|
-
def policy_id(self) -> pulumi.Output[
|
|
1106
|
+
def policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
1108
1107
|
"""
|
|
1109
1108
|
The ID of the alert policy where this condition should be used.
|
|
1110
1109
|
"""
|
|
1111
1110
|
return pulumi.get(self, "policy_id")
|
|
1112
1111
|
|
|
1113
|
-
@property
|
|
1112
|
+
@_builtins.property
|
|
1114
1113
|
@pulumi.getter(name="processWhere")
|
|
1115
|
-
def process_where(self) -> pulumi.Output[Optional[
|
|
1114
|
+
def process_where(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1116
1115
|
"""
|
|
1117
1116
|
Any filters applied to processes; for example: `commandName = 'java'`. Required by the `infra_process_running` condition type.
|
|
1118
1117
|
"""
|
|
1119
1118
|
return pulumi.get(self, "process_where")
|
|
1120
1119
|
|
|
1121
|
-
@property
|
|
1120
|
+
@_builtins.property
|
|
1122
1121
|
@pulumi.getter(name="runbookUrl")
|
|
1123
|
-
def runbook_url(self) -> pulumi.Output[Optional[
|
|
1122
|
+
def runbook_url(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1124
1123
|
"""
|
|
1125
1124
|
Runbook URL to display in notifications.
|
|
1126
1125
|
"""
|
|
1127
1126
|
return pulumi.get(self, "runbook_url")
|
|
1128
1127
|
|
|
1129
|
-
@property
|
|
1128
|
+
@_builtins.property
|
|
1130
1129
|
@pulumi.getter
|
|
1131
|
-
def select(self) -> pulumi.Output[Optional[
|
|
1130
|
+
def select(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1132
1131
|
"""
|
|
1133
1132
|
The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
|
1134
1133
|
"""
|
|
1135
1134
|
return pulumi.get(self, "select")
|
|
1136
1135
|
|
|
1137
|
-
@property
|
|
1136
|
+
@_builtins.property
|
|
1138
1137
|
@pulumi.getter
|
|
1139
|
-
def type(self) -> pulumi.Output[
|
|
1138
|
+
def type(self) -> pulumi.Output[_builtins.str]:
|
|
1140
1139
|
"""
|
|
1141
1140
|
The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
|
1142
1141
|
"""
|
|
1143
1142
|
return pulumi.get(self, "type")
|
|
1144
1143
|
|
|
1145
|
-
@property
|
|
1144
|
+
@_builtins.property
|
|
1146
1145
|
@pulumi.getter(name="updatedAt")
|
|
1147
|
-
def updated_at(self) -> pulumi.Output[
|
|
1146
|
+
def updated_at(self) -> pulumi.Output[_builtins.int]:
|
|
1148
1147
|
"""
|
|
1149
1148
|
The timestamp the alert condition was last updated.
|
|
1150
1149
|
"""
|
|
1151
1150
|
return pulumi.get(self, "updated_at")
|
|
1152
1151
|
|
|
1153
|
-
@property
|
|
1152
|
+
@_builtins.property
|
|
1154
1153
|
@pulumi.getter(name="violationCloseTimer")
|
|
1155
|
-
def violation_close_timer(self) -> pulumi.Output[Optional[
|
|
1154
|
+
def violation_close_timer(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1156
1155
|
"""
|
|
1157
1156
|
Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
|
1158
1157
|
|
|
@@ -1162,7 +1161,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
1162
1161
|
"""
|
|
1163
1162
|
return pulumi.get(self, "violation_close_timer")
|
|
1164
1163
|
|
|
1165
|
-
@property
|
|
1164
|
+
@_builtins.property
|
|
1166
1165
|
@pulumi.getter
|
|
1167
1166
|
def warning(self) -> pulumi.Output[Optional['outputs.InfraAlertConditionWarning']]:
|
|
1168
1167
|
"""
|
|
@@ -1170,9 +1169,9 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
|
1170
1169
|
"""
|
|
1171
1170
|
return pulumi.get(self, "warning")
|
|
1172
1171
|
|
|
1173
|
-
@property
|
|
1172
|
+
@_builtins.property
|
|
1174
1173
|
@pulumi.getter
|
|
1175
|
-
def where(self) -> pulumi.Output[Optional[
|
|
1174
|
+
def where(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1176
1175
|
"""
|
|
1177
1176
|
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
|
1178
1177
|
"""
|