pulumi-newrelic 5.16.0a1698964311__py3-none-any.whl → 5.58.0a1763707205__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.
Potentially problematic release.
This version of pulumi-newrelic might be problematic. Click here for more details.
- pulumi_newrelic/__init__.py +58 -1
- pulumi_newrelic/_inputs.py +10772 -2775
- pulumi_newrelic/_utilities.py +92 -11
- pulumi_newrelic/account_management.py +56 -42
- pulumi_newrelic/alert_channel.py +177 -151
- pulumi_newrelic/alert_condition.py +313 -301
- pulumi_newrelic/alert_muting_rule.py +195 -138
- pulumi_newrelic/alert_policy.py +157 -109
- pulumi_newrelic/alert_policy_channel.py +95 -81
- pulumi_newrelic/api_access_key.py +191 -209
- pulumi_newrelic/browser_application.py +161 -153
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2710
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
- pulumi_newrelic/cloud/aws_integrations.py +518 -1490
- pulumi_newrelic/cloud/aws_link_account.py +88 -76
- pulumi_newrelic/cloud/azure_integrations.py +681 -587
- pulumi_newrelic/cloud/azure_link_account.py +129 -117
- pulumi_newrelic/cloud/gcp_integrations.py +436 -408
- pulumi_newrelic/cloud/gcp_link_account.py +71 -59
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2317
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +45 -0
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +129 -117
- pulumi_newrelic/entity_tags.py +153 -31
- pulumi_newrelic/events_to_metrics_rule.py +114 -102
- pulumi_newrelic/get_account.py +41 -29
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +83 -34
- pulumi_newrelic/get_application.py +51 -39
- pulumi_newrelic/get_authentication_domain.py +111 -0
- pulumi_newrelic/get_cloud_account.py +43 -31
- pulumi_newrelic/get_entity.py +126 -121
- pulumi_newrelic/get_group.py +190 -0
- pulumi_newrelic/get_key_transaction.py +117 -38
- pulumi_newrelic/get_notification_destination.py +86 -36
- pulumi_newrelic/get_obfuscation_expression.py +47 -35
- pulumi_newrelic/get_service_level_alert_helper.py +237 -137
- pulumi_newrelic/get_test_grok_pattern.py +47 -32
- pulumi_newrelic/get_user.py +165 -0
- pulumi_newrelic/group.py +286 -0
- pulumi_newrelic/infra_alert_condition.py +400 -382
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +94 -23
- pulumi_newrelic/insights/event.py +56 -48
- pulumi_newrelic/insights/outputs.py +51 -18
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +169 -153
- pulumi_newrelic/monitor_downtime.py +914 -0
- pulumi_newrelic/notification_channel.py +560 -418
- pulumi_newrelic/notification_destination.py +379 -124
- pulumi_newrelic/nrql_alert_condition.py +945 -513
- pulumi_newrelic/nrql_drop_rule.py +121 -129
- pulumi_newrelic/obfuscation_expression.py +88 -76
- pulumi_newrelic/obfuscation_rule.py +123 -109
- pulumi_newrelic/one_dashboard.py +118 -108
- pulumi_newrelic/one_dashboard_json.py +77 -67
- pulumi_newrelic/one_dashboard_raw.py +214 -202
- pulumi_newrelic/outputs.py +5491 -2141
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +520 -90
- pulumi_newrelic/plugins/application_settings.py +463 -167
- pulumi_newrelic/plugins/outputs.py +337 -75
- pulumi_newrelic/plugins/workload.py +387 -151
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +277 -255
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +275 -106
- pulumi_newrelic/synthetics/alert_condition.py +174 -160
- pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
- pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
- pulumi_newrelic/synthetics/get_private_location.py +51 -39
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
- pulumi_newrelic/synthetics/monitor.py +668 -462
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
- pulumi_newrelic/synthetics/outputs.py +102 -85
- pulumi_newrelic/synthetics/private_location.py +120 -110
- pulumi_newrelic/synthetics/script_monitor.py +623 -375
- pulumi_newrelic/synthetics/secure_credential.py +99 -93
- pulumi_newrelic/synthetics/step_monitor.py +545 -201
- pulumi_newrelic/user.py +366 -0
- pulumi_newrelic/workflow.py +348 -312
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -17,22 +22,22 @@ __all__ = ['MultiLocationAlertConditionArgs', 'MultiLocationAlertCondition']
|
|
|
17
22
|
class MultiLocationAlertConditionArgs:
|
|
18
23
|
def __init__(__self__, *,
|
|
19
24
|
critical: pulumi.Input['MultiLocationAlertConditionCriticalArgs'],
|
|
20
|
-
entities: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
21
|
-
policy_id: pulumi.Input[
|
|
22
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
23
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
24
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
|
25
|
-
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
25
|
+
entities: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
26
|
+
policy_id: pulumi.Input[_builtins.str],
|
|
27
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
28
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
26
31
|
warning: Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']] = None):
|
|
27
32
|
"""
|
|
28
33
|
The set of arguments for constructing a MultiLocationAlertCondition resource.
|
|
29
34
|
:param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with the priority set to critical.
|
|
30
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
31
|
-
:param pulumi.Input[
|
|
32
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
33
|
-
:param pulumi.Input[str] name: The title of the condition.
|
|
34
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
|
35
|
-
:param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
35
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
36
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
|
|
37
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
38
|
+
:param pulumi.Input[_builtins.str] name: The title of the condition.
|
|
39
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
40
|
+
:param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
36
41
|
:param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with the priority set to warning.
|
|
37
42
|
|
|
38
43
|
|
|
@@ -52,7 +57,7 @@ class MultiLocationAlertConditionArgs:
|
|
|
52
57
|
if warning is not None:
|
|
53
58
|
pulumi.set(__self__, "warning", warning)
|
|
54
59
|
|
|
55
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
56
61
|
@pulumi.getter
|
|
57
62
|
def critical(self) -> pulumi.Input['MultiLocationAlertConditionCriticalArgs']:
|
|
58
63
|
"""
|
|
@@ -64,79 +69,79 @@ class MultiLocationAlertConditionArgs:
|
|
|
64
69
|
def critical(self, value: pulumi.Input['MultiLocationAlertConditionCriticalArgs']):
|
|
65
70
|
pulumi.set(self, "critical", value)
|
|
66
71
|
|
|
67
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
68
73
|
@pulumi.getter
|
|
69
|
-
def entities(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
74
|
+
def entities(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
70
75
|
"""
|
|
71
76
|
The Monitor GUID's of the Synthetics monitors to alert on.
|
|
72
77
|
"""
|
|
73
78
|
return pulumi.get(self, "entities")
|
|
74
79
|
|
|
75
80
|
@entities.setter
|
|
76
|
-
def entities(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
81
|
+
def entities(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
77
82
|
pulumi.set(self, "entities", value)
|
|
78
83
|
|
|
79
|
-
@property
|
|
84
|
+
@_builtins.property
|
|
80
85
|
@pulumi.getter(name="policyId")
|
|
81
|
-
def policy_id(self) -> pulumi.Input[
|
|
86
|
+
def policy_id(self) -> pulumi.Input[_builtins.str]:
|
|
82
87
|
"""
|
|
83
88
|
The ID of the policy where this condition will be used.
|
|
84
89
|
"""
|
|
85
90
|
return pulumi.get(self, "policy_id")
|
|
86
91
|
|
|
87
92
|
@policy_id.setter
|
|
88
|
-
def policy_id(self, value: pulumi.Input[
|
|
93
|
+
def policy_id(self, value: pulumi.Input[_builtins.str]):
|
|
89
94
|
pulumi.set(self, "policy_id", value)
|
|
90
95
|
|
|
91
|
-
@property
|
|
96
|
+
@_builtins.property
|
|
92
97
|
@pulumi.getter
|
|
93
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
98
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
94
99
|
"""
|
|
95
100
|
Set whether to enable the alert condition. Defaults to true.
|
|
96
101
|
"""
|
|
97
102
|
return pulumi.get(self, "enabled")
|
|
98
103
|
|
|
99
104
|
@enabled.setter
|
|
100
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
105
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
101
106
|
pulumi.set(self, "enabled", value)
|
|
102
107
|
|
|
103
|
-
@property
|
|
108
|
+
@_builtins.property
|
|
104
109
|
@pulumi.getter
|
|
105
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
106
111
|
"""
|
|
107
112
|
The title of the condition.
|
|
108
113
|
"""
|
|
109
114
|
return pulumi.get(self, "name")
|
|
110
115
|
|
|
111
116
|
@name.setter
|
|
112
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
117
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
113
118
|
pulumi.set(self, "name", value)
|
|
114
119
|
|
|
115
|
-
@property
|
|
120
|
+
@_builtins.property
|
|
116
121
|
@pulumi.getter(name="runbookUrl")
|
|
117
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
118
123
|
"""
|
|
119
124
|
Runbook URL to display in notifications.
|
|
120
125
|
"""
|
|
121
126
|
return pulumi.get(self, "runbook_url")
|
|
122
127
|
|
|
123
128
|
@runbook_url.setter
|
|
124
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
|
129
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
125
130
|
pulumi.set(self, "runbook_url", value)
|
|
126
131
|
|
|
127
|
-
@property
|
|
132
|
+
@_builtins.property
|
|
128
133
|
@pulumi.getter(name="violationTimeLimitSeconds")
|
|
129
|
-
def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
134
|
+
def violation_time_limit_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
130
135
|
"""
|
|
131
136
|
The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
132
137
|
"""
|
|
133
138
|
return pulumi.get(self, "violation_time_limit_seconds")
|
|
134
139
|
|
|
135
140
|
@violation_time_limit_seconds.setter
|
|
136
|
-
def violation_time_limit_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
141
|
+
def violation_time_limit_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
137
142
|
pulumi.set(self, "violation_time_limit_seconds", value)
|
|
138
143
|
|
|
139
|
-
@property
|
|
144
|
+
@_builtins.property
|
|
140
145
|
@pulumi.getter
|
|
141
146
|
def warning(self) -> Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']]:
|
|
142
147
|
"""
|
|
@@ -156,24 +161,24 @@ class MultiLocationAlertConditionArgs:
|
|
|
156
161
|
class _MultiLocationAlertConditionState:
|
|
157
162
|
def __init__(__self__, *,
|
|
158
163
|
critical: Optional[pulumi.Input['MultiLocationAlertConditionCriticalArgs']] = None,
|
|
159
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
160
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
161
|
-
entity_guid: Optional[pulumi.Input[str]] = None,
|
|
162
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
163
|
-
policy_id: Optional[pulumi.Input[
|
|
164
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
|
165
|
-
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
164
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
165
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
166
|
+
entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
167
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
168
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
169
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
170
|
+
violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
166
171
|
warning: Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']] = None):
|
|
167
172
|
"""
|
|
168
173
|
Input properties used for looking up and filtering MultiLocationAlertCondition resources.
|
|
169
174
|
:param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with the priority set to critical.
|
|
170
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
171
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
172
|
-
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
173
|
-
:param pulumi.Input[str] name: The title of the condition.
|
|
174
|
-
:param pulumi.Input[
|
|
175
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
|
176
|
-
:param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
175
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
176
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
177
|
+
:param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
178
|
+
:param pulumi.Input[_builtins.str] name: The title of the condition.
|
|
179
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
|
|
180
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
181
|
+
:param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
177
182
|
:param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with the priority set to warning.
|
|
178
183
|
|
|
179
184
|
|
|
@@ -198,7 +203,7 @@ class _MultiLocationAlertConditionState:
|
|
|
198
203
|
if warning is not None:
|
|
199
204
|
pulumi.set(__self__, "warning", warning)
|
|
200
205
|
|
|
201
|
-
@property
|
|
206
|
+
@_builtins.property
|
|
202
207
|
@pulumi.getter
|
|
203
208
|
def critical(self) -> Optional[pulumi.Input['MultiLocationAlertConditionCriticalArgs']]:
|
|
204
209
|
"""
|
|
@@ -210,91 +215,91 @@ class _MultiLocationAlertConditionState:
|
|
|
210
215
|
def critical(self, value: Optional[pulumi.Input['MultiLocationAlertConditionCriticalArgs']]):
|
|
211
216
|
pulumi.set(self, "critical", value)
|
|
212
217
|
|
|
213
|
-
@property
|
|
218
|
+
@_builtins.property
|
|
214
219
|
@pulumi.getter
|
|
215
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
220
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
216
221
|
"""
|
|
217
222
|
Set whether to enable the alert condition. Defaults to true.
|
|
218
223
|
"""
|
|
219
224
|
return pulumi.get(self, "enabled")
|
|
220
225
|
|
|
221
226
|
@enabled.setter
|
|
222
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
227
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
223
228
|
pulumi.set(self, "enabled", value)
|
|
224
229
|
|
|
225
|
-
@property
|
|
230
|
+
@_builtins.property
|
|
226
231
|
@pulumi.getter
|
|
227
|
-
def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
232
|
+
def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
228
233
|
"""
|
|
229
234
|
The Monitor GUID's of the Synthetics monitors to alert on.
|
|
230
235
|
"""
|
|
231
236
|
return pulumi.get(self, "entities")
|
|
232
237
|
|
|
233
238
|
@entities.setter
|
|
234
|
-
def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
239
|
+
def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
235
240
|
pulumi.set(self, "entities", value)
|
|
236
241
|
|
|
237
|
-
@property
|
|
242
|
+
@_builtins.property
|
|
238
243
|
@pulumi.getter(name="entityGuid")
|
|
239
|
-
def entity_guid(self) -> Optional[pulumi.Input[str]]:
|
|
244
|
+
def entity_guid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
240
245
|
"""
|
|
241
246
|
The unique entity identifier of the condition in New Relic.
|
|
242
247
|
"""
|
|
243
248
|
return pulumi.get(self, "entity_guid")
|
|
244
249
|
|
|
245
250
|
@entity_guid.setter
|
|
246
|
-
def entity_guid(self, value: Optional[pulumi.Input[str]]):
|
|
251
|
+
def entity_guid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
247
252
|
pulumi.set(self, "entity_guid", value)
|
|
248
253
|
|
|
249
|
-
@property
|
|
254
|
+
@_builtins.property
|
|
250
255
|
@pulumi.getter
|
|
251
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
256
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
252
257
|
"""
|
|
253
258
|
The title of the condition.
|
|
254
259
|
"""
|
|
255
260
|
return pulumi.get(self, "name")
|
|
256
261
|
|
|
257
262
|
@name.setter
|
|
258
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
263
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
259
264
|
pulumi.set(self, "name", value)
|
|
260
265
|
|
|
261
|
-
@property
|
|
266
|
+
@_builtins.property
|
|
262
267
|
@pulumi.getter(name="policyId")
|
|
263
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
|
268
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
264
269
|
"""
|
|
265
270
|
The ID of the policy where this condition will be used.
|
|
266
271
|
"""
|
|
267
272
|
return pulumi.get(self, "policy_id")
|
|
268
273
|
|
|
269
274
|
@policy_id.setter
|
|
270
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
|
275
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
271
276
|
pulumi.set(self, "policy_id", value)
|
|
272
277
|
|
|
273
|
-
@property
|
|
278
|
+
@_builtins.property
|
|
274
279
|
@pulumi.getter(name="runbookUrl")
|
|
275
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
|
280
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
276
281
|
"""
|
|
277
282
|
Runbook URL to display in notifications.
|
|
278
283
|
"""
|
|
279
284
|
return pulumi.get(self, "runbook_url")
|
|
280
285
|
|
|
281
286
|
@runbook_url.setter
|
|
282
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
|
287
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
283
288
|
pulumi.set(self, "runbook_url", value)
|
|
284
289
|
|
|
285
|
-
@property
|
|
290
|
+
@_builtins.property
|
|
286
291
|
@pulumi.getter(name="violationTimeLimitSeconds")
|
|
287
|
-
def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
292
|
+
def violation_time_limit_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
288
293
|
"""
|
|
289
294
|
The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
290
295
|
"""
|
|
291
296
|
return pulumi.get(self, "violation_time_limit_seconds")
|
|
292
297
|
|
|
293
298
|
@violation_time_limit_seconds.setter
|
|
294
|
-
def violation_time_limit_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
299
|
+
def violation_time_limit_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
295
300
|
pulumi.set(self, "violation_time_limit_seconds", value)
|
|
296
301
|
|
|
297
|
-
@property
|
|
302
|
+
@_builtins.property
|
|
298
303
|
@pulumi.getter
|
|
299
304
|
def warning(self) -> Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']]:
|
|
300
305
|
"""
|
|
@@ -310,19 +315,20 @@ class _MultiLocationAlertConditionState:
|
|
|
310
315
|
pulumi.set(self, "warning", value)
|
|
311
316
|
|
|
312
317
|
|
|
318
|
+
@pulumi.type_token("newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition")
|
|
313
319
|
class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
314
320
|
@overload
|
|
315
321
|
def __init__(__self__,
|
|
316
322
|
resource_name: str,
|
|
317
323
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
318
|
-
critical: Optional[pulumi.Input[
|
|
319
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
320
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
321
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
322
|
-
policy_id: Optional[pulumi.Input[
|
|
323
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
|
324
|
-
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
325
|
-
warning: Optional[pulumi.Input[
|
|
324
|
+
critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
|
|
325
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
326
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
327
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
328
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
329
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
330
|
+
violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
331
|
+
warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None,
|
|
326
332
|
__props__=None):
|
|
327
333
|
"""
|
|
328
334
|
Use this resource to create, update, and delete a New Relic Synthetics Location Alerts.
|
|
@@ -335,25 +341,27 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
335
341
|
import pulumi
|
|
336
342
|
import pulumi_newrelic as newrelic
|
|
337
343
|
|
|
338
|
-
policy = newrelic.AlertPolicy("policy")
|
|
344
|
+
policy = newrelic.AlertPolicy("policy", name="my-policy")
|
|
339
345
|
monitor = newrelic.synthetics.Monitor("monitor",
|
|
340
346
|
locations_publics=["US_WEST_1"],
|
|
347
|
+
name="my-monitor",
|
|
341
348
|
period="EVERY_10_MINUTES",
|
|
342
349
|
status="DISABLED",
|
|
343
350
|
type="SIMPLE",
|
|
344
351
|
uri="https://www.one.newrelic.com")
|
|
345
352
|
example = newrelic.synthetics.MultiLocationAlertCondition("example",
|
|
346
353
|
policy_id=policy.id,
|
|
354
|
+
name="Example condition",
|
|
347
355
|
runbook_url="https://example.com",
|
|
348
356
|
enabled=True,
|
|
349
357
|
violation_time_limit_seconds=3600,
|
|
350
358
|
entities=[monitor.id],
|
|
351
|
-
critical=
|
|
352
|
-
threshold
|
|
353
|
-
|
|
354
|
-
warning=
|
|
355
|
-
threshold
|
|
356
|
-
)
|
|
359
|
+
critical={
|
|
360
|
+
"threshold": 2,
|
|
361
|
+
},
|
|
362
|
+
warning={
|
|
363
|
+
"threshold": 1,
|
|
364
|
+
})
|
|
357
365
|
```
|
|
358
366
|
## Tags
|
|
359
367
|
|
|
@@ -363,51 +371,53 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
363
371
|
import pulumi
|
|
364
372
|
import pulumi_newrelic as newrelic
|
|
365
373
|
|
|
366
|
-
|
|
367
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
|
374
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
|
375
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
|
368
376
|
status="ENABLED",
|
|
377
|
+
name="foo monitor",
|
|
369
378
|
period="EVERY_MINUTE",
|
|
370
379
|
uri="https://www.one.newrelic.com",
|
|
371
380
|
type="SIMPLE",
|
|
372
381
|
locations_publics=["AP_EAST_1"],
|
|
373
|
-
custom_headers=[
|
|
374
|
-
name
|
|
375
|
-
value
|
|
376
|
-
|
|
382
|
+
custom_headers=[{
|
|
383
|
+
"name": "some_name",
|
|
384
|
+
"value": "some_value",
|
|
385
|
+
}],
|
|
377
386
|
treat_redirect_as_failure=True,
|
|
378
387
|
validation_string="success",
|
|
379
388
|
bypass_head_request=True,
|
|
380
389
|
verify_ssl=True,
|
|
381
|
-
tags=[
|
|
382
|
-
key
|
|
383
|
-
values
|
|
384
|
-
|
|
385
|
-
foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("
|
|
386
|
-
policy_id=
|
|
390
|
+
tags=[{
|
|
391
|
+
"key": "some_key",
|
|
392
|
+
"values": ["some_value"],
|
|
393
|
+
}])
|
|
394
|
+
foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
|
|
395
|
+
policy_id=foo.id,
|
|
396
|
+
name="foo condition",
|
|
387
397
|
runbook_url="https://example.com",
|
|
388
398
|
enabled=True,
|
|
389
399
|
violation_time_limit_seconds=3600,
|
|
390
400
|
entities=[foo_monitor.id],
|
|
391
|
-
critical=
|
|
392
|
-
threshold
|
|
393
|
-
|
|
394
|
-
warning=
|
|
395
|
-
threshold
|
|
396
|
-
)
|
|
397
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
|
401
|
+
critical={
|
|
402
|
+
"threshold": 2,
|
|
403
|
+
},
|
|
404
|
+
warning={
|
|
405
|
+
"threshold": 1,
|
|
406
|
+
})
|
|
407
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
|
398
408
|
guid=foo_multi_location_alert_condition.entity_guid,
|
|
399
409
|
tags=[
|
|
400
|
-
|
|
401
|
-
key
|
|
402
|
-
values
|
|
410
|
+
{
|
|
411
|
+
"key": "my-key",
|
|
412
|
+
"values": [
|
|
403
413
|
"my-value",
|
|
404
414
|
"my-other-value",
|
|
405
415
|
],
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
key
|
|
409
|
-
values
|
|
410
|
-
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"key": "my-key-2",
|
|
419
|
+
"values": ["my-value-2"],
|
|
420
|
+
},
|
|
411
421
|
])
|
|
412
422
|
```
|
|
413
423
|
|
|
@@ -415,22 +425,24 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
415
425
|
|
|
416
426
|
New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format
|
|
417
427
|
|
|
418
|
-
|
|
428
|
+
`<policy_id>:<condition_id>`, e.g.
|
|
429
|
+
|
|
430
|
+
bash
|
|
419
431
|
|
|
420
432
|
```sh
|
|
421
|
-
|
|
433
|
+
$ pulumi import newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition example 12345678:1456
|
|
422
434
|
```
|
|
423
435
|
|
|
424
436
|
:param str resource_name: The name of the resource.
|
|
425
437
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
426
|
-
:param pulumi.Input[
|
|
427
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
428
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
429
|
-
:param pulumi.Input[str] name: The title of the condition.
|
|
430
|
-
:param pulumi.Input[
|
|
431
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
|
432
|
-
:param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
433
|
-
:param pulumi.Input[
|
|
438
|
+
:param pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']] critical: A condition term with the priority set to critical.
|
|
439
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
440
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
441
|
+
:param pulumi.Input[_builtins.str] name: The title of the condition.
|
|
442
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
|
|
443
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
444
|
+
:param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
445
|
+
:param pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']] warning: A condition term with the priority set to warning.
|
|
434
446
|
|
|
435
447
|
|
|
436
448
|
> **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.
|
|
@@ -452,25 +464,27 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
452
464
|
import pulumi
|
|
453
465
|
import pulumi_newrelic as newrelic
|
|
454
466
|
|
|
455
|
-
policy = newrelic.AlertPolicy("policy")
|
|
467
|
+
policy = newrelic.AlertPolicy("policy", name="my-policy")
|
|
456
468
|
monitor = newrelic.synthetics.Monitor("monitor",
|
|
457
469
|
locations_publics=["US_WEST_1"],
|
|
470
|
+
name="my-monitor",
|
|
458
471
|
period="EVERY_10_MINUTES",
|
|
459
472
|
status="DISABLED",
|
|
460
473
|
type="SIMPLE",
|
|
461
474
|
uri="https://www.one.newrelic.com")
|
|
462
475
|
example = newrelic.synthetics.MultiLocationAlertCondition("example",
|
|
463
476
|
policy_id=policy.id,
|
|
477
|
+
name="Example condition",
|
|
464
478
|
runbook_url="https://example.com",
|
|
465
479
|
enabled=True,
|
|
466
480
|
violation_time_limit_seconds=3600,
|
|
467
481
|
entities=[monitor.id],
|
|
468
|
-
critical=
|
|
469
|
-
threshold
|
|
470
|
-
|
|
471
|
-
warning=
|
|
472
|
-
threshold
|
|
473
|
-
)
|
|
482
|
+
critical={
|
|
483
|
+
"threshold": 2,
|
|
484
|
+
},
|
|
485
|
+
warning={
|
|
486
|
+
"threshold": 1,
|
|
487
|
+
})
|
|
474
488
|
```
|
|
475
489
|
## Tags
|
|
476
490
|
|
|
@@ -480,51 +494,53 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
480
494
|
import pulumi
|
|
481
495
|
import pulumi_newrelic as newrelic
|
|
482
496
|
|
|
483
|
-
|
|
484
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
|
497
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
|
498
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
|
485
499
|
status="ENABLED",
|
|
500
|
+
name="foo monitor",
|
|
486
501
|
period="EVERY_MINUTE",
|
|
487
502
|
uri="https://www.one.newrelic.com",
|
|
488
503
|
type="SIMPLE",
|
|
489
504
|
locations_publics=["AP_EAST_1"],
|
|
490
|
-
custom_headers=[
|
|
491
|
-
name
|
|
492
|
-
value
|
|
493
|
-
|
|
505
|
+
custom_headers=[{
|
|
506
|
+
"name": "some_name",
|
|
507
|
+
"value": "some_value",
|
|
508
|
+
}],
|
|
494
509
|
treat_redirect_as_failure=True,
|
|
495
510
|
validation_string="success",
|
|
496
511
|
bypass_head_request=True,
|
|
497
512
|
verify_ssl=True,
|
|
498
|
-
tags=[
|
|
499
|
-
key
|
|
500
|
-
values
|
|
501
|
-
|
|
502
|
-
foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("
|
|
503
|
-
policy_id=
|
|
513
|
+
tags=[{
|
|
514
|
+
"key": "some_key",
|
|
515
|
+
"values": ["some_value"],
|
|
516
|
+
}])
|
|
517
|
+
foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
|
|
518
|
+
policy_id=foo.id,
|
|
519
|
+
name="foo condition",
|
|
504
520
|
runbook_url="https://example.com",
|
|
505
521
|
enabled=True,
|
|
506
522
|
violation_time_limit_seconds=3600,
|
|
507
523
|
entities=[foo_monitor.id],
|
|
508
|
-
critical=
|
|
509
|
-
threshold
|
|
510
|
-
|
|
511
|
-
warning=
|
|
512
|
-
threshold
|
|
513
|
-
)
|
|
514
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
|
524
|
+
critical={
|
|
525
|
+
"threshold": 2,
|
|
526
|
+
},
|
|
527
|
+
warning={
|
|
528
|
+
"threshold": 1,
|
|
529
|
+
})
|
|
530
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
|
515
531
|
guid=foo_multi_location_alert_condition.entity_guid,
|
|
516
532
|
tags=[
|
|
517
|
-
|
|
518
|
-
key
|
|
519
|
-
values
|
|
533
|
+
{
|
|
534
|
+
"key": "my-key",
|
|
535
|
+
"values": [
|
|
520
536
|
"my-value",
|
|
521
537
|
"my-other-value",
|
|
522
538
|
],
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
key
|
|
526
|
-
values
|
|
527
|
-
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"key": "my-key-2",
|
|
542
|
+
"values": ["my-value-2"],
|
|
543
|
+
},
|
|
528
544
|
])
|
|
529
545
|
```
|
|
530
546
|
|
|
@@ -532,10 +548,12 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
532
548
|
|
|
533
549
|
New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format
|
|
534
550
|
|
|
535
|
-
|
|
551
|
+
`<policy_id>:<condition_id>`, e.g.
|
|
552
|
+
|
|
553
|
+
bash
|
|
536
554
|
|
|
537
555
|
```sh
|
|
538
|
-
|
|
556
|
+
$ pulumi import newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition example 12345678:1456
|
|
539
557
|
```
|
|
540
558
|
|
|
541
559
|
:param str resource_name: The name of the resource.
|
|
@@ -553,14 +571,14 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
553
571
|
def _internal_init(__self__,
|
|
554
572
|
resource_name: str,
|
|
555
573
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
556
|
-
critical: Optional[pulumi.Input[
|
|
557
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
558
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
559
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
560
|
-
policy_id: Optional[pulumi.Input[
|
|
561
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
|
562
|
-
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
563
|
-
warning: Optional[pulumi.Input[
|
|
574
|
+
critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
|
|
575
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
576
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
577
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
578
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
579
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
580
|
+
violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
581
|
+
warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None,
|
|
564
582
|
__props__=None):
|
|
565
583
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
566
584
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -595,15 +613,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
595
613
|
def get(resource_name: str,
|
|
596
614
|
id: pulumi.Input[str],
|
|
597
615
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
598
|
-
critical: Optional[pulumi.Input[
|
|
599
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
600
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
601
|
-
entity_guid: Optional[pulumi.Input[str]] = None,
|
|
602
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
603
|
-
policy_id: Optional[pulumi.Input[
|
|
604
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
|
605
|
-
violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
606
|
-
warning: Optional[pulumi.Input[
|
|
616
|
+
critical: Optional[pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']]] = None,
|
|
617
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
618
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
619
|
+
entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
620
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
621
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
622
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
623
|
+
violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
624
|
+
warning: Optional[pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']]] = None) -> 'MultiLocationAlertCondition':
|
|
607
625
|
"""
|
|
608
626
|
Get an existing MultiLocationAlertCondition resource's state with the given name, id, and optional extra
|
|
609
627
|
properties used to qualify the lookup.
|
|
@@ -611,15 +629,15 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
611
629
|
:param str resource_name: The unique name of the resulting resource.
|
|
612
630
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
613
631
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
614
|
-
:param pulumi.Input[
|
|
615
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
616
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
617
|
-
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
618
|
-
:param pulumi.Input[str] name: The title of the condition.
|
|
619
|
-
:param pulumi.Input[
|
|
620
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
|
621
|
-
:param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
622
|
-
:param pulumi.Input[
|
|
632
|
+
:param pulumi.Input[Union['MultiLocationAlertConditionCriticalArgs', 'MultiLocationAlertConditionCriticalArgsDict']] critical: A condition term with the priority set to critical.
|
|
633
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to true.
|
|
634
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
|
|
635
|
+
:param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
636
|
+
:param pulumi.Input[_builtins.str] name: The title of the condition.
|
|
637
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition will be used.
|
|
638
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
639
|
+
:param pulumi.Input[_builtins.int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
640
|
+
:param pulumi.Input[Union['MultiLocationAlertConditionWarningArgs', 'MultiLocationAlertConditionWarningArgsDict']] warning: A condition term with the priority set to warning.
|
|
623
641
|
|
|
624
642
|
|
|
625
643
|
> **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.
|
|
@@ -639,7 +657,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
639
657
|
__props__.__dict__["warning"] = warning
|
|
640
658
|
return MultiLocationAlertCondition(resource_name, opts=opts, __props__=__props__)
|
|
641
659
|
|
|
642
|
-
@property
|
|
660
|
+
@_builtins.property
|
|
643
661
|
@pulumi.getter
|
|
644
662
|
def critical(self) -> pulumi.Output['outputs.MultiLocationAlertConditionCritical']:
|
|
645
663
|
"""
|
|
@@ -647,63 +665,63 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
|
|
|
647
665
|
"""
|
|
648
666
|
return pulumi.get(self, "critical")
|
|
649
667
|
|
|
650
|
-
@property
|
|
668
|
+
@_builtins.property
|
|
651
669
|
@pulumi.getter
|
|
652
|
-
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
670
|
+
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
653
671
|
"""
|
|
654
672
|
Set whether to enable the alert condition. Defaults to true.
|
|
655
673
|
"""
|
|
656
674
|
return pulumi.get(self, "enabled")
|
|
657
675
|
|
|
658
|
-
@property
|
|
676
|
+
@_builtins.property
|
|
659
677
|
@pulumi.getter
|
|
660
|
-
def entities(self) -> pulumi.Output[Sequence[str]]:
|
|
678
|
+
def entities(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
661
679
|
"""
|
|
662
680
|
The Monitor GUID's of the Synthetics monitors to alert on.
|
|
663
681
|
"""
|
|
664
682
|
return pulumi.get(self, "entities")
|
|
665
683
|
|
|
666
|
-
@property
|
|
684
|
+
@_builtins.property
|
|
667
685
|
@pulumi.getter(name="entityGuid")
|
|
668
|
-
def entity_guid(self) -> pulumi.Output[str]:
|
|
686
|
+
def entity_guid(self) -> pulumi.Output[_builtins.str]:
|
|
669
687
|
"""
|
|
670
688
|
The unique entity identifier of the condition in New Relic.
|
|
671
689
|
"""
|
|
672
690
|
return pulumi.get(self, "entity_guid")
|
|
673
691
|
|
|
674
|
-
@property
|
|
692
|
+
@_builtins.property
|
|
675
693
|
@pulumi.getter
|
|
676
|
-
def name(self) -> pulumi.Output[str]:
|
|
694
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
677
695
|
"""
|
|
678
696
|
The title of the condition.
|
|
679
697
|
"""
|
|
680
698
|
return pulumi.get(self, "name")
|
|
681
699
|
|
|
682
|
-
@property
|
|
700
|
+
@_builtins.property
|
|
683
701
|
@pulumi.getter(name="policyId")
|
|
684
|
-
def policy_id(self) -> pulumi.Output[
|
|
702
|
+
def policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
685
703
|
"""
|
|
686
704
|
The ID of the policy where this condition will be used.
|
|
687
705
|
"""
|
|
688
706
|
return pulumi.get(self, "policy_id")
|
|
689
707
|
|
|
690
|
-
@property
|
|
708
|
+
@_builtins.property
|
|
691
709
|
@pulumi.getter(name="runbookUrl")
|
|
692
|
-
def runbook_url(self) -> pulumi.Output[Optional[str]]:
|
|
710
|
+
def runbook_url(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
693
711
|
"""
|
|
694
712
|
Runbook URL to display in notifications.
|
|
695
713
|
"""
|
|
696
714
|
return pulumi.get(self, "runbook_url")
|
|
697
715
|
|
|
698
|
-
@property
|
|
716
|
+
@_builtins.property
|
|
699
717
|
@pulumi.getter(name="violationTimeLimitSeconds")
|
|
700
|
-
def violation_time_limit_seconds(self) -> pulumi.Output[Optional[int]]:
|
|
718
|
+
def violation_time_limit_seconds(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
701
719
|
"""
|
|
702
720
|
The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
|
|
703
721
|
"""
|
|
704
722
|
return pulumi.get(self, "violation_time_limit_seconds")
|
|
705
723
|
|
|
706
|
-
@property
|
|
724
|
+
@_builtins.property
|
|
707
725
|
@pulumi.getter
|
|
708
726
|
def warning(self) -> pulumi.Output[Optional['outputs.MultiLocationAlertConditionWarning']]:
|
|
709
727
|
"""
|