pulumi-newrelic 5.23.0a1713561620__py3-none-any.whl → 5.23.0a1713984329__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 +183 -270
- pulumi_newrelic/account_management.py +14 -18
- pulumi_newrelic/alert_channel.py +28 -56
- pulumi_newrelic/alert_condition.py +84 -133
- pulumi_newrelic/alert_muting_rule.py +21 -25
- pulumi_newrelic/alert_policy.py +42 -33
- pulumi_newrelic/alert_policy_channel.py +0 -4
- pulumi_newrelic/cloud/_inputs.py +322 -1072
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -4
- pulumi_newrelic/cloud/aws_integrations.py +7 -11
- pulumi_newrelic/cloud/aws_link_account.py +0 -4
- pulumi_newrelic/cloud/azure_integrations.py +0 -4
- pulumi_newrelic/cloud/azure_link_account.py +0 -4
- pulumi_newrelic/cloud/gcp_integrations.py +0 -4
- pulumi_newrelic/cloud/gcp_link_account.py +0 -4
- pulumi_newrelic/cloud/outputs.py +322 -1072
- pulumi_newrelic/data_partition_rule.py +0 -4
- pulumi_newrelic/entity_tags.py +7 -11
- pulumi_newrelic/events_to_metrics_rule.py +0 -4
- pulumi_newrelic/get_account.py +0 -4
- pulumi_newrelic/get_application.py +0 -4
- pulumi_newrelic/get_authentication_domain.py +0 -4
- pulumi_newrelic/get_cloud_account.py +0 -4
- pulumi_newrelic/get_entity.py +0 -16
- pulumi_newrelic/get_group.py +0 -8
- pulumi_newrelic/get_key_transaction.py +0 -4
- pulumi_newrelic/get_notification_destination.py +20 -1
- pulumi_newrelic/get_obfuscation_expression.py +0 -4
- pulumi_newrelic/get_service_level_alert_helper.py +0 -30
- pulumi_newrelic/get_test_grok_pattern.py +0 -4
- pulumi_newrelic/get_user.py +0 -4
- pulumi_newrelic/group.py +0 -12
- pulumi_newrelic/infra_alert_condition.py +126 -113
- pulumi_newrelic/insights/event.py +0 -17
- pulumi_newrelic/log_parsing_rule.py +0 -8
- pulumi_newrelic/monitor_downtime.py +70 -101
- pulumi_newrelic/notification_channel.py +0 -44
- pulumi_newrelic/notification_destination.py +95 -1
- pulumi_newrelic/nrql_alert_condition.py +0 -20
- pulumi_newrelic/nrql_drop_rule.py +28 -32
- pulumi_newrelic/obfuscation_expression.py +0 -4
- pulumi_newrelic/obfuscation_rule.py +0 -4
- pulumi_newrelic/one_dashboard.py +42 -48
- pulumi_newrelic/one_dashboard_raw.py +0 -4
- pulumi_newrelic/outputs.py +180 -270
- pulumi_newrelic/plugins/_inputs.py +16 -16
- pulumi_newrelic/plugins/application_settings.py +0 -4
- pulumi_newrelic/plugins/outputs.py +16 -16
- pulumi_newrelic/plugins/workload.py +28 -48
- pulumi_newrelic/service_level.py +0 -91
- pulumi_newrelic/synthetics/alert_condition.py +14 -50
- pulumi_newrelic/synthetics/broken_links_monitor.py +0 -8
- pulumi_newrelic/synthetics/cert_check_monitor.py +0 -8
- pulumi_newrelic/synthetics/get_private_location.py +0 -8
- pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
- pulumi_newrelic/synthetics/monitor.py +0 -16
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -71
- pulumi_newrelic/synthetics/private_location.py +0 -4
- pulumi_newrelic/synthetics/script_monitor.py +4 -20
- pulumi_newrelic/synthetics/secure_credential.py +21 -18
- pulumi_newrelic/synthetics/step_monitor.py +4 -12
- pulumi_newrelic/user.py +0 -4
- pulumi_newrelic/workflow.py +0 -16
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713984329.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/top_level.txt +0 -0
@@ -170,7 +170,6 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
170
170
|
|
171
171
|
Firstly set up your service level objective, we recommend using local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
|
172
172
|
|
173
|
-
<!--Start PulumiCodeChooser -->
|
174
173
|
```python
|
175
174
|
import pulumi
|
176
175
|
import pulumi_newrelic as newrelic
|
@@ -202,14 +201,12 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
202
201
|
),
|
203
202
|
))
|
204
203
|
```
|
205
|
-
<!--End PulumiCodeChooser -->
|
206
204
|
Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
|
207
205
|
Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
|
208
206
|
If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
|
209
207
|
|
210
208
|
Here is an example of a `slow_burn` alert.
|
211
209
|
|
212
|
-
<!--Start PulumiCodeChooser -->
|
213
210
|
```python
|
214
211
|
import pulumi
|
215
212
|
import pulumi_newrelic as newrelic
|
@@ -241,11 +238,9 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
241
238
|
aggregation_delay="120",
|
242
239
|
slide_by=900)
|
243
240
|
```
|
244
|
-
<!--End PulumiCodeChooser -->
|
245
241
|
|
246
242
|
Here is an example of a custom alert:
|
247
243
|
|
248
|
-
<!--Start PulumiCodeChooser -->
|
249
244
|
```python
|
250
245
|
import pulumi
|
251
246
|
import pulumi_newrelic as newrelic
|
@@ -279,16 +274,6 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
279
274
|
aggregation_delay="120",
|
280
275
|
slide_by=60)
|
281
276
|
```
|
282
|
-
<!--End PulumiCodeChooser -->
|
283
|
-
|
284
|
-
|
285
|
-
:param str alert_type: The type of alert we want to set. Valid values are:
|
286
|
-
:param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
287
|
-
:param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
288
|
-
:param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
289
|
-
:param str sli_guid: The guid of the sli we want to set the alert on.
|
290
|
-
:param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
291
|
-
:param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
292
277
|
"""
|
293
278
|
__args__ = dict()
|
294
279
|
__args__['alertType'] = alert_type
|
@@ -332,7 +317,6 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
332
317
|
|
333
318
|
Firstly set up your service level objective, we recommend using local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
|
334
319
|
|
335
|
-
<!--Start PulumiCodeChooser -->
|
336
320
|
```python
|
337
321
|
import pulumi
|
338
322
|
import pulumi_newrelic as newrelic
|
@@ -364,14 +348,12 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
364
348
|
),
|
365
349
|
))
|
366
350
|
```
|
367
|
-
<!--End PulumiCodeChooser -->
|
368
351
|
Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
|
369
352
|
Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
|
370
353
|
If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
|
371
354
|
|
372
355
|
Here is an example of a `slow_burn` alert.
|
373
356
|
|
374
|
-
<!--Start PulumiCodeChooser -->
|
375
357
|
```python
|
376
358
|
import pulumi
|
377
359
|
import pulumi_newrelic as newrelic
|
@@ -403,11 +385,9 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
403
385
|
aggregation_delay="120",
|
404
386
|
slide_by=900)
|
405
387
|
```
|
406
|
-
<!--End PulumiCodeChooser -->
|
407
388
|
|
408
389
|
Here is an example of a custom alert:
|
409
390
|
|
410
|
-
<!--Start PulumiCodeChooser -->
|
411
391
|
```python
|
412
392
|
import pulumi
|
413
393
|
import pulumi_newrelic as newrelic
|
@@ -441,15 +421,5 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
441
421
|
aggregation_delay="120",
|
442
422
|
slide_by=60)
|
443
423
|
```
|
444
|
-
<!--End PulumiCodeChooser -->
|
445
|
-
|
446
|
-
|
447
|
-
:param str alert_type: The type of alert we want to set. Valid values are:
|
448
|
-
:param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
449
|
-
:param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
450
|
-
:param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
451
|
-
:param str sli_guid: The guid of the sli we want to set the alert on.
|
452
|
-
:param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
453
|
-
:param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
454
424
|
"""
|
455
425
|
...
|
@@ -91,7 +91,6 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
|
|
91
91
|
"""
|
92
92
|
## Example Usage
|
93
93
|
|
94
|
-
<!--Start PulumiCodeChooser -->
|
95
94
|
```python
|
96
95
|
import pulumi
|
97
96
|
import pulumi_newrelic as newrelic
|
@@ -103,7 +102,6 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
|
|
103
102
|
"bytes_received: 2048",
|
104
103
|
])
|
105
104
|
```
|
106
|
-
<!--End PulumiCodeChooser -->
|
107
105
|
|
108
106
|
|
109
107
|
:param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
@@ -133,7 +131,6 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
|
|
133
131
|
"""
|
134
132
|
## Example Usage
|
135
133
|
|
136
|
-
<!--Start PulumiCodeChooser -->
|
137
134
|
```python
|
138
135
|
import pulumi
|
139
136
|
import pulumi_newrelic as newrelic
|
@@ -145,7 +142,6 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
|
|
145
142
|
"bytes_received: 2048",
|
146
143
|
])
|
147
144
|
```
|
148
|
-
<!--End PulumiCodeChooser -->
|
149
145
|
|
150
146
|
|
151
147
|
:param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
pulumi_newrelic/get_user.py
CHANGED
@@ -81,7 +81,6 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
81
81
|
## Example Usage
|
82
82
|
|
83
83
|
The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
|
84
|
-
<!--Start PulumiCodeChooser -->
|
85
84
|
```python
|
86
85
|
import pulumi
|
87
86
|
import pulumi_newrelic as newrelic
|
@@ -92,7 +91,6 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
92
91
|
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
93
92
|
email_id="test_user@random.com")
|
94
93
|
```
|
95
|
-
<!--End PulumiCodeChooser -->
|
96
94
|
|
97
95
|
|
98
96
|
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
@@ -130,7 +128,6 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
|
|
130
128
|
## Example Usage
|
131
129
|
|
132
130
|
The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
|
133
|
-
<!--Start PulumiCodeChooser -->
|
134
131
|
```python
|
135
132
|
import pulumi
|
136
133
|
import pulumi_newrelic as newrelic
|
@@ -141,7 +138,6 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
|
|
141
138
|
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
142
139
|
email_id="test_user@random.com")
|
143
140
|
```
|
144
|
-
<!--End PulumiCodeChooser -->
|
145
141
|
|
146
142
|
|
147
143
|
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
pulumi_newrelic/group.py
CHANGED
@@ -152,7 +152,6 @@ class Group(pulumi.CustomResource):
|
|
152
152
|
|
153
153
|
## Example Usage
|
154
154
|
|
155
|
-
<!--Start PulumiCodeChooser -->
|
156
155
|
```python
|
157
156
|
import pulumi
|
158
157
|
import pulumi_newrelic as newrelic
|
@@ -166,7 +165,6 @@ class Group(pulumi.CustomResource):
|
|
166
165
|
"2221110000",
|
167
166
|
])
|
168
167
|
```
|
169
|
-
<!--End PulumiCodeChooser -->
|
170
168
|
|
171
169
|
## Additional Examples
|
172
170
|
|
@@ -174,7 +172,6 @@ class Group(pulumi.CustomResource):
|
|
174
172
|
|
175
173
|
The following example illustrates the creation of a group using the `Group` resource, to which users created using the `User` resource are added.
|
176
174
|
|
177
|
-
<!--Start PulumiCodeChooser -->
|
178
175
|
```python
|
179
176
|
import pulumi
|
180
177
|
import pulumi_newrelic as newrelic
|
@@ -198,13 +195,11 @@ class Group(pulumi.CustomResource):
|
|
198
195
|
bar.id,
|
199
196
|
])
|
200
197
|
```
|
201
|
-
<!--End PulumiCodeChooser -->
|
202
198
|
|
203
199
|
### Addition of Existing Users to a New Group
|
204
200
|
|
205
201
|
The following example demonstrates the usage of the `Group` resource to create a group, wherein the `User` data source is employed to associate existing users with the newly formed group.
|
206
202
|
|
207
|
-
<!--Start PulumiCodeChooser -->
|
208
203
|
```python
|
209
204
|
import pulumi
|
210
205
|
import pulumi_newrelic as newrelic
|
@@ -222,7 +217,6 @@ class Group(pulumi.CustomResource):
|
|
222
217
|
bar.id,
|
223
218
|
])
|
224
219
|
```
|
225
|
-
<!--End PulumiCodeChooser -->
|
226
220
|
|
227
221
|
> **NOTE** Please note that the addition of users to groups is only possible when both the group and the users to be added to it belong to the _same authentication domain_. If the group being created and the users being added to it belong to different authentication domains, an error indicating `user not found` or an equivalent error will be thrown.
|
228
222
|
|
@@ -255,7 +249,6 @@ class Group(pulumi.CustomResource):
|
|
255
249
|
|
256
250
|
## Example Usage
|
257
251
|
|
258
|
-
<!--Start PulumiCodeChooser -->
|
259
252
|
```python
|
260
253
|
import pulumi
|
261
254
|
import pulumi_newrelic as newrelic
|
@@ -269,7 +262,6 @@ class Group(pulumi.CustomResource):
|
|
269
262
|
"2221110000",
|
270
263
|
])
|
271
264
|
```
|
272
|
-
<!--End PulumiCodeChooser -->
|
273
265
|
|
274
266
|
## Additional Examples
|
275
267
|
|
@@ -277,7 +269,6 @@ class Group(pulumi.CustomResource):
|
|
277
269
|
|
278
270
|
The following example illustrates the creation of a group using the `Group` resource, to which users created using the `User` resource are added.
|
279
271
|
|
280
|
-
<!--Start PulumiCodeChooser -->
|
281
272
|
```python
|
282
273
|
import pulumi
|
283
274
|
import pulumi_newrelic as newrelic
|
@@ -301,13 +292,11 @@ class Group(pulumi.CustomResource):
|
|
301
292
|
bar.id,
|
302
293
|
])
|
303
294
|
```
|
304
|
-
<!--End PulumiCodeChooser -->
|
305
295
|
|
306
296
|
### Addition of Existing Users to a New Group
|
307
297
|
|
308
298
|
The following example demonstrates the usage of the `Group` resource to create a group, wherein the `User` data source is employed to associate existing users with the newly formed group.
|
309
299
|
|
310
|
-
<!--Start PulumiCodeChooser -->
|
311
300
|
```python
|
312
301
|
import pulumi
|
313
302
|
import pulumi_newrelic as newrelic
|
@@ -325,7 +314,6 @@ class Group(pulumi.CustomResource):
|
|
325
314
|
bar.id,
|
326
315
|
])
|
327
316
|
```
|
328
|
-
<!--End PulumiCodeChooser -->
|
329
317
|
|
330
318
|
> **NOTE** Please note that the addition of users to groups is only possible when both the group and the users to be added to it belong to the _same authentication domain_. If the group being created and the users being added to it belong to different authentication domains, an error indicating `user not found` or an equivalent error will be thrown.
|
331
319
|
|