pulumi-newrelic 5.23.0__py3-none-any.whl → 5.23.0a1711605988__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 +270 -183
- pulumi_newrelic/account_management.py +20 -20
- pulumi_newrelic/alert_channel.py +92 -76
- pulumi_newrelic/alert_condition.py +163 -104
- pulumi_newrelic/alert_muting_rule.py +35 -33
- pulumi_newrelic/alert_policy.py +43 -68
- pulumi_newrelic/alert_policy_channel.py +8 -12
- pulumi_newrelic/cloud/_inputs.py +1072 -322
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -4
- pulumi_newrelic/cloud/aws_integrations.py +15 -13
- pulumi_newrelic/cloud/aws_link_account.py +6 -4
- pulumi_newrelic/cloud/azure_integrations.py +12 -10
- pulumi_newrelic/cloud/azure_link_account.py +6 -4
- pulumi_newrelic/cloud/gcp_integrations.py +6 -6
- pulumi_newrelic/cloud/gcp_link_account.py +6 -4
- pulumi_newrelic/cloud/outputs.py +1072 -322
- pulumi_newrelic/data_partition_rule.py +4 -0
- pulumi_newrelic/entity_tags.py +17 -13
- pulumi_newrelic/events_to_metrics_rule.py +4 -2
- pulumi_newrelic/get_account.py +4 -0
- pulumi_newrelic/get_application.py +10 -8
- pulumi_newrelic/get_authentication_domain.py +8 -4
- pulumi_newrelic/get_cloud_account.py +4 -0
- pulumi_newrelic/get_entity.py +33 -48
- pulumi_newrelic/get_group.py +8 -42
- pulumi_newrelic/get_key_transaction.py +10 -8
- pulumi_newrelic/get_notification_destination.py +1 -20
- pulumi_newrelic/get_obfuscation_expression.py +4 -2
- pulumi_newrelic/get_service_level_alert_helper.py +46 -22
- pulumi_newrelic/get_test_grok_pattern.py +6 -4
- pulumi_newrelic/get_user.py +4 -0
- pulumi_newrelic/group.py +42 -40
- pulumi_newrelic/infra_alert_condition.py +145 -154
- pulumi_newrelic/insights/event.py +25 -8
- pulumi_newrelic/log_parsing_rule.py +10 -6
- pulumi_newrelic/monitor_downtime.py +193 -174
- pulumi_newrelic/notification_channel.py +150 -124
- pulumi_newrelic/notification_destination.py +1 -95
- pulumi_newrelic/nrql_alert_condition.py +48 -38
- pulumi_newrelic/nrql_drop_rule.py +38 -34
- pulumi_newrelic/obfuscation_expression.py +4 -2
- pulumi_newrelic/obfuscation_rule.py +4 -4
- pulumi_newrelic/one_dashboard.py +48 -42
- pulumi_newrelic/one_dashboard_raw.py +86 -86
- pulumi_newrelic/outputs.py +270 -180
- pulumi_newrelic/plugins/_inputs.py +16 -16
- pulumi_newrelic/plugins/application_settings.py +36 -20
- pulumi_newrelic/plugins/outputs.py +16 -16
- pulumi_newrelic/plugins/workload.py +40 -158
- pulumi_newrelic/service_level.py +123 -38
- pulumi_newrelic/synthetics/alert_condition.py +78 -34
- pulumi_newrelic/synthetics/broken_links_monitor.py +20 -18
- pulumi_newrelic/synthetics/cert_check_monitor.py +18 -16
- pulumi_newrelic/synthetics/get_private_location.py +8 -0
- pulumi_newrelic/synthetics/get_secure_credential.py +12 -0
- pulumi_newrelic/synthetics/monitor.py +52 -48
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +83 -69
- pulumi_newrelic/synthetics/private_location.py +6 -6
- pulumi_newrelic/synthetics/script_monitor.py +42 -38
- pulumi_newrelic/synthetics/secure_credential.py +22 -25
- pulumi_newrelic/synthetics/step_monitor.py +20 -18
- pulumi_newrelic/user.py +10 -8
- pulumi_newrelic/workflow.py +24 -20
- {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711605988.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1711605988.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711605988.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711605988.dist-info}/top_level.txt +0 -0
@@ -21,10 +21,8 @@ class NotificationDestinationArgs:
|
|
21
21
|
account_id: Optional[pulumi.Input[int]] = None,
|
22
22
|
active: Optional[pulumi.Input[bool]] = None,
|
23
23
|
auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
|
24
|
-
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
|
25
24
|
auth_token: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']] = None,
|
26
|
-
name: Optional[pulumi.Input[str]] = None
|
27
|
-
secure_url: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']] = None):
|
25
|
+
name: Optional[pulumi.Input[str]] = None):
|
28
26
|
"""
|
29
27
|
The set of arguments for constructing a NotificationDestination resource.
|
30
28
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
@@ -33,10 +31,8 @@ class NotificationDestinationArgs:
|
|
33
31
|
:param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
34
32
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
35
33
|
:param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
36
|
-
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
37
34
|
:param pulumi.Input['NotificationDestinationAuthTokenArgs'] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
38
35
|
:param pulumi.Input[str] name: The name of the destination.
|
39
|
-
:param pulumi.Input['NotificationDestinationSecureUrlArgs'] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
|
40
36
|
"""
|
41
37
|
pulumi.set(__self__, "properties", properties)
|
42
38
|
pulumi.set(__self__, "type", type)
|
@@ -46,14 +42,10 @@ class NotificationDestinationArgs:
|
|
46
42
|
pulumi.set(__self__, "active", active)
|
47
43
|
if auth_basic is not None:
|
48
44
|
pulumi.set(__self__, "auth_basic", auth_basic)
|
49
|
-
if auth_custom_headers is not None:
|
50
|
-
pulumi.set(__self__, "auth_custom_headers", auth_custom_headers)
|
51
45
|
if auth_token is not None:
|
52
46
|
pulumi.set(__self__, "auth_token", auth_token)
|
53
47
|
if name is not None:
|
54
48
|
pulumi.set(__self__, "name", name)
|
55
|
-
if secure_url is not None:
|
56
|
-
pulumi.set(__self__, "secure_url", secure_url)
|
57
49
|
|
58
50
|
@property
|
59
51
|
@pulumi.getter
|
@@ -116,18 +108,6 @@ class NotificationDestinationArgs:
|
|
116
108
|
def auth_basic(self, value: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]):
|
117
109
|
pulumi.set(self, "auth_basic", value)
|
118
110
|
|
119
|
-
@property
|
120
|
-
@pulumi.getter(name="authCustomHeaders")
|
121
|
-
def auth_custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]:
|
122
|
-
"""
|
123
|
-
A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
124
|
-
"""
|
125
|
-
return pulumi.get(self, "auth_custom_headers")
|
126
|
-
|
127
|
-
@auth_custom_headers.setter
|
128
|
-
def auth_custom_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]):
|
129
|
-
pulumi.set(self, "auth_custom_headers", value)
|
130
|
-
|
131
111
|
@property
|
132
112
|
@pulumi.getter(name="authToken")
|
133
113
|
def auth_token(self) -> Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]:
|
@@ -152,18 +132,6 @@ class NotificationDestinationArgs:
|
|
152
132
|
def name(self, value: Optional[pulumi.Input[str]]):
|
153
133
|
pulumi.set(self, "name", value)
|
154
134
|
|
155
|
-
@property
|
156
|
-
@pulumi.getter(name="secureUrl")
|
157
|
-
def secure_url(self) -> Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]:
|
158
|
-
"""
|
159
|
-
A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
|
160
|
-
"""
|
161
|
-
return pulumi.get(self, "secure_url")
|
162
|
-
|
163
|
-
@secure_url.setter
|
164
|
-
def secure_url(self, value: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]):
|
165
|
-
pulumi.set(self, "secure_url", value)
|
166
|
-
|
167
135
|
|
168
136
|
@pulumi.input_type
|
169
137
|
class _NotificationDestinationState:
|
@@ -171,13 +139,11 @@ class _NotificationDestinationState:
|
|
171
139
|
account_id: Optional[pulumi.Input[int]] = None,
|
172
140
|
active: Optional[pulumi.Input[bool]] = None,
|
173
141
|
auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
|
174
|
-
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
|
175
142
|
auth_token: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']] = None,
|
176
143
|
guid: Optional[pulumi.Input[str]] = None,
|
177
144
|
last_sent: Optional[pulumi.Input[str]] = None,
|
178
145
|
name: Optional[pulumi.Input[str]] = None,
|
179
146
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]] = None,
|
180
|
-
secure_url: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']] = None,
|
181
147
|
status: Optional[pulumi.Input[str]] = None,
|
182
148
|
type: Optional[pulumi.Input[str]] = None):
|
183
149
|
"""
|
@@ -185,13 +151,11 @@ class _NotificationDestinationState:
|
|
185
151
|
:param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
186
152
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
187
153
|
:param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
188
|
-
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
189
154
|
:param pulumi.Input['NotificationDestinationAuthTokenArgs'] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
190
155
|
:param pulumi.Input[str] guid: The unique entity identifier of the destination in New Relic.
|
191
156
|
:param pulumi.Input[str] last_sent: The last time a notification was sent.
|
192
157
|
:param pulumi.Input[str] name: The name of the destination.
|
193
158
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
194
|
-
:param pulumi.Input['NotificationDestinationSecureUrlArgs'] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
|
195
159
|
:param pulumi.Input[str] status: The status of the destination.
|
196
160
|
:param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
197
161
|
PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
|
@@ -202,8 +166,6 @@ class _NotificationDestinationState:
|
|
202
166
|
pulumi.set(__self__, "active", active)
|
203
167
|
if auth_basic is not None:
|
204
168
|
pulumi.set(__self__, "auth_basic", auth_basic)
|
205
|
-
if auth_custom_headers is not None:
|
206
|
-
pulumi.set(__self__, "auth_custom_headers", auth_custom_headers)
|
207
169
|
if auth_token is not None:
|
208
170
|
pulumi.set(__self__, "auth_token", auth_token)
|
209
171
|
if guid is not None:
|
@@ -214,8 +176,6 @@ class _NotificationDestinationState:
|
|
214
176
|
pulumi.set(__self__, "name", name)
|
215
177
|
if properties is not None:
|
216
178
|
pulumi.set(__self__, "properties", properties)
|
217
|
-
if secure_url is not None:
|
218
|
-
pulumi.set(__self__, "secure_url", secure_url)
|
219
179
|
if status is not None:
|
220
180
|
pulumi.set(__self__, "status", status)
|
221
181
|
if type is not None:
|
@@ -257,18 +217,6 @@ class _NotificationDestinationState:
|
|
257
217
|
def auth_basic(self, value: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]):
|
258
218
|
pulumi.set(self, "auth_basic", value)
|
259
219
|
|
260
|
-
@property
|
261
|
-
@pulumi.getter(name="authCustomHeaders")
|
262
|
-
def auth_custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]:
|
263
|
-
"""
|
264
|
-
A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
265
|
-
"""
|
266
|
-
return pulumi.get(self, "auth_custom_headers")
|
267
|
-
|
268
|
-
@auth_custom_headers.setter
|
269
|
-
def auth_custom_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]):
|
270
|
-
pulumi.set(self, "auth_custom_headers", value)
|
271
|
-
|
272
220
|
@property
|
273
221
|
@pulumi.getter(name="authToken")
|
274
222
|
def auth_token(self) -> Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]:
|
@@ -329,18 +277,6 @@ class _NotificationDestinationState:
|
|
329
277
|
def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]]):
|
330
278
|
pulumi.set(self, "properties", value)
|
331
279
|
|
332
|
-
@property
|
333
|
-
@pulumi.getter(name="secureUrl")
|
334
|
-
def secure_url(self) -> Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]:
|
335
|
-
"""
|
336
|
-
A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
|
337
|
-
"""
|
338
|
-
return pulumi.get(self, "secure_url")
|
339
|
-
|
340
|
-
@secure_url.setter
|
341
|
-
def secure_url(self, value: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]):
|
342
|
-
pulumi.set(self, "secure_url", value)
|
343
|
-
|
344
280
|
@property
|
345
281
|
@pulumi.getter
|
346
282
|
def status(self) -> Optional[pulumi.Input[str]]:
|
@@ -375,11 +311,9 @@ class NotificationDestination(pulumi.CustomResource):
|
|
375
311
|
account_id: Optional[pulumi.Input[int]] = None,
|
376
312
|
active: Optional[pulumi.Input[bool]] = None,
|
377
313
|
auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
|
378
|
-
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
|
379
314
|
auth_token: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']]] = None,
|
380
315
|
name: Optional[pulumi.Input[str]] = None,
|
381
316
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]]] = None,
|
382
|
-
secure_url: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']]] = None,
|
383
317
|
type: Optional[pulumi.Input[str]] = None,
|
384
318
|
__props__=None):
|
385
319
|
"""
|
@@ -454,11 +388,9 @@ class NotificationDestination(pulumi.CustomResource):
|
|
454
388
|
:param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
455
389
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
456
390
|
:param pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
457
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
458
391
|
:param pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
459
392
|
:param pulumi.Input[str] name: The name of the destination.
|
460
393
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
461
|
-
:param pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
|
462
394
|
:param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
463
395
|
PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
|
464
396
|
"""
|
@@ -553,11 +485,9 @@ class NotificationDestination(pulumi.CustomResource):
|
|
553
485
|
account_id: Optional[pulumi.Input[int]] = None,
|
554
486
|
active: Optional[pulumi.Input[bool]] = None,
|
555
487
|
auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
|
556
|
-
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
|
557
488
|
auth_token: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']]] = None,
|
558
489
|
name: Optional[pulumi.Input[str]] = None,
|
559
490
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]]] = None,
|
560
|
-
secure_url: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']]] = None,
|
561
491
|
type: Optional[pulumi.Input[str]] = None,
|
562
492
|
__props__=None):
|
563
493
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -571,13 +501,11 @@ class NotificationDestination(pulumi.CustomResource):
|
|
571
501
|
__props__.__dict__["account_id"] = account_id
|
572
502
|
__props__.__dict__["active"] = active
|
573
503
|
__props__.__dict__["auth_basic"] = auth_basic
|
574
|
-
__props__.__dict__["auth_custom_headers"] = auth_custom_headers
|
575
504
|
__props__.__dict__["auth_token"] = auth_token
|
576
505
|
__props__.__dict__["name"] = name
|
577
506
|
if properties is None and not opts.urn:
|
578
507
|
raise TypeError("Missing required property 'properties'")
|
579
508
|
__props__.__dict__["properties"] = properties
|
580
|
-
__props__.__dict__["secure_url"] = secure_url
|
581
509
|
if type is None and not opts.urn:
|
582
510
|
raise TypeError("Missing required property 'type'")
|
583
511
|
__props__.__dict__["type"] = type
|
@@ -597,13 +525,11 @@ class NotificationDestination(pulumi.CustomResource):
|
|
597
525
|
account_id: Optional[pulumi.Input[int]] = None,
|
598
526
|
active: Optional[pulumi.Input[bool]] = None,
|
599
527
|
auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
|
600
|
-
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
|
601
528
|
auth_token: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']]] = None,
|
602
529
|
guid: Optional[pulumi.Input[str]] = None,
|
603
530
|
last_sent: Optional[pulumi.Input[str]] = None,
|
604
531
|
name: Optional[pulumi.Input[str]] = None,
|
605
532
|
properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]]] = None,
|
606
|
-
secure_url: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']]] = None,
|
607
533
|
status: Optional[pulumi.Input[str]] = None,
|
608
534
|
type: Optional[pulumi.Input[str]] = None) -> 'NotificationDestination':
|
609
535
|
"""
|
@@ -616,13 +542,11 @@ class NotificationDestination(pulumi.CustomResource):
|
|
616
542
|
:param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
617
543
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
618
544
|
:param pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
619
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
620
545
|
:param pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
|
621
546
|
:param pulumi.Input[str] guid: The unique entity identifier of the destination in New Relic.
|
622
547
|
:param pulumi.Input[str] last_sent: The last time a notification was sent.
|
623
548
|
:param pulumi.Input[str] name: The name of the destination.
|
624
549
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
625
|
-
:param pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
|
626
550
|
:param pulumi.Input[str] status: The status of the destination.
|
627
551
|
:param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
628
552
|
PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
|
@@ -634,13 +558,11 @@ class NotificationDestination(pulumi.CustomResource):
|
|
634
558
|
__props__.__dict__["account_id"] = account_id
|
635
559
|
__props__.__dict__["active"] = active
|
636
560
|
__props__.__dict__["auth_basic"] = auth_basic
|
637
|
-
__props__.__dict__["auth_custom_headers"] = auth_custom_headers
|
638
561
|
__props__.__dict__["auth_token"] = auth_token
|
639
562
|
__props__.__dict__["guid"] = guid
|
640
563
|
__props__.__dict__["last_sent"] = last_sent
|
641
564
|
__props__.__dict__["name"] = name
|
642
565
|
__props__.__dict__["properties"] = properties
|
643
|
-
__props__.__dict__["secure_url"] = secure_url
|
644
566
|
__props__.__dict__["status"] = status
|
645
567
|
__props__.__dict__["type"] = type
|
646
568
|
return NotificationDestination(resource_name, opts=opts, __props__=__props__)
|
@@ -669,14 +591,6 @@ class NotificationDestination(pulumi.CustomResource):
|
|
669
591
|
"""
|
670
592
|
return pulumi.get(self, "auth_basic")
|
671
593
|
|
672
|
-
@property
|
673
|
-
@pulumi.getter(name="authCustomHeaders")
|
674
|
-
def auth_custom_headers(self) -> pulumi.Output[Optional[Sequence['outputs.NotificationDestinationAuthCustomHeader']]]:
|
675
|
-
"""
|
676
|
-
A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
677
|
-
"""
|
678
|
-
return pulumi.get(self, "auth_custom_headers")
|
679
|
-
|
680
594
|
@property
|
681
595
|
@pulumi.getter(name="authToken")
|
682
596
|
def auth_token(self) -> pulumi.Output[Optional['outputs.NotificationDestinationAuthToken']]:
|
@@ -717,14 +631,6 @@ class NotificationDestination(pulumi.CustomResource):
|
|
717
631
|
"""
|
718
632
|
return pulumi.get(self, "properties")
|
719
633
|
|
720
|
-
@property
|
721
|
-
@pulumi.getter(name="secureUrl")
|
722
|
-
def secure_url(self) -> pulumi.Output[Optional['outputs.NotificationDestinationSecureUrl']]:
|
723
|
-
"""
|
724
|
-
A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
|
725
|
-
"""
|
726
|
-
return pulumi.get(self, "secure_url")
|
727
|
-
|
728
634
|
@property
|
729
635
|
@pulumi.getter
|
730
636
|
def status(self) -> pulumi.Output[str]:
|
@@ -913,16 +913,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
913
913
|
|
914
914
|
### Type: `static` (default)
|
915
915
|
|
916
|
+
<!--Start PulumiCodeChooser -->
|
916
917
|
```python
|
917
918
|
import pulumi
|
918
919
|
import pulumi_newrelic as newrelic
|
919
920
|
|
920
|
-
|
921
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
921
|
+
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
|
922
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
|
922
923
|
account_id=12345678,
|
923
|
-
policy_id=
|
924
|
+
policy_id=foo_alert_policy.id,
|
924
925
|
type="static",
|
925
|
-
name="foo",
|
926
926
|
description="Alert when transactions are taking too long",
|
927
927
|
runbook_url="https://www.example.com",
|
928
928
|
enabled=True,
|
@@ -952,6 +952,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
952
952
|
threshold_occurrences="ALL",
|
953
953
|
))
|
954
954
|
```
|
955
|
+
<!--End PulumiCodeChooser -->
|
955
956
|
|
956
957
|
## NRQL
|
957
958
|
|
@@ -991,16 +992,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
991
992
|
|
992
993
|
[Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
|
993
994
|
|
995
|
+
<!--Start PulumiCodeChooser -->
|
994
996
|
```python
|
995
997
|
import pulumi
|
996
998
|
import pulumi_newrelic as newrelic
|
997
999
|
|
998
|
-
|
999
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1000
|
+
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
|
1001
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
|
1000
1002
|
account_id="your_account_id",
|
1001
|
-
policy_id=
|
1003
|
+
policy_id=foo_alert_policy.id,
|
1002
1004
|
type="static",
|
1003
|
-
name="foo",
|
1004
1005
|
description="Alert when transactions are taking too long",
|
1005
1006
|
runbook_url="https://www.example.com",
|
1006
1007
|
enabled=True,
|
@@ -1030,21 +1031,22 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1030
1031
|
threshold_occurrences="ALL",
|
1031
1032
|
))
|
1032
1033
|
```
|
1034
|
+
<!--End PulumiCodeChooser -->
|
1033
1035
|
|
1034
1036
|
## Tags
|
1035
1037
|
|
1036
1038
|
Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
|
1037
1039
|
|
1040
|
+
<!--Start PulumiCodeChooser -->
|
1038
1041
|
```python
|
1039
1042
|
import pulumi
|
1040
1043
|
import pulumi_newrelic as newrelic
|
1041
1044
|
|
1042
|
-
|
1043
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1045
|
+
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
|
1046
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
|
1044
1047
|
account_id=12345678,
|
1045
|
-
policy_id=
|
1048
|
+
policy_id=foo_alert_policy.id,
|
1046
1049
|
type="static",
|
1047
|
-
name="foo",
|
1048
1050
|
description="Alert when transactions are taking too long",
|
1049
1051
|
runbook_url="https://www.example.com",
|
1050
1052
|
enabled=True,
|
@@ -1073,7 +1075,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1073
1075
|
threshold_duration=600,
|
1074
1076
|
threshold_occurrences="ALL",
|
1075
1077
|
))
|
1076
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
1078
|
+
my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
|
1077
1079
|
guid=foo_nrql_alert_condition.entity_guid,
|
1078
1080
|
tags=[
|
1079
1081
|
newrelic.EntityTagsTagArgs(
|
@@ -1089,6 +1091,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1089
1091
|
),
|
1090
1092
|
])
|
1091
1093
|
```
|
1094
|
+
<!--End PulumiCodeChooser -->
|
1092
1095
|
|
1093
1096
|
<small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
|
1094
1097
|
|
@@ -1100,13 +1103,13 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1100
1103
|
|
1101
1104
|
An example resource from 1.x might look like the following.
|
1102
1105
|
|
1106
|
+
<!--Start PulumiCodeChooser -->
|
1103
1107
|
```python
|
1104
1108
|
import pulumi
|
1105
1109
|
import pulumi_newrelic as newrelic
|
1106
1110
|
|
1107
|
-
|
1108
|
-
policy_id=
|
1109
|
-
name="zleslie-test",
|
1111
|
+
nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
|
1112
|
+
policy_id=newrelic_alert_policy["z"]["id"],
|
1110
1113
|
type="static",
|
1111
1114
|
runbook_url="https://localhost",
|
1112
1115
|
enabled=True,
|
@@ -1121,17 +1124,18 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1121
1124
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1122
1125
|
))
|
1123
1126
|
```
|
1127
|
+
<!--End PulumiCodeChooser -->
|
1124
1128
|
|
1125
1129
|
After making the appropriate adjustments mentioned in the deprecation warnings,
|
1126
1130
|
the resource now looks like the following.
|
1127
1131
|
|
1132
|
+
<!--Start PulumiCodeChooser -->
|
1128
1133
|
```python
|
1129
1134
|
import pulumi
|
1130
1135
|
import pulumi_newrelic as newrelic
|
1131
1136
|
|
1132
|
-
|
1133
|
-
policy_id=
|
1134
|
-
name="zleslie-test",
|
1137
|
+
nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
|
1138
|
+
policy_id=newrelic_alert_policy["z"]["id"],
|
1135
1139
|
type="static",
|
1136
1140
|
runbook_url="https://localhost",
|
1137
1141
|
enabled=True,
|
@@ -1147,6 +1151,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1147
1151
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1148
1152
|
))
|
1149
1153
|
```
|
1154
|
+
<!--End PulumiCodeChooser -->
|
1150
1155
|
|
1151
1156
|
## Import
|
1152
1157
|
|
@@ -1207,16 +1212,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1207
1212
|
|
1208
1213
|
### Type: `static` (default)
|
1209
1214
|
|
1215
|
+
<!--Start PulumiCodeChooser -->
|
1210
1216
|
```python
|
1211
1217
|
import pulumi
|
1212
1218
|
import pulumi_newrelic as newrelic
|
1213
1219
|
|
1214
|
-
|
1215
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1220
|
+
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
|
1221
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
|
1216
1222
|
account_id=12345678,
|
1217
|
-
policy_id=
|
1223
|
+
policy_id=foo_alert_policy.id,
|
1218
1224
|
type="static",
|
1219
|
-
name="foo",
|
1220
1225
|
description="Alert when transactions are taking too long",
|
1221
1226
|
runbook_url="https://www.example.com",
|
1222
1227
|
enabled=True,
|
@@ -1246,6 +1251,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1246
1251
|
threshold_occurrences="ALL",
|
1247
1252
|
))
|
1248
1253
|
```
|
1254
|
+
<!--End PulumiCodeChooser -->
|
1249
1255
|
|
1250
1256
|
## NRQL
|
1251
1257
|
|
@@ -1285,16 +1291,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1285
1291
|
|
1286
1292
|
[Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
|
1287
1293
|
|
1294
|
+
<!--Start PulumiCodeChooser -->
|
1288
1295
|
```python
|
1289
1296
|
import pulumi
|
1290
1297
|
import pulumi_newrelic as newrelic
|
1291
1298
|
|
1292
|
-
|
1293
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1299
|
+
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
|
1300
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
|
1294
1301
|
account_id="your_account_id",
|
1295
|
-
policy_id=
|
1302
|
+
policy_id=foo_alert_policy.id,
|
1296
1303
|
type="static",
|
1297
|
-
name="foo",
|
1298
1304
|
description="Alert when transactions are taking too long",
|
1299
1305
|
runbook_url="https://www.example.com",
|
1300
1306
|
enabled=True,
|
@@ -1324,21 +1330,22 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1324
1330
|
threshold_occurrences="ALL",
|
1325
1331
|
))
|
1326
1332
|
```
|
1333
|
+
<!--End PulumiCodeChooser -->
|
1327
1334
|
|
1328
1335
|
## Tags
|
1329
1336
|
|
1330
1337
|
Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
|
1331
1338
|
|
1339
|
+
<!--Start PulumiCodeChooser -->
|
1332
1340
|
```python
|
1333
1341
|
import pulumi
|
1334
1342
|
import pulumi_newrelic as newrelic
|
1335
1343
|
|
1336
|
-
|
1337
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1344
|
+
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
|
1345
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
|
1338
1346
|
account_id=12345678,
|
1339
|
-
policy_id=
|
1347
|
+
policy_id=foo_alert_policy.id,
|
1340
1348
|
type="static",
|
1341
|
-
name="foo",
|
1342
1349
|
description="Alert when transactions are taking too long",
|
1343
1350
|
runbook_url="https://www.example.com",
|
1344
1351
|
enabled=True,
|
@@ -1367,7 +1374,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1367
1374
|
threshold_duration=600,
|
1368
1375
|
threshold_occurrences="ALL",
|
1369
1376
|
))
|
1370
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
1377
|
+
my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
|
1371
1378
|
guid=foo_nrql_alert_condition.entity_guid,
|
1372
1379
|
tags=[
|
1373
1380
|
newrelic.EntityTagsTagArgs(
|
@@ -1383,6 +1390,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1383
1390
|
),
|
1384
1391
|
])
|
1385
1392
|
```
|
1393
|
+
<!--End PulumiCodeChooser -->
|
1386
1394
|
|
1387
1395
|
<small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
|
1388
1396
|
|
@@ -1394,13 +1402,13 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1394
1402
|
|
1395
1403
|
An example resource from 1.x might look like the following.
|
1396
1404
|
|
1405
|
+
<!--Start PulumiCodeChooser -->
|
1397
1406
|
```python
|
1398
1407
|
import pulumi
|
1399
1408
|
import pulumi_newrelic as newrelic
|
1400
1409
|
|
1401
|
-
|
1402
|
-
policy_id=
|
1403
|
-
name="zleslie-test",
|
1410
|
+
nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
|
1411
|
+
policy_id=newrelic_alert_policy["z"]["id"],
|
1404
1412
|
type="static",
|
1405
1413
|
runbook_url="https://localhost",
|
1406
1414
|
enabled=True,
|
@@ -1415,17 +1423,18 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1415
1423
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1416
1424
|
))
|
1417
1425
|
```
|
1426
|
+
<!--End PulumiCodeChooser -->
|
1418
1427
|
|
1419
1428
|
After making the appropriate adjustments mentioned in the deprecation warnings,
|
1420
1429
|
the resource now looks like the following.
|
1421
1430
|
|
1431
|
+
<!--Start PulumiCodeChooser -->
|
1422
1432
|
```python
|
1423
1433
|
import pulumi
|
1424
1434
|
import pulumi_newrelic as newrelic
|
1425
1435
|
|
1426
|
-
|
1427
|
-
policy_id=
|
1428
|
-
name="zleslie-test",
|
1436
|
+
nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
|
1437
|
+
policy_id=newrelic_alert_policy["z"]["id"],
|
1429
1438
|
type="static",
|
1430
1439
|
runbook_url="https://localhost",
|
1431
1440
|
enabled=True,
|
@@ -1441,6 +1450,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1441
1450
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1442
1451
|
))
|
1443
1452
|
```
|
1453
|
+
<!--End PulumiCodeChooser -->
|
1444
1454
|
|
1445
1455
|
## Import
|
1446
1456
|
|