pulumi-newrelic 5.28.0a1723009616__py3-none-any.whl → 5.29.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 +18 -18
- pulumi_newrelic/alert_channel.py +69 -69
- pulumi_newrelic/alert_condition.py +49 -49
- pulumi_newrelic/alert_muting_rule.py +54 -54
- pulumi_newrelic/alert_policy.py +16 -16
- pulumi_newrelic/alert_policy_channel.py +16 -16
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +100 -100
- pulumi_newrelic/cloud/aws_integrations.py +798 -798
- pulumi_newrelic/cloud/azure_integrations.py +424 -424
- pulumi_newrelic/cloud/gcp_integrations.py +288 -288
- pulumi_newrelic/entity_tags.py +21 -21
- pulumi_newrelic/get_application.py +14 -14
- pulumi_newrelic/get_entity.py +4 -4
- pulumi_newrelic/get_key_transaction.py +14 -14
- pulumi_newrelic/get_notification_destination.py +5 -5
- pulumi_newrelic/get_obfuscation_expression.py +10 -10
- pulumi_newrelic/get_service_level_alert_helper.py +76 -76
- pulumi_newrelic/infra_alert_condition.py +90 -90
- pulumi_newrelic/insights/event.py +43 -43
- pulumi_newrelic/monitor_downtime.py +52 -52
- pulumi_newrelic/notification_channel.py +218 -194
- pulumi_newrelic/notification_destination.py +46 -39
- pulumi_newrelic/nrql_alert_condition.py +262 -164
- pulumi_newrelic/obfuscation_rule.py +15 -15
- pulumi_newrelic/one_dashboard.py +10 -10
- pulumi_newrelic/one_dashboard_raw.py +75 -75
- pulumi_newrelic/outputs.py +14 -14
- pulumi_newrelic/plugins/workload.py +101 -101
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +164 -164
- pulumi_newrelic/synthetics/alert_condition.py +32 -32
- pulumi_newrelic/synthetics/broken_links_monitor.py +21 -21
- pulumi_newrelic/synthetics/cert_check_monitor.py +21 -21
- pulumi_newrelic/synthetics/get_private_location.py +6 -6
- pulumi_newrelic/synthetics/monitor.py +74 -74
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +66 -66
- pulumi_newrelic/synthetics/script_monitor.py +58 -58
- pulumi_newrelic/synthetics/step_monitor.py +59 -59
- pulumi_newrelic/workflow.py +155 -155
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/METADATA +1 -1
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/RECORD +43 -43
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.28.0a1723009616.dist-info → pulumi_newrelic-5.29.0.dist-info}/top_level.txt +0 -0
@@ -32,11 +32,13 @@ class NrqlAlertConditionArgs:
|
|
32
32
|
expiration_duration: Optional[pulumi.Input[int]] = None,
|
33
33
|
fill_option: Optional[pulumi.Input[str]] = None,
|
34
34
|
fill_value: Optional[pulumi.Input[float]] = None,
|
35
|
+
ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
|
35
36
|
name: Optional[pulumi.Input[str]] = None,
|
36
37
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
37
38
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
38
39
|
slide_by: Optional[pulumi.Input[int]] = None,
|
39
40
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]] = None,
|
41
|
+
title_template: Optional[pulumi.Input[str]] = None,
|
40
42
|
type: Optional[pulumi.Input[str]] = None,
|
41
43
|
violation_time_limit: Optional[pulumi.Input[str]] = None,
|
42
44
|
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
@@ -59,11 +61,13 @@ class NrqlAlertConditionArgs:
|
|
59
61
|
:param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
|
60
62
|
:param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
|
61
63
|
:param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
|
64
|
+
:param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
|
62
65
|
:param pulumi.Input[str] name: The title of the condition.
|
63
66
|
:param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
|
64
67
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
65
68
|
:param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
|
66
69
|
:param pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
70
|
+
:param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
|
67
71
|
:param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
|
68
72
|
:param pulumi.Input[str] violation_time_limit: **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
|
69
73
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
@@ -101,6 +105,8 @@ class NrqlAlertConditionArgs:
|
|
101
105
|
pulumi.set(__self__, "fill_option", fill_option)
|
102
106
|
if fill_value is not None:
|
103
107
|
pulumi.set(__self__, "fill_value", fill_value)
|
108
|
+
if ignore_on_expected_termination is not None:
|
109
|
+
pulumi.set(__self__, "ignore_on_expected_termination", ignore_on_expected_termination)
|
104
110
|
if name is not None:
|
105
111
|
pulumi.set(__self__, "name", name)
|
106
112
|
if open_violation_on_expiration is not None:
|
@@ -114,6 +120,8 @@ class NrqlAlertConditionArgs:
|
|
114
120
|
pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
|
115
121
|
if terms is not None:
|
116
122
|
pulumi.set(__self__, "terms", terms)
|
123
|
+
if title_template is not None:
|
124
|
+
pulumi.set(__self__, "title_template", title_template)
|
117
125
|
if type is not None:
|
118
126
|
pulumi.set(__self__, "type", type)
|
119
127
|
if violation_time_limit is not None:
|
@@ -318,6 +326,18 @@ class NrqlAlertConditionArgs:
|
|
318
326
|
def fill_value(self, value: Optional[pulumi.Input[float]]):
|
319
327
|
pulumi.set(self, "fill_value", value)
|
320
328
|
|
329
|
+
@property
|
330
|
+
@pulumi.getter(name="ignoreOnExpectedTermination")
|
331
|
+
def ignore_on_expected_termination(self) -> Optional[pulumi.Input[bool]]:
|
332
|
+
"""
|
333
|
+
Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
|
334
|
+
"""
|
335
|
+
return pulumi.get(self, "ignore_on_expected_termination")
|
336
|
+
|
337
|
+
@ignore_on_expected_termination.setter
|
338
|
+
def ignore_on_expected_termination(self, value: Optional[pulumi.Input[bool]]):
|
339
|
+
pulumi.set(self, "ignore_on_expected_termination", value)
|
340
|
+
|
321
341
|
@property
|
322
342
|
@pulumi.getter
|
323
343
|
def name(self) -> Optional[pulumi.Input[str]]:
|
@@ -379,6 +399,18 @@ class NrqlAlertConditionArgs:
|
|
379
399
|
def terms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]):
|
380
400
|
pulumi.set(self, "terms", value)
|
381
401
|
|
402
|
+
@property
|
403
|
+
@pulumi.getter(name="titleTemplate")
|
404
|
+
def title_template(self) -> Optional[pulumi.Input[str]]:
|
405
|
+
"""
|
406
|
+
The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
|
407
|
+
"""
|
408
|
+
return pulumi.get(self, "title_template")
|
409
|
+
|
410
|
+
@title_template.setter
|
411
|
+
def title_template(self, value: Optional[pulumi.Input[str]]):
|
412
|
+
pulumi.set(self, "title_template", value)
|
413
|
+
|
382
414
|
@property
|
383
415
|
@pulumi.getter
|
384
416
|
def type(self) -> Optional[pulumi.Input[str]]:
|
@@ -449,6 +481,7 @@ class _NrqlAlertConditionState:
|
|
449
481
|
expiration_duration: Optional[pulumi.Input[int]] = None,
|
450
482
|
fill_option: Optional[pulumi.Input[str]] = None,
|
451
483
|
fill_value: Optional[pulumi.Input[float]] = None,
|
484
|
+
ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
|
452
485
|
name: Optional[pulumi.Input[str]] = None,
|
453
486
|
nrql: Optional[pulumi.Input['NrqlAlertConditionNrqlArgs']] = None,
|
454
487
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
@@ -456,6 +489,7 @@ class _NrqlAlertConditionState:
|
|
456
489
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
457
490
|
slide_by: Optional[pulumi.Input[int]] = None,
|
458
491
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]] = None,
|
492
|
+
title_template: Optional[pulumi.Input[str]] = None,
|
459
493
|
type: Optional[pulumi.Input[str]] = None,
|
460
494
|
violation_time_limit: Optional[pulumi.Input[str]] = None,
|
461
495
|
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
@@ -477,6 +511,7 @@ class _NrqlAlertConditionState:
|
|
477
511
|
:param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
|
478
512
|
:param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
|
479
513
|
:param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
|
514
|
+
:param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
|
480
515
|
:param pulumi.Input[str] name: The title of the condition.
|
481
516
|
:param pulumi.Input['NrqlAlertConditionNrqlArgs'] nrql: A NRQL query. See NRQL below for details.
|
482
517
|
:param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
|
@@ -484,6 +519,7 @@ class _NrqlAlertConditionState:
|
|
484
519
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
485
520
|
:param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
|
486
521
|
:param pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
522
|
+
:param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
|
487
523
|
:param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
|
488
524
|
:param pulumi.Input[str] violation_time_limit: **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
|
489
525
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
@@ -521,6 +557,8 @@ class _NrqlAlertConditionState:
|
|
521
557
|
pulumi.set(__self__, "fill_option", fill_option)
|
522
558
|
if fill_value is not None:
|
523
559
|
pulumi.set(__self__, "fill_value", fill_value)
|
560
|
+
if ignore_on_expected_termination is not None:
|
561
|
+
pulumi.set(__self__, "ignore_on_expected_termination", ignore_on_expected_termination)
|
524
562
|
if name is not None:
|
525
563
|
pulumi.set(__self__, "name", name)
|
526
564
|
if nrql is not None:
|
@@ -538,6 +576,8 @@ class _NrqlAlertConditionState:
|
|
538
576
|
pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
|
539
577
|
if terms is not None:
|
540
578
|
pulumi.set(__self__, "terms", terms)
|
579
|
+
if title_template is not None:
|
580
|
+
pulumi.set(__self__, "title_template", title_template)
|
541
581
|
if type is not None:
|
542
582
|
pulumi.set(__self__, "type", type)
|
543
583
|
if violation_time_limit is not None:
|
@@ -730,6 +770,18 @@ class _NrqlAlertConditionState:
|
|
730
770
|
def fill_value(self, value: Optional[pulumi.Input[float]]):
|
731
771
|
pulumi.set(self, "fill_value", value)
|
732
772
|
|
773
|
+
@property
|
774
|
+
@pulumi.getter(name="ignoreOnExpectedTermination")
|
775
|
+
def ignore_on_expected_termination(self) -> Optional[pulumi.Input[bool]]:
|
776
|
+
"""
|
777
|
+
Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
|
778
|
+
"""
|
779
|
+
return pulumi.get(self, "ignore_on_expected_termination")
|
780
|
+
|
781
|
+
@ignore_on_expected_termination.setter
|
782
|
+
def ignore_on_expected_termination(self, value: Optional[pulumi.Input[bool]]):
|
783
|
+
pulumi.set(self, "ignore_on_expected_termination", value)
|
784
|
+
|
733
785
|
@property
|
734
786
|
@pulumi.getter
|
735
787
|
def name(self) -> Optional[pulumi.Input[str]]:
|
@@ -815,6 +867,18 @@ class _NrqlAlertConditionState:
|
|
815
867
|
def terms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]):
|
816
868
|
pulumi.set(self, "terms", value)
|
817
869
|
|
870
|
+
@property
|
871
|
+
@pulumi.getter(name="titleTemplate")
|
872
|
+
def title_template(self) -> Optional[pulumi.Input[str]]:
|
873
|
+
"""
|
874
|
+
The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
|
875
|
+
"""
|
876
|
+
return pulumi.get(self, "title_template")
|
877
|
+
|
878
|
+
@title_template.setter
|
879
|
+
def title_template(self, value: Optional[pulumi.Input[str]]):
|
880
|
+
pulumi.set(self, "title_template", value)
|
881
|
+
|
818
882
|
@property
|
819
883
|
@pulumi.getter
|
820
884
|
def type(self) -> Optional[pulumi.Input[str]]:
|
@@ -879,24 +943,26 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
879
943
|
aggregation_window: Optional[pulumi.Input[int]] = None,
|
880
944
|
baseline_direction: Optional[pulumi.Input[str]] = None,
|
881
945
|
close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
|
882
|
-
critical: Optional[pulumi.Input[
|
946
|
+
critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
|
883
947
|
description: Optional[pulumi.Input[str]] = None,
|
884
948
|
enabled: Optional[pulumi.Input[bool]] = None,
|
885
949
|
evaluation_delay: Optional[pulumi.Input[int]] = None,
|
886
950
|
expiration_duration: Optional[pulumi.Input[int]] = None,
|
887
951
|
fill_option: Optional[pulumi.Input[str]] = None,
|
888
952
|
fill_value: Optional[pulumi.Input[float]] = None,
|
953
|
+
ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
|
889
954
|
name: Optional[pulumi.Input[str]] = None,
|
890
|
-
nrql: Optional[pulumi.Input[
|
955
|
+
nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
|
891
956
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
892
957
|
policy_id: Optional[pulumi.Input[str]] = None,
|
893
958
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
894
959
|
slide_by: Optional[pulumi.Input[int]] = None,
|
895
|
-
terms: Optional[pulumi.Input[Sequence[pulumi.Input[
|
960
|
+
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
|
961
|
+
title_template: Optional[pulumi.Input[str]] = None,
|
896
962
|
type: Optional[pulumi.Input[str]] = None,
|
897
963
|
violation_time_limit: Optional[pulumi.Input[str]] = None,
|
898
964
|
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
899
|
-
warning: Optional[pulumi.Input[
|
965
|
+
warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None,
|
900
966
|
__props__=None):
|
901
967
|
"""
|
902
968
|
Use this resource to create and manage NRQL alert conditions in New Relic.
|
@@ -916,6 +982,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
916
982
|
type="static",
|
917
983
|
name="foo",
|
918
984
|
description="Alert when transactions are taking too long",
|
985
|
+
title_template="Issue in environment: {{ json accumulations.tag.environment }}",
|
919
986
|
runbook_url="https://www.example.com",
|
920
987
|
enabled=True,
|
921
988
|
violation_time_limit_seconds=3600,
|
@@ -927,22 +994,23 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
927
994
|
expiration_duration=120,
|
928
995
|
open_violation_on_expiration=True,
|
929
996
|
close_violations_on_expiration=True,
|
997
|
+
ignore_on_expected_termination=True,
|
930
998
|
slide_by=30,
|
931
|
-
nrql=
|
932
|
-
query
|
933
|
-
|
934
|
-
critical=
|
935
|
-
operator
|
936
|
-
threshold
|
937
|
-
threshold_duration
|
938
|
-
threshold_occurrences
|
939
|
-
|
940
|
-
warning=
|
941
|
-
operator
|
942
|
-
threshold
|
943
|
-
threshold_duration
|
944
|
-
threshold_occurrences
|
945
|
-
)
|
999
|
+
nrql={
|
1000
|
+
"query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
|
1001
|
+
},
|
1002
|
+
critical={
|
1003
|
+
"operator": "above",
|
1004
|
+
"threshold": 5.5,
|
1005
|
+
"threshold_duration": 300,
|
1006
|
+
"threshold_occurrences": "ALL",
|
1007
|
+
},
|
1008
|
+
warning={
|
1009
|
+
"operator": "above",
|
1010
|
+
"threshold": 3.5,
|
1011
|
+
"threshold_duration": 600,
|
1012
|
+
"threshold_occurrences": "ALL",
|
1013
|
+
})
|
946
1014
|
```
|
947
1015
|
|
948
1016
|
## NRQL
|
@@ -1007,21 +1075,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1007
1075
|
open_violation_on_expiration=True,
|
1008
1076
|
close_violations_on_expiration=True,
|
1009
1077
|
slide_by=30,
|
1010
|
-
nrql=
|
1011
|
-
query
|
1012
|
-
|
1013
|
-
critical=
|
1014
|
-
operator
|
1015
|
-
threshold
|
1016
|
-
threshold_duration
|
1017
|
-
threshold_occurrences
|
1018
|
-
|
1019
|
-
warning=
|
1020
|
-
operator
|
1021
|
-
threshold
|
1022
|
-
threshold_duration
|
1023
|
-
threshold_occurrences
|
1024
|
-
)
|
1078
|
+
nrql={
|
1079
|
+
"query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
|
1080
|
+
},
|
1081
|
+
critical={
|
1082
|
+
"operator": "above",
|
1083
|
+
"threshold": 5.5,
|
1084
|
+
"threshold_duration": 300,
|
1085
|
+
"threshold_occurrences": "ALL",
|
1086
|
+
},
|
1087
|
+
warning={
|
1088
|
+
"operator": "above",
|
1089
|
+
"threshold": 3.5,
|
1090
|
+
"threshold_duration": 600,
|
1091
|
+
"threshold_occurrences": "ALL",
|
1092
|
+
})
|
1025
1093
|
```
|
1026
1094
|
|
1027
1095
|
## Tags
|
@@ -1051,35 +1119,35 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1051
1119
|
open_violation_on_expiration=True,
|
1052
1120
|
close_violations_on_expiration=True,
|
1053
1121
|
slide_by=30,
|
1054
|
-
nrql=
|
1055
|
-
query
|
1056
|
-
|
1057
|
-
critical=
|
1058
|
-
operator
|
1059
|
-
threshold
|
1060
|
-
threshold_duration
|
1061
|
-
threshold_occurrences
|
1062
|
-
|
1063
|
-
warning=
|
1064
|
-
operator
|
1065
|
-
threshold
|
1066
|
-
threshold_duration
|
1067
|
-
threshold_occurrences
|
1068
|
-
)
|
1122
|
+
nrql={
|
1123
|
+
"query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
|
1124
|
+
},
|
1125
|
+
critical={
|
1126
|
+
"operator": "above",
|
1127
|
+
"threshold": 5.5,
|
1128
|
+
"threshold_duration": 300,
|
1129
|
+
"threshold_occurrences": "ALL",
|
1130
|
+
},
|
1131
|
+
warning={
|
1132
|
+
"operator": "above",
|
1133
|
+
"threshold": 3.5,
|
1134
|
+
"threshold_duration": 600,
|
1135
|
+
"threshold_occurrences": "ALL",
|
1136
|
+
})
|
1069
1137
|
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
1070
1138
|
guid=foo_nrql_alert_condition.entity_guid,
|
1071
1139
|
tags=[
|
1072
|
-
|
1073
|
-
key
|
1074
|
-
values
|
1140
|
+
{
|
1141
|
+
"key": "my-key",
|
1142
|
+
"values": [
|
1075
1143
|
"my-value",
|
1076
1144
|
"my-other-value",
|
1077
1145
|
],
|
1078
|
-
|
1079
|
-
|
1080
|
-
key
|
1081
|
-
values
|
1082
|
-
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
"key": "my-key-2",
|
1149
|
+
"values": ["my-value-2"],
|
1150
|
+
},
|
1083
1151
|
])
|
1084
1152
|
```
|
1085
1153
|
|
@@ -1104,15 +1172,15 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1104
1172
|
runbook_url="https://localhost",
|
1105
1173
|
enabled=True,
|
1106
1174
|
violation_time_limit="TWENTY_FOUR_HOURS",
|
1107
|
-
critical=
|
1108
|
-
operator
|
1109
|
-
threshold_duration
|
1110
|
-
threshold
|
1111
|
-
threshold_occurrences
|
1112
|
-
|
1113
|
-
nrql=
|
1114
|
-
query
|
1115
|
-
)
|
1175
|
+
critical={
|
1176
|
+
"operator": "above",
|
1177
|
+
"threshold_duration": 120,
|
1178
|
+
"threshold": 3,
|
1179
|
+
"threshold_occurrences": "AT_LEAST_ONCE",
|
1180
|
+
},
|
1181
|
+
nrql={
|
1182
|
+
"query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1183
|
+
})
|
1116
1184
|
```
|
1117
1185
|
|
1118
1186
|
After making the appropriate adjustments mentioned in the deprecation warnings,
|
@@ -1129,16 +1197,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1129
1197
|
runbook_url="https://localhost",
|
1130
1198
|
enabled=True,
|
1131
1199
|
violation_time_limit_seconds=86400,
|
1132
|
-
terms=[
|
1133
|
-
priority
|
1134
|
-
operator
|
1135
|
-
threshold
|
1136
|
-
duration
|
1137
|
-
time_function
|
1138
|
-
|
1139
|
-
nrql=
|
1140
|
-
query
|
1141
|
-
)
|
1200
|
+
terms=[{
|
1201
|
+
"priority": "critical",
|
1202
|
+
"operator": "above",
|
1203
|
+
"threshold": 3,
|
1204
|
+
"duration": 5,
|
1205
|
+
"time_function": "any",
|
1206
|
+
}],
|
1207
|
+
nrql={
|
1208
|
+
"query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1209
|
+
})
|
1142
1210
|
```
|
1143
1211
|
|
1144
1212
|
## Import
|
@@ -1166,26 +1234,28 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1166
1234
|
:param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
|
1167
1235
|
:param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
|
1168
1236
|
:param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
|
1169
|
-
:param pulumi.Input[
|
1237
|
+
:param pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
|
1170
1238
|
:param pulumi.Input[str] description: The description of the NRQL alert condition.
|
1171
1239
|
:param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
|
1172
1240
|
:param pulumi.Input[int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
|
1173
1241
|
:param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
|
1174
1242
|
:param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
|
1175
1243
|
:param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
|
1244
|
+
:param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
|
1176
1245
|
:param pulumi.Input[str] name: The title of the condition.
|
1177
|
-
:param pulumi.Input[
|
1246
|
+
:param pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']] nrql: A NRQL query. See NRQL below for details.
|
1178
1247
|
:param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
|
1179
1248
|
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
1180
1249
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
1181
1250
|
:param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
|
1182
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
1251
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
1252
|
+
:param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
|
1183
1253
|
:param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
|
1184
1254
|
:param pulumi.Input[str] violation_time_limit: **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
|
1185
1255
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
1186
1256
|
:param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
|
1187
1257
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
1188
|
-
:param pulumi.Input[
|
1258
|
+
:param pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
|
1189
1259
|
"""
|
1190
1260
|
...
|
1191
1261
|
@overload
|
@@ -1211,6 +1281,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1211
1281
|
type="static",
|
1212
1282
|
name="foo",
|
1213
1283
|
description="Alert when transactions are taking too long",
|
1284
|
+
title_template="Issue in environment: {{ json accumulations.tag.environment }}",
|
1214
1285
|
runbook_url="https://www.example.com",
|
1215
1286
|
enabled=True,
|
1216
1287
|
violation_time_limit_seconds=3600,
|
@@ -1222,22 +1293,23 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1222
1293
|
expiration_duration=120,
|
1223
1294
|
open_violation_on_expiration=True,
|
1224
1295
|
close_violations_on_expiration=True,
|
1296
|
+
ignore_on_expected_termination=True,
|
1225
1297
|
slide_by=30,
|
1226
|
-
nrql=
|
1227
|
-
query
|
1228
|
-
|
1229
|
-
critical=
|
1230
|
-
operator
|
1231
|
-
threshold
|
1232
|
-
threshold_duration
|
1233
|
-
threshold_occurrences
|
1234
|
-
|
1235
|
-
warning=
|
1236
|
-
operator
|
1237
|
-
threshold
|
1238
|
-
threshold_duration
|
1239
|
-
threshold_occurrences
|
1240
|
-
)
|
1298
|
+
nrql={
|
1299
|
+
"query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
|
1300
|
+
},
|
1301
|
+
critical={
|
1302
|
+
"operator": "above",
|
1303
|
+
"threshold": 5.5,
|
1304
|
+
"threshold_duration": 300,
|
1305
|
+
"threshold_occurrences": "ALL",
|
1306
|
+
},
|
1307
|
+
warning={
|
1308
|
+
"operator": "above",
|
1309
|
+
"threshold": 3.5,
|
1310
|
+
"threshold_duration": 600,
|
1311
|
+
"threshold_occurrences": "ALL",
|
1312
|
+
})
|
1241
1313
|
```
|
1242
1314
|
|
1243
1315
|
## NRQL
|
@@ -1302,21 +1374,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1302
1374
|
open_violation_on_expiration=True,
|
1303
1375
|
close_violations_on_expiration=True,
|
1304
1376
|
slide_by=30,
|
1305
|
-
nrql=
|
1306
|
-
query
|
1307
|
-
|
1308
|
-
critical=
|
1309
|
-
operator
|
1310
|
-
threshold
|
1311
|
-
threshold_duration
|
1312
|
-
threshold_occurrences
|
1313
|
-
|
1314
|
-
warning=
|
1315
|
-
operator
|
1316
|
-
threshold
|
1317
|
-
threshold_duration
|
1318
|
-
threshold_occurrences
|
1319
|
-
)
|
1377
|
+
nrql={
|
1378
|
+
"query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
|
1379
|
+
},
|
1380
|
+
critical={
|
1381
|
+
"operator": "above",
|
1382
|
+
"threshold": 5.5,
|
1383
|
+
"threshold_duration": 300,
|
1384
|
+
"threshold_occurrences": "ALL",
|
1385
|
+
},
|
1386
|
+
warning={
|
1387
|
+
"operator": "above",
|
1388
|
+
"threshold": 3.5,
|
1389
|
+
"threshold_duration": 600,
|
1390
|
+
"threshold_occurrences": "ALL",
|
1391
|
+
})
|
1320
1392
|
```
|
1321
1393
|
|
1322
1394
|
## Tags
|
@@ -1346,35 +1418,35 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1346
1418
|
open_violation_on_expiration=True,
|
1347
1419
|
close_violations_on_expiration=True,
|
1348
1420
|
slide_by=30,
|
1349
|
-
nrql=
|
1350
|
-
query
|
1351
|
-
|
1352
|
-
critical=
|
1353
|
-
operator
|
1354
|
-
threshold
|
1355
|
-
threshold_duration
|
1356
|
-
threshold_occurrences
|
1357
|
-
|
1358
|
-
warning=
|
1359
|
-
operator
|
1360
|
-
threshold
|
1361
|
-
threshold_duration
|
1362
|
-
threshold_occurrences
|
1363
|
-
)
|
1421
|
+
nrql={
|
1422
|
+
"query": "SELECT average(duration) FROM Transaction where appName = 'Your App'",
|
1423
|
+
},
|
1424
|
+
critical={
|
1425
|
+
"operator": "above",
|
1426
|
+
"threshold": 5.5,
|
1427
|
+
"threshold_duration": 300,
|
1428
|
+
"threshold_occurrences": "ALL",
|
1429
|
+
},
|
1430
|
+
warning={
|
1431
|
+
"operator": "above",
|
1432
|
+
"threshold": 3.5,
|
1433
|
+
"threshold_duration": 600,
|
1434
|
+
"threshold_occurrences": "ALL",
|
1435
|
+
})
|
1364
1436
|
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
1365
1437
|
guid=foo_nrql_alert_condition.entity_guid,
|
1366
1438
|
tags=[
|
1367
|
-
|
1368
|
-
key
|
1369
|
-
values
|
1439
|
+
{
|
1440
|
+
"key": "my-key",
|
1441
|
+
"values": [
|
1370
1442
|
"my-value",
|
1371
1443
|
"my-other-value",
|
1372
1444
|
],
|
1373
|
-
|
1374
|
-
|
1375
|
-
key
|
1376
|
-
values
|
1377
|
-
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
"key": "my-key-2",
|
1448
|
+
"values": ["my-value-2"],
|
1449
|
+
},
|
1378
1450
|
])
|
1379
1451
|
```
|
1380
1452
|
|
@@ -1399,15 +1471,15 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1399
1471
|
runbook_url="https://localhost",
|
1400
1472
|
enabled=True,
|
1401
1473
|
violation_time_limit="TWENTY_FOUR_HOURS",
|
1402
|
-
critical=
|
1403
|
-
operator
|
1404
|
-
threshold_duration
|
1405
|
-
threshold
|
1406
|
-
threshold_occurrences
|
1407
|
-
|
1408
|
-
nrql=
|
1409
|
-
query
|
1410
|
-
)
|
1474
|
+
critical={
|
1475
|
+
"operator": "above",
|
1476
|
+
"threshold_duration": 120,
|
1477
|
+
"threshold": 3,
|
1478
|
+
"threshold_occurrences": "AT_LEAST_ONCE",
|
1479
|
+
},
|
1480
|
+
nrql={
|
1481
|
+
"query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1482
|
+
})
|
1411
1483
|
```
|
1412
1484
|
|
1413
1485
|
After making the appropriate adjustments mentioned in the deprecation warnings,
|
@@ -1424,16 +1496,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1424
1496
|
runbook_url="https://localhost",
|
1425
1497
|
enabled=True,
|
1426
1498
|
violation_time_limit_seconds=86400,
|
1427
|
-
terms=[
|
1428
|
-
priority
|
1429
|
-
operator
|
1430
|
-
threshold
|
1431
|
-
duration
|
1432
|
-
time_function
|
1433
|
-
|
1434
|
-
nrql=
|
1435
|
-
query
|
1436
|
-
)
|
1499
|
+
terms=[{
|
1500
|
+
"priority": "critical",
|
1501
|
+
"operator": "above",
|
1502
|
+
"threshold": 3,
|
1503
|
+
"duration": 5,
|
1504
|
+
"time_function": "any",
|
1505
|
+
}],
|
1506
|
+
nrql={
|
1507
|
+
"query": "SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1508
|
+
})
|
1437
1509
|
```
|
1438
1510
|
|
1439
1511
|
## Import
|
@@ -1474,24 +1546,26 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1474
1546
|
aggregation_window: Optional[pulumi.Input[int]] = None,
|
1475
1547
|
baseline_direction: Optional[pulumi.Input[str]] = None,
|
1476
1548
|
close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
|
1477
|
-
critical: Optional[pulumi.Input[
|
1549
|
+
critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
|
1478
1550
|
description: Optional[pulumi.Input[str]] = None,
|
1479
1551
|
enabled: Optional[pulumi.Input[bool]] = None,
|
1480
1552
|
evaluation_delay: Optional[pulumi.Input[int]] = None,
|
1481
1553
|
expiration_duration: Optional[pulumi.Input[int]] = None,
|
1482
1554
|
fill_option: Optional[pulumi.Input[str]] = None,
|
1483
1555
|
fill_value: Optional[pulumi.Input[float]] = None,
|
1556
|
+
ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
|
1484
1557
|
name: Optional[pulumi.Input[str]] = None,
|
1485
|
-
nrql: Optional[pulumi.Input[
|
1558
|
+
nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
|
1486
1559
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
1487
1560
|
policy_id: Optional[pulumi.Input[str]] = None,
|
1488
1561
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
1489
1562
|
slide_by: Optional[pulumi.Input[int]] = None,
|
1490
|
-
terms: Optional[pulumi.Input[Sequence[pulumi.Input[
|
1563
|
+
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
|
1564
|
+
title_template: Optional[pulumi.Input[str]] = None,
|
1491
1565
|
type: Optional[pulumi.Input[str]] = None,
|
1492
1566
|
violation_time_limit: Optional[pulumi.Input[str]] = None,
|
1493
1567
|
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
1494
|
-
warning: Optional[pulumi.Input[
|
1568
|
+
warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None,
|
1495
1569
|
__props__=None):
|
1496
1570
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
1497
1571
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -1515,6 +1589,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1515
1589
|
__props__.__dict__["expiration_duration"] = expiration_duration
|
1516
1590
|
__props__.__dict__["fill_option"] = fill_option
|
1517
1591
|
__props__.__dict__["fill_value"] = fill_value
|
1592
|
+
__props__.__dict__["ignore_on_expected_termination"] = ignore_on_expected_termination
|
1518
1593
|
__props__.__dict__["name"] = name
|
1519
1594
|
if nrql is None and not opts.urn:
|
1520
1595
|
raise TypeError("Missing required property 'nrql'")
|
@@ -1526,6 +1601,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1526
1601
|
__props__.__dict__["runbook_url"] = runbook_url
|
1527
1602
|
__props__.__dict__["slide_by"] = slide_by
|
1528
1603
|
__props__.__dict__["terms"] = terms
|
1604
|
+
__props__.__dict__["title_template"] = title_template
|
1529
1605
|
__props__.__dict__["type"] = type
|
1530
1606
|
__props__.__dict__["violation_time_limit"] = violation_time_limit
|
1531
1607
|
__props__.__dict__["violation_time_limit_seconds"] = violation_time_limit_seconds
|
@@ -1548,7 +1624,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1548
1624
|
aggregation_window: Optional[pulumi.Input[int]] = None,
|
1549
1625
|
baseline_direction: Optional[pulumi.Input[str]] = None,
|
1550
1626
|
close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
|
1551
|
-
critical: Optional[pulumi.Input[
|
1627
|
+
critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
|
1552
1628
|
description: Optional[pulumi.Input[str]] = None,
|
1553
1629
|
enabled: Optional[pulumi.Input[bool]] = None,
|
1554
1630
|
entity_guid: Optional[pulumi.Input[str]] = None,
|
@@ -1556,17 +1632,19 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1556
1632
|
expiration_duration: Optional[pulumi.Input[int]] = None,
|
1557
1633
|
fill_option: Optional[pulumi.Input[str]] = None,
|
1558
1634
|
fill_value: Optional[pulumi.Input[float]] = None,
|
1635
|
+
ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
|
1559
1636
|
name: Optional[pulumi.Input[str]] = None,
|
1560
|
-
nrql: Optional[pulumi.Input[
|
1637
|
+
nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
|
1561
1638
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
1562
1639
|
policy_id: Optional[pulumi.Input[str]] = None,
|
1563
1640
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
1564
1641
|
slide_by: Optional[pulumi.Input[int]] = None,
|
1565
|
-
terms: Optional[pulumi.Input[Sequence[pulumi.Input[
|
1642
|
+
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
|
1643
|
+
title_template: Optional[pulumi.Input[str]] = None,
|
1566
1644
|
type: Optional[pulumi.Input[str]] = None,
|
1567
1645
|
violation_time_limit: Optional[pulumi.Input[str]] = None,
|
1568
1646
|
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
1569
|
-
warning: Optional[pulumi.Input[
|
1647
|
+
warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None) -> 'NrqlAlertCondition':
|
1570
1648
|
"""
|
1571
1649
|
Get an existing NrqlAlertCondition resource's state with the given name, id, and optional extra
|
1572
1650
|
properties used to qualify the lookup.
|
@@ -1581,7 +1659,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1581
1659
|
:param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
|
1582
1660
|
:param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
|
1583
1661
|
:param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
|
1584
|
-
:param pulumi.Input[
|
1662
|
+
:param pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
|
1585
1663
|
:param pulumi.Input[str] description: The description of the NRQL alert condition.
|
1586
1664
|
:param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
|
1587
1665
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the NRQL Condition in New Relic.
|
@@ -1589,19 +1667,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1589
1667
|
:param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
|
1590
1668
|
:param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
|
1591
1669
|
:param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
|
1670
|
+
:param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
|
1592
1671
|
:param pulumi.Input[str] name: The title of the condition.
|
1593
|
-
:param pulumi.Input[
|
1672
|
+
:param pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']] nrql: A NRQL query. See NRQL below for details.
|
1594
1673
|
:param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
|
1595
1674
|
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
1596
1675
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
1597
1676
|
:param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
|
1598
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
1677
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
1678
|
+
:param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
|
1599
1679
|
:param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
|
1600
1680
|
:param pulumi.Input[str] violation_time_limit: **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
|
1601
1681
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
1602
1682
|
:param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
|
1603
1683
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
1604
|
-
:param pulumi.Input[
|
1684
|
+
:param pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
|
1605
1685
|
"""
|
1606
1686
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
1607
1687
|
|
@@ -1622,6 +1702,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1622
1702
|
__props__.__dict__["expiration_duration"] = expiration_duration
|
1623
1703
|
__props__.__dict__["fill_option"] = fill_option
|
1624
1704
|
__props__.__dict__["fill_value"] = fill_value
|
1705
|
+
__props__.__dict__["ignore_on_expected_termination"] = ignore_on_expected_termination
|
1625
1706
|
__props__.__dict__["name"] = name
|
1626
1707
|
__props__.__dict__["nrql"] = nrql
|
1627
1708
|
__props__.__dict__["open_violation_on_expiration"] = open_violation_on_expiration
|
@@ -1629,6 +1710,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1629
1710
|
__props__.__dict__["runbook_url"] = runbook_url
|
1630
1711
|
__props__.__dict__["slide_by"] = slide_by
|
1631
1712
|
__props__.__dict__["terms"] = terms
|
1713
|
+
__props__.__dict__["title_template"] = title_template
|
1632
1714
|
__props__.__dict__["type"] = type
|
1633
1715
|
__props__.__dict__["violation_time_limit"] = violation_time_limit
|
1634
1716
|
__props__.__dict__["violation_time_limit_seconds"] = violation_time_limit_seconds
|
@@ -1755,6 +1837,14 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1755
1837
|
"""
|
1756
1838
|
return pulumi.get(self, "fill_value")
|
1757
1839
|
|
1840
|
+
@property
|
1841
|
+
@pulumi.getter(name="ignoreOnExpectedTermination")
|
1842
|
+
def ignore_on_expected_termination(self) -> pulumi.Output[Optional[bool]]:
|
1843
|
+
"""
|
1844
|
+
Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
|
1845
|
+
"""
|
1846
|
+
return pulumi.get(self, "ignore_on_expected_termination")
|
1847
|
+
|
1758
1848
|
@property
|
1759
1849
|
@pulumi.getter
|
1760
1850
|
def name(self) -> pulumi.Output[str]:
|
@@ -1812,6 +1902,14 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1812
1902
|
"""
|
1813
1903
|
return pulumi.get(self, "terms")
|
1814
1904
|
|
1905
|
+
@property
|
1906
|
+
@pulumi.getter(name="titleTemplate")
|
1907
|
+
def title_template(self) -> pulumi.Output[Optional[str]]:
|
1908
|
+
"""
|
1909
|
+
The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
|
1910
|
+
"""
|
1911
|
+
return pulumi.get(self, "title_template")
|
1912
|
+
|
1815
1913
|
@property
|
1816
1914
|
@pulumi.getter
|
1817
1915
|
def type(self) -> pulumi.Output[Optional[str]]:
|