pulumi-newrelic 5.23.0a1713333809__py3-none-any.whl → 5.23.0a1713975814__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 +110 -270
- pulumi_newrelic/account_management.py +20 -20
- pulumi_newrelic/alert_channel.py +76 -92
- pulumi_newrelic/alert_condition.py +104 -149
- pulumi_newrelic/alert_muting_rule.py +33 -35
- pulumi_newrelic/alert_policy.py +68 -43
- pulumi_newrelic/alert_policy_channel.py +12 -8
- pulumi_newrelic/cloud/_inputs.py +322 -1072
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +4 -6
- pulumi_newrelic/cloud/aws_integrations.py +13 -15
- pulumi_newrelic/cloud/aws_link_account.py +4 -6
- pulumi_newrelic/cloud/azure_integrations.py +10 -12
- pulumi_newrelic/cloud/azure_link_account.py +4 -6
- pulumi_newrelic/cloud/gcp_integrations.py +6 -6
- pulumi_newrelic/cloud/gcp_link_account.py +4 -6
- pulumi_newrelic/cloud/outputs.py +322 -1072
- pulumi_newrelic/data_partition_rule.py +0 -4
- pulumi_newrelic/entity_tags.py +13 -17
- pulumi_newrelic/events_to_metrics_rule.py +2 -4
- pulumi_newrelic/get_account.py +0 -4
- pulumi_newrelic/get_application.py +8 -10
- pulumi_newrelic/get_authentication_domain.py +4 -8
- pulumi_newrelic/get_cloud_account.py +0 -4
- pulumi_newrelic/get_entity.py +28 -32
- pulumi_newrelic/get_group.py +42 -8
- pulumi_newrelic/get_key_transaction.py +8 -10
- pulumi_newrelic/get_obfuscation_expression.py +2 -4
- pulumi_newrelic/get_service_level_alert_helper.py +22 -46
- pulumi_newrelic/get_test_grok_pattern.py +4 -6
- pulumi_newrelic/get_user.py +0 -4
- pulumi_newrelic/group.py +40 -42
- pulumi_newrelic/infra_alert_condition.py +154 -131
- pulumi_newrelic/insights/event.py +8 -25
- pulumi_newrelic/log_parsing_rule.py +6 -10
- pulumi_newrelic/monitor_downtime.py +174 -193
- pulumi_newrelic/notification_channel.py +124 -150
- pulumi_newrelic/nrql_alert_condition.py +38 -48
- pulumi_newrelic/nrql_drop_rule.py +34 -38
- pulumi_newrelic/obfuscation_expression.py +2 -4
- pulumi_newrelic/obfuscation_rule.py +4 -4
- pulumi_newrelic/one_dashboard.py +42 -48
- pulumi_newrelic/one_dashboard_raw.py +86 -86
- pulumi_newrelic/outputs.py +110 -270
- pulumi_newrelic/plugins/_inputs.py +16 -16
- pulumi_newrelic/plugins/application_settings.py +6 -8
- pulumi_newrelic/plugins/outputs.py +16 -16
- pulumi_newrelic/plugins/workload.py +158 -40
- pulumi_newrelic/service_level.py +38 -123
- pulumi_newrelic/synthetics/alert_condition.py +34 -64
- pulumi_newrelic/synthetics/broken_links_monitor.py +18 -20
- pulumi_newrelic/synthetics/cert_check_monitor.py +16 -18
- pulumi_newrelic/synthetics/get_private_location.py +0 -8
- pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
- pulumi_newrelic/synthetics/monitor.py +48 -52
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +69 -83
- pulumi_newrelic/synthetics/private_location.py +6 -6
- pulumi_newrelic/synthetics/script_monitor.py +38 -42
- pulumi_newrelic/synthetics/secure_credential.py +25 -22
- pulumi_newrelic/synthetics/step_monitor.py +18 -20
- pulumi_newrelic/user.py +8 -10
- pulumi_newrelic/workflow.py +20 -24
- {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713975814.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1713333809.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/top_level.txt +0 -0
pulumi_newrelic/service_level.py
CHANGED
@@ -23,13 +23,6 @@ class ServiceLevelArgs:
|
|
23
23
|
name: Optional[pulumi.Input[str]] = None):
|
24
24
|
"""
|
25
25
|
The set of arguments for constructing a ServiceLevel resource.
|
26
|
-
:param pulumi.Input['ServiceLevelEventsArgs'] events: The events that define the NRDB data for the SLI/SLO calculations.
|
27
|
-
See Events below for details.
|
28
|
-
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
29
|
-
:param pulumi.Input['ServiceLevelObjectiveArgs'] objective: The objective of the SLI, only one can be defined.
|
30
|
-
See Objective below for details.
|
31
|
-
:param pulumi.Input[str] description: The description of the SLI.
|
32
|
-
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
33
26
|
"""
|
34
27
|
pulumi.set(__self__, "events", events)
|
35
28
|
pulumi.set(__self__, "guid", guid)
|
@@ -42,10 +35,6 @@ class ServiceLevelArgs:
|
|
42
35
|
@property
|
43
36
|
@pulumi.getter
|
44
37
|
def events(self) -> pulumi.Input['ServiceLevelEventsArgs']:
|
45
|
-
"""
|
46
|
-
The events that define the NRDB data for the SLI/SLO calculations.
|
47
|
-
See Events below for details.
|
48
|
-
"""
|
49
38
|
return pulumi.get(self, "events")
|
50
39
|
|
51
40
|
@events.setter
|
@@ -55,9 +44,6 @@ class ServiceLevelArgs:
|
|
55
44
|
@property
|
56
45
|
@pulumi.getter
|
57
46
|
def guid(self) -> pulumi.Input[str]:
|
58
|
-
"""
|
59
|
-
The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
60
|
-
"""
|
61
47
|
return pulumi.get(self, "guid")
|
62
48
|
|
63
49
|
@guid.setter
|
@@ -67,10 +53,6 @@ class ServiceLevelArgs:
|
|
67
53
|
@property
|
68
54
|
@pulumi.getter
|
69
55
|
def objective(self) -> pulumi.Input['ServiceLevelObjectiveArgs']:
|
70
|
-
"""
|
71
|
-
The objective of the SLI, only one can be defined.
|
72
|
-
See Objective below for details.
|
73
|
-
"""
|
74
56
|
return pulumi.get(self, "objective")
|
75
57
|
|
76
58
|
@objective.setter
|
@@ -80,9 +62,6 @@ class ServiceLevelArgs:
|
|
80
62
|
@property
|
81
63
|
@pulumi.getter
|
82
64
|
def description(self) -> Optional[pulumi.Input[str]]:
|
83
|
-
"""
|
84
|
-
The description of the SLI.
|
85
|
-
"""
|
86
65
|
return pulumi.get(self, "description")
|
87
66
|
|
88
67
|
@description.setter
|
@@ -92,9 +71,6 @@ class ServiceLevelArgs:
|
|
92
71
|
@property
|
93
72
|
@pulumi.getter
|
94
73
|
def name(self) -> Optional[pulumi.Input[str]]:
|
95
|
-
"""
|
96
|
-
A short name for the SLI that will help anyone understand what it is about.
|
97
|
-
"""
|
98
74
|
return pulumi.get(self, "name")
|
99
75
|
|
100
76
|
@name.setter
|
@@ -114,13 +90,6 @@ class _ServiceLevelState:
|
|
114
90
|
sli_id: Optional[pulumi.Input[str]] = None):
|
115
91
|
"""
|
116
92
|
Input properties used for looking up and filtering ServiceLevel resources.
|
117
|
-
:param pulumi.Input[str] description: The description of the SLI.
|
118
|
-
:param pulumi.Input['ServiceLevelEventsArgs'] events: The events that define the NRDB data for the SLI/SLO calculations.
|
119
|
-
See Events below for details.
|
120
|
-
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
121
|
-
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
122
|
-
:param pulumi.Input['ServiceLevelObjectiveArgs'] objective: The objective of the SLI, only one can be defined.
|
123
|
-
See Objective below for details.
|
124
93
|
:param pulumi.Input[str] sli_guid: The unique entity identifier of the Service Level Indicator in New Relic.
|
125
94
|
:param pulumi.Input[str] sli_id: The unique entity identifier of the Service Level Indicator.
|
126
95
|
"""
|
@@ -142,9 +111,6 @@ class _ServiceLevelState:
|
|
142
111
|
@property
|
143
112
|
@pulumi.getter
|
144
113
|
def description(self) -> Optional[pulumi.Input[str]]:
|
145
|
-
"""
|
146
|
-
The description of the SLI.
|
147
|
-
"""
|
148
114
|
return pulumi.get(self, "description")
|
149
115
|
|
150
116
|
@description.setter
|
@@ -154,10 +120,6 @@ class _ServiceLevelState:
|
|
154
120
|
@property
|
155
121
|
@pulumi.getter
|
156
122
|
def events(self) -> Optional[pulumi.Input['ServiceLevelEventsArgs']]:
|
157
|
-
"""
|
158
|
-
The events that define the NRDB data for the SLI/SLO calculations.
|
159
|
-
See Events below for details.
|
160
|
-
"""
|
161
123
|
return pulumi.get(self, "events")
|
162
124
|
|
163
125
|
@events.setter
|
@@ -167,9 +129,6 @@ class _ServiceLevelState:
|
|
167
129
|
@property
|
168
130
|
@pulumi.getter
|
169
131
|
def guid(self) -> Optional[pulumi.Input[str]]:
|
170
|
-
"""
|
171
|
-
The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
172
|
-
"""
|
173
132
|
return pulumi.get(self, "guid")
|
174
133
|
|
175
134
|
@guid.setter
|
@@ -179,9 +138,6 @@ class _ServiceLevelState:
|
|
179
138
|
@property
|
180
139
|
@pulumi.getter
|
181
140
|
def name(self) -> Optional[pulumi.Input[str]]:
|
182
|
-
"""
|
183
|
-
A short name for the SLI that will help anyone understand what it is about.
|
184
|
-
"""
|
185
141
|
return pulumi.get(self, "name")
|
186
142
|
|
187
143
|
@name.setter
|
@@ -191,10 +147,6 @@ class _ServiceLevelState:
|
|
191
147
|
@property
|
192
148
|
@pulumi.getter
|
193
149
|
def objective(self) -> Optional[pulumi.Input['ServiceLevelObjectiveArgs']]:
|
194
|
-
"""
|
195
|
-
The objective of the SLI, only one can be defined.
|
196
|
-
See Objective below for details.
|
197
|
-
"""
|
198
150
|
return pulumi.get(self, "objective")
|
199
151
|
|
200
152
|
@objective.setter
|
@@ -250,25 +202,25 @@ class ServiceLevel(pulumi.CustomResource):
|
|
250
202
|
|
251
203
|
## Example Usage
|
252
204
|
|
253
|
-
<!--Start PulumiCodeChooser -->
|
254
205
|
```python
|
255
206
|
import pulumi
|
256
207
|
import pulumi_newrelic as newrelic
|
257
208
|
|
258
209
|
foo = newrelic.ServiceLevel("foo",
|
210
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
211
|
+
name="Latency",
|
259
212
|
description="Proportion of requests that are served faster than a threshold.",
|
260
213
|
events=newrelic.ServiceLevelEventsArgs(
|
261
214
|
account_id=12345678,
|
262
|
-
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
263
|
-
from_="Transaction",
|
264
|
-
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
265
|
-
),
|
266
215
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
267
216
|
from_="Transaction",
|
268
217
|
where="appName = 'Example application' AND (transactionType='Web')",
|
269
218
|
),
|
219
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
220
|
+
from_="Transaction",
|
221
|
+
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
222
|
+
),
|
270
223
|
),
|
271
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
272
224
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
273
225
|
target=99,
|
274
226
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -279,19 +231,18 @@ class ServiceLevel(pulumi.CustomResource):
|
|
279
231
|
),
|
280
232
|
))
|
281
233
|
```
|
282
|
-
<!--End PulumiCodeChooser -->
|
283
234
|
|
284
235
|
## Additional Example
|
285
236
|
|
286
237
|
Service level with tags:
|
287
238
|
|
288
|
-
<!--Start PulumiCodeChooser -->
|
289
239
|
```python
|
290
240
|
import pulumi
|
291
241
|
import pulumi_newrelic as newrelic
|
292
242
|
|
293
|
-
my_synthetic_monitor_service_level = newrelic.ServiceLevel("
|
243
|
+
my_synthetic_monitor_service_level = newrelic.ServiceLevel("my_synthetic_monitor_service_level",
|
294
244
|
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
245
|
+
name="My synthethic monitor - Success",
|
295
246
|
description="Proportion of successful synthetic checks.",
|
296
247
|
events=newrelic.ServiceLevelEventsArgs(
|
297
248
|
account_id=12345678,
|
@@ -313,7 +264,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
313
264
|
),
|
314
265
|
),
|
315
266
|
))
|
316
|
-
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("
|
267
|
+
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("my_synthetic_monitor_service_level_tags",
|
317
268
|
guid=my_synthetic_monitor_service_level.sli_guid,
|
318
269
|
tags=[
|
319
270
|
newrelic.EntityTagsTagArgs(
|
@@ -329,38 +280,37 @@ class ServiceLevel(pulumi.CustomResource):
|
|
329
280
|
),
|
330
281
|
])
|
331
282
|
```
|
332
|
-
<!--End PulumiCodeChooser -->
|
333
283
|
|
334
284
|
Using `select` for events
|
335
285
|
|
336
|
-
<!--Start PulumiCodeChooser -->
|
337
286
|
```python
|
338
287
|
import pulumi
|
339
288
|
import pulumi_newrelic as newrelic
|
340
289
|
|
341
|
-
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("
|
290
|
+
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("my_synthetic_monitor_duration_service_level",
|
291
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
292
|
+
name="Duration distribution is under 7",
|
342
293
|
description="Monitor created to test concurrent request from terraform",
|
343
294
|
events=newrelic.ServiceLevelEventsArgs(
|
344
295
|
account_id=313870,
|
345
|
-
|
296
|
+
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
346
297
|
from_="Metric",
|
347
|
-
select=newrelic.
|
298
|
+
select=newrelic.ServiceLevelEventsValidEventsSelectArgs(
|
348
299
|
attribute="`query.wallClockTime.negative.distribution`",
|
349
|
-
function="
|
350
|
-
threshold=7,
|
300
|
+
function="GET_FIELD",
|
351
301
|
),
|
352
302
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
353
303
|
),
|
354
|
-
|
304
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
355
305
|
from_="Metric",
|
356
|
-
select=newrelic.
|
306
|
+
select=newrelic.ServiceLevelEventsGoodEventsSelectArgs(
|
357
307
|
attribute="`query.wallClockTime.negative.distribution`",
|
358
|
-
function="
|
308
|
+
function="GET_CDF_COUNT",
|
309
|
+
threshold=7,
|
359
310
|
),
|
360
311
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
361
312
|
),
|
362
313
|
),
|
363
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
364
314
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
365
315
|
target=49,
|
366
316
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -371,7 +321,6 @@ class ServiceLevel(pulumi.CustomResource):
|
|
371
321
|
),
|
372
322
|
))
|
373
323
|
```
|
374
|
-
<!--End PulumiCodeChooser -->
|
375
324
|
|
376
325
|
For up-to-date documentation about the tagging resource, please check EntityTags
|
377
326
|
|
@@ -391,13 +340,6 @@ class ServiceLevel(pulumi.CustomResource):
|
|
391
340
|
|
392
341
|
:param str resource_name: The name of the resource.
|
393
342
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
394
|
-
:param pulumi.Input[str] description: The description of the SLI.
|
395
|
-
:param pulumi.Input[pulumi.InputType['ServiceLevelEventsArgs']] events: The events that define the NRDB data for the SLI/SLO calculations.
|
396
|
-
See Events below for details.
|
397
|
-
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
398
|
-
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
399
|
-
:param pulumi.Input[pulumi.InputType['ServiceLevelObjectiveArgs']] objective: The objective of the SLI, only one can be defined.
|
400
|
-
See Objective below for details.
|
401
343
|
"""
|
402
344
|
...
|
403
345
|
@overload
|
@@ -418,25 +360,25 @@ class ServiceLevel(pulumi.CustomResource):
|
|
418
360
|
|
419
361
|
## Example Usage
|
420
362
|
|
421
|
-
<!--Start PulumiCodeChooser -->
|
422
363
|
```python
|
423
364
|
import pulumi
|
424
365
|
import pulumi_newrelic as newrelic
|
425
366
|
|
426
367
|
foo = newrelic.ServiceLevel("foo",
|
368
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
369
|
+
name="Latency",
|
427
370
|
description="Proportion of requests that are served faster than a threshold.",
|
428
371
|
events=newrelic.ServiceLevelEventsArgs(
|
429
372
|
account_id=12345678,
|
430
|
-
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
431
|
-
from_="Transaction",
|
432
|
-
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
433
|
-
),
|
434
373
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
435
374
|
from_="Transaction",
|
436
375
|
where="appName = 'Example application' AND (transactionType='Web')",
|
437
376
|
),
|
377
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
378
|
+
from_="Transaction",
|
379
|
+
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
380
|
+
),
|
438
381
|
),
|
439
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
440
382
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
441
383
|
target=99,
|
442
384
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -447,19 +389,18 @@ class ServiceLevel(pulumi.CustomResource):
|
|
447
389
|
),
|
448
390
|
))
|
449
391
|
```
|
450
|
-
<!--End PulumiCodeChooser -->
|
451
392
|
|
452
393
|
## Additional Example
|
453
394
|
|
454
395
|
Service level with tags:
|
455
396
|
|
456
|
-
<!--Start PulumiCodeChooser -->
|
457
397
|
```python
|
458
398
|
import pulumi
|
459
399
|
import pulumi_newrelic as newrelic
|
460
400
|
|
461
|
-
my_synthetic_monitor_service_level = newrelic.ServiceLevel("
|
401
|
+
my_synthetic_monitor_service_level = newrelic.ServiceLevel("my_synthetic_monitor_service_level",
|
462
402
|
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
403
|
+
name="My synthethic monitor - Success",
|
463
404
|
description="Proportion of successful synthetic checks.",
|
464
405
|
events=newrelic.ServiceLevelEventsArgs(
|
465
406
|
account_id=12345678,
|
@@ -481,7 +422,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
481
422
|
),
|
482
423
|
),
|
483
424
|
))
|
484
|
-
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("
|
425
|
+
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("my_synthetic_monitor_service_level_tags",
|
485
426
|
guid=my_synthetic_monitor_service_level.sli_guid,
|
486
427
|
tags=[
|
487
428
|
newrelic.EntityTagsTagArgs(
|
@@ -497,38 +438,37 @@ class ServiceLevel(pulumi.CustomResource):
|
|
497
438
|
),
|
498
439
|
])
|
499
440
|
```
|
500
|
-
<!--End PulumiCodeChooser -->
|
501
441
|
|
502
442
|
Using `select` for events
|
503
443
|
|
504
|
-
<!--Start PulumiCodeChooser -->
|
505
444
|
```python
|
506
445
|
import pulumi
|
507
446
|
import pulumi_newrelic as newrelic
|
508
447
|
|
509
|
-
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("
|
448
|
+
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("my_synthetic_monitor_duration_service_level",
|
449
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
450
|
+
name="Duration distribution is under 7",
|
510
451
|
description="Monitor created to test concurrent request from terraform",
|
511
452
|
events=newrelic.ServiceLevelEventsArgs(
|
512
453
|
account_id=313870,
|
513
|
-
|
454
|
+
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
514
455
|
from_="Metric",
|
515
|
-
select=newrelic.
|
456
|
+
select=newrelic.ServiceLevelEventsValidEventsSelectArgs(
|
516
457
|
attribute="`query.wallClockTime.negative.distribution`",
|
517
|
-
function="
|
518
|
-
threshold=7,
|
458
|
+
function="GET_FIELD",
|
519
459
|
),
|
520
460
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
521
461
|
),
|
522
|
-
|
462
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
523
463
|
from_="Metric",
|
524
|
-
select=newrelic.
|
464
|
+
select=newrelic.ServiceLevelEventsGoodEventsSelectArgs(
|
525
465
|
attribute="`query.wallClockTime.negative.distribution`",
|
526
|
-
function="
|
466
|
+
function="GET_CDF_COUNT",
|
467
|
+
threshold=7,
|
527
468
|
),
|
528
469
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
529
470
|
),
|
530
471
|
),
|
531
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
532
472
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
533
473
|
target=49,
|
534
474
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -539,7 +479,6 @@ class ServiceLevel(pulumi.CustomResource):
|
|
539
479
|
),
|
540
480
|
))
|
541
481
|
```
|
542
|
-
<!--End PulumiCodeChooser -->
|
543
482
|
|
544
483
|
For up-to-date documentation about the tagging resource, please check EntityTags
|
545
484
|
|
@@ -623,13 +562,6 @@ class ServiceLevel(pulumi.CustomResource):
|
|
623
562
|
:param str resource_name: The unique name of the resulting resource.
|
624
563
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
625
564
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
626
|
-
:param pulumi.Input[str] description: The description of the SLI.
|
627
|
-
:param pulumi.Input[pulumi.InputType['ServiceLevelEventsArgs']] events: The events that define the NRDB data for the SLI/SLO calculations.
|
628
|
-
See Events below for details.
|
629
|
-
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
630
|
-
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
631
|
-
:param pulumi.Input[pulumi.InputType['ServiceLevelObjectiveArgs']] objective: The objective of the SLI, only one can be defined.
|
632
|
-
See Objective below for details.
|
633
565
|
:param pulumi.Input[str] sli_guid: The unique entity identifier of the Service Level Indicator in New Relic.
|
634
566
|
:param pulumi.Input[str] sli_id: The unique entity identifier of the Service Level Indicator.
|
635
567
|
"""
|
@@ -649,43 +581,26 @@ class ServiceLevel(pulumi.CustomResource):
|
|
649
581
|
@property
|
650
582
|
@pulumi.getter
|
651
583
|
def description(self) -> pulumi.Output[Optional[str]]:
|
652
|
-
"""
|
653
|
-
The description of the SLI.
|
654
|
-
"""
|
655
584
|
return pulumi.get(self, "description")
|
656
585
|
|
657
586
|
@property
|
658
587
|
@pulumi.getter
|
659
588
|
def events(self) -> pulumi.Output['outputs.ServiceLevelEvents']:
|
660
|
-
"""
|
661
|
-
The events that define the NRDB data for the SLI/SLO calculations.
|
662
|
-
See Events below for details.
|
663
|
-
"""
|
664
589
|
return pulumi.get(self, "events")
|
665
590
|
|
666
591
|
@property
|
667
592
|
@pulumi.getter
|
668
593
|
def guid(self) -> pulumi.Output[str]:
|
669
|
-
"""
|
670
|
-
The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
671
|
-
"""
|
672
594
|
return pulumi.get(self, "guid")
|
673
595
|
|
674
596
|
@property
|
675
597
|
@pulumi.getter
|
676
598
|
def name(self) -> pulumi.Output[str]:
|
677
|
-
"""
|
678
|
-
A short name for the SLI that will help anyone understand what it is about.
|
679
|
-
"""
|
680
599
|
return pulumi.get(self, "name")
|
681
600
|
|
682
601
|
@property
|
683
602
|
@pulumi.getter
|
684
603
|
def objective(self) -> pulumi.Output['outputs.ServiceLevelObjective']:
|
685
|
-
"""
|
686
|
-
The objective of the SLI, only one can be defined.
|
687
|
-
See Objective below for details.
|
688
|
-
"""
|
689
604
|
return pulumi.get(self, "objective")
|
690
605
|
|
691
606
|
@property
|