pulumi-newrelic 5.23.0a1713561620__py3-none-any.whl → 5.23.0a1713975814__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/_inputs.py +110 -270
- pulumi_newrelic/account_management.py +14 -18
- pulumi_newrelic/alert_channel.py +28 -56
- pulumi_newrelic/alert_condition.py +84 -133
- pulumi_newrelic/alert_muting_rule.py +21 -25
- pulumi_newrelic/alert_policy.py +42 -33
- pulumi_newrelic/alert_policy_channel.py +0 -4
- pulumi_newrelic/cloud/_inputs.py +322 -1072
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -4
- pulumi_newrelic/cloud/aws_integrations.py +7 -11
- pulumi_newrelic/cloud/aws_link_account.py +0 -4
- pulumi_newrelic/cloud/azure_integrations.py +0 -4
- pulumi_newrelic/cloud/azure_link_account.py +0 -4
- pulumi_newrelic/cloud/gcp_integrations.py +0 -4
- pulumi_newrelic/cloud/gcp_link_account.py +0 -4
- pulumi_newrelic/cloud/outputs.py +322 -1072
- pulumi_newrelic/data_partition_rule.py +0 -4
- pulumi_newrelic/entity_tags.py +7 -11
- pulumi_newrelic/events_to_metrics_rule.py +0 -4
- pulumi_newrelic/get_account.py +0 -4
- pulumi_newrelic/get_application.py +0 -4
- pulumi_newrelic/get_authentication_domain.py +0 -4
- pulumi_newrelic/get_cloud_account.py +0 -4
- pulumi_newrelic/get_entity.py +0 -16
- pulumi_newrelic/get_group.py +0 -8
- pulumi_newrelic/get_key_transaction.py +0 -4
- pulumi_newrelic/get_obfuscation_expression.py +0 -4
- pulumi_newrelic/get_service_level_alert_helper.py +0 -30
- pulumi_newrelic/get_test_grok_pattern.py +0 -4
- pulumi_newrelic/get_user.py +0 -4
- pulumi_newrelic/group.py +0 -12
- pulumi_newrelic/infra_alert_condition.py +126 -113
- pulumi_newrelic/insights/event.py +0 -17
- pulumi_newrelic/log_parsing_rule.py +0 -8
- pulumi_newrelic/monitor_downtime.py +70 -101
- pulumi_newrelic/notification_channel.py +0 -44
- pulumi_newrelic/nrql_alert_condition.py +0 -20
- pulumi_newrelic/nrql_drop_rule.py +28 -32
- pulumi_newrelic/obfuscation_expression.py +0 -4
- pulumi_newrelic/obfuscation_rule.py +0 -4
- pulumi_newrelic/one_dashboard.py +42 -48
- pulumi_newrelic/one_dashboard_raw.py +0 -4
- pulumi_newrelic/outputs.py +110 -270
- pulumi_newrelic/plugins/_inputs.py +16 -16
- pulumi_newrelic/plugins/application_settings.py +0 -4
- pulumi_newrelic/plugins/outputs.py +16 -16
- pulumi_newrelic/plugins/workload.py +28 -48
- pulumi_newrelic/service_level.py +0 -91
- pulumi_newrelic/synthetics/alert_condition.py +14 -50
- pulumi_newrelic/synthetics/broken_links_monitor.py +0 -8
- pulumi_newrelic/synthetics/cert_check_monitor.py +0 -8
- pulumi_newrelic/synthetics/get_private_location.py +0 -8
- pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
- pulumi_newrelic/synthetics/monitor.py +0 -16
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -71
- pulumi_newrelic/synthetics/private_location.py +0 -4
- pulumi_newrelic/synthetics/script_monitor.py +4 -20
- pulumi_newrelic/synthetics/secure_credential.py +21 -18
- pulumi_newrelic/synthetics/step_monitor.py +4 -12
- pulumi_newrelic/user.py +0 -4
- pulumi_newrelic/workflow.py +0 -16
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713975814.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/top_level.txt +0 -0
@@ -34,24 +34,27 @@ class InfraAlertConditionArgs:
|
|
34
34
|
"""
|
35
35
|
The set of arguments for constructing a InfraAlertCondition resource.
|
36
36
|
:param pulumi.Input[int] policy_id: The ID of the alert policy where this condition should be used.
|
37
|
-
:param pulumi.Input[str] type: The type of Infrastructure alert condition.
|
38
|
-
|
39
|
-
:param pulumi.Input[
|
37
|
+
:param pulumi.Input[str] type: The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and
|
38
|
+
infra_host_not_reporting.
|
39
|
+
:param pulumi.Input[str] comparison: The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the
|
40
|
+
infra_metric and infra_process_running condition types.
|
41
|
+
:param pulumi.Input['InfraAlertConditionCriticalArgs'] critical: Identifies the threshold parameters for opening a critical alert incident.
|
40
42
|
:param pulumi.Input[str] description: The description of the Infrastructure alert condition.
|
41
|
-
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off.
|
42
|
-
:param pulumi.Input[str] event: The metric event; for example,
|
43
|
-
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of
|
43
|
+
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
|
44
|
+
:param pulumi.Input[str] event: The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
|
45
|
+
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
|
44
46
|
:param pulumi.Input[str] name: The Infrastructure alert condition's name.
|
45
|
-
:param pulumi.Input[str] process_where: Any filters applied to processes; for example:
|
47
|
+
:param pulumi.Input[str] process_where: Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition
|
48
|
+
type.
|
46
49
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
47
|
-
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example,
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident.
|
54
|
-
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example:
|
50
|
+
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or
|
51
|
+
memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for
|
52
|
+
example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the
|
53
|
+
infra_metric condition type.
|
54
|
+
:param pulumi.Input[int] violation_close_timer: Determines how much time, in hours, will pass before an incident is automatically closed. Valid values are 1, 2, 4, 8,
|
55
|
+
12, 24, 48, or 72
|
56
|
+
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident.
|
57
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
|
55
58
|
"""
|
56
59
|
pulumi.set(__self__, "policy_id", policy_id)
|
57
60
|
pulumi.set(__self__, "type", type)
|
@@ -98,7 +101,8 @@ class InfraAlertConditionArgs:
|
|
98
101
|
@pulumi.getter
|
99
102
|
def type(self) -> pulumi.Input[str]:
|
100
103
|
"""
|
101
|
-
The type of Infrastructure alert condition.
|
104
|
+
The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and
|
105
|
+
infra_host_not_reporting.
|
102
106
|
"""
|
103
107
|
return pulumi.get(self, "type")
|
104
108
|
|
@@ -110,7 +114,8 @@ class InfraAlertConditionArgs:
|
|
110
114
|
@pulumi.getter
|
111
115
|
def comparison(self) -> Optional[pulumi.Input[str]]:
|
112
116
|
"""
|
113
|
-
The operator used to evaluate the threshold value.
|
117
|
+
The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the
|
118
|
+
infra_metric and infra_process_running condition types.
|
114
119
|
"""
|
115
120
|
return pulumi.get(self, "comparison")
|
116
121
|
|
@@ -122,7 +127,7 @@ class InfraAlertConditionArgs:
|
|
122
127
|
@pulumi.getter
|
123
128
|
def critical(self) -> Optional[pulumi.Input['InfraAlertConditionCriticalArgs']]:
|
124
129
|
"""
|
125
|
-
Identifies the threshold parameters for opening a critical alert incident.
|
130
|
+
Identifies the threshold parameters for opening a critical alert incident.
|
126
131
|
"""
|
127
132
|
return pulumi.get(self, "critical")
|
128
133
|
|
@@ -146,7 +151,7 @@ class InfraAlertConditionArgs:
|
|
146
151
|
@pulumi.getter
|
147
152
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
148
153
|
"""
|
149
|
-
Whether the condition is turned on or off.
|
154
|
+
Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
|
150
155
|
"""
|
151
156
|
return pulumi.get(self, "enabled")
|
152
157
|
|
@@ -158,7 +163,7 @@ class InfraAlertConditionArgs:
|
|
158
163
|
@pulumi.getter
|
159
164
|
def event(self) -> Optional[pulumi.Input[str]]:
|
160
165
|
"""
|
161
|
-
The metric event; for example,
|
166
|
+
The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
|
162
167
|
"""
|
163
168
|
return pulumi.get(self, "event")
|
164
169
|
|
@@ -170,7 +175,7 @@ class InfraAlertConditionArgs:
|
|
170
175
|
@pulumi.getter(name="integrationProvider")
|
171
176
|
def integration_provider(self) -> Optional[pulumi.Input[str]]:
|
172
177
|
"""
|
173
|
-
For alerts on integrations, use this instead of
|
178
|
+
For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
|
174
179
|
"""
|
175
180
|
return pulumi.get(self, "integration_provider")
|
176
181
|
|
@@ -194,7 +199,8 @@ class InfraAlertConditionArgs:
|
|
194
199
|
@pulumi.getter(name="processWhere")
|
195
200
|
def process_where(self) -> Optional[pulumi.Input[str]]:
|
196
201
|
"""
|
197
|
-
Any filters applied to processes; for example:
|
202
|
+
Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition
|
203
|
+
type.
|
198
204
|
"""
|
199
205
|
return pulumi.get(self, "process_where")
|
200
206
|
|
@@ -218,7 +224,10 @@ class InfraAlertConditionArgs:
|
|
218
224
|
@pulumi.getter
|
219
225
|
def select(self) -> Optional[pulumi.Input[str]]:
|
220
226
|
"""
|
221
|
-
The attribute name to identify the metric being targeted; for example,
|
227
|
+
The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or
|
228
|
+
memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for
|
229
|
+
example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the
|
230
|
+
infra_metric condition type.
|
222
231
|
"""
|
223
232
|
return pulumi.get(self, "select")
|
224
233
|
|
@@ -230,11 +239,8 @@ class InfraAlertConditionArgs:
|
|
230
239
|
@pulumi.getter(name="violationCloseTimer")
|
231
240
|
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
232
241
|
"""
|
233
|
-
Determines how much time will pass
|
234
|
-
|
235
|
-
```
|
236
|
-
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.
|
237
|
-
```
|
242
|
+
Determines how much time, in hours, will pass before an incident is automatically closed. Valid values are 1, 2, 4, 8,
|
243
|
+
12, 24, 48, or 72
|
238
244
|
"""
|
239
245
|
return pulumi.get(self, "violation_close_timer")
|
240
246
|
|
@@ -246,7 +252,7 @@ class InfraAlertConditionArgs:
|
|
246
252
|
@pulumi.getter
|
247
253
|
def warning(self) -> Optional[pulumi.Input['InfraAlertConditionWarningArgs']]:
|
248
254
|
"""
|
249
|
-
Identifies the threshold parameters for opening a warning alert incident.
|
255
|
+
Identifies the threshold parameters for opening a warning alert incident.
|
250
256
|
"""
|
251
257
|
return pulumi.get(self, "warning")
|
252
258
|
|
@@ -258,7 +264,7 @@ class InfraAlertConditionArgs:
|
|
258
264
|
@pulumi.getter
|
259
265
|
def where(self) -> Optional[pulumi.Input[str]]:
|
260
266
|
"""
|
261
|
-
If applicable, this identifies any Infrastructure host filters used; for example:
|
267
|
+
If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
|
262
268
|
"""
|
263
269
|
return pulumi.get(self, "where")
|
264
270
|
|
@@ -290,28 +296,31 @@ class _InfraAlertConditionState:
|
|
290
296
|
where: Optional[pulumi.Input[str]] = None):
|
291
297
|
"""
|
292
298
|
Input properties used for looking up and filtering InfraAlertCondition resources.
|
293
|
-
:param pulumi.Input[str] comparison: The operator used to evaluate the threshold value.
|
299
|
+
:param pulumi.Input[str] comparison: The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the
|
300
|
+
infra_metric and infra_process_running condition types.
|
294
301
|
:param pulumi.Input[int] created_at: The timestamp the alert condition was created.
|
295
|
-
:param pulumi.Input['InfraAlertConditionCriticalArgs'] critical: Identifies the threshold parameters for opening a critical alert incident.
|
302
|
+
:param pulumi.Input['InfraAlertConditionCriticalArgs'] critical: Identifies the threshold parameters for opening a critical alert incident.
|
296
303
|
:param pulumi.Input[str] description: The description of the Infrastructure alert condition.
|
297
|
-
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off.
|
304
|
+
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
|
298
305
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
299
|
-
:param pulumi.Input[str] event: The metric event; for example,
|
300
|
-
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of
|
306
|
+
:param pulumi.Input[str] event: The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
|
307
|
+
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
|
301
308
|
:param pulumi.Input[str] name: The Infrastructure alert condition's name.
|
302
309
|
:param pulumi.Input[int] policy_id: The ID of the alert policy where this condition should be used.
|
303
|
-
:param pulumi.Input[str] process_where: Any filters applied to processes; for example:
|
310
|
+
:param pulumi.Input[str] process_where: Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition
|
311
|
+
type.
|
304
312
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
305
|
-
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example,
|
306
|
-
|
313
|
+
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or
|
314
|
+
memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for
|
315
|
+
example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the
|
316
|
+
infra_metric condition type.
|
317
|
+
:param pulumi.Input[str] type: The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and
|
318
|
+
infra_host_not_reporting.
|
307
319
|
:param pulumi.Input[int] updated_at: The timestamp the alert condition was last updated.
|
308
|
-
:param pulumi.Input[int] violation_close_timer: Determines how much time will pass
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
```
|
313
|
-
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
314
|
-
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
320
|
+
:param pulumi.Input[int] violation_close_timer: Determines how much time, in hours, will pass before an incident is automatically closed. Valid values are 1, 2, 4, 8,
|
321
|
+
12, 24, 48, or 72
|
322
|
+
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident.
|
323
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
|
315
324
|
"""
|
316
325
|
if comparison is not None:
|
317
326
|
pulumi.set(__self__, "comparison", comparison)
|
@@ -354,7 +363,8 @@ class _InfraAlertConditionState:
|
|
354
363
|
@pulumi.getter
|
355
364
|
def comparison(self) -> Optional[pulumi.Input[str]]:
|
356
365
|
"""
|
357
|
-
The operator used to evaluate the threshold value.
|
366
|
+
The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the
|
367
|
+
infra_metric and infra_process_running condition types.
|
358
368
|
"""
|
359
369
|
return pulumi.get(self, "comparison")
|
360
370
|
|
@@ -378,7 +388,7 @@ class _InfraAlertConditionState:
|
|
378
388
|
@pulumi.getter
|
379
389
|
def critical(self) -> Optional[pulumi.Input['InfraAlertConditionCriticalArgs']]:
|
380
390
|
"""
|
381
|
-
Identifies the threshold parameters for opening a critical alert incident.
|
391
|
+
Identifies the threshold parameters for opening a critical alert incident.
|
382
392
|
"""
|
383
393
|
return pulumi.get(self, "critical")
|
384
394
|
|
@@ -402,7 +412,7 @@ class _InfraAlertConditionState:
|
|
402
412
|
@pulumi.getter
|
403
413
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
404
414
|
"""
|
405
|
-
Whether the condition is turned on or off.
|
415
|
+
Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
|
406
416
|
"""
|
407
417
|
return pulumi.get(self, "enabled")
|
408
418
|
|
@@ -426,7 +436,7 @@ class _InfraAlertConditionState:
|
|
426
436
|
@pulumi.getter
|
427
437
|
def event(self) -> Optional[pulumi.Input[str]]:
|
428
438
|
"""
|
429
|
-
The metric event; for example,
|
439
|
+
The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
|
430
440
|
"""
|
431
441
|
return pulumi.get(self, "event")
|
432
442
|
|
@@ -438,7 +448,7 @@ class _InfraAlertConditionState:
|
|
438
448
|
@pulumi.getter(name="integrationProvider")
|
439
449
|
def integration_provider(self) -> Optional[pulumi.Input[str]]:
|
440
450
|
"""
|
441
|
-
For alerts on integrations, use this instead of
|
451
|
+
For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
|
442
452
|
"""
|
443
453
|
return pulumi.get(self, "integration_provider")
|
444
454
|
|
@@ -474,7 +484,8 @@ class _InfraAlertConditionState:
|
|
474
484
|
@pulumi.getter(name="processWhere")
|
475
485
|
def process_where(self) -> Optional[pulumi.Input[str]]:
|
476
486
|
"""
|
477
|
-
Any filters applied to processes; for example:
|
487
|
+
Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition
|
488
|
+
type.
|
478
489
|
"""
|
479
490
|
return pulumi.get(self, "process_where")
|
480
491
|
|
@@ -498,7 +509,10 @@ class _InfraAlertConditionState:
|
|
498
509
|
@pulumi.getter
|
499
510
|
def select(self) -> Optional[pulumi.Input[str]]:
|
500
511
|
"""
|
501
|
-
The attribute name to identify the metric being targeted; for example,
|
512
|
+
The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or
|
513
|
+
memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for
|
514
|
+
example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the
|
515
|
+
infra_metric condition type.
|
502
516
|
"""
|
503
517
|
return pulumi.get(self, "select")
|
504
518
|
|
@@ -510,7 +524,8 @@ class _InfraAlertConditionState:
|
|
510
524
|
@pulumi.getter
|
511
525
|
def type(self) -> Optional[pulumi.Input[str]]:
|
512
526
|
"""
|
513
|
-
The type of Infrastructure alert condition.
|
527
|
+
The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and
|
528
|
+
infra_host_not_reporting.
|
514
529
|
"""
|
515
530
|
return pulumi.get(self, "type")
|
516
531
|
|
@@ -534,11 +549,8 @@ class _InfraAlertConditionState:
|
|
534
549
|
@pulumi.getter(name="violationCloseTimer")
|
535
550
|
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
536
551
|
"""
|
537
|
-
Determines how much time will pass
|
538
|
-
|
539
|
-
```
|
540
|
-
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.
|
541
|
-
```
|
552
|
+
Determines how much time, in hours, will pass before an incident is automatically closed. Valid values are 1, 2, 4, 8,
|
553
|
+
12, 24, 48, or 72
|
542
554
|
"""
|
543
555
|
return pulumi.get(self, "violation_close_timer")
|
544
556
|
|
@@ -550,7 +562,7 @@ class _InfraAlertConditionState:
|
|
550
562
|
@pulumi.getter
|
551
563
|
def warning(self) -> Optional[pulumi.Input['InfraAlertConditionWarningArgs']]:
|
552
564
|
"""
|
553
|
-
Identifies the threshold parameters for opening a warning alert incident.
|
565
|
+
Identifies the threshold parameters for opening a warning alert incident.
|
554
566
|
"""
|
555
567
|
return pulumi.get(self, "warning")
|
556
568
|
|
@@ -562,7 +574,7 @@ class _InfraAlertConditionState:
|
|
562
574
|
@pulumi.getter
|
563
575
|
def where(self) -> Optional[pulumi.Input[str]]:
|
564
576
|
"""
|
565
|
-
If applicable, this identifies any Infrastructure host filters used; for example:
|
577
|
+
If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
|
566
578
|
"""
|
567
579
|
return pulumi.get(self, "where")
|
568
580
|
|
@@ -599,7 +611,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
599
611
|
|
600
612
|
## Example Usage
|
601
613
|
|
602
|
-
<!--Start PulumiCodeChooser -->
|
603
614
|
```python
|
604
615
|
import pulumi
|
605
616
|
import pulumi_newrelic as newrelic
|
@@ -661,7 +672,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
661
672
|
duration=5,
|
662
673
|
))
|
663
674
|
```
|
664
|
-
<!--End PulumiCodeChooser -->
|
665
675
|
|
666
676
|
## Thresholds
|
667
677
|
|
@@ -675,7 +685,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
675
685
|
|
676
686
|
Manage infra alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
677
687
|
|
678
|
-
<!--Start PulumiCodeChooser -->
|
679
688
|
```python
|
680
689
|
import pulumi
|
681
690
|
import pulumi_newrelic as newrelic
|
@@ -716,7 +725,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
716
725
|
),
|
717
726
|
])
|
718
727
|
```
|
719
|
-
<!--End PulumiCodeChooser -->
|
720
728
|
|
721
729
|
## Import
|
722
730
|
|
@@ -728,25 +736,28 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
728
736
|
|
729
737
|
:param str resource_name: The name of the resource.
|
730
738
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
731
|
-
:param pulumi.Input[str] comparison: The operator used to evaluate the threshold value.
|
732
|
-
|
739
|
+
:param pulumi.Input[str] comparison: The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the
|
740
|
+
infra_metric and infra_process_running condition types.
|
741
|
+
:param pulumi.Input[pulumi.InputType['InfraAlertConditionCriticalArgs']] critical: Identifies the threshold parameters for opening a critical alert incident.
|
733
742
|
:param pulumi.Input[str] description: The description of the Infrastructure alert condition.
|
734
|
-
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off.
|
735
|
-
:param pulumi.Input[str] event: The metric event; for example,
|
736
|
-
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of
|
743
|
+
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
|
744
|
+
:param pulumi.Input[str] event: The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
|
745
|
+
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
|
737
746
|
:param pulumi.Input[str] name: The Infrastructure alert condition's name.
|
738
747
|
:param pulumi.Input[int] policy_id: The ID of the alert policy where this condition should be used.
|
739
|
-
:param pulumi.Input[str] process_where: Any filters applied to processes; for example:
|
748
|
+
:param pulumi.Input[str] process_where: Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition
|
749
|
+
type.
|
740
750
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
741
|
-
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example,
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
:param pulumi.Input[
|
751
|
+
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or
|
752
|
+
memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for
|
753
|
+
example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the
|
754
|
+
infra_metric condition type.
|
755
|
+
:param pulumi.Input[str] type: The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and
|
756
|
+
infra_host_not_reporting.
|
757
|
+
:param pulumi.Input[int] violation_close_timer: Determines how much time, in hours, will pass before an incident is automatically closed. Valid values are 1, 2, 4, 8,
|
758
|
+
12, 24, 48, or 72
|
759
|
+
:param pulumi.Input[pulumi.InputType['InfraAlertConditionWarningArgs']] warning: Identifies the threshold parameters for opening a warning alert incident.
|
760
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
|
750
761
|
"""
|
751
762
|
...
|
752
763
|
@overload
|
@@ -761,7 +772,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
761
772
|
|
762
773
|
## Example Usage
|
763
774
|
|
764
|
-
<!--Start PulumiCodeChooser -->
|
765
775
|
```python
|
766
776
|
import pulumi
|
767
777
|
import pulumi_newrelic as newrelic
|
@@ -823,7 +833,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
823
833
|
duration=5,
|
824
834
|
))
|
825
835
|
```
|
826
|
-
<!--End PulumiCodeChooser -->
|
827
836
|
|
828
837
|
## Thresholds
|
829
838
|
|
@@ -837,7 +846,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
837
846
|
|
838
847
|
Manage infra alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
839
848
|
|
840
|
-
<!--Start PulumiCodeChooser -->
|
841
849
|
```python
|
842
850
|
import pulumi
|
843
851
|
import pulumi_newrelic as newrelic
|
@@ -878,7 +886,6 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
878
886
|
),
|
879
887
|
])
|
880
888
|
```
|
881
|
-
<!--End PulumiCodeChooser -->
|
882
889
|
|
883
890
|
## Import
|
884
891
|
|
@@ -984,28 +991,31 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
984
991
|
:param str resource_name: The unique name of the resulting resource.
|
985
992
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
986
993
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
987
|
-
:param pulumi.Input[str] comparison: The operator used to evaluate the threshold value.
|
994
|
+
:param pulumi.Input[str] comparison: The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the
|
995
|
+
infra_metric and infra_process_running condition types.
|
988
996
|
:param pulumi.Input[int] created_at: The timestamp the alert condition was created.
|
989
|
-
:param pulumi.Input[pulumi.InputType['InfraAlertConditionCriticalArgs']] critical: Identifies the threshold parameters for opening a critical alert incident.
|
997
|
+
:param pulumi.Input[pulumi.InputType['InfraAlertConditionCriticalArgs']] critical: Identifies the threshold parameters for opening a critical alert incident.
|
990
998
|
:param pulumi.Input[str] description: The description of the Infrastructure alert condition.
|
991
|
-
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off.
|
999
|
+
:param pulumi.Input[bool] enabled: Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
|
992
1000
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
993
|
-
:param pulumi.Input[str] event: The metric event; for example,
|
994
|
-
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of
|
1001
|
+
:param pulumi.Input[str] event: The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
|
1002
|
+
:param pulumi.Input[str] integration_provider: For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
|
995
1003
|
:param pulumi.Input[str] name: The Infrastructure alert condition's name.
|
996
1004
|
:param pulumi.Input[int] policy_id: The ID of the alert policy where this condition should be used.
|
997
|
-
:param pulumi.Input[str] process_where: Any filters applied to processes; for example:
|
1005
|
+
:param pulumi.Input[str] process_where: Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition
|
1006
|
+
type.
|
998
1007
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
999
|
-
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example,
|
1000
|
-
|
1008
|
+
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or
|
1009
|
+
memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for
|
1010
|
+
example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the
|
1011
|
+
infra_metric condition type.
|
1012
|
+
:param pulumi.Input[str] type: The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and
|
1013
|
+
infra_host_not_reporting.
|
1001
1014
|
:param pulumi.Input[int] updated_at: The timestamp the alert condition was last updated.
|
1002
|
-
:param pulumi.Input[int] violation_close_timer: Determines how much time will pass
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
```
|
1007
|
-
:param pulumi.Input[pulumi.InputType['InfraAlertConditionWarningArgs']] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
1008
|
-
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`.
|
1015
|
+
:param pulumi.Input[int] violation_close_timer: Determines how much time, in hours, will pass before an incident is automatically closed. Valid values are 1, 2, 4, 8,
|
1016
|
+
12, 24, 48, or 72
|
1017
|
+
:param pulumi.Input[pulumi.InputType['InfraAlertConditionWarningArgs']] warning: Identifies the threshold parameters for opening a warning alert incident.
|
1018
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
|
1009
1019
|
"""
|
1010
1020
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
1011
1021
|
|
@@ -1035,7 +1045,8 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1035
1045
|
@pulumi.getter
|
1036
1046
|
def comparison(self) -> pulumi.Output[Optional[str]]:
|
1037
1047
|
"""
|
1038
|
-
The operator used to evaluate the threshold value.
|
1048
|
+
The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the
|
1049
|
+
infra_metric and infra_process_running condition types.
|
1039
1050
|
"""
|
1040
1051
|
return pulumi.get(self, "comparison")
|
1041
1052
|
|
@@ -1051,7 +1062,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1051
1062
|
@pulumi.getter
|
1052
1063
|
def critical(self) -> pulumi.Output[Optional['outputs.InfraAlertConditionCritical']]:
|
1053
1064
|
"""
|
1054
|
-
Identifies the threshold parameters for opening a critical alert incident.
|
1065
|
+
Identifies the threshold parameters for opening a critical alert incident.
|
1055
1066
|
"""
|
1056
1067
|
return pulumi.get(self, "critical")
|
1057
1068
|
|
@@ -1067,7 +1078,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1067
1078
|
@pulumi.getter
|
1068
1079
|
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
1069
1080
|
"""
|
1070
|
-
Whether the condition is turned on or off.
|
1081
|
+
Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
|
1071
1082
|
"""
|
1072
1083
|
return pulumi.get(self, "enabled")
|
1073
1084
|
|
@@ -1083,7 +1094,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1083
1094
|
@pulumi.getter
|
1084
1095
|
def event(self) -> pulumi.Output[str]:
|
1085
1096
|
"""
|
1086
|
-
The metric event; for example,
|
1097
|
+
The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
|
1087
1098
|
"""
|
1088
1099
|
return pulumi.get(self, "event")
|
1089
1100
|
|
@@ -1091,7 +1102,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1091
1102
|
@pulumi.getter(name="integrationProvider")
|
1092
1103
|
def integration_provider(self) -> pulumi.Output[Optional[str]]:
|
1093
1104
|
"""
|
1094
|
-
For alerts on integrations, use this instead of
|
1105
|
+
For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
|
1095
1106
|
"""
|
1096
1107
|
return pulumi.get(self, "integration_provider")
|
1097
1108
|
|
@@ -1115,7 +1126,8 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1115
1126
|
@pulumi.getter(name="processWhere")
|
1116
1127
|
def process_where(self) -> pulumi.Output[Optional[str]]:
|
1117
1128
|
"""
|
1118
|
-
Any filters applied to processes; for example:
|
1129
|
+
Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition
|
1130
|
+
type.
|
1119
1131
|
"""
|
1120
1132
|
return pulumi.get(self, "process_where")
|
1121
1133
|
|
@@ -1131,7 +1143,10 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1131
1143
|
@pulumi.getter
|
1132
1144
|
def select(self) -> pulumi.Output[Optional[str]]:
|
1133
1145
|
"""
|
1134
|
-
The attribute name to identify the metric being targeted; for example,
|
1146
|
+
The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or
|
1147
|
+
memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for
|
1148
|
+
example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the
|
1149
|
+
infra_metric condition type.
|
1135
1150
|
"""
|
1136
1151
|
return pulumi.get(self, "select")
|
1137
1152
|
|
@@ -1139,7 +1154,8 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1139
1154
|
@pulumi.getter
|
1140
1155
|
def type(self) -> pulumi.Output[str]:
|
1141
1156
|
"""
|
1142
|
-
The type of Infrastructure alert condition.
|
1157
|
+
The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and
|
1158
|
+
infra_host_not_reporting.
|
1143
1159
|
"""
|
1144
1160
|
return pulumi.get(self, "type")
|
1145
1161
|
|
@@ -1155,11 +1171,8 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1155
1171
|
@pulumi.getter(name="violationCloseTimer")
|
1156
1172
|
def violation_close_timer(self) -> pulumi.Output[Optional[int]]:
|
1157
1173
|
"""
|
1158
|
-
Determines how much time will pass
|
1159
|
-
|
1160
|
-
```
|
1161
|
-
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.
|
1162
|
-
```
|
1174
|
+
Determines how much time, in hours, will pass before an incident is automatically closed. Valid values are 1, 2, 4, 8,
|
1175
|
+
12, 24, 48, or 72
|
1163
1176
|
"""
|
1164
1177
|
return pulumi.get(self, "violation_close_timer")
|
1165
1178
|
|
@@ -1167,7 +1180,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1167
1180
|
@pulumi.getter
|
1168
1181
|
def warning(self) -> pulumi.Output[Optional['outputs.InfraAlertConditionWarning']]:
|
1169
1182
|
"""
|
1170
|
-
Identifies the threshold parameters for opening a warning alert incident.
|
1183
|
+
Identifies the threshold parameters for opening a warning alert incident.
|
1171
1184
|
"""
|
1172
1185
|
return pulumi.get(self, "warning")
|
1173
1186
|
|
@@ -1175,7 +1188,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1175
1188
|
@pulumi.getter
|
1176
1189
|
def where(self) -> pulumi.Output[Optional[str]]:
|
1177
1190
|
"""
|
1178
|
-
If applicable, this identifies any Infrastructure host filters used; for example:
|
1191
|
+
If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
|
1179
1192
|
"""
|
1180
1193
|
return pulumi.get(self, "where")
|
1181
1194
|
|