pulumi-newrelic 5.14.0a1687672351__tar.gz → 5.14.0a1689277263__tar.gz

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 (88) hide show
  1. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/PKG-INFO +1 -1
  2. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/_inputs.py +24 -0
  3. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/alert_condition.py +21 -7
  4. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/alert_policy.py +9 -0
  5. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_account.py +4 -4
  6. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_alert_channel.py +6 -6
  7. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_alert_policy.py +6 -6
  8. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_application.py +4 -4
  9. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_cloud_account.py +4 -4
  10. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_entity.py +10 -10
  11. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_key_transaction.py +2 -2
  12. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_notification_destination.py +7 -7
  13. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_obfuscation_expression.py +3 -3
  14. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_service_level_alert_helper.py +41 -20
  15. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/get_test_grok_pattern.py +5 -5
  16. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/nrql_alert_condition.py +18 -0
  17. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/outputs.py +24 -0
  18. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/provider.py +24 -0
  19. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/get_private_location.py +3 -3
  20. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/get_secure_credential.py +5 -5
  21. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/workflow.py +9 -0
  22. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic.egg-info/PKG-INFO +1 -1
  23. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/setup.py +2 -2
  24. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/README.md +0 -0
  25. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/__init__.py +0 -0
  26. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/_utilities.py +0 -0
  27. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/account_management.py +0 -0
  28. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/alert_channel.py +0 -0
  29. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/alert_muting_rule.py +0 -0
  30. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/alert_policy_channel.py +0 -0
  31. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/api_access_key.py +0 -0
  32. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/browser_application.py +0 -0
  33. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/__init__.py +0 -0
  34. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/_inputs.py +0 -0
  35. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/aws_govcloud_integrations.py +0 -0
  36. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -0
  37. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/aws_integrations.py +0 -0
  38. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/aws_link_account.py +0 -0
  39. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/azure_integrations.py +0 -0
  40. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/azure_link_account.py +0 -0
  41. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/gcp_integrations.py +0 -0
  42. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/gcp_link_account.py +0 -0
  43. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/cloud/outputs.py +0 -0
  44. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/config/__init__.py +0 -0
  45. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/config/vars.py +0 -0
  46. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/data_partition_rule.py +0 -0
  47. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/entity_tags.py +0 -0
  48. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/events_to_metrics_rule.py +0 -0
  49. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/infra_alert_condition.py +0 -0
  50. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/insights/__init__.py +0 -0
  51. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/insights/_inputs.py +0 -0
  52. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/insights/event.py +0 -0
  53. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/insights/outputs.py +0 -0
  54. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/log_parsing_rule.py +0 -0
  55. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/notification_channel.py +0 -0
  56. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/notification_destination.py +0 -0
  57. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/nrql_drop_rule.py +0 -0
  58. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/obfuscation_expression.py +0 -0
  59. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/obfuscation_rule.py +0 -0
  60. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/one_dashboard.py +0 -0
  61. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/one_dashboard_json.py +0 -0
  62. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/one_dashboard_raw.py +0 -0
  63. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/plugins/__init__.py +0 -0
  64. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/plugins/_inputs.py +0 -0
  65. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/plugins/application_settings.py +0 -0
  66. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/plugins/outputs.py +0 -0
  67. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/plugins/workload.py +0 -0
  68. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/pulumi-plugin.json +0 -0
  69. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/py.typed +0 -0
  70. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/service_level.py +0 -0
  71. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/__init__.py +0 -0
  72. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/_inputs.py +0 -0
  73. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/alert_condition.py +0 -0
  74. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/broken_links_monitor.py +0 -0
  75. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/cert_check_monitor.py +0 -0
  76. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/monitor.py +0 -0
  77. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/multi_location_alert_condition.py +0 -0
  78. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/outputs.py +0 -0
  79. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/private_location.py +0 -0
  80. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/script_monitor.py +0 -0
  81. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/secure_credential.py +0 -0
  82. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic/synthetics/step_monitor.py +0 -0
  83. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic.egg-info/SOURCES.txt +0 -0
  84. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic.egg-info/dependency_links.txt +0 -0
  85. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic.egg-info/not-zip-safe +0 -0
  86. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic.egg-info/requires.txt +0 -0
  87. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/pulumi_newrelic.egg-info/top_level.txt +0 -0
  88. {pulumi_newrelic-5.14.0a1687672351 → pulumi_newrelic-5.14.0a1689277263}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_newrelic
3
- Version: 5.14.0a1687672351
3
+ Version: 5.14.0a1689277263
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  Home-page: https://pulumi.io
6
6
  License: Apache-2.0
@@ -1140,6 +1140,9 @@ class NrqlAlertConditionCriticalArgs:
1140
1140
  @property
1141
1141
  @pulumi.getter
1142
1142
  def duration(self) -> Optional[pulumi.Input[int]]:
1143
+ warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1144
+ pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1145
+
1143
1146
  return pulumi.get(self, "duration")
1144
1147
 
1145
1148
  @duration.setter
@@ -1176,6 +1179,9 @@ class NrqlAlertConditionCriticalArgs:
1176
1179
  @property
1177
1180
  @pulumi.getter(name="timeFunction")
1178
1181
  def time_function(self) -> Optional[pulumi.Input[str]]:
1182
+ warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1183
+ pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1184
+
1179
1185
  return pulumi.get(self, "time_function")
1180
1186
 
1181
1187
  @time_function.setter
@@ -1213,6 +1219,9 @@ class NrqlAlertConditionNrqlArgs:
1213
1219
  @property
1214
1220
  @pulumi.getter(name="evaluationOffset")
1215
1221
  def evaluation_offset(self) -> Optional[pulumi.Input[int]]:
1222
+ warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1223
+ pulumi.log.warn("""evaluation_offset is deprecated: use `aggregation_method` attribute instead""")
1224
+
1216
1225
  return pulumi.get(self, "evaluation_offset")
1217
1226
 
1218
1227
  @evaluation_offset.setter
@@ -1222,6 +1231,9 @@ class NrqlAlertConditionNrqlArgs:
1222
1231
  @property
1223
1232
  @pulumi.getter(name="sinceValue")
1224
1233
  def since_value(self) -> Optional[pulumi.Input[str]]:
1234
+ warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1235
+ pulumi.log.warn("""since_value is deprecated: use `aggregation_method` attribute instead""")
1236
+
1225
1237
  return pulumi.get(self, "since_value")
1226
1238
 
1227
1239
  @since_value.setter
@@ -1271,6 +1283,9 @@ class NrqlAlertConditionTermArgs:
1271
1283
  @property
1272
1284
  @pulumi.getter
1273
1285
  def duration(self) -> Optional[pulumi.Input[int]]:
1286
+ warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1287
+ pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1288
+
1274
1289
  return pulumi.get(self, "duration")
1275
1290
 
1276
1291
  @duration.setter
@@ -1316,6 +1331,9 @@ class NrqlAlertConditionTermArgs:
1316
1331
  @property
1317
1332
  @pulumi.getter(name="timeFunction")
1318
1333
  def time_function(self) -> Optional[pulumi.Input[str]]:
1334
+ warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1335
+ pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1336
+
1319
1337
  return pulumi.get(self, "time_function")
1320
1338
 
1321
1339
  @time_function.setter
@@ -1362,6 +1380,9 @@ class NrqlAlertConditionWarningArgs:
1362
1380
  @property
1363
1381
  @pulumi.getter
1364
1382
  def duration(self) -> Optional[pulumi.Input[int]]:
1383
+ warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1384
+ pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1385
+
1365
1386
  return pulumi.get(self, "duration")
1366
1387
 
1367
1388
  @duration.setter
@@ -1398,6 +1419,9 @@ class NrqlAlertConditionWarningArgs:
1398
1419
  @property
1399
1420
  @pulumi.getter(name="timeFunction")
1400
1421
  def time_function(self) -> Optional[pulumi.Input[str]]:
1422
+ warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1423
+ pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1424
+
1401
1425
  return pulumi.get(self, "time_function")
1402
1426
 
1403
1427
  @time_function.setter
@@ -49,7 +49,9 @@ class AlertConditionArgs:
49
49
  ```python
50
50
  import pulumi
51
51
  ```
52
- :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
52
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
53
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
54
+ * when `type` = `apm_jvm_metric`
53
55
  """
54
56
  pulumi.set(__self__, "entities", entities)
55
57
  pulumi.set(__self__, "metric", metric)
@@ -227,7 +229,9 @@ class AlertConditionArgs:
227
229
  @pulumi.getter(name="violationCloseTimer")
228
230
  def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
229
231
  """
230
- Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
232
+ Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
233
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
234
+ * when `type` = `apm_jvm_metric`
231
235
  """
232
236
  return pulumi.get(self, "violation_close_timer")
233
237
 
@@ -274,7 +278,9 @@ class _AlertConditionState:
274
278
  ```python
275
279
  import pulumi
276
280
  ```
277
- :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
281
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
282
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
283
+ * when `type` = `apm_jvm_metric`
278
284
  """
279
285
  if condition_scope is not None:
280
286
  pulumi.set(__self__, "condition_scope", condition_scope)
@@ -471,7 +477,9 @@ class _AlertConditionState:
471
477
  @pulumi.getter(name="violationCloseTimer")
472
478
  def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
473
479
  """
474
- Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
480
+ Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
481
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
482
+ * when `type` = `apm_jvm_metric`
475
483
  """
476
484
  return pulumi.get(self, "violation_close_timer")
477
485
 
@@ -608,7 +616,9 @@ class AlertCondition(pulumi.CustomResource):
608
616
  ```python
609
617
  import pulumi
610
618
  ```
611
- :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
619
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
620
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
621
+ * when `type` = `apm_jvm_metric`
612
622
  """
613
623
  ...
614
624
  @overload
@@ -816,7 +826,9 @@ class AlertCondition(pulumi.CustomResource):
816
826
  ```python
817
827
  import pulumi
818
828
  ```
819
- :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
829
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
830
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
831
+ * when `type` = `apm_jvm_metric`
820
832
  """
821
833
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
822
834
 
@@ -952,7 +964,9 @@ class AlertCondition(pulumi.CustomResource):
952
964
  @pulumi.getter(name="violationCloseTimer")
953
965
  def violation_close_timer(self) -> pulumi.Output[Optional[int]]:
954
966
  """
955
- Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
967
+ Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
968
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
969
+ * when `type` = `apm_jvm_metric`
956
970
  """
957
971
  return pulumi.get(self, "violation_close_timer")
958
972
 
@@ -55,6 +55,9 @@ class AlertPolicyArgs:
55
55
  """
56
56
  An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
57
57
  """
58
+ warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
59
+ pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
60
+
58
61
  return pulumi.get(self, "channel_ids")
59
62
 
60
63
  @channel_ids.setter
@@ -130,6 +133,9 @@ class _AlertPolicyState:
130
133
  """
131
134
  An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
132
135
  """
136
+ warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
137
+ pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
138
+
133
139
  return pulumi.get(self, "channel_ids")
134
140
 
135
141
  @channel_ids.setter
@@ -401,6 +407,9 @@ class AlertPolicy(pulumi.CustomResource):
401
407
  """
402
408
  An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
403
409
  """
410
+ warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
411
+ pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
412
+
404
413
  return pulumi.get(self, "channel_ids")
405
414
 
406
415
  @property
@@ -102,10 +102,10 @@ def get_account(account_id: Optional[int] = None,
102
102
  __ret__ = pulumi.runtime.invoke('newrelic:index/getAccount:getAccount', __args__, opts=opts, typ=GetAccountResult).value
103
103
 
104
104
  return AwaitableGetAccountResult(
105
- account_id=__ret__.account_id,
106
- id=__ret__.id,
107
- name=__ret__.name,
108
- scope=__ret__.scope)
105
+ account_id=pulumi.get(__ret__, 'account_id'),
106
+ id=pulumi.get(__ret__, 'id'),
107
+ name=pulumi.get(__ret__, 'name'),
108
+ scope=pulumi.get(__ret__, 'scope'))
109
109
 
110
110
 
111
111
  @_utilities.lift_output_func(get_account)
@@ -118,12 +118,12 @@ def get_alert_channel(account_id: Optional[int] = None,
118
118
  __ret__ = pulumi.runtime.invoke('newrelic:index/getAlertChannel:getAlertChannel', __args__, opts=opts, typ=GetAlertChannelResult).value
119
119
 
120
120
  return AwaitableGetAlertChannelResult(
121
- account_id=__ret__.account_id,
122
- config=__ret__.config,
123
- id=__ret__.id,
124
- name=__ret__.name,
125
- policy_ids=__ret__.policy_ids,
126
- type=__ret__.type)
121
+ account_id=pulumi.get(__ret__, 'account_id'),
122
+ config=pulumi.get(__ret__, 'config'),
123
+ id=pulumi.get(__ret__, 'id'),
124
+ name=pulumi.get(__ret__, 'name'),
125
+ policy_ids=pulumi.get(__ret__, 'policy_ids'),
126
+ type=pulumi.get(__ret__, 'type'))
127
127
 
128
128
 
129
129
  @_utilities.lift_output_func(get_alert_channel)
@@ -118,12 +118,12 @@ def get_alert_policy(account_id: Optional[int] = None,
118
118
  __ret__ = pulumi.runtime.invoke('newrelic:index/getAlertPolicy:getAlertPolicy', __args__, opts=opts, typ=GetAlertPolicyResult).value
119
119
 
120
120
  return AwaitableGetAlertPolicyResult(
121
- account_id=__ret__.account_id,
122
- created_at=__ret__.created_at,
123
- id=__ret__.id,
124
- incident_preference=__ret__.incident_preference,
125
- name=__ret__.name,
126
- updated_at=__ret__.updated_at)
121
+ account_id=pulumi.get(__ret__, 'account_id'),
122
+ created_at=pulumi.get(__ret__, 'created_at'),
123
+ id=pulumi.get(__ret__, 'id'),
124
+ incident_preference=pulumi.get(__ret__, 'incident_preference'),
125
+ name=pulumi.get(__ret__, 'name'),
126
+ updated_at=pulumi.get(__ret__, 'updated_at'))
127
127
 
128
128
 
129
129
  @_utilities.lift_output_func(get_alert_policy)
@@ -116,10 +116,10 @@ def get_application(name: Optional[str] = None,
116
116
  __ret__ = pulumi.runtime.invoke('newrelic:index/getApplication:getApplication', __args__, opts=opts, typ=GetApplicationResult).value
117
117
 
118
118
  return AwaitableGetApplicationResult(
119
- host_ids=__ret__.host_ids,
120
- id=__ret__.id,
121
- instance_ids=__ret__.instance_ids,
122
- name=__ret__.name)
119
+ host_ids=pulumi.get(__ret__, 'host_ids'),
120
+ id=pulumi.get(__ret__, 'id'),
121
+ instance_ids=pulumi.get(__ret__, 'instance_ids'),
122
+ name=pulumi.get(__ret__, 'name'))
123
123
 
124
124
 
125
125
  @_utilities.lift_output_func(get_application)
@@ -103,10 +103,10 @@ def get_cloud_account(account_id: Optional[int] = None,
103
103
  __ret__ = pulumi.runtime.invoke('newrelic:index/getCloudAccount:getCloudAccount', __args__, opts=opts, typ=GetCloudAccountResult).value
104
104
 
105
105
  return AwaitableGetCloudAccountResult(
106
- account_id=__ret__.account_id,
107
- cloud_provider=__ret__.cloud_provider,
108
- id=__ret__.id,
109
- name=__ret__.name)
106
+ account_id=pulumi.get(__ret__, 'account_id'),
107
+ cloud_provider=pulumi.get(__ret__, 'cloud_provider'),
108
+ id=pulumi.get(__ret__, 'id'),
109
+ name=pulumi.get(__ret__, 'name'))
110
110
 
111
111
 
112
112
  @_utilities.lift_output_func(get_cloud_account)
@@ -194,16 +194,16 @@ def get_entity(domain: Optional[str] = None,
194
194
  __ret__ = pulumi.runtime.invoke('newrelic:index/getEntity:getEntity', __args__, opts=opts, typ=GetEntityResult).value
195
195
 
196
196
  return AwaitableGetEntityResult(
197
- account_id=__ret__.account_id,
198
- application_id=__ret__.application_id,
199
- domain=__ret__.domain,
200
- guid=__ret__.guid,
201
- id=__ret__.id,
202
- ignore_case=__ret__.ignore_case,
203
- name=__ret__.name,
204
- serving_apm_application_id=__ret__.serving_apm_application_id,
205
- tags=__ret__.tags,
206
- type=__ret__.type)
197
+ account_id=pulumi.get(__ret__, 'account_id'),
198
+ application_id=pulumi.get(__ret__, 'application_id'),
199
+ domain=pulumi.get(__ret__, 'domain'),
200
+ guid=pulumi.get(__ret__, 'guid'),
201
+ id=pulumi.get(__ret__, 'id'),
202
+ ignore_case=pulumi.get(__ret__, 'ignore_case'),
203
+ name=pulumi.get(__ret__, 'name'),
204
+ serving_apm_application_id=pulumi.get(__ret__, 'serving_apm_application_id'),
205
+ tags=pulumi.get(__ret__, 'tags'),
206
+ type=pulumi.get(__ret__, 'type'))
207
207
 
208
208
 
209
209
  @_utilities.lift_output_func(get_entity)
@@ -90,8 +90,8 @@ def get_key_transaction(name: Optional[str] = None,
90
90
  __ret__ = pulumi.runtime.invoke('newrelic:index/getKeyTransaction:getKeyTransaction', __args__, opts=opts, typ=GetKeyTransactionResult).value
91
91
 
92
92
  return AwaitableGetKeyTransactionResult(
93
- id=__ret__.id,
94
- name=__ret__.name)
93
+ id=pulumi.get(__ret__, 'id'),
94
+ name=pulumi.get(__ret__, 'name'))
95
95
 
96
96
 
97
97
  @_utilities.lift_output_func(get_key_transaction)
@@ -132,13 +132,13 @@ def get_notification_destination(account_id: Optional[int] = None,
132
132
  __ret__ = pulumi.runtime.invoke('newrelic:index/getNotificationDestination:getNotificationDestination', __args__, opts=opts, typ=GetNotificationDestinationResult).value
133
133
 
134
134
  return AwaitableGetNotificationDestinationResult(
135
- account_id=__ret__.account_id,
136
- active=__ret__.active,
137
- id=__ret__.id,
138
- name=__ret__.name,
139
- properties=__ret__.properties,
140
- status=__ret__.status,
141
- type=__ret__.type)
135
+ account_id=pulumi.get(__ret__, 'account_id'),
136
+ active=pulumi.get(__ret__, 'active'),
137
+ id=pulumi.get(__ret__, 'id'),
138
+ name=pulumi.get(__ret__, 'name'),
139
+ properties=pulumi.get(__ret__, 'properties'),
140
+ status=pulumi.get(__ret__, 'status'),
141
+ type=pulumi.get(__ret__, 'type'))
142
142
 
143
143
 
144
144
  @_utilities.lift_output_func(get_notification_destination)
@@ -98,9 +98,9 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
98
98
  __ret__ = pulumi.runtime.invoke('newrelic:index/getObfuscationExpression:getObfuscationExpression', __args__, opts=opts, typ=GetObfuscationExpressionResult).value
99
99
 
100
100
  return AwaitableGetObfuscationExpressionResult(
101
- account_id=__ret__.account_id,
102
- id=__ret__.id,
103
- name=__ret__.name)
101
+ account_id=pulumi.get(__ret__, 'account_id'),
102
+ id=pulumi.get(__ret__, 'id'),
103
+ name=pulumi.get(__ret__, 'name'))
104
104
 
105
105
 
106
106
  @_utilities.lift_output_func(get_obfuscation_expression)
@@ -21,7 +21,7 @@ class GetServiceLevelAlertHelperResult:
21
21
  """
22
22
  A collection of values returned by getServiceLevelAlertHelper.
23
23
  """
24
- def __init__(__self__, alert_type=None, custom_evaluation_period=None, custom_tolerated_budget_consumption=None, evaluation_period=None, id=None, nrql=None, sli_guid=None, slo_period=None, slo_target=None, threshold=None, tolerated_budget_consumption=None):
24
+ def __init__(__self__, alert_type=None, custom_evaluation_period=None, custom_tolerated_budget_consumption=None, evaluation_period=None, id=None, is_bad_events=None, nrql=None, sli_guid=None, slo_period=None, slo_target=None, threshold=None, tolerated_budget_consumption=None):
25
25
  if alert_type and not isinstance(alert_type, str):
26
26
  raise TypeError("Expected argument 'alert_type' to be a str")
27
27
  pulumi.set(__self__, "alert_type", alert_type)
@@ -37,6 +37,9 @@ class GetServiceLevelAlertHelperResult:
37
37
  if id and not isinstance(id, str):
38
38
  raise TypeError("Expected argument 'id' to be a str")
39
39
  pulumi.set(__self__, "id", id)
40
+ if is_bad_events and not isinstance(is_bad_events, bool):
41
+ raise TypeError("Expected argument 'is_bad_events' to be a bool")
42
+ pulumi.set(__self__, "is_bad_events", is_bad_events)
40
43
  if nrql and not isinstance(nrql, str):
41
44
  raise TypeError("Expected argument 'nrql' to be a str")
42
45
  pulumi.set(__self__, "nrql", nrql)
@@ -87,6 +90,11 @@ class GetServiceLevelAlertHelperResult:
87
90
  """
88
91
  return pulumi.get(self, "id")
89
92
 
93
+ @property
94
+ @pulumi.getter(name="isBadEvents")
95
+ def is_bad_events(self) -> Optional[bool]:
96
+ return pulumi.get(self, "is_bad_events")
97
+
90
98
  @property
91
99
  @pulumi.getter
92
100
  def nrql(self) -> str:
@@ -138,6 +146,7 @@ class AwaitableGetServiceLevelAlertHelperResult(GetServiceLevelAlertHelperResult
138
146
  custom_tolerated_budget_consumption=self.custom_tolerated_budget_consumption,
139
147
  evaluation_period=self.evaluation_period,
140
148
  id=self.id,
149
+ is_bad_events=self.is_bad_events,
141
150
  nrql=self.nrql,
142
151
  sli_guid=self.sli_guid,
143
152
  slo_period=self.slo_period,
@@ -149,6 +158,7 @@ class AwaitableGetServiceLevelAlertHelperResult(GetServiceLevelAlertHelperResult
149
158
  def get_service_level_alert_helper(alert_type: Optional[str] = None,
150
159
  custom_evaluation_period: Optional[int] = None,
151
160
  custom_tolerated_budget_consumption: Optional[float] = None,
161
+ is_bad_events: Optional[bool] = None,
152
162
  sli_guid: Optional[str] = None,
153
163
  slo_period: Optional[int] = None,
154
164
  slo_target: Optional[float] = None,
@@ -158,7 +168,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
158
168
 
159
169
  ## Example Usage
160
170
 
161
- Firstly set up your service level objective, we recommend to use local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
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.
162
172
 
163
173
  ```python
164
174
  import pulumi
@@ -175,9 +185,9 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
175
185
  from_="Transaction",
176
186
  where="appName = 'Example application' AND (transactionType='Web')",
177
187
  ),
178
- good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
188
+ bad_events=newrelic.ServiceLevelEventsBadEventsArgs(
179
189
  from_="Transaction",
180
- where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
190
+ where="appName = 'Example application' AND (transactionType= 'Web') AND duration > 0.1",
181
191
  ),
182
192
  ),
183
193
  objective=newrelic.ServiceLevelObjectiveArgs(
@@ -191,6 +201,8 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
191
201
  ))
192
202
  ```
193
203
  Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
204
+ Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
205
+ If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
194
206
 
195
207
  ```python
196
208
  import pulumi
@@ -201,7 +213,8 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
201
213
  slo_target=local["foo_target"],
202
214
  slo_period=local["foo_period"],
203
215
  custom_tolerated_budget_consumption=5,
204
- custom_evaluation_period=90)
216
+ custom_evaluation_period=90,
217
+ is_bad_events=True)
205
218
  your_condition = newrelic.NrqlAlertCondition("yourCondition",
206
219
  account_id=12345678,
207
220
  policy_id=67890,
@@ -228,6 +241,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
228
241
  :param str alert_type: The type of alert we want to set. Valid values are:
229
242
  :param int custom_evaluation_period: Aggregation window taken into consideration in minutes. Mandatory if `alert_type` is `custom`.
230
243
  :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`.
244
+ :param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
231
245
  :param str sli_guid: The guid of the sli we want to set the alert on.
232
246
  :param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
233
247
  :param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
@@ -236,6 +250,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
236
250
  __args__['alertType'] = alert_type
237
251
  __args__['customEvaluationPeriod'] = custom_evaluation_period
238
252
  __args__['customToleratedBudgetConsumption'] = custom_tolerated_budget_consumption
253
+ __args__['isBadEvents'] = is_bad_events
239
254
  __args__['sliGuid'] = sli_guid
240
255
  __args__['sloPeriod'] = slo_period
241
256
  __args__['sloTarget'] = slo_target
@@ -243,23 +258,25 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
243
258
  __ret__ = pulumi.runtime.invoke('newrelic:index/getServiceLevelAlertHelper:getServiceLevelAlertHelper', __args__, opts=opts, typ=GetServiceLevelAlertHelperResult).value
244
259
 
245
260
  return AwaitableGetServiceLevelAlertHelperResult(
246
- alert_type=__ret__.alert_type,
247
- custom_evaluation_period=__ret__.custom_evaluation_period,
248
- custom_tolerated_budget_consumption=__ret__.custom_tolerated_budget_consumption,
249
- evaluation_period=__ret__.evaluation_period,
250
- id=__ret__.id,
251
- nrql=__ret__.nrql,
252
- sli_guid=__ret__.sli_guid,
253
- slo_period=__ret__.slo_period,
254
- slo_target=__ret__.slo_target,
255
- threshold=__ret__.threshold,
256
- tolerated_budget_consumption=__ret__.tolerated_budget_consumption)
261
+ alert_type=pulumi.get(__ret__, 'alert_type'),
262
+ custom_evaluation_period=pulumi.get(__ret__, 'custom_evaluation_period'),
263
+ custom_tolerated_budget_consumption=pulumi.get(__ret__, 'custom_tolerated_budget_consumption'),
264
+ evaluation_period=pulumi.get(__ret__, 'evaluation_period'),
265
+ id=pulumi.get(__ret__, 'id'),
266
+ is_bad_events=pulumi.get(__ret__, 'is_bad_events'),
267
+ nrql=pulumi.get(__ret__, 'nrql'),
268
+ sli_guid=pulumi.get(__ret__, 'sli_guid'),
269
+ slo_period=pulumi.get(__ret__, 'slo_period'),
270
+ slo_target=pulumi.get(__ret__, 'slo_target'),
271
+ threshold=pulumi.get(__ret__, 'threshold'),
272
+ tolerated_budget_consumption=pulumi.get(__ret__, 'tolerated_budget_consumption'))
257
273
 
258
274
 
259
275
  @_utilities.lift_output_func(get_service_level_alert_helper)
260
276
  def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]] = None,
261
277
  custom_evaluation_period: Optional[pulumi.Input[Optional[int]]] = None,
262
278
  custom_tolerated_budget_consumption: Optional[pulumi.Input[Optional[float]]] = None,
279
+ is_bad_events: Optional[pulumi.Input[Optional[bool]]] = None,
263
280
  sli_guid: Optional[pulumi.Input[str]] = None,
264
281
  slo_period: Optional[pulumi.Input[int]] = None,
265
282
  slo_target: Optional[pulumi.Input[float]] = None,
@@ -269,7 +286,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
269
286
 
270
287
  ## Example Usage
271
288
 
272
- Firstly set up your service level objective, we recommend to use local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
289
+ 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.
273
290
 
274
291
  ```python
275
292
  import pulumi
@@ -286,9 +303,9 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
286
303
  from_="Transaction",
287
304
  where="appName = 'Example application' AND (transactionType='Web')",
288
305
  ),
289
- good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
306
+ bad_events=newrelic.ServiceLevelEventsBadEventsArgs(
290
307
  from_="Transaction",
291
- where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
308
+ where="appName = 'Example application' AND (transactionType= 'Web') AND duration > 0.1",
292
309
  ),
293
310
  ),
294
311
  objective=newrelic.ServiceLevelObjectiveArgs(
@@ -302,6 +319,8 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
302
319
  ))
303
320
  ```
304
321
  Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
322
+ Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
323
+ If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
305
324
 
306
325
  ```python
307
326
  import pulumi
@@ -312,7 +331,8 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
312
331
  slo_target=local["foo_target"],
313
332
  slo_period=local["foo_period"],
314
333
  custom_tolerated_budget_consumption=5,
315
- custom_evaluation_period=90)
334
+ custom_evaluation_period=90,
335
+ is_bad_events=True)
316
336
  your_condition = newrelic.NrqlAlertCondition("yourCondition",
317
337
  account_id=12345678,
318
338
  policy_id=67890,
@@ -339,6 +359,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
339
359
  :param str alert_type: The type of alert we want to set. Valid values are:
340
360
  :param int custom_evaluation_period: Aggregation window taken into consideration in minutes. Mandatory if `alert_type` is `custom`.
341
361
  :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`.
362
+ :param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
342
363
  :param str sli_guid: The guid of the sli we want to set the alert on.
343
364
  :param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
344
365
  :param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
@@ -115,11 +115,11 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
115
115
  __ret__ = pulumi.runtime.invoke('newrelic:index/getTestGrokPattern:getTestGrokPattern', __args__, opts=opts, typ=GetTestGrokPatternResult).value
116
116
 
117
117
  return AwaitableGetTestGrokPatternResult(
118
- account_id=__ret__.account_id,
119
- grok=__ret__.grok,
120
- id=__ret__.id,
121
- log_lines=__ret__.log_lines,
122
- test_groks=__ret__.test_groks)
118
+ account_id=pulumi.get(__ret__, 'account_id'),
119
+ grok=pulumi.get(__ret__, 'grok'),
120
+ id=pulumi.get(__ret__, 'id'),
121
+ log_lines=pulumi.get(__ret__, 'log_lines'),
122
+ test_groks=pulumi.get(__ret__, 'test_groks'))
123
123
 
124
124
 
125
125
  @_utilities.lift_output_func(get_test_grok_pattern)
@@ -372,6 +372,9 @@ class NrqlAlertConditionArgs:
372
372
  """
373
373
  **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
374
374
  """
375
+ warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
376
+ pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
377
+
375
378
  return pulumi.get(self, "terms")
376
379
 
377
380
  @terms.setter
@@ -397,6 +400,9 @@ class NrqlAlertConditionArgs:
397
400
  **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
398
401
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
399
402
  """
403
+ warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
404
+ pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
405
+
400
406
  return pulumi.get(self, "violation_time_limit")
401
407
 
402
408
  @violation_time_limit.setter
@@ -806,6 +812,9 @@ class _NrqlAlertConditionState:
806
812
  """
807
813
  **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
808
814
  """
815
+ warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
816
+ pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
817
+
809
818
  return pulumi.get(self, "terms")
810
819
 
811
820
  @terms.setter
@@ -831,6 +840,9 @@ class _NrqlAlertConditionState:
831
840
  **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
832
841
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
833
842
  """
843
+ warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
844
+ pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
845
+
834
846
  return pulumi.get(self, "violation_time_limit")
835
847
 
836
848
  @violation_time_limit.setter
@@ -1585,6 +1597,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
1585
1597
  """
1586
1598
  **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1587
1599
  """
1600
+ warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
1601
+ pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
1602
+
1588
1603
  return pulumi.get(self, "terms")
1589
1604
 
1590
1605
  @property
@@ -1602,6 +1617,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
1602
1617
  **DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
1603
1618
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1604
1619
  """
1620
+ warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
1621
+ pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
1622
+
1605
1623
  return pulumi.get(self, "violation_time_limit")
1606
1624
 
1607
1625
  @property
@@ -1075,6 +1075,9 @@ class NrqlAlertConditionCritical(dict):
1075
1075
  @property
1076
1076
  @pulumi.getter
1077
1077
  def duration(self) -> Optional[int]:
1078
+ warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1079
+ pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1080
+
1078
1081
  return pulumi.get(self, "duration")
1079
1082
 
1080
1083
  @property
@@ -1095,6 +1098,9 @@ class NrqlAlertConditionCritical(dict):
1095
1098
  @property
1096
1099
  @pulumi.getter(name="timeFunction")
1097
1100
  def time_function(self) -> Optional[str]:
1101
+ warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1102
+ pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1103
+
1098
1104
  return pulumi.get(self, "time_function")
1099
1105
 
1100
1106
 
@@ -1137,11 +1143,17 @@ class NrqlAlertConditionNrql(dict):
1137
1143
  @property
1138
1144
  @pulumi.getter(name="evaluationOffset")
1139
1145
  def evaluation_offset(self) -> Optional[int]:
1146
+ warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1147
+ pulumi.log.warn("""evaluation_offset is deprecated: use `aggregation_method` attribute instead""")
1148
+
1140
1149
  return pulumi.get(self, "evaluation_offset")
1141
1150
 
1142
1151
  @property
1143
1152
  @pulumi.getter(name="sinceValue")
1144
1153
  def since_value(self) -> Optional[str]:
1154
+ warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
1155
+ pulumi.log.warn("""since_value is deprecated: use `aggregation_method` attribute instead""")
1156
+
1145
1157
  return pulumi.get(self, "since_value")
1146
1158
 
1147
1159
 
@@ -1198,6 +1210,9 @@ class NrqlAlertConditionTerm(dict):
1198
1210
  @property
1199
1211
  @pulumi.getter
1200
1212
  def duration(self) -> Optional[int]:
1213
+ warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1214
+ pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1215
+
1201
1216
  return pulumi.get(self, "duration")
1202
1217
 
1203
1218
  @property
@@ -1223,6 +1238,9 @@ class NrqlAlertConditionTerm(dict):
1223
1238
  @property
1224
1239
  @pulumi.getter(name="timeFunction")
1225
1240
  def time_function(self) -> Optional[str]:
1241
+ warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1242
+ pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1243
+
1226
1244
  return pulumi.get(self, "time_function")
1227
1245
 
1228
1246
 
@@ -1276,6 +1294,9 @@ class NrqlAlertConditionWarning(dict):
1276
1294
  @property
1277
1295
  @pulumi.getter
1278
1296
  def duration(self) -> Optional[int]:
1297
+ warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
1298
+ pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
1299
+
1279
1300
  return pulumi.get(self, "duration")
1280
1301
 
1281
1302
  @property
@@ -1296,6 +1317,9 @@ class NrqlAlertConditionWarning(dict):
1296
1317
  @property
1297
1318
  @pulumi.getter(name="timeFunction")
1298
1319
  def time_function(self) -> Optional[str]:
1320
+ warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
1321
+ pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
1322
+
1299
1323
  return pulumi.get(self, "time_function")
1300
1324
 
1301
1325
 
@@ -103,6 +103,9 @@ class ProviderArgs:
103
103
  @property
104
104
  @pulumi.getter(name="apiUrl")
105
105
  def api_url(self) -> Optional[pulumi.Input[str]]:
106
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
107
+ pulumi.log.warn("""api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
108
+
106
109
  return pulumi.get(self, "api_url")
107
110
 
108
111
  @api_url.setter
@@ -121,6 +124,9 @@ class ProviderArgs:
121
124
  @property
122
125
  @pulumi.getter(name="infrastructureApiUrl")
123
126
  def infrastructure_api_url(self) -> Optional[pulumi.Input[str]]:
127
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
128
+ pulumi.log.warn("""infrastructure_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
129
+
124
130
  return pulumi.get(self, "infrastructure_api_url")
125
131
 
126
132
  @infrastructure_api_url.setter
@@ -166,6 +172,9 @@ class ProviderArgs:
166
172
  @property
167
173
  @pulumi.getter(name="nerdgraphApiUrl")
168
174
  def nerdgraph_api_url(self) -> Optional[pulumi.Input[str]]:
175
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
176
+ pulumi.log.warn("""nerdgraph_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
177
+
169
178
  return pulumi.get(self, "nerdgraph_api_url")
170
179
 
171
180
  @nerdgraph_api_url.setter
@@ -187,6 +196,9 @@ class ProviderArgs:
187
196
  @property
188
197
  @pulumi.getter(name="syntheticsApiUrl")
189
198
  def synthetics_api_url(self) -> Optional[pulumi.Input[str]]:
199
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
200
+ pulumi.log.warn("""synthetics_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
201
+
190
202
  return pulumi.get(self, "synthetics_api_url")
191
203
 
192
204
  @synthetics_api_url.setter
@@ -324,6 +336,9 @@ class Provider(pulumi.ProviderResource):
324
336
  @property
325
337
  @pulumi.getter(name="apiUrl")
326
338
  def api_url(self) -> pulumi.Output[Optional[str]]:
339
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
340
+ pulumi.log.warn("""api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
341
+
327
342
  return pulumi.get(self, "api_url")
328
343
 
329
344
  @property
@@ -334,6 +349,9 @@ class Provider(pulumi.ProviderResource):
334
349
  @property
335
350
  @pulumi.getter(name="infrastructureApiUrl")
336
351
  def infrastructure_api_url(self) -> pulumi.Output[Optional[str]]:
352
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
353
+ pulumi.log.warn("""infrastructure_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
354
+
337
355
  return pulumi.get(self, "infrastructure_api_url")
338
356
 
339
357
  @property
@@ -354,6 +372,9 @@ class Provider(pulumi.ProviderResource):
354
372
  @property
355
373
  @pulumi.getter(name="nerdgraphApiUrl")
356
374
  def nerdgraph_api_url(self) -> pulumi.Output[Optional[str]]:
375
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
376
+ pulumi.log.warn("""nerdgraph_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
377
+
357
378
  return pulumi.get(self, "nerdgraph_api_url")
358
379
 
359
380
  @property
@@ -367,5 +388,8 @@ class Provider(pulumi.ProviderResource):
367
388
  @property
368
389
  @pulumi.getter(name="syntheticsApiUrl")
369
390
  def synthetics_api_url(self) -> pulumi.Output[Optional[str]]:
391
+ warnings.warn("""New Relic internal use only. API URLs are now configured based on the configured region.""", DeprecationWarning)
392
+ pulumi.log.warn("""synthetics_api_url is deprecated: New Relic internal use only. API URLs are now configured based on the configured region.""")
393
+
370
394
  return pulumi.get(self, "synthetics_api_url")
371
395
 
@@ -101,9 +101,9 @@ def get_private_location(account_id: Optional[int] = None,
101
101
  __ret__ = pulumi.runtime.invoke('newrelic:synthetics/getPrivateLocation:getPrivateLocation', __args__, opts=opts, typ=GetPrivateLocationResult).value
102
102
 
103
103
  return AwaitableGetPrivateLocationResult(
104
- account_id=__ret__.account_id,
105
- id=__ret__.id,
106
- name=__ret__.name)
104
+ account_id=pulumi.get(__ret__, 'account_id'),
105
+ id=pulumi.get(__ret__, 'id'),
106
+ name=pulumi.get(__ret__, 'name'))
107
107
 
108
108
 
109
109
  @_utilities.lift_output_func(get_private_location)
@@ -114,11 +114,11 @@ def get_secure_credential(account_id: Optional[int] = None,
114
114
  __ret__ = pulumi.runtime.invoke('newrelic:synthetics/getSecureCredential:getSecureCredential', __args__, opts=opts, typ=GetSecureCredentialResult).value
115
115
 
116
116
  return AwaitableGetSecureCredentialResult(
117
- account_id=__ret__.account_id,
118
- description=__ret__.description,
119
- id=__ret__.id,
120
- key=__ret__.key,
121
- last_updated=__ret__.last_updated)
117
+ account_id=pulumi.get(__ret__, 'account_id'),
118
+ description=pulumi.get(__ret__, 'description'),
119
+ id=pulumi.get(__ret__, 'id'),
120
+ key=pulumi.get(__ret__, 'key'),
121
+ last_updated=pulumi.get(__ret__, 'last_updated'))
122
122
 
123
123
 
124
124
  @_utilities.lift_output_func(get_secure_credential)
@@ -112,6 +112,9 @@ class WorkflowArgs:
112
112
  **DEPRECATED** Whether destinations are enabled. Please use `enabled` instead:
113
113
  these two are different flags, but they are functionally identical. Defaults to true.
114
114
  """
115
+ warnings.warn("""Please use 'enabled' instead""", DeprecationWarning)
116
+ pulumi.log.warn("""destinations_enabled is deprecated: Please use 'enabled' instead""")
117
+
115
118
  return pulumi.get(self, "destinations_enabled")
116
119
 
117
120
  @destinations_enabled.setter
@@ -257,6 +260,9 @@ class _WorkflowState:
257
260
  **DEPRECATED** Whether destinations are enabled. Please use `enabled` instead:
258
261
  these two are different flags, but they are functionally identical. Defaults to true.
259
262
  """
263
+ warnings.warn("""Please use 'enabled' instead""", DeprecationWarning)
264
+ pulumi.log.warn("""destinations_enabled is deprecated: Please use 'enabled' instead""")
265
+
260
266
  return pulumi.get(self, "destinations_enabled")
261
267
 
262
268
  @destinations_enabled.setter
@@ -842,6 +848,9 @@ class Workflow(pulumi.CustomResource):
842
848
  **DEPRECATED** Whether destinations are enabled. Please use `enabled` instead:
843
849
  these two are different flags, but they are functionally identical. Defaults to true.
844
850
  """
851
+ warnings.warn("""Please use 'enabled' instead""", DeprecationWarning)
852
+ pulumi.log.warn("""destinations_enabled is deprecated: Please use 'enabled' instead""")
853
+
845
854
  return pulumi.get(self, "destinations_enabled")
846
855
 
847
856
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-newrelic
3
- Version: 5.14.0a1687672351
3
+ Version: 5.14.0a1689277263
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  Home-page: https://pulumi.io
6
6
  License: Apache-2.0
@@ -8,8 +8,8 @@ from setuptools.command.install import install
8
8
  from subprocess import check_call
9
9
 
10
10
 
11
- VERSION = "5.14.0a1687672351"
12
- PLUGIN_VERSION = "5.14.0-alpha.1687672351+2bc52d77"
11
+ VERSION = "5.14.0a1689277263"
12
+ PLUGIN_VERSION = "5.14.0-alpha.1689277263+7ecf4e50"
13
13
 
14
14
  class InstallPluginCommand(install):
15
15
  def run(self):