pulumi-newrelic 5.24.1__py3-none-any.whl → 5.25.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/_inputs.py +449 -43
- pulumi_newrelic/account_management.py +14 -14
- pulumi_newrelic/alert_channel.py +28 -28
- pulumi_newrelic/alert_condition.py +125 -84
- pulumi_newrelic/alert_muting_rule.py +21 -21
- pulumi_newrelic/alert_policy.py +27 -21
- pulumi_newrelic/entity_tags.py +7 -7
- pulumi_newrelic/get_alert_policy.py +9 -0
- pulumi_newrelic/get_service_level_alert_helper.py +18 -0
- pulumi_newrelic/infra_alert_condition.py +105 -126
- pulumi_newrelic/insights/event.py +13 -0
- pulumi_newrelic/notification_destination.py +14 -10
- pulumi_newrelic/nrql_drop_rule.py +28 -28
- pulumi_newrelic/one_dashboard.py +48 -42
- pulumi_newrelic/outputs.py +448 -43
- pulumi_newrelic/plugins/_inputs.py +8 -8
- pulumi_newrelic/plugins/outputs.py +8 -8
- pulumi_newrelic/plugins/workload.py +28 -28
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +79 -0
- pulumi_newrelic/synthetics/alert_condition.py +42 -14
- pulumi_newrelic/synthetics/get_secure_credential.py +8 -0
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +63 -49
- pulumi_newrelic/synthetics/secure_credential.py +14 -21
- {pulumi_newrelic-5.24.1.dist-info → pulumi_newrelic-5.25.0.dist-info}/METADATA +1 -1
- {pulumi_newrelic-5.24.1.dist-info → pulumi_newrelic-5.25.0.dist-info}/RECORD +28 -28
- {pulumi_newrelic-5.24.1.dist-info → pulumi_newrelic-5.25.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.24.1.dist-info → pulumi_newrelic-5.25.0.dist-info}/top_level.txt +0 -0
@@ -32,21 +32,26 @@ class AlertConditionArgs:
|
|
32
32
|
"""
|
33
33
|
The set of arguments for constructing a AlertCondition resource.
|
34
34
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
35
|
-
:param pulumi.Input[str] metric: The metric field accepts parameters based on the type set.
|
35
|
+
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
36
36
|
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
37
|
-
:param pulumi.Input[
|
38
|
-
|
39
|
-
:param pulumi.Input[str] condition_scope:
|
40
|
-
|
41
|
-
:param pulumi.Input[
|
42
|
-
:param pulumi.Input[str]
|
43
|
-
gc_cpu_time condition type.
|
44
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
|
37
|
+
:param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
|
38
|
+
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
39
|
+
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
40
|
+
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
41
|
+
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
42
|
+
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
45
43
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
46
44
|
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
47
|
-
:param pulumi.Input[str] user_defined_value_function: One of:
|
48
|
-
|
49
|
-
|
45
|
+
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
46
|
+
|
47
|
+
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
48
|
+
|
49
|
+
```
|
50
|
+
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.
|
51
|
+
```
|
52
|
+
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
53
|
+
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
54
|
+
* when `type` = `apm_jvm_metric`
|
50
55
|
"""
|
51
56
|
pulumi.set(__self__, "entities", entities)
|
52
57
|
pulumi.set(__self__, "metric", metric)
|
@@ -86,7 +91,7 @@ class AlertConditionArgs:
|
|
86
91
|
@pulumi.getter
|
87
92
|
def metric(self) -> pulumi.Input[str]:
|
88
93
|
"""
|
89
|
-
The metric field accepts parameters based on the type set.
|
94
|
+
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
90
95
|
"""
|
91
96
|
return pulumi.get(self, "metric")
|
92
97
|
|
@@ -109,6 +114,9 @@ class AlertConditionArgs:
|
|
109
114
|
@property
|
110
115
|
@pulumi.getter
|
111
116
|
def terms(self) -> pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]:
|
117
|
+
"""
|
118
|
+
A list of terms for this condition. See Terms below for details.
|
119
|
+
"""
|
112
120
|
return pulumi.get(self, "terms")
|
113
121
|
|
114
122
|
@terms.setter
|
@@ -119,8 +127,7 @@ class AlertConditionArgs:
|
|
119
127
|
@pulumi.getter
|
120
128
|
def type(self) -> pulumi.Input[str]:
|
121
129
|
"""
|
122
|
-
The type of condition. One of:
|
123
|
-
servers_metric).
|
130
|
+
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
124
131
|
"""
|
125
132
|
return pulumi.get(self, "type")
|
126
133
|
|
@@ -132,8 +139,7 @@ class AlertConditionArgs:
|
|
132
139
|
@pulumi.getter(name="conditionScope")
|
133
140
|
def condition_scope(self) -> Optional[pulumi.Input[str]]:
|
134
141
|
"""
|
135
|
-
|
136
|
-
instance setting allows your condition to trigger for specific app instances.
|
142
|
+
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
137
143
|
"""
|
138
144
|
return pulumi.get(self, "condition_scope")
|
139
145
|
|
@@ -145,7 +151,7 @@ class AlertConditionArgs:
|
|
145
151
|
@pulumi.getter
|
146
152
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
147
153
|
"""
|
148
|
-
Whether the condition is enabled.
|
154
|
+
Whether the condition is enabled or not. Defaults to true.
|
149
155
|
"""
|
150
156
|
return pulumi.get(self, "enabled")
|
151
157
|
|
@@ -157,8 +163,7 @@ class AlertConditionArgs:
|
|
157
163
|
@pulumi.getter(name="gcMetric")
|
158
164
|
def gc_metric(self) -> Optional[pulumi.Input[str]]:
|
159
165
|
"""
|
160
|
-
A valid Garbage Collection metric e.g. GC/G1 Young Generation
|
161
|
-
gc_cpu_time condition type.
|
166
|
+
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
162
167
|
"""
|
163
168
|
return pulumi.get(self, "gc_metric")
|
164
169
|
|
@@ -170,7 +175,7 @@ class AlertConditionArgs:
|
|
170
175
|
@pulumi.getter
|
171
176
|
def name(self) -> Optional[pulumi.Input[str]]:
|
172
177
|
"""
|
173
|
-
The title of the condition. Must be between 1 and
|
178
|
+
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
174
179
|
"""
|
175
180
|
return pulumi.get(self, "name")
|
176
181
|
|
@@ -206,7 +211,13 @@ class AlertConditionArgs:
|
|
206
211
|
@pulumi.getter(name="userDefinedValueFunction")
|
207
212
|
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
|
208
213
|
"""
|
209
|
-
One of:
|
214
|
+
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
215
|
+
|
216
|
+
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
217
|
+
|
218
|
+
```
|
219
|
+
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.
|
220
|
+
```
|
210
221
|
"""
|
211
222
|
return pulumi.get(self, "user_defined_value_function")
|
212
223
|
|
@@ -218,8 +229,9 @@ class AlertConditionArgs:
|
|
218
229
|
@pulumi.getter(name="violationCloseTimer")
|
219
230
|
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
220
231
|
"""
|
221
|
-
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
|
222
|
-
|
232
|
+
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
233
|
+
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
234
|
+
* when `type` = `apm_jvm_metric`
|
223
235
|
"""
|
224
236
|
return pulumi.get(self, "violation_close_timer")
|
225
237
|
|
@@ -247,23 +259,28 @@ class _AlertConditionState:
|
|
247
259
|
violation_close_timer: Optional[pulumi.Input[int]] = None):
|
248
260
|
"""
|
249
261
|
Input properties used for looking up and filtering AlertCondition resources.
|
250
|
-
:param pulumi.Input[str] condition_scope:
|
251
|
-
|
252
|
-
:param pulumi.Input[bool] enabled: Whether the condition is enabled.
|
262
|
+
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
263
|
+
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
253
264
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
254
265
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
255
|
-
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. GC/G1 Young Generation
|
256
|
-
|
257
|
-
:param pulumi.Input[str]
|
258
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
|
266
|
+
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
267
|
+
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
268
|
+
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
259
269
|
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
260
270
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
261
|
-
:param pulumi.Input[
|
262
|
-
|
271
|
+
:param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
|
272
|
+
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
263
273
|
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
264
|
-
:param pulumi.Input[str] user_defined_value_function: One of:
|
265
|
-
|
266
|
-
|
274
|
+
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
275
|
+
|
276
|
+
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
277
|
+
|
278
|
+
```
|
279
|
+
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.
|
280
|
+
```
|
281
|
+
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
282
|
+
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
283
|
+
* when `type` = `apm_jvm_metric`
|
267
284
|
"""
|
268
285
|
if condition_scope is not None:
|
269
286
|
pulumi.set(__self__, "condition_scope", condition_scope)
|
@@ -298,8 +315,7 @@ class _AlertConditionState:
|
|
298
315
|
@pulumi.getter(name="conditionScope")
|
299
316
|
def condition_scope(self) -> Optional[pulumi.Input[str]]:
|
300
317
|
"""
|
301
|
-
|
302
|
-
instance setting allows your condition to trigger for specific app instances.
|
318
|
+
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
303
319
|
"""
|
304
320
|
return pulumi.get(self, "condition_scope")
|
305
321
|
|
@@ -311,7 +327,7 @@ class _AlertConditionState:
|
|
311
327
|
@pulumi.getter
|
312
328
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
313
329
|
"""
|
314
|
-
Whether the condition is enabled.
|
330
|
+
Whether the condition is enabled or not. Defaults to true.
|
315
331
|
"""
|
316
332
|
return pulumi.get(self, "enabled")
|
317
333
|
|
@@ -347,8 +363,7 @@ class _AlertConditionState:
|
|
347
363
|
@pulumi.getter(name="gcMetric")
|
348
364
|
def gc_metric(self) -> Optional[pulumi.Input[str]]:
|
349
365
|
"""
|
350
|
-
A valid Garbage Collection metric e.g. GC/G1 Young Generation
|
351
|
-
gc_cpu_time condition type.
|
366
|
+
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
352
367
|
"""
|
353
368
|
return pulumi.get(self, "gc_metric")
|
354
369
|
|
@@ -360,7 +375,7 @@ class _AlertConditionState:
|
|
360
375
|
@pulumi.getter
|
361
376
|
def metric(self) -> Optional[pulumi.Input[str]]:
|
362
377
|
"""
|
363
|
-
The metric field accepts parameters based on the type set.
|
378
|
+
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
364
379
|
"""
|
365
380
|
return pulumi.get(self, "metric")
|
366
381
|
|
@@ -372,7 +387,7 @@ class _AlertConditionState:
|
|
372
387
|
@pulumi.getter
|
373
388
|
def name(self) -> Optional[pulumi.Input[str]]:
|
374
389
|
"""
|
375
|
-
The title of the condition. Must be between 1 and
|
390
|
+
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
376
391
|
"""
|
377
392
|
return pulumi.get(self, "name")
|
378
393
|
|
@@ -407,6 +422,9 @@ class _AlertConditionState:
|
|
407
422
|
@property
|
408
423
|
@pulumi.getter
|
409
424
|
def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]]:
|
425
|
+
"""
|
426
|
+
A list of terms for this condition. See Terms below for details.
|
427
|
+
"""
|
410
428
|
return pulumi.get(self, "terms")
|
411
429
|
|
412
430
|
@terms.setter
|
@@ -417,8 +435,7 @@ class _AlertConditionState:
|
|
417
435
|
@pulumi.getter
|
418
436
|
def type(self) -> Optional[pulumi.Input[str]]:
|
419
437
|
"""
|
420
|
-
The type of condition. One of:
|
421
|
-
servers_metric).
|
438
|
+
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
422
439
|
"""
|
423
440
|
return pulumi.get(self, "type")
|
424
441
|
|
@@ -442,7 +459,13 @@ class _AlertConditionState:
|
|
442
459
|
@pulumi.getter(name="userDefinedValueFunction")
|
443
460
|
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
|
444
461
|
"""
|
445
|
-
One of:
|
462
|
+
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
463
|
+
|
464
|
+
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
465
|
+
|
466
|
+
```
|
467
|
+
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.
|
468
|
+
```
|
446
469
|
"""
|
447
470
|
return pulumi.get(self, "user_defined_value_function")
|
448
471
|
|
@@ -454,8 +477,9 @@ class _AlertConditionState:
|
|
454
477
|
@pulumi.getter(name="violationCloseTimer")
|
455
478
|
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
456
479
|
"""
|
457
|
-
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
|
458
|
-
|
480
|
+
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
481
|
+
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
482
|
+
* when `type` = `apm_jvm_metric`
|
459
483
|
"""
|
460
484
|
return pulumi.get(self, "violation_close_timer")
|
461
485
|
|
@@ -577,22 +601,27 @@ class AlertCondition(pulumi.CustomResource):
|
|
577
601
|
|
578
602
|
:param str resource_name: The name of the resource.
|
579
603
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
580
|
-
:param pulumi.Input[str] condition_scope:
|
581
|
-
|
582
|
-
:param pulumi.Input[bool] enabled: Whether the condition is enabled.
|
604
|
+
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
605
|
+
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
583
606
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
584
|
-
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. GC/G1 Young Generation
|
585
|
-
|
586
|
-
:param pulumi.Input[str]
|
587
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
|
607
|
+
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
608
|
+
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
609
|
+
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
588
610
|
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
589
611
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
590
|
-
:param pulumi.Input[
|
591
|
-
|
612
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
|
613
|
+
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
592
614
|
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
593
|
-
:param pulumi.Input[str] user_defined_value_function: One of:
|
594
|
-
|
595
|
-
|
615
|
+
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
616
|
+
|
617
|
+
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
618
|
+
|
619
|
+
```
|
620
|
+
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.
|
621
|
+
```
|
622
|
+
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
623
|
+
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
624
|
+
* when `type` = `apm_jvm_metric`
|
596
625
|
"""
|
597
626
|
...
|
598
627
|
@overload
|
@@ -784,23 +813,28 @@ class AlertCondition(pulumi.CustomResource):
|
|
784
813
|
:param str resource_name: The unique name of the resulting resource.
|
785
814
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
786
815
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
787
|
-
:param pulumi.Input[str] condition_scope:
|
788
|
-
|
789
|
-
:param pulumi.Input[bool] enabled: Whether the condition is enabled.
|
816
|
+
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
817
|
+
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
790
818
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
791
819
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
792
|
-
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. GC/G1 Young Generation
|
793
|
-
|
794
|
-
:param pulumi.Input[str]
|
795
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
|
820
|
+
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
821
|
+
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
822
|
+
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
796
823
|
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
797
824
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
798
|
-
:param pulumi.Input[
|
799
|
-
|
825
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
|
826
|
+
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
800
827
|
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
801
|
-
:param pulumi.Input[str] user_defined_value_function: One of:
|
802
|
-
|
803
|
-
|
828
|
+
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
829
|
+
|
830
|
+
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
831
|
+
|
832
|
+
```
|
833
|
+
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.
|
834
|
+
```
|
835
|
+
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
836
|
+
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
837
|
+
* when `type` = `apm_jvm_metric`
|
804
838
|
"""
|
805
839
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
806
840
|
|
@@ -826,8 +860,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
826
860
|
@pulumi.getter(name="conditionScope")
|
827
861
|
def condition_scope(self) -> pulumi.Output[Optional[str]]:
|
828
862
|
"""
|
829
|
-
|
830
|
-
instance setting allows your condition to trigger for specific app instances.
|
863
|
+
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
831
864
|
"""
|
832
865
|
return pulumi.get(self, "condition_scope")
|
833
866
|
|
@@ -835,7 +868,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
835
868
|
@pulumi.getter
|
836
869
|
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
837
870
|
"""
|
838
|
-
Whether the condition is enabled.
|
871
|
+
Whether the condition is enabled or not. Defaults to true.
|
839
872
|
"""
|
840
873
|
return pulumi.get(self, "enabled")
|
841
874
|
|
@@ -859,8 +892,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
859
892
|
@pulumi.getter(name="gcMetric")
|
860
893
|
def gc_metric(self) -> pulumi.Output[Optional[str]]:
|
861
894
|
"""
|
862
|
-
A valid Garbage Collection metric e.g. GC/G1 Young Generation
|
863
|
-
gc_cpu_time condition type.
|
895
|
+
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
864
896
|
"""
|
865
897
|
return pulumi.get(self, "gc_metric")
|
866
898
|
|
@@ -868,7 +900,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
868
900
|
@pulumi.getter
|
869
901
|
def metric(self) -> pulumi.Output[str]:
|
870
902
|
"""
|
871
|
-
The metric field accepts parameters based on the type set.
|
903
|
+
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
872
904
|
"""
|
873
905
|
return pulumi.get(self, "metric")
|
874
906
|
|
@@ -876,7 +908,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
876
908
|
@pulumi.getter
|
877
909
|
def name(self) -> pulumi.Output[str]:
|
878
910
|
"""
|
879
|
-
The title of the condition. Must be between 1 and
|
911
|
+
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
880
912
|
"""
|
881
913
|
return pulumi.get(self, "name")
|
882
914
|
|
@@ -899,14 +931,16 @@ class AlertCondition(pulumi.CustomResource):
|
|
899
931
|
@property
|
900
932
|
@pulumi.getter
|
901
933
|
def terms(self) -> pulumi.Output[Sequence['outputs.AlertConditionTerm']]:
|
934
|
+
"""
|
935
|
+
A list of terms for this condition. See Terms below for details.
|
936
|
+
"""
|
902
937
|
return pulumi.get(self, "terms")
|
903
938
|
|
904
939
|
@property
|
905
940
|
@pulumi.getter
|
906
941
|
def type(self) -> pulumi.Output[str]:
|
907
942
|
"""
|
908
|
-
The type of condition. One of:
|
909
|
-
servers_metric).
|
943
|
+
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
910
944
|
"""
|
911
945
|
return pulumi.get(self, "type")
|
912
946
|
|
@@ -922,7 +956,13 @@ class AlertCondition(pulumi.CustomResource):
|
|
922
956
|
@pulumi.getter(name="userDefinedValueFunction")
|
923
957
|
def user_defined_value_function(self) -> pulumi.Output[Optional[str]]:
|
924
958
|
"""
|
925
|
-
One of:
|
959
|
+
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
960
|
+
|
961
|
+
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
962
|
+
|
963
|
+
```
|
964
|
+
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.
|
965
|
+
```
|
926
966
|
"""
|
927
967
|
return pulumi.get(self, "user_defined_value_function")
|
928
968
|
|
@@ -930,8 +970,9 @@ class AlertCondition(pulumi.CustomResource):
|
|
930
970
|
@pulumi.getter(name="violationCloseTimer")
|
931
971
|
def violation_close_timer(self) -> pulumi.Output[Optional[int]]:
|
932
972
|
"""
|
933
|
-
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
|
934
|
-
|
973
|
+
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
974
|
+
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
975
|
+
* when `type` = `apm_jvm_metric`
|
935
976
|
"""
|
936
977
|
return pulumi.get(self, "violation_close_timer")
|
937
978
|
|
@@ -24,12 +24,12 @@ class AlertMutingRuleArgs:
|
|
24
24
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
25
25
|
"""
|
26
26
|
The set of arguments for constructing a AlertMutingRule resource.
|
27
|
-
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target.
|
27
|
+
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
28
28
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
29
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule
|
29
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
30
30
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
31
31
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
32
|
-
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule:
|
32
|
+
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
33
33
|
"""
|
34
34
|
pulumi.set(__self__, "condition", condition)
|
35
35
|
pulumi.set(__self__, "enabled", enabled)
|
@@ -46,7 +46,7 @@ class AlertMutingRuleArgs:
|
|
46
46
|
@pulumi.getter
|
47
47
|
def condition(self) -> pulumi.Input['AlertMutingRuleConditionArgs']:
|
48
48
|
"""
|
49
|
-
The condition that defines which incidents to target.
|
49
|
+
The condition that defines which incidents to target. See Nested condition blocks below for details.
|
50
50
|
"""
|
51
51
|
return pulumi.get(self, "condition")
|
52
52
|
|
@@ -70,7 +70,7 @@ class AlertMutingRuleArgs:
|
|
70
70
|
@pulumi.getter(name="accountId")
|
71
71
|
def account_id(self) -> Optional[pulumi.Input[str]]:
|
72
72
|
"""
|
73
|
-
The account id of the MutingRule
|
73
|
+
The account id of the MutingRule.
|
74
74
|
"""
|
75
75
|
return pulumi.get(self, "account_id")
|
76
76
|
|
@@ -106,7 +106,7 @@ class AlertMutingRuleArgs:
|
|
106
106
|
@pulumi.getter
|
107
107
|
def schedule(self) -> Optional[pulumi.Input['AlertMutingRuleScheduleArgs']]:
|
108
108
|
"""
|
109
|
-
|
109
|
+
Specify a schedule for enabling the MutingRule. See Schedule below for details
|
110
110
|
"""
|
111
111
|
return pulumi.get(self, "schedule")
|
112
112
|
|
@@ -126,12 +126,12 @@ class _AlertMutingRuleState:
|
|
126
126
|
schedule: Optional[pulumi.Input['AlertMutingRuleScheduleArgs']] = None):
|
127
127
|
"""
|
128
128
|
Input properties used for looking up and filtering AlertMutingRule resources.
|
129
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule
|
130
|
-
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target.
|
129
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
130
|
+
:param pulumi.Input['AlertMutingRuleConditionArgs'] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
131
131
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
132
132
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
133
133
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
134
|
-
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule:
|
134
|
+
:param pulumi.Input['AlertMutingRuleScheduleArgs'] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
135
135
|
"""
|
136
136
|
if account_id is not None:
|
137
137
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -150,7 +150,7 @@ class _AlertMutingRuleState:
|
|
150
150
|
@pulumi.getter(name="accountId")
|
151
151
|
def account_id(self) -> Optional[pulumi.Input[str]]:
|
152
152
|
"""
|
153
|
-
The account id of the MutingRule
|
153
|
+
The account id of the MutingRule.
|
154
154
|
"""
|
155
155
|
return pulumi.get(self, "account_id")
|
156
156
|
|
@@ -162,7 +162,7 @@ class _AlertMutingRuleState:
|
|
162
162
|
@pulumi.getter
|
163
163
|
def condition(self) -> Optional[pulumi.Input['AlertMutingRuleConditionArgs']]:
|
164
164
|
"""
|
165
|
-
The condition that defines which incidents to target.
|
165
|
+
The condition that defines which incidents to target. See Nested condition blocks below for details.
|
166
166
|
"""
|
167
167
|
return pulumi.get(self, "condition")
|
168
168
|
|
@@ -210,7 +210,7 @@ class _AlertMutingRuleState:
|
|
210
210
|
@pulumi.getter
|
211
211
|
def schedule(self) -> Optional[pulumi.Input['AlertMutingRuleScheduleArgs']]:
|
212
212
|
"""
|
213
|
-
|
213
|
+
Specify a schedule for enabling the MutingRule. See Schedule below for details
|
214
214
|
"""
|
215
215
|
return pulumi.get(self, "schedule")
|
216
216
|
|
@@ -281,12 +281,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
281
281
|
|
282
282
|
:param str resource_name: The name of the resource.
|
283
283
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
284
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule
|
285
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
284
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
285
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
286
286
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
287
287
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
288
288
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
289
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule:
|
289
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
290
290
|
"""
|
291
291
|
...
|
292
292
|
@overload
|
@@ -405,12 +405,12 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
405
405
|
:param str resource_name: The unique name of the resulting resource.
|
406
406
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
407
407
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
408
|
-
:param pulumi.Input[str] account_id: The account id of the MutingRule
|
409
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target.
|
408
|
+
:param pulumi.Input[str] account_id: The account id of the MutingRule.
|
409
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
|
410
410
|
:param pulumi.Input[str] description: The description of the MutingRule.
|
411
411
|
:param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
|
412
412
|
:param pulumi.Input[str] name: The name of the MutingRule.
|
413
|
-
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule:
|
413
|
+
:param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
|
414
414
|
"""
|
415
415
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
416
416
|
|
@@ -428,7 +428,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
428
428
|
@pulumi.getter(name="accountId")
|
429
429
|
def account_id(self) -> pulumi.Output[str]:
|
430
430
|
"""
|
431
|
-
The account id of the MutingRule
|
431
|
+
The account id of the MutingRule.
|
432
432
|
"""
|
433
433
|
return pulumi.get(self, "account_id")
|
434
434
|
|
@@ -436,7 +436,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
436
436
|
@pulumi.getter
|
437
437
|
def condition(self) -> pulumi.Output['outputs.AlertMutingRuleCondition']:
|
438
438
|
"""
|
439
|
-
The condition that defines which incidents to target.
|
439
|
+
The condition that defines which incidents to target. See Nested condition blocks below for details.
|
440
440
|
"""
|
441
441
|
return pulumi.get(self, "condition")
|
442
442
|
|
@@ -468,7 +468,7 @@ class AlertMutingRule(pulumi.CustomResource):
|
|
468
468
|
@pulumi.getter
|
469
469
|
def schedule(self) -> pulumi.Output[Optional['outputs.AlertMutingRuleSchedule']]:
|
470
470
|
"""
|
471
|
-
|
471
|
+
Specify a schedule for enabling the MutingRule. See Schedule below for details
|
472
472
|
"""
|
473
473
|
return pulumi.get(self, "schedule")
|
474
474
|
|