pulumi-newrelic 5.23.0a1712988017__py3-none-any.whl → 5.23.0a1713561620__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.
Files changed (53) hide show
  1. pulumi_newrelic/account_management.py +6 -2
  2. pulumi_newrelic/alert_channel.py +48 -36
  3. pulumi_newrelic/alert_condition.py +20 -16
  4. pulumi_newrelic/alert_muting_rule.py +12 -10
  5. pulumi_newrelic/alert_policy.py +26 -10
  6. pulumi_newrelic/alert_policy_channel.py +12 -4
  7. pulumi_newrelic/cloud/aws_govcloud_link_account.py +4 -2
  8. pulumi_newrelic/cloud/aws_integrations.py +6 -4
  9. pulumi_newrelic/cloud/aws_link_account.py +4 -2
  10. pulumi_newrelic/cloud/azure_integrations.py +10 -8
  11. pulumi_newrelic/cloud/azure_link_account.py +4 -2
  12. pulumi_newrelic/cloud/gcp_integrations.py +6 -2
  13. pulumi_newrelic/cloud/gcp_link_account.py +4 -2
  14. pulumi_newrelic/entity_tags.py +6 -6
  15. pulumi_newrelic/events_to_metrics_rule.py +2 -0
  16. pulumi_newrelic/get_application.py +8 -6
  17. pulumi_newrelic/get_authentication_domain.py +4 -4
  18. pulumi_newrelic/get_entity.py +28 -16
  19. pulumi_newrelic/get_group.py +46 -4
  20. pulumi_newrelic/get_key_transaction.py +8 -6
  21. pulumi_newrelic/get_obfuscation_expression.py +2 -0
  22. pulumi_newrelic/get_service_level_alert_helper.py +22 -16
  23. pulumi_newrelic/get_test_grok_pattern.py +4 -2
  24. pulumi_newrelic/group.py +40 -30
  25. pulumi_newrelic/infra_alert_condition.py +28 -18
  26. pulumi_newrelic/insights/event.py +8 -8
  27. pulumi_newrelic/log_parsing_rule.py +6 -2
  28. pulumi_newrelic/monitor_downtime.py +104 -92
  29. pulumi_newrelic/notification_channel.py +124 -106
  30. pulumi_newrelic/nrql_alert_condition.py +38 -28
  31. pulumi_newrelic/nrql_drop_rule.py +6 -6
  32. pulumi_newrelic/obfuscation_expression.py +2 -0
  33. pulumi_newrelic/obfuscation_rule.py +4 -0
  34. pulumi_newrelic/one_dashboard_raw.py +86 -82
  35. pulumi_newrelic/plugins/application_settings.py +6 -4
  36. pulumi_newrelic/plugins/workload.py +138 -0
  37. pulumi_newrelic/service_level.py +38 -32
  38. pulumi_newrelic/synthetics/alert_condition.py +20 -14
  39. pulumi_newrelic/synthetics/broken_links_monitor.py +18 -12
  40. pulumi_newrelic/synthetics/cert_check_monitor.py +16 -10
  41. pulumi_newrelic/synthetics/monitor.py +48 -36
  42. pulumi_newrelic/synthetics/multi_location_alert_condition.py +20 -12
  43. pulumi_newrelic/synthetics/private_location.py +6 -2
  44. pulumi_newrelic/synthetics/script_monitor.py +34 -22
  45. pulumi_newrelic/synthetics/secure_credential.py +4 -4
  46. pulumi_newrelic/synthetics/step_monitor.py +14 -8
  47. pulumi_newrelic/user.py +8 -6
  48. pulumi_newrelic/workflow.py +20 -8
  49. {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/METADATA +1 -1
  50. pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +89 -0
  51. pulumi_newrelic-5.23.0a1712988017.dist-info/RECORD +0 -89
  52. {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/WHEEL +0 -0
  53. {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/top_level.txt +0 -0
@@ -189,18 +189,18 @@ class NrqlDropRule(pulumi.CustomResource):
189
189
 
190
190
  foo = newrelic.NrqlDropRule("foo",
191
191
  account_id=12345,
192
- action="drop_data",
193
192
  description="Drops all data for MyCustomEvent that comes from the LoadGeneratingApp in the dev environment, because there is too much and we don’t look at it.",
193
+ action="drop_data",
194
194
  nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
195
195
  bar = newrelic.NrqlDropRule("bar",
196
196
  account_id=12345,
197
- action="drop_attributes",
198
197
  description="Removes the user name and email fields from MyCustomEvent",
198
+ action="drop_attributes",
199
199
  nrql="SELECT userEmail, userName FROM MyCustomEvent")
200
200
  baz = newrelic.NrqlDropRule("baz",
201
201
  account_id=12345,
202
- action="drop_attributes_from_metric_aggregates",
203
202
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
203
+ action="drop_attributes_from_metric_aggregates",
204
204
  nrql="SELECT containerId FROM Metric")
205
205
  ```
206
206
  <!--End PulumiCodeChooser -->
@@ -251,18 +251,18 @@ class NrqlDropRule(pulumi.CustomResource):
251
251
 
252
252
  foo = newrelic.NrqlDropRule("foo",
253
253
  account_id=12345,
254
- action="drop_data",
255
254
  description="Drops all data for MyCustomEvent that comes from the LoadGeneratingApp in the dev environment, because there is too much and we don’t look at it.",
255
+ action="drop_data",
256
256
  nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
257
257
  bar = newrelic.NrqlDropRule("bar",
258
258
  account_id=12345,
259
- action="drop_attributes",
260
259
  description="Removes the user name and email fields from MyCustomEvent",
260
+ action="drop_attributes",
261
261
  nrql="SELECT userEmail, userName FROM MyCustomEvent")
262
262
  baz = newrelic.NrqlDropRule("baz",
263
263
  account_id=12345,
264
- action="drop_attributes_from_metric_aggregates",
265
264
  description="Removes containerId from metric aggregates to reduce metric cardinality.",
265
+ action="drop_attributes_from_metric_aggregates",
266
266
  nrql="SELECT containerId FROM Metric")
267
267
  ```
268
268
  <!--End PulumiCodeChooser -->
@@ -176,6 +176,7 @@ class ObfuscationExpression(pulumi.CustomResource):
176
176
 
177
177
  foo = newrelic.ObfuscationExpression("foo",
178
178
  account_id=12345,
179
+ name="OExp",
179
180
  description="The description",
180
181
  regex="(regex.*)")
181
182
  ```
@@ -216,6 +217,7 @@ class ObfuscationExpression(pulumi.CustomResource):
216
217
 
217
218
  foo = newrelic.ObfuscationExpression("foo",
218
219
  account_id=12345,
220
+ name="OExp",
219
221
  description="The description",
220
222
  regex="(regex.*)")
221
223
  ```
@@ -241,9 +241,11 @@ class ObfuscationRule(pulumi.CustomResource):
241
241
  import pulumi_newrelic as newrelic
242
242
 
243
243
  bar = newrelic.ObfuscationExpression("bar",
244
+ name="expressionName",
244
245
  description="description of the expression",
245
246
  regex="(^http)")
246
247
  foo = newrelic.ObfuscationRule("foo",
248
+ name="ruleName",
247
249
  description="description of the rule",
248
250
  filter="hostStatus=running",
249
251
  enabled=True,
@@ -291,9 +293,11 @@ class ObfuscationRule(pulumi.CustomResource):
291
293
  import pulumi_newrelic as newrelic
292
294
 
293
295
  bar = newrelic.ObfuscationExpression("bar",
296
+ name="expressionName",
294
297
  description="description of the expression",
295
298
  regex="(^http)")
296
299
  foo = newrelic.ObfuscationRule("foo",
300
+ name="ruleName",
297
301
  description="description of the rule",
298
302
  filter="hostStatus=running",
299
303
  enabled=True,
@@ -244,17 +244,19 @@ class OneDashboardRaw(pulumi.CustomResource):
244
244
  import json
245
245
  import pulumi_newrelic as newrelic
246
246
 
247
- exampledash = newrelic.OneDashboardRaw("exampledash", pages=[newrelic.OneDashboardRawPageArgs(
248
- name="Page Name",
249
- widgets=[
250
- newrelic.OneDashboardRawPageWidgetArgs(
251
- title="Custom widget",
252
- row=1,
253
- column=1,
254
- width=1,
255
- height=1,
256
- visualization_id="viz.custom",
257
- configuration=\"\"\" {
247
+ exampledash = newrelic.OneDashboardRaw("exampledash",
248
+ name="New Relic Terraform Example",
249
+ pages=[newrelic.OneDashboardRawPageArgs(
250
+ name="Page Name",
251
+ widgets=[
252
+ newrelic.OneDashboardRawPageWidgetArgs(
253
+ title="Custom widget",
254
+ row=1,
255
+ column=1,
256
+ width=1,
257
+ height=1,
258
+ visualization_id="viz.custom",
259
+ configuration=\"\"\" {
258
260
  "legend": {
259
261
  "enabled": false
260
262
  },
@@ -271,15 +273,15 @@ class OneDashboardRaw(pulumi.CustomResource):
271
273
  }
272
274
  }
273
275
  \"\"\",
274
- ),
275
- newrelic.OneDashboardRawPageWidgetArgs(
276
- title="Server CPU",
277
- row=1,
278
- column=2,
279
- width=1,
280
- height=1,
281
- visualization_id="viz.testing",
282
- configuration=\"\"\" {
276
+ ),
277
+ newrelic.OneDashboardRawPageWidgetArgs(
278
+ title="Server CPU",
279
+ row=1,
280
+ column=2,
281
+ width=1,
282
+ height=1,
283
+ visualization_id="viz.testing",
284
+ configuration=\"\"\" {
283
285
  "nrqlQueries": [
284
286
  {
285
287
  "accountId": ` + accountID + `,
@@ -288,27 +290,27 @@ class OneDashboardRaw(pulumi.CustomResource):
288
290
  ]
289
291
  }
290
292
  \"\"\",
291
- ),
292
- newrelic.OneDashboardRawPageWidgetArgs(
293
- title="Docker Server CPU",
294
- row=1,
295
- column=3,
296
- height=1,
297
- width=1,
298
- visualization_id="viz.bar",
299
- configuration=json.dumps({
300
- "facet": {
301
- "showOtherSeries": False,
302
- },
303
- "nrqlQueries": [{
304
- "accountId": local["accountID"],
305
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
306
- }],
307
- }),
308
- linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
309
- ),
310
- ],
311
- )])
293
+ ),
294
+ newrelic.OneDashboardRawPageWidgetArgs(
295
+ title="Docker Server CPU",
296
+ row=1,
297
+ column=3,
298
+ height=1,
299
+ width=1,
300
+ visualization_id="viz.bar",
301
+ configuration=json.dumps({
302
+ "facet": {
303
+ "showOtherSeries": False,
304
+ },
305
+ "nrqlQueries": [{
306
+ "accountId": account_id,
307
+ "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
308
+ }],
309
+ }),
310
+ linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
311
+ ),
312
+ ],
313
+ )])
312
314
  ```
313
315
  <!--End PulumiCodeChooser -->
314
316
 
@@ -339,17 +341,19 @@ class OneDashboardRaw(pulumi.CustomResource):
339
341
  import json
340
342
  import pulumi_newrelic as newrelic
341
343
 
342
- exampledash = newrelic.OneDashboardRaw("exampledash", pages=[newrelic.OneDashboardRawPageArgs(
343
- name="Page Name",
344
- widgets=[
345
- newrelic.OneDashboardRawPageWidgetArgs(
346
- title="Custom widget",
347
- row=1,
348
- column=1,
349
- width=1,
350
- height=1,
351
- visualization_id="viz.custom",
352
- configuration=\"\"\" {
344
+ exampledash = newrelic.OneDashboardRaw("exampledash",
345
+ name="New Relic Terraform Example",
346
+ pages=[newrelic.OneDashboardRawPageArgs(
347
+ name="Page Name",
348
+ widgets=[
349
+ newrelic.OneDashboardRawPageWidgetArgs(
350
+ title="Custom widget",
351
+ row=1,
352
+ column=1,
353
+ width=1,
354
+ height=1,
355
+ visualization_id="viz.custom",
356
+ configuration=\"\"\" {
353
357
  "legend": {
354
358
  "enabled": false
355
359
  },
@@ -366,15 +370,15 @@ class OneDashboardRaw(pulumi.CustomResource):
366
370
  }
367
371
  }
368
372
  \"\"\",
369
- ),
370
- newrelic.OneDashboardRawPageWidgetArgs(
371
- title="Server CPU",
372
- row=1,
373
- column=2,
374
- width=1,
375
- height=1,
376
- visualization_id="viz.testing",
377
- configuration=\"\"\" {
373
+ ),
374
+ newrelic.OneDashboardRawPageWidgetArgs(
375
+ title="Server CPU",
376
+ row=1,
377
+ column=2,
378
+ width=1,
379
+ height=1,
380
+ visualization_id="viz.testing",
381
+ configuration=\"\"\" {
378
382
  "nrqlQueries": [
379
383
  {
380
384
  "accountId": ` + accountID + `,
@@ -383,27 +387,27 @@ class OneDashboardRaw(pulumi.CustomResource):
383
387
  ]
384
388
  }
385
389
  \"\"\",
386
- ),
387
- newrelic.OneDashboardRawPageWidgetArgs(
388
- title="Docker Server CPU",
389
- row=1,
390
- column=3,
391
- height=1,
392
- width=1,
393
- visualization_id="viz.bar",
394
- configuration=json.dumps({
395
- "facet": {
396
- "showOtherSeries": False,
397
- },
398
- "nrqlQueries": [{
399
- "accountId": local["accountID"],
400
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
401
- }],
402
- }),
403
- linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
404
- ),
405
- ],
406
- )])
390
+ ),
391
+ newrelic.OneDashboardRawPageWidgetArgs(
392
+ title="Docker Server CPU",
393
+ row=1,
394
+ column=3,
395
+ height=1,
396
+ width=1,
397
+ visualization_id="viz.bar",
398
+ configuration=json.dumps({
399
+ "facet": {
400
+ "showOtherSeries": False,
401
+ },
402
+ "nrqlQueries": [{
403
+ "accountId": account_id,
404
+ "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
405
+ }],
406
+ }),
407
+ linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
408
+ ),
409
+ ],
410
+ )])
407
411
  ```
408
412
  <!--End PulumiCodeChooser -->
409
413
 
@@ -193,9 +193,10 @@ class ApplicationSettings(pulumi.CustomResource):
193
193
  import pulumi_newrelic as newrelic
194
194
 
195
195
  app = newrelic.plugins.ApplicationSettings("app",
196
+ name="my-app",
196
197
  app_apdex_threshold=0.7,
197
- enable_real_user_monitoring=False,
198
- end_user_apdex_threshold=0.8)
198
+ end_user_apdex_threshold=0.8,
199
+ enable_real_user_monitoring=False)
199
200
  ```
200
201
  <!--End PulumiCodeChooser -->
201
202
 
@@ -244,9 +245,10 @@ class ApplicationSettings(pulumi.CustomResource):
244
245
  import pulumi_newrelic as newrelic
245
246
 
246
247
  app = newrelic.plugins.ApplicationSettings("app",
248
+ name="my-app",
247
249
  app_apdex_threshold=0.7,
248
- enable_real_user_monitoring=False,
249
- end_user_apdex_threshold=0.8)
250
+ end_user_apdex_threshold=0.8,
251
+ enable_real_user_monitoring=False)
250
252
  ```
251
253
  <!--End PulumiCodeChooser -->
252
254
 
@@ -379,6 +379,7 @@ class Workload(pulumi.CustomResource):
379
379
  import pulumi_newrelic as newrelic
380
380
 
381
381
  foo = newrelic.plugins.Workload("foo",
382
+ name="Example workload",
382
383
  account_id=12345678,
383
384
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
384
385
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
@@ -395,6 +396,7 @@ class Workload(pulumi.CustomResource):
395
396
  import pulumi_newrelic as newrelic
396
397
 
397
398
  foo = newrelic.plugins.Workload("foo",
399
+ name="Example workload with tags",
398
400
  account_id=12345678,
399
401
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
400
402
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
@@ -411,6 +413,7 @@ class Workload(pulumi.CustomResource):
411
413
  import pulumi_newrelic as newrelic
412
414
 
413
415
  foo = newrelic.plugins.Workload("foo",
416
+ name="Example workload with tags",
414
417
  account_id=12345678,
415
418
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
416
419
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
@@ -424,6 +427,72 @@ class Workload(pulumi.CustomResource):
424
427
 
425
428
  > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
426
429
 
430
+ <!--Start PulumiCodeChooser -->
431
+ ```python
432
+ import pulumi
433
+ import pulumi_newrelic as newrelic
434
+
435
+ foo = newrelic.plugins.Workload("foo",
436
+ name="Example workload",
437
+ account_id=12345678,
438
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
439
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
440
+ query="name like '%Example application%'",
441
+ )],
442
+ scope_account_ids=[12345678],
443
+ description="Description",
444
+ status_config_automatic=newrelic.plugins.WorkloadStatusConfigAutomaticArgs(
445
+ enabled=True,
446
+ remaining_entities_rule=newrelic.plugins.WorkloadStatusConfigAutomaticRemainingEntitiesRuleArgs(
447
+ remaining_entities_rule_rollup=newrelic.plugins.WorkloadStatusConfigAutomaticRemainingEntitiesRuleRemainingEntitiesRuleRollupArgs(
448
+ strategy="BEST_STATUS_WINS",
449
+ threshold_type="FIXED",
450
+ threshold_value=100,
451
+ group_by="ENTITY_TYPE",
452
+ ),
453
+ ),
454
+ rules=[newrelic.plugins.WorkloadStatusConfigAutomaticRuleArgs(
455
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
456
+ nrql_queries=[newrelic.plugins.WorkloadStatusConfigAutomaticRuleNrqlQueryArgs(
457
+ query="name like '%Example application2%'",
458
+ )],
459
+ rollup=newrelic.plugins.WorkloadStatusConfigAutomaticRuleRollupArgs(
460
+ strategy="BEST_STATUS_WINS",
461
+ threshold_type="FIXED",
462
+ threshold_value=100,
463
+ ),
464
+ )],
465
+ ))
466
+ ```
467
+ <!--End PulumiCodeChooser -->
468
+
469
+ Include static status
470
+
471
+ > You can use this during maintenance tasks or any other time you want to provide a fixed status for your workload. This overrides all automatic rules. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status#configure-static)
472
+
473
+ <!--Start PulumiCodeChooser -->
474
+ ```python
475
+ import pulumi
476
+ import pulumi_newrelic as newrelic
477
+
478
+ foo = newrelic.plugins.Workload("foo",
479
+ name="Example workload",
480
+ account_id=12345678,
481
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
482
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
483
+ query="name like '%Example application%'",
484
+ )],
485
+ scope_account_ids=[12345678],
486
+ description="Description",
487
+ status_config_static=newrelic.plugins.WorkloadStatusConfigStaticArgs(
488
+ description="test",
489
+ enabled=True,
490
+ status="OPERATIONAL",
491
+ summary="summary of the status",
492
+ ))
493
+ ```
494
+ <!--End PulumiCodeChooser -->
495
+
427
496
  ## Import
428
497
 
429
498
  New Relic workloads can be imported using a concatenated string of the format
@@ -469,6 +538,7 @@ class Workload(pulumi.CustomResource):
469
538
  import pulumi_newrelic as newrelic
470
539
 
471
540
  foo = newrelic.plugins.Workload("foo",
541
+ name="Example workload",
472
542
  account_id=12345678,
473
543
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
474
544
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
@@ -485,6 +555,7 @@ class Workload(pulumi.CustomResource):
485
555
  import pulumi_newrelic as newrelic
486
556
 
487
557
  foo = newrelic.plugins.Workload("foo",
558
+ name="Example workload with tags",
488
559
  account_id=12345678,
489
560
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
490
561
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
@@ -501,6 +572,7 @@ class Workload(pulumi.CustomResource):
501
572
  import pulumi_newrelic as newrelic
502
573
 
503
574
  foo = newrelic.plugins.Workload("foo",
575
+ name="Example workload with tags",
504
576
  account_id=12345678,
505
577
  entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
506
578
  entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
@@ -514,6 +586,72 @@ class Workload(pulumi.CustomResource):
514
586
 
515
587
  > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
516
588
 
589
+ <!--Start PulumiCodeChooser -->
590
+ ```python
591
+ import pulumi
592
+ import pulumi_newrelic as newrelic
593
+
594
+ foo = newrelic.plugins.Workload("foo",
595
+ name="Example workload",
596
+ account_id=12345678,
597
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
598
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
599
+ query="name like '%Example application%'",
600
+ )],
601
+ scope_account_ids=[12345678],
602
+ description="Description",
603
+ status_config_automatic=newrelic.plugins.WorkloadStatusConfigAutomaticArgs(
604
+ enabled=True,
605
+ remaining_entities_rule=newrelic.plugins.WorkloadStatusConfigAutomaticRemainingEntitiesRuleArgs(
606
+ remaining_entities_rule_rollup=newrelic.plugins.WorkloadStatusConfigAutomaticRemainingEntitiesRuleRemainingEntitiesRuleRollupArgs(
607
+ strategy="BEST_STATUS_WINS",
608
+ threshold_type="FIXED",
609
+ threshold_value=100,
610
+ group_by="ENTITY_TYPE",
611
+ ),
612
+ ),
613
+ rules=[newrelic.plugins.WorkloadStatusConfigAutomaticRuleArgs(
614
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
615
+ nrql_queries=[newrelic.plugins.WorkloadStatusConfigAutomaticRuleNrqlQueryArgs(
616
+ query="name like '%Example application2%'",
617
+ )],
618
+ rollup=newrelic.plugins.WorkloadStatusConfigAutomaticRuleRollupArgs(
619
+ strategy="BEST_STATUS_WINS",
620
+ threshold_type="FIXED",
621
+ threshold_value=100,
622
+ ),
623
+ )],
624
+ ))
625
+ ```
626
+ <!--End PulumiCodeChooser -->
627
+
628
+ Include static status
629
+
630
+ > You can use this during maintenance tasks or any other time you want to provide a fixed status for your workload. This overrides all automatic rules. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status#configure-static)
631
+
632
+ <!--Start PulumiCodeChooser -->
633
+ ```python
634
+ import pulumi
635
+ import pulumi_newrelic as newrelic
636
+
637
+ foo = newrelic.plugins.Workload("foo",
638
+ name="Example workload",
639
+ account_id=12345678,
640
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
641
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
642
+ query="name like '%Example application%'",
643
+ )],
644
+ scope_account_ids=[12345678],
645
+ description="Description",
646
+ status_config_static=newrelic.plugins.WorkloadStatusConfigStaticArgs(
647
+ description="test",
648
+ enabled=True,
649
+ status="OPERATIONAL",
650
+ summary="summary of the status",
651
+ ))
652
+ ```
653
+ <!--End PulumiCodeChooser -->
654
+
517
655
  ## Import
518
656
 
519
657
  New Relic workloads can be imported using a concatenated string of the format