pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.21.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/_inputs.py +69 -29
- pulumi_newrelic/account_management.py +6 -2
- pulumi_newrelic/alert_channel.py +34 -2
- pulumi_newrelic/alert_condition.py +26 -2
- pulumi_newrelic/alert_muting_rule.py +6 -2
- pulumi_newrelic/alert_policy.py +22 -4
- pulumi_newrelic/alert_policy_channel.py +8 -4
- pulumi_newrelic/api_access_key.py +6 -26
- pulumi_newrelic/browser_application.py +6 -2
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +2 -2
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -2
- pulumi_newrelic/cloud/aws_integrations.py +6 -2
- pulumi_newrelic/cloud/aws_link_account.py +6 -2
- pulumi_newrelic/cloud/azure_integrations.py +6 -2
- pulumi_newrelic/cloud/azure_link_account.py +6 -2
- pulumi_newrelic/cloud/gcp_integrations.py +6 -2
- pulumi_newrelic/cloud/gcp_link_account.py +6 -2
- pulumi_newrelic/data_partition_rule.py +8 -2
- pulumi_newrelic/entity_tags.py +8 -4
- pulumi_newrelic/events_to_metrics_rule.py +8 -4
- pulumi_newrelic/get_account.py +4 -0
- pulumi_newrelic/get_application.py +4 -0
- pulumi_newrelic/get_authentication_domain.py +4 -0
- pulumi_newrelic/get_cloud_account.py +4 -0
- pulumi_newrelic/get_entity.py +66 -4
- pulumi_newrelic/get_group.py +4 -0
- pulumi_newrelic/get_key_transaction.py +4 -0
- pulumi_newrelic/get_notification_destination.py +14 -1
- pulumi_newrelic/get_obfuscation_expression.py +4 -0
- pulumi_newrelic/get_service_level_alert_helper.py +12 -0
- pulumi_newrelic/get_test_grok_pattern.py +4 -0
- pulumi_newrelic/get_user.py +4 -0
- pulumi_newrelic/group.py +14 -0
- pulumi_newrelic/infra_alert_condition.py +33 -9
- pulumi_newrelic/insights/event.py +6 -0
- pulumi_newrelic/log_parsing_rule.py +12 -2
- pulumi_newrelic/monitor_downtime.py +28 -2
- pulumi_newrelic/notification_channel.py +50 -4
- pulumi_newrelic/notification_destination.py +92 -72
- pulumi_newrelic/nrql_alert_condition.py +28 -4
- pulumi_newrelic/nrql_drop_rule.py +30 -4
- pulumi_newrelic/obfuscation_expression.py +6 -2
- pulumi_newrelic/obfuscation_rule.py +6 -2
- pulumi_newrelic/one_dashboard.py +2 -2
- pulumi_newrelic/one_dashboard_json.py +2 -2
- pulumi_newrelic/one_dashboard_raw.py +6 -0
- pulumi_newrelic/outputs.py +78 -29
- pulumi_newrelic/plugins/_inputs.py +2 -2
- pulumi_newrelic/plugins/application_settings.py +22 -2
- pulumi_newrelic/plugins/outputs.py +2 -2
- pulumi_newrelic/plugins/workload.py +112 -4
- pulumi_newrelic/service_level.py +20 -6
- pulumi_newrelic/synthetics/alert_condition.py +26 -2
- pulumi_newrelic/synthetics/broken_links_monitor.py +19 -23
- pulumi_newrelic/synthetics/cert_check_monitor.py +19 -23
- pulumi_newrelic/synthetics/get_private_location.py +8 -0
- pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
- pulumi_newrelic/synthetics/monitor.py +27 -23
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
- pulumi_newrelic/synthetics/private_location.py +6 -2
- pulumi_newrelic/synthetics/script_monitor.py +27 -23
- pulumi_newrelic/synthetics/secure_credential.py +6 -2
- pulumi_newrelic/synthetics/step_monitor.py +15 -23
- pulumi_newrelic/user.py +4 -0
- pulumi_newrelic/workflow.py +22 -4
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.21.0.dist-info/RECORD +89 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.21.0.dist-info}/top_level.txt +0 -0
@@ -22,13 +22,16 @@ class GetNotificationDestinationResult:
|
|
22
22
|
"""
|
23
23
|
A collection of values returned by getNotificationDestination.
|
24
24
|
"""
|
25
|
-
def __init__(__self__, account_id=None, active=None, id=None, name=None, properties=None, status=None, type=None):
|
25
|
+
def __init__(__self__, account_id=None, active=None, guid=None, id=None, name=None, properties=None, status=None, type=None):
|
26
26
|
if account_id and not isinstance(account_id, int):
|
27
27
|
raise TypeError("Expected argument 'account_id' to be a int")
|
28
28
|
pulumi.set(__self__, "account_id", account_id)
|
29
29
|
if active and not isinstance(active, bool):
|
30
30
|
raise TypeError("Expected argument 'active' to be a bool")
|
31
31
|
pulumi.set(__self__, "active", active)
|
32
|
+
if guid and not isinstance(guid, str):
|
33
|
+
raise TypeError("Expected argument 'guid' to be a str")
|
34
|
+
pulumi.set(__self__, "guid", guid)
|
32
35
|
if id and not isinstance(id, str):
|
33
36
|
raise TypeError("Expected argument 'id' to be a str")
|
34
37
|
pulumi.set(__self__, "id", id)
|
@@ -58,6 +61,14 @@ class GetNotificationDestinationResult:
|
|
58
61
|
"""
|
59
62
|
return pulumi.get(self, "active")
|
60
63
|
|
64
|
+
@property
|
65
|
+
@pulumi.getter
|
66
|
+
def guid(self) -> str:
|
67
|
+
"""
|
68
|
+
The unique entity identifier of the destination in New Relic.
|
69
|
+
"""
|
70
|
+
return pulumi.get(self, "guid")
|
71
|
+
|
61
72
|
@property
|
62
73
|
@pulumi.getter
|
63
74
|
def id(self) -> Optional[str]:
|
@@ -104,6 +115,7 @@ class AwaitableGetNotificationDestinationResult(GetNotificationDestinationResult
|
|
104
115
|
return GetNotificationDestinationResult(
|
105
116
|
account_id=self.account_id,
|
106
117
|
active=self.active,
|
118
|
+
guid=self.guid,
|
107
119
|
id=self.id,
|
108
120
|
name=self.name,
|
109
121
|
properties=self.properties,
|
@@ -134,6 +146,7 @@ def get_notification_destination(account_id: Optional[int] = None,
|
|
134
146
|
return AwaitableGetNotificationDestinationResult(
|
135
147
|
account_id=pulumi.get(__ret__, 'account_id'),
|
136
148
|
active=pulumi.get(__ret__, 'active'),
|
149
|
+
guid=pulumi.get(__ret__, 'guid'),
|
137
150
|
id=pulumi.get(__ret__, 'id'),
|
138
151
|
name=pulumi.get(__ret__, 'name'),
|
139
152
|
properties=pulumi.get(__ret__, 'properties'),
|
@@ -70,6 +70,7 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
|
|
70
70
|
|
71
71
|
## Example Usage
|
72
72
|
|
73
|
+
<!--Start PulumiCodeChooser -->
|
73
74
|
```python
|
74
75
|
import pulumi
|
75
76
|
import pulumi_newrelic as newrelic
|
@@ -86,6 +87,7 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
|
|
86
87
|
method="MASK",
|
87
88
|
)])
|
88
89
|
```
|
90
|
+
<!--End PulumiCodeChooser -->
|
89
91
|
|
90
92
|
|
91
93
|
:param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
|
@@ -112,6 +114,7 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
|
|
112
114
|
|
113
115
|
## Example Usage
|
114
116
|
|
117
|
+
<!--Start PulumiCodeChooser -->
|
115
118
|
```python
|
116
119
|
import pulumi
|
117
120
|
import pulumi_newrelic as newrelic
|
@@ -128,6 +131,7 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
|
|
128
131
|
method="MASK",
|
129
132
|
)])
|
130
133
|
```
|
134
|
+
<!--End PulumiCodeChooser -->
|
131
135
|
|
132
136
|
|
133
137
|
:param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
|
@@ -170,6 +170,7 @@ 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 -->
|
173
174
|
```python
|
174
175
|
import pulumi
|
175
176
|
import pulumi_newrelic as newrelic
|
@@ -200,12 +201,14 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
200
201
|
),
|
201
202
|
))
|
202
203
|
```
|
204
|
+
<!--End PulumiCodeChooser -->
|
203
205
|
Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
|
204
206
|
Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
|
205
207
|
If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
|
206
208
|
|
207
209
|
Here is an example of a `slow_burn` alert.
|
208
210
|
|
211
|
+
<!--Start PulumiCodeChooser -->
|
209
212
|
```python
|
210
213
|
import pulumi
|
211
214
|
import pulumi_newrelic as newrelic
|
@@ -236,9 +239,11 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
236
239
|
aggregation_delay="120",
|
237
240
|
slide_by=900)
|
238
241
|
```
|
242
|
+
<!--End PulumiCodeChooser -->
|
239
243
|
|
240
244
|
Here is an example of a custom alert:
|
241
245
|
|
246
|
+
<!--Start PulumiCodeChooser -->
|
242
247
|
```python
|
243
248
|
import pulumi
|
244
249
|
import pulumi_newrelic as newrelic
|
@@ -271,6 +276,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
271
276
|
aggregation_delay="120",
|
272
277
|
slide_by=60)
|
273
278
|
```
|
279
|
+
<!--End PulumiCodeChooser -->
|
274
280
|
|
275
281
|
|
276
282
|
:param str alert_type: The type of alert we want to set. Valid values are:
|
@@ -323,6 +329,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
323
329
|
|
324
330
|
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.
|
325
331
|
|
332
|
+
<!--Start PulumiCodeChooser -->
|
326
333
|
```python
|
327
334
|
import pulumi
|
328
335
|
import pulumi_newrelic as newrelic
|
@@ -353,12 +360,14 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
353
360
|
),
|
354
361
|
))
|
355
362
|
```
|
363
|
+
<!--End PulumiCodeChooser -->
|
356
364
|
Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
|
357
365
|
Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
|
358
366
|
If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
|
359
367
|
|
360
368
|
Here is an example of a `slow_burn` alert.
|
361
369
|
|
370
|
+
<!--Start PulumiCodeChooser -->
|
362
371
|
```python
|
363
372
|
import pulumi
|
364
373
|
import pulumi_newrelic as newrelic
|
@@ -389,9 +398,11 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
389
398
|
aggregation_delay="120",
|
390
399
|
slide_by=900)
|
391
400
|
```
|
401
|
+
<!--End PulumiCodeChooser -->
|
392
402
|
|
393
403
|
Here is an example of a custom alert:
|
394
404
|
|
405
|
+
<!--Start PulumiCodeChooser -->
|
395
406
|
```python
|
396
407
|
import pulumi
|
397
408
|
import pulumi_newrelic as newrelic
|
@@ -424,6 +435,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
424
435
|
aggregation_delay="120",
|
425
436
|
slide_by=60)
|
426
437
|
```
|
438
|
+
<!--End PulumiCodeChooser -->
|
427
439
|
|
428
440
|
|
429
441
|
:param str alert_type: The type of alert we want to set. Valid values are:
|
@@ -91,6 +91,7 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
|
|
91
91
|
"""
|
92
92
|
## Example Usage
|
93
93
|
|
94
|
+
<!--Start PulumiCodeChooser -->
|
94
95
|
```python
|
95
96
|
import pulumi
|
96
97
|
import pulumi_newrelic as newrelic
|
@@ -101,6 +102,7 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
|
|
101
102
|
"bytes_received: 2048",
|
102
103
|
])
|
103
104
|
```
|
105
|
+
<!--End PulumiCodeChooser -->
|
104
106
|
|
105
107
|
|
106
108
|
: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`.
|
@@ -130,6 +132,7 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
|
|
130
132
|
"""
|
131
133
|
## Example Usage
|
132
134
|
|
135
|
+
<!--Start PulumiCodeChooser -->
|
133
136
|
```python
|
134
137
|
import pulumi
|
135
138
|
import pulumi_newrelic as newrelic
|
@@ -140,6 +143,7 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
|
|
140
143
|
"bytes_received: 2048",
|
141
144
|
])
|
142
145
|
```
|
146
|
+
<!--End PulumiCodeChooser -->
|
143
147
|
|
144
148
|
|
145
149
|
: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,6 +81,7 @@ 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 -->
|
84
85
|
```python
|
85
86
|
import pulumi
|
86
87
|
import pulumi_newrelic as newrelic
|
@@ -91,6 +92,7 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
91
92
|
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
92
93
|
email_id="test_user@random.com")
|
93
94
|
```
|
95
|
+
<!--End PulumiCodeChooser -->
|
94
96
|
|
95
97
|
|
96
98
|
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
@@ -128,6 +130,7 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
|
|
128
130
|
## Example Usage
|
129
131
|
|
130
132
|
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 -->
|
131
134
|
```python
|
132
135
|
import pulumi
|
133
136
|
import pulumi_newrelic as newrelic
|
@@ -138,6 +141,7 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
|
|
138
141
|
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
139
142
|
email_id="test_user@random.com")
|
140
143
|
```
|
144
|
+
<!--End PulumiCodeChooser -->
|
141
145
|
|
142
146
|
|
143
147
|
: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,6 +152,7 @@ class Group(pulumi.CustomResource):
|
|
152
152
|
|
153
153
|
## Example Usage
|
154
154
|
|
155
|
+
<!--Start PulumiCodeChooser -->
|
155
156
|
```python
|
156
157
|
import pulumi
|
157
158
|
import pulumi_newrelic as newrelic
|
@@ -164,12 +165,15 @@ class Group(pulumi.CustomResource):
|
|
164
165
|
"2221110000",
|
165
166
|
])
|
166
167
|
```
|
168
|
+
<!--End PulumiCodeChooser -->
|
169
|
+
|
167
170
|
## Additional Examples
|
168
171
|
|
169
172
|
### Addition of New Users to a New Group
|
170
173
|
|
171
174
|
The following example illustrates the creation of a group using the `Group` resource, to which users created using the `User` resource are added.
|
172
175
|
|
176
|
+
<!--Start PulumiCodeChooser -->
|
173
177
|
```python
|
174
178
|
import pulumi
|
175
179
|
import pulumi_newrelic as newrelic
|
@@ -190,11 +194,13 @@ class Group(pulumi.CustomResource):
|
|
190
194
|
bar.id,
|
191
195
|
])
|
192
196
|
```
|
197
|
+
<!--End PulumiCodeChooser -->
|
193
198
|
|
194
199
|
### Addition of Existing Users to a New Group
|
195
200
|
|
196
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.
|
197
202
|
|
203
|
+
<!--Start PulumiCodeChooser -->
|
198
204
|
```python
|
199
205
|
import pulumi
|
200
206
|
import pulumi_newrelic as newrelic
|
@@ -211,6 +217,7 @@ class Group(pulumi.CustomResource):
|
|
211
217
|
bar.id,
|
212
218
|
])
|
213
219
|
```
|
220
|
+
<!--End PulumiCodeChooser -->
|
214
221
|
|
215
222
|
> **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.
|
216
223
|
|
@@ -243,6 +250,7 @@ class Group(pulumi.CustomResource):
|
|
243
250
|
|
244
251
|
## Example Usage
|
245
252
|
|
253
|
+
<!--Start PulumiCodeChooser -->
|
246
254
|
```python
|
247
255
|
import pulumi
|
248
256
|
import pulumi_newrelic as newrelic
|
@@ -255,12 +263,15 @@ class Group(pulumi.CustomResource):
|
|
255
263
|
"2221110000",
|
256
264
|
])
|
257
265
|
```
|
266
|
+
<!--End PulumiCodeChooser -->
|
267
|
+
|
258
268
|
## Additional Examples
|
259
269
|
|
260
270
|
### Addition of New Users to a New Group
|
261
271
|
|
262
272
|
The following example illustrates the creation of a group using the `Group` resource, to which users created using the `User` resource are added.
|
263
273
|
|
274
|
+
<!--Start PulumiCodeChooser -->
|
264
275
|
```python
|
265
276
|
import pulumi
|
266
277
|
import pulumi_newrelic as newrelic
|
@@ -281,11 +292,13 @@ class Group(pulumi.CustomResource):
|
|
281
292
|
bar.id,
|
282
293
|
])
|
283
294
|
```
|
295
|
+
<!--End PulumiCodeChooser -->
|
284
296
|
|
285
297
|
### Addition of Existing Users to a New Group
|
286
298
|
|
287
299
|
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.
|
288
300
|
|
301
|
+
<!--Start PulumiCodeChooser -->
|
289
302
|
```python
|
290
303
|
import pulumi
|
291
304
|
import pulumi_newrelic as newrelic
|
@@ -302,6 +315,7 @@ class Group(pulumi.CustomResource):
|
|
302
315
|
bar.id,
|
303
316
|
])
|
304
317
|
```
|
318
|
+
<!--End PulumiCodeChooser -->
|
305
319
|
|
306
320
|
> **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.
|
307
321
|
|
@@ -47,11 +47,13 @@ class InfraAlertConditionArgs:
|
|
47
47
|
:param pulumi.Input[str] select: The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infra_metric` condition type.
|
48
48
|
:param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
49
49
|
|
50
|
+
<!--Start PulumiCodeChooser -->
|
50
51
|
```python
|
51
52
|
import pulumi
|
52
53
|
```
|
54
|
+
<!--End PulumiCodeChooser -->
|
53
55
|
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
54
|
-
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '
|
56
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
|
55
57
|
"""
|
56
58
|
pulumi.set(__self__, "policy_id", policy_id)
|
57
59
|
pulumi.set(__self__, "type", type)
|
@@ -232,9 +234,11 @@ class InfraAlertConditionArgs:
|
|
232
234
|
"""
|
233
235
|
Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
234
236
|
|
237
|
+
<!--Start PulumiCodeChooser -->
|
235
238
|
```python
|
236
239
|
import pulumi
|
237
240
|
```
|
241
|
+
<!--End PulumiCodeChooser -->
|
238
242
|
"""
|
239
243
|
return pulumi.get(self, "violation_close_timer")
|
240
244
|
|
@@ -258,7 +262,7 @@ class InfraAlertConditionArgs:
|
|
258
262
|
@pulumi.getter
|
259
263
|
def where(self) -> Optional[pulumi.Input[str]]:
|
260
264
|
"""
|
261
|
-
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '
|
265
|
+
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
|
262
266
|
"""
|
263
267
|
return pulumi.get(self, "where")
|
264
268
|
|
@@ -307,11 +311,13 @@ class _InfraAlertConditionState:
|
|
307
311
|
:param pulumi.Input[int] updated_at: The timestamp the alert condition was last updated.
|
308
312
|
:param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
309
313
|
|
314
|
+
<!--Start PulumiCodeChooser -->
|
310
315
|
```python
|
311
316
|
import pulumi
|
312
317
|
```
|
318
|
+
<!--End PulumiCodeChooser -->
|
313
319
|
:param pulumi.Input['InfraAlertConditionWarningArgs'] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
314
|
-
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '
|
320
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
|
315
321
|
"""
|
316
322
|
if comparison is not None:
|
317
323
|
pulumi.set(__self__, "comparison", comparison)
|
@@ -536,9 +542,11 @@ class _InfraAlertConditionState:
|
|
536
542
|
"""
|
537
543
|
Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
538
544
|
|
545
|
+
<!--Start PulumiCodeChooser -->
|
539
546
|
```python
|
540
547
|
import pulumi
|
541
548
|
```
|
549
|
+
<!--End PulumiCodeChooser -->
|
542
550
|
"""
|
543
551
|
return pulumi.get(self, "violation_close_timer")
|
544
552
|
|
@@ -562,7 +570,7 @@ class _InfraAlertConditionState:
|
|
562
570
|
@pulumi.getter
|
563
571
|
def where(self) -> Optional[pulumi.Input[str]]:
|
564
572
|
"""
|
565
|
-
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '
|
573
|
+
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
|
566
574
|
"""
|
567
575
|
return pulumi.get(self, "where")
|
568
576
|
|
@@ -599,6 +607,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
599
607
|
|
600
608
|
## Example Usage
|
601
609
|
|
610
|
+
<!--Start PulumiCodeChooser -->
|
602
611
|
```python
|
603
612
|
import pulumi
|
604
613
|
import pulumi_newrelic as newrelic
|
@@ -656,6 +665,8 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
656
665
|
duration=5,
|
657
666
|
))
|
658
667
|
```
|
668
|
+
<!--End PulumiCodeChooser -->
|
669
|
+
|
659
670
|
## Thresholds
|
660
671
|
|
661
672
|
The `critical` and `warning` threshold mapping supports the following arguments:
|
@@ -668,6 +679,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
668
679
|
|
669
680
|
Manage infra alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
670
681
|
|
682
|
+
<!--Start PulumiCodeChooser -->
|
671
683
|
```python
|
672
684
|
import pulumi
|
673
685
|
import pulumi_newrelic as newrelic
|
@@ -707,13 +719,14 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
707
719
|
),
|
708
720
|
])
|
709
721
|
```
|
722
|
+
<!--End PulumiCodeChooser -->
|
710
723
|
|
711
724
|
## Import
|
712
725
|
|
713
726
|
Infrastructure alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
|
714
727
|
|
715
728
|
```sh
|
716
|
-
|
729
|
+
$ pulumi import newrelic:index/infraAlertCondition:InfraAlertCondition main 12345:67890
|
717
730
|
```
|
718
731
|
|
719
732
|
:param str resource_name: The name of the resource.
|
@@ -732,11 +745,13 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
732
745
|
:param pulumi.Input[str] type: The type of Infrastructure alert condition. Valid values are `infra_process_running`, `infra_metric`, and `infra_host_not_reporting`.
|
733
746
|
:param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
734
747
|
|
748
|
+
<!--Start PulumiCodeChooser -->
|
735
749
|
```python
|
736
750
|
import pulumi
|
737
751
|
```
|
752
|
+
<!--End PulumiCodeChooser -->
|
738
753
|
:param pulumi.Input[pulumi.InputType['InfraAlertConditionWarningArgs']] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
739
|
-
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '
|
754
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
|
740
755
|
"""
|
741
756
|
...
|
742
757
|
@overload
|
@@ -751,6 +766,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
751
766
|
|
752
767
|
## Example Usage
|
753
768
|
|
769
|
+
<!--Start PulumiCodeChooser -->
|
754
770
|
```python
|
755
771
|
import pulumi
|
756
772
|
import pulumi_newrelic as newrelic
|
@@ -808,6 +824,8 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
808
824
|
duration=5,
|
809
825
|
))
|
810
826
|
```
|
827
|
+
<!--End PulumiCodeChooser -->
|
828
|
+
|
811
829
|
## Thresholds
|
812
830
|
|
813
831
|
The `critical` and `warning` threshold mapping supports the following arguments:
|
@@ -820,6 +838,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
820
838
|
|
821
839
|
Manage infra alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
822
840
|
|
841
|
+
<!--Start PulumiCodeChooser -->
|
823
842
|
```python
|
824
843
|
import pulumi
|
825
844
|
import pulumi_newrelic as newrelic
|
@@ -859,13 +878,14 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
859
878
|
),
|
860
879
|
])
|
861
880
|
```
|
881
|
+
<!--End PulumiCodeChooser -->
|
862
882
|
|
863
883
|
## Import
|
864
884
|
|
865
885
|
Infrastructure alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
|
866
886
|
|
867
887
|
```sh
|
868
|
-
|
888
|
+
$ pulumi import newrelic:index/infraAlertCondition:InfraAlertCondition main 12345:67890
|
869
889
|
```
|
870
890
|
|
871
891
|
:param str resource_name: The name of the resource.
|
@@ -981,11 +1001,13 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
981
1001
|
:param pulumi.Input[int] updated_at: The timestamp the alert condition was last updated.
|
982
1002
|
:param pulumi.Input[int] violation_close_timer: Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
983
1003
|
|
1004
|
+
<!--Start PulumiCodeChooser -->
|
984
1005
|
```python
|
985
1006
|
import pulumi
|
986
1007
|
```
|
1008
|
+
<!--End PulumiCodeChooser -->
|
987
1009
|
:param pulumi.Input[pulumi.InputType['InfraAlertConditionWarningArgs']] warning: Identifies the threshold parameters for opening a warning alert incident. See Thresholds below for details.
|
988
|
-
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '
|
1010
|
+
:param pulumi.Input[str] where: If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
|
989
1011
|
"""
|
990
1012
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
991
1013
|
|
@@ -1137,9 +1159,11 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1137
1159
|
"""
|
1138
1160
|
Determines how much time will pass (in hours) before an incident is automatically closed. Valid values are `1 2 4 8 12 24 48 72`. Defaults to 24. If `0` is provided, default of `24` is used and will have configuration drift during the apply phase until a valid value is provided.
|
1139
1161
|
|
1162
|
+
<!--Start PulumiCodeChooser -->
|
1140
1163
|
```python
|
1141
1164
|
import pulumi
|
1142
1165
|
```
|
1166
|
+
<!--End PulumiCodeChooser -->
|
1143
1167
|
"""
|
1144
1168
|
return pulumi.get(self, "violation_close_timer")
|
1145
1169
|
|
@@ -1155,7 +1179,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
1155
1179
|
@pulumi.getter
|
1156
1180
|
def where(self) -> pulumi.Output[Optional[str]]:
|
1157
1181
|
"""
|
1158
|
-
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '
|
1182
|
+
If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%!c(MISSING)assandra%!'(MISSING)`.
|
1159
1183
|
"""
|
1160
1184
|
return pulumi.get(self, "where")
|
1161
1185
|
|
@@ -72,6 +72,7 @@ class Event(pulumi.CustomResource):
|
|
72
72
|
|
73
73
|
## Example Usage
|
74
74
|
|
75
|
+
<!--Start PulumiCodeChooser -->
|
75
76
|
```python
|
76
77
|
import pulumi
|
77
78
|
import pulumi_newrelic as newrelic
|
@@ -97,6 +98,8 @@ class Event(pulumi.CustomResource):
|
|
97
98
|
type="MyEvent",
|
98
99
|
)])
|
99
100
|
```
|
101
|
+
<!--End PulumiCodeChooser -->
|
102
|
+
|
100
103
|
## Events
|
101
104
|
|
102
105
|
The `event` mapping supports the following arguments:
|
@@ -128,6 +131,7 @@ class Event(pulumi.CustomResource):
|
|
128
131
|
|
129
132
|
## Example Usage
|
130
133
|
|
134
|
+
<!--Start PulumiCodeChooser -->
|
131
135
|
```python
|
132
136
|
import pulumi
|
133
137
|
import pulumi_newrelic as newrelic
|
@@ -153,6 +157,8 @@ class Event(pulumi.CustomResource):
|
|
153
157
|
type="MyEvent",
|
154
158
|
)])
|
155
159
|
```
|
160
|
+
<!--End PulumiCodeChooser -->
|
161
|
+
|
156
162
|
## Events
|
157
163
|
|
158
164
|
The `event` mapping supports the following arguments:
|
@@ -315,6 +315,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
315
315
|
## Example Usage
|
316
316
|
|
317
317
|
Use this example to create the log parse rule.
|
318
|
+
<!--Start PulumiCodeChooser -->
|
318
319
|
```python
|
319
320
|
import pulumi
|
320
321
|
import pulumi_newrelic as newrelic
|
@@ -326,10 +327,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
326
327
|
lucene="logtype:linux_messages",
|
327
328
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
328
329
|
```
|
330
|
+
<!--End PulumiCodeChooser -->
|
331
|
+
|
329
332
|
## Additional Example
|
330
333
|
|
331
334
|
Use this example to validate a grok pattern and create the log parse rule. More
|
332
335
|
information on grok pattern can be found [here](https://docs.newrelic.com/docs/logs/ui-data/parsing/#grok)
|
336
|
+
<!--Start PulumiCodeChooser -->
|
333
337
|
```python
|
334
338
|
import pulumi
|
335
339
|
import pulumi_newrelic as newrelic
|
@@ -344,12 +348,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
344
348
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'",
|
345
349
|
matched=grok.test_groks[0].matched)
|
346
350
|
```
|
351
|
+
<!--End PulumiCodeChooser -->
|
347
352
|
|
348
353
|
## Import
|
349
354
|
|
350
355
|
New Relic log parsing rule can be imported using the rule ID, e.g.
|
351
356
|
|
352
|
-
|
357
|
+
bash
|
353
358
|
|
354
359
|
```sh
|
355
360
|
$ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
|
@@ -378,6 +383,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
378
383
|
## Example Usage
|
379
384
|
|
380
385
|
Use this example to create the log parse rule.
|
386
|
+
<!--Start PulumiCodeChooser -->
|
381
387
|
```python
|
382
388
|
import pulumi
|
383
389
|
import pulumi_newrelic as newrelic
|
@@ -389,10 +395,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
389
395
|
lucene="logtype:linux_messages",
|
390
396
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
391
397
|
```
|
398
|
+
<!--End PulumiCodeChooser -->
|
399
|
+
|
392
400
|
## Additional Example
|
393
401
|
|
394
402
|
Use this example to validate a grok pattern and create the log parse rule. More
|
395
403
|
information on grok pattern can be found [here](https://docs.newrelic.com/docs/logs/ui-data/parsing/#grok)
|
404
|
+
<!--Start PulumiCodeChooser -->
|
396
405
|
```python
|
397
406
|
import pulumi
|
398
407
|
import pulumi_newrelic as newrelic
|
@@ -407,12 +416,13 @@ class LogParsingRule(pulumi.CustomResource):
|
|
407
416
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'",
|
408
417
|
matched=grok.test_groks[0].matched)
|
409
418
|
```
|
419
|
+
<!--End PulumiCodeChooser -->
|
410
420
|
|
411
421
|
## Import
|
412
422
|
|
413
423
|
New Relic log parsing rule can be imported using the rule ID, e.g.
|
414
424
|
|
415
|
-
|
425
|
+
bash
|
416
426
|
|
417
427
|
```sh
|
418
428
|
$ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
|