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