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