pulumi-newrelic 5.40.0a1738908234__tar.gz → 5.41.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/PKG-INFO +1 -1
  2. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/_inputs.py +222 -0
  3. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/_utilities.py +8 -4
  4. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/aws_govcloud_link_account.py +76 -172
  5. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/nrql_alert_condition.py +24 -0
  6. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/outputs.py +189 -0
  7. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/pulumi-plugin.json +1 -1
  8. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic.egg-info/PKG-INFO +1 -1
  9. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pyproject.toml +1 -1
  10. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/README.md +0 -0
  11. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/__init__.py +0 -0
  12. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/account_management.py +0 -0
  13. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/alert_channel.py +0 -0
  14. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/alert_condition.py +0 -0
  15. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/alert_muting_rule.py +0 -0
  16. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/alert_policy.py +0 -0
  17. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/alert_policy_channel.py +0 -0
  18. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/api_access_key.py +0 -0
  19. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/browser_application.py +0 -0
  20. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/__init__.py +0 -0
  21. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/_inputs.py +0 -0
  22. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/aws_govcloud_integrations.py +0 -0
  23. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/aws_integrations.py +0 -0
  24. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/aws_link_account.py +0 -0
  25. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/azure_integrations.py +0 -0
  26. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/azure_link_account.py +0 -0
  27. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/gcp_integrations.py +0 -0
  28. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/gcp_link_account.py +0 -0
  29. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/cloud/outputs.py +0 -0
  30. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/config/__init__.py +0 -0
  31. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/config/__init__.pyi +0 -0
  32. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/config/vars.py +0 -0
  33. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/data_partition_rule.py +0 -0
  34. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/entity_tags.py +0 -0
  35. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/events_to_metrics_rule.py +0 -0
  36. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_account.py +0 -0
  37. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_alert_channel.py +0 -0
  38. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_alert_policy.py +0 -0
  39. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_application.py +0 -0
  40. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_authentication_domain.py +0 -0
  41. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_cloud_account.py +0 -0
  42. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_entity.py +0 -0
  43. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_group.py +0 -0
  44. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_key_transaction.py +0 -0
  45. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_notification_destination.py +0 -0
  46. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_obfuscation_expression.py +0 -0
  47. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_service_level_alert_helper.py +0 -0
  48. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_test_grok_pattern.py +0 -0
  49. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/get_user.py +0 -0
  50. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/group.py +0 -0
  51. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/infra_alert_condition.py +0 -0
  52. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/insights/__init__.py +0 -0
  53. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/insights/_inputs.py +0 -0
  54. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/insights/event.py +0 -0
  55. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/insights/outputs.py +0 -0
  56. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/key_transaction.py +0 -0
  57. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/log_parsing_rule.py +0 -0
  58. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/monitor_downtime.py +0 -0
  59. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/notification_channel.py +0 -0
  60. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/notification_destination.py +0 -0
  61. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/nrql_drop_rule.py +0 -0
  62. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/obfuscation_expression.py +0 -0
  63. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/obfuscation_rule.py +0 -0
  64. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/one_dashboard.py +0 -0
  65. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/one_dashboard_json.py +0 -0
  66. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/one_dashboard_raw.py +0 -0
  67. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/plugins/__init__.py +0 -0
  68. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/plugins/_inputs.py +0 -0
  69. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/plugins/application_settings.py +0 -0
  70. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/plugins/outputs.py +0 -0
  71. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/plugins/workload.py +0 -0
  72. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/provider.py +0 -0
  73. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/py.typed +0 -0
  74. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/service_level.py +0 -0
  75. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/__init__.py +0 -0
  76. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/_inputs.py +0 -0
  77. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/alert_condition.py +0 -0
  78. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/broken_links_monitor.py +0 -0
  79. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/cert_check_monitor.py +0 -0
  80. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/get_private_location.py +0 -0
  81. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/get_secure_credential.py +0 -0
  82. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/monitor.py +0 -0
  83. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/multi_location_alert_condition.py +0 -0
  84. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/outputs.py +0 -0
  85. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/private_location.py +0 -0
  86. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/script_monitor.py +0 -0
  87. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/secure_credential.py +0 -0
  88. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/synthetics/step_monitor.py +0 -0
  89. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/user.py +0 -0
  90. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic/workflow.py +0 -0
  91. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic.egg-info/SOURCES.txt +0 -0
  92. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic.egg-info/dependency_links.txt +0 -0
  93. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic.egg-info/requires.txt +0 -0
  94. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/pulumi_newrelic.egg-info/top_level.txt +0 -0
  95. {pulumi_newrelic-5.40.0a1738908234 → pulumi_newrelic-5.41.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pulumi_newrelic
3
- Version: 5.40.0a1738908234
3
+ Version: 5.41.0
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -51,12 +51,18 @@ __all__ = [
51
51
  'NotificationDestinationSecureUrlArgsDict',
52
52
  'NrqlAlertConditionCriticalArgs',
53
53
  'NrqlAlertConditionCriticalArgsDict',
54
+ 'NrqlAlertConditionCriticalPredictionArgs',
55
+ 'NrqlAlertConditionCriticalPredictionArgsDict',
54
56
  'NrqlAlertConditionNrqlArgs',
55
57
  'NrqlAlertConditionNrqlArgsDict',
56
58
  'NrqlAlertConditionTermArgs',
57
59
  'NrqlAlertConditionTermArgsDict',
60
+ 'NrqlAlertConditionTermPredictionArgs',
61
+ 'NrqlAlertConditionTermPredictionArgsDict',
58
62
  'NrqlAlertConditionWarningArgs',
59
63
  'NrqlAlertConditionWarningArgsDict',
64
+ 'NrqlAlertConditionWarningPredictionArgs',
65
+ 'NrqlAlertConditionWarningPredictionArgsDict',
60
66
  'ObfuscationRuleActionArgs',
61
67
  'ObfuscationRuleActionArgsDict',
62
68
  'OneDashboardPageArgs',
@@ -1912,6 +1918,10 @@ if not MYPY:
1912
1918
  """
1913
1919
  One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'.
1914
1920
  """
1921
+ prediction: NotRequired[pulumi.Input['NrqlAlertConditionCriticalPredictionArgsDict']]
1922
+ """
1923
+ BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
1924
+ """
1915
1925
  threshold_duration: NotRequired[pulumi.Input[int]]
1916
1926
  """
1917
1927
  The duration, in seconds, that the threshold must violate in order to create an incident. Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions
@@ -1933,6 +1943,7 @@ class NrqlAlertConditionCriticalArgs:
1933
1943
  threshold: pulumi.Input[float],
1934
1944
  duration: Optional[pulumi.Input[int]] = None,
1935
1945
  operator: Optional[pulumi.Input[str]] = None,
1946
+ prediction: Optional[pulumi.Input['NrqlAlertConditionCriticalPredictionArgs']] = None,
1936
1947
  threshold_duration: Optional[pulumi.Input[int]] = None,
1937
1948
  threshold_occurrences: Optional[pulumi.Input[str]] = None,
1938
1949
  time_function: Optional[pulumi.Input[str]] = None):
@@ -1940,6 +1951,7 @@ class NrqlAlertConditionCriticalArgs:
1940
1951
  :param pulumi.Input[float] threshold: For baseline conditions must be in range [1, 1000].
1941
1952
  :param pulumi.Input[int] duration: In minutes, must be in the range of 1 to 120 (inclusive).
1942
1953
  :param pulumi.Input[str] operator: One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'.
1954
+ :param pulumi.Input['NrqlAlertConditionCriticalPredictionArgs'] prediction: BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
1943
1955
  :param pulumi.Input[int] threshold_duration: The duration, in seconds, that the threshold must violate in order to create an incident. Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions
1944
1956
  :param pulumi.Input[str] threshold_occurrences: The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: 'ALL' or 'AT_LEAST_ONCE' (case insensitive).
1945
1957
  :param pulumi.Input[str] time_function: Valid values are: 'all' or 'any'
@@ -1952,6 +1964,8 @@ class NrqlAlertConditionCriticalArgs:
1952
1964
  pulumi.set(__self__, "duration", duration)
1953
1965
  if operator is not None:
1954
1966
  pulumi.set(__self__, "operator", operator)
1967
+ if prediction is not None:
1968
+ pulumi.set(__self__, "prediction", prediction)
1955
1969
  if threshold_duration is not None:
1956
1970
  pulumi.set(__self__, "threshold_duration", threshold_duration)
1957
1971
  if threshold_occurrences is not None:
@@ -1999,6 +2013,18 @@ class NrqlAlertConditionCriticalArgs:
1999
2013
  def operator(self, value: Optional[pulumi.Input[str]]):
2000
2014
  pulumi.set(self, "operator", value)
2001
2015
 
2016
+ @property
2017
+ @pulumi.getter
2018
+ def prediction(self) -> Optional[pulumi.Input['NrqlAlertConditionCriticalPredictionArgs']]:
2019
+ """
2020
+ BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
2021
+ """
2022
+ return pulumi.get(self, "prediction")
2023
+
2024
+ @prediction.setter
2025
+ def prediction(self, value: Optional[pulumi.Input['NrqlAlertConditionCriticalPredictionArgs']]):
2026
+ pulumi.set(self, "prediction", value)
2027
+
2002
2028
  @property
2003
2029
  @pulumi.getter(name="thresholdDuration")
2004
2030
  def threshold_duration(self) -> Optional[pulumi.Input[int]]:
@@ -2037,6 +2063,58 @@ class NrqlAlertConditionCriticalArgs:
2037
2063
  pulumi.set(self, "time_function", value)
2038
2064
 
2039
2065
 
2066
+ if not MYPY:
2067
+ class NrqlAlertConditionCriticalPredictionArgsDict(TypedDict):
2068
+ predict_by: NotRequired[pulumi.Input[int]]
2069
+ """
2070
+ BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2071
+ """
2072
+ prefer_prediction_violation: NotRequired[pulumi.Input[bool]]
2073
+ """
2074
+ BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2075
+ """
2076
+ elif False:
2077
+ NrqlAlertConditionCriticalPredictionArgsDict: TypeAlias = Mapping[str, Any]
2078
+
2079
+ @pulumi.input_type
2080
+ class NrqlAlertConditionCriticalPredictionArgs:
2081
+ def __init__(__self__, *,
2082
+ predict_by: Optional[pulumi.Input[int]] = None,
2083
+ prefer_prediction_violation: Optional[pulumi.Input[bool]] = None):
2084
+ """
2085
+ :param pulumi.Input[int] predict_by: BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2086
+ :param pulumi.Input[bool] prefer_prediction_violation: BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2087
+ """
2088
+ if predict_by is not None:
2089
+ pulumi.set(__self__, "predict_by", predict_by)
2090
+ if prefer_prediction_violation is not None:
2091
+ pulumi.set(__self__, "prefer_prediction_violation", prefer_prediction_violation)
2092
+
2093
+ @property
2094
+ @pulumi.getter(name="predictBy")
2095
+ def predict_by(self) -> Optional[pulumi.Input[int]]:
2096
+ """
2097
+ BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2098
+ """
2099
+ return pulumi.get(self, "predict_by")
2100
+
2101
+ @predict_by.setter
2102
+ def predict_by(self, value: Optional[pulumi.Input[int]]):
2103
+ pulumi.set(self, "predict_by", value)
2104
+
2105
+ @property
2106
+ @pulumi.getter(name="preferPredictionViolation")
2107
+ def prefer_prediction_violation(self) -> Optional[pulumi.Input[bool]]:
2108
+ """
2109
+ BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2110
+ """
2111
+ return pulumi.get(self, "prefer_prediction_violation")
2112
+
2113
+ @prefer_prediction_violation.setter
2114
+ def prefer_prediction_violation(self, value: Optional[pulumi.Input[bool]]):
2115
+ pulumi.set(self, "prefer_prediction_violation", value)
2116
+
2117
+
2040
2118
  if not MYPY:
2041
2119
  class NrqlAlertConditionNrqlArgsDict(TypedDict):
2042
2120
  query: pulumi.Input[str]
@@ -2143,6 +2221,10 @@ if not MYPY:
2143
2221
  """
2144
2222
  One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'.
2145
2223
  """
2224
+ prediction: NotRequired[pulumi.Input['NrqlAlertConditionTermPredictionArgsDict']]
2225
+ """
2226
+ BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
2227
+ """
2146
2228
  priority: NotRequired[pulumi.Input[str]]
2147
2229
  """
2148
2230
  One of (critical, warning). Defaults to 'critical'. At least one condition term must have priority set to 'critical'.
@@ -2168,6 +2250,7 @@ class NrqlAlertConditionTermArgs:
2168
2250
  threshold: pulumi.Input[float],
2169
2251
  duration: Optional[pulumi.Input[int]] = None,
2170
2252
  operator: Optional[pulumi.Input[str]] = None,
2253
+ prediction: Optional[pulumi.Input['NrqlAlertConditionTermPredictionArgs']] = None,
2171
2254
  priority: Optional[pulumi.Input[str]] = None,
2172
2255
  threshold_duration: Optional[pulumi.Input[int]] = None,
2173
2256
  threshold_occurrences: Optional[pulumi.Input[str]] = None,
@@ -2176,6 +2259,7 @@ class NrqlAlertConditionTermArgs:
2176
2259
  :param pulumi.Input[float] threshold: For baseline conditions must be in range [1, 1000].
2177
2260
  :param pulumi.Input[int] duration: In minutes, must be in the range of 1 to 120 (inclusive).
2178
2261
  :param pulumi.Input[str] operator: One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'.
2262
+ :param pulumi.Input['NrqlAlertConditionTermPredictionArgs'] prediction: BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
2179
2263
  :param pulumi.Input[str] priority: One of (critical, warning). Defaults to 'critical'. At least one condition term must have priority set to 'critical'.
2180
2264
  :param pulumi.Input[int] threshold_duration: The duration, in seconds, that the threshold must violate in order to create an incident. Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions
2181
2265
  :param pulumi.Input[str] threshold_occurrences: The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: 'ALL' or 'AT_LEAST_ONCE' (case insensitive).
@@ -2189,6 +2273,8 @@ class NrqlAlertConditionTermArgs:
2189
2273
  pulumi.set(__self__, "duration", duration)
2190
2274
  if operator is not None:
2191
2275
  pulumi.set(__self__, "operator", operator)
2276
+ if prediction is not None:
2277
+ pulumi.set(__self__, "prediction", prediction)
2192
2278
  if priority is not None:
2193
2279
  pulumi.set(__self__, "priority", priority)
2194
2280
  if threshold_duration is not None:
@@ -2238,6 +2324,18 @@ class NrqlAlertConditionTermArgs:
2238
2324
  def operator(self, value: Optional[pulumi.Input[str]]):
2239
2325
  pulumi.set(self, "operator", value)
2240
2326
 
2327
+ @property
2328
+ @pulumi.getter
2329
+ def prediction(self) -> Optional[pulumi.Input['NrqlAlertConditionTermPredictionArgs']]:
2330
+ """
2331
+ BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
2332
+ """
2333
+ return pulumi.get(self, "prediction")
2334
+
2335
+ @prediction.setter
2336
+ def prediction(self, value: Optional[pulumi.Input['NrqlAlertConditionTermPredictionArgs']]):
2337
+ pulumi.set(self, "prediction", value)
2338
+
2241
2339
  @property
2242
2340
  @pulumi.getter
2243
2341
  def priority(self) -> Optional[pulumi.Input[str]]:
@@ -2288,6 +2386,58 @@ class NrqlAlertConditionTermArgs:
2288
2386
  pulumi.set(self, "time_function", value)
2289
2387
 
2290
2388
 
2389
+ if not MYPY:
2390
+ class NrqlAlertConditionTermPredictionArgsDict(TypedDict):
2391
+ predict_by: NotRequired[pulumi.Input[int]]
2392
+ """
2393
+ BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2394
+ """
2395
+ prefer_prediction_violation: NotRequired[pulumi.Input[bool]]
2396
+ """
2397
+ BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2398
+ """
2399
+ elif False:
2400
+ NrqlAlertConditionTermPredictionArgsDict: TypeAlias = Mapping[str, Any]
2401
+
2402
+ @pulumi.input_type
2403
+ class NrqlAlertConditionTermPredictionArgs:
2404
+ def __init__(__self__, *,
2405
+ predict_by: Optional[pulumi.Input[int]] = None,
2406
+ prefer_prediction_violation: Optional[pulumi.Input[bool]] = None):
2407
+ """
2408
+ :param pulumi.Input[int] predict_by: BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2409
+ :param pulumi.Input[bool] prefer_prediction_violation: BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2410
+ """
2411
+ if predict_by is not None:
2412
+ pulumi.set(__self__, "predict_by", predict_by)
2413
+ if prefer_prediction_violation is not None:
2414
+ pulumi.set(__self__, "prefer_prediction_violation", prefer_prediction_violation)
2415
+
2416
+ @property
2417
+ @pulumi.getter(name="predictBy")
2418
+ def predict_by(self) -> Optional[pulumi.Input[int]]:
2419
+ """
2420
+ BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2421
+ """
2422
+ return pulumi.get(self, "predict_by")
2423
+
2424
+ @predict_by.setter
2425
+ def predict_by(self, value: Optional[pulumi.Input[int]]):
2426
+ pulumi.set(self, "predict_by", value)
2427
+
2428
+ @property
2429
+ @pulumi.getter(name="preferPredictionViolation")
2430
+ def prefer_prediction_violation(self) -> Optional[pulumi.Input[bool]]:
2431
+ """
2432
+ BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2433
+ """
2434
+ return pulumi.get(self, "prefer_prediction_violation")
2435
+
2436
+ @prefer_prediction_violation.setter
2437
+ def prefer_prediction_violation(self, value: Optional[pulumi.Input[bool]]):
2438
+ pulumi.set(self, "prefer_prediction_violation", value)
2439
+
2440
+
2291
2441
  if not MYPY:
2292
2442
  class NrqlAlertConditionWarningArgsDict(TypedDict):
2293
2443
  threshold: pulumi.Input[float]
@@ -2302,6 +2452,10 @@ if not MYPY:
2302
2452
  """
2303
2453
  One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'.
2304
2454
  """
2455
+ prediction: NotRequired[pulumi.Input['NrqlAlertConditionWarningPredictionArgsDict']]
2456
+ """
2457
+ BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
2458
+ """
2305
2459
  threshold_duration: NotRequired[pulumi.Input[int]]
2306
2460
  """
2307
2461
  The duration, in seconds, that the threshold must violate in order to create an incident. Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions
@@ -2323,6 +2477,7 @@ class NrqlAlertConditionWarningArgs:
2323
2477
  threshold: pulumi.Input[float],
2324
2478
  duration: Optional[pulumi.Input[int]] = None,
2325
2479
  operator: Optional[pulumi.Input[str]] = None,
2480
+ prediction: Optional[pulumi.Input['NrqlAlertConditionWarningPredictionArgs']] = None,
2326
2481
  threshold_duration: Optional[pulumi.Input[int]] = None,
2327
2482
  threshold_occurrences: Optional[pulumi.Input[str]] = None,
2328
2483
  time_function: Optional[pulumi.Input[str]] = None):
@@ -2330,6 +2485,7 @@ class NrqlAlertConditionWarningArgs:
2330
2485
  :param pulumi.Input[float] threshold: For baseline conditions must be in range [1, 1000].
2331
2486
  :param pulumi.Input[int] duration: In minutes, must be in the range of 1 to 120 (inclusive).
2332
2487
  :param pulumi.Input[str] operator: One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'.
2488
+ :param pulumi.Input['NrqlAlertConditionWarningPredictionArgs'] prediction: BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
2333
2489
  :param pulumi.Input[int] threshold_duration: The duration, in seconds, that the threshold must violate in order to create an incident. Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions
2334
2490
  :param pulumi.Input[str] threshold_occurrences: The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: 'ALL' or 'AT_LEAST_ONCE' (case insensitive).
2335
2491
  :param pulumi.Input[str] time_function: Valid values are: 'all' or 'any'
@@ -2342,6 +2498,8 @@ class NrqlAlertConditionWarningArgs:
2342
2498
  pulumi.set(__self__, "duration", duration)
2343
2499
  if operator is not None:
2344
2500
  pulumi.set(__self__, "operator", operator)
2501
+ if prediction is not None:
2502
+ pulumi.set(__self__, "prediction", prediction)
2345
2503
  if threshold_duration is not None:
2346
2504
  pulumi.set(__self__, "threshold_duration", threshold_duration)
2347
2505
  if threshold_occurrences is not None:
@@ -2389,6 +2547,18 @@ class NrqlAlertConditionWarningArgs:
2389
2547
  def operator(self, value: Optional[pulumi.Input[str]]):
2390
2548
  pulumi.set(self, "operator", value)
2391
2549
 
2550
+ @property
2551
+ @pulumi.getter
2552
+ def prediction(self) -> Optional[pulumi.Input['NrqlAlertConditionWarningPredictionArgs']]:
2553
+ """
2554
+ BETA PREVIEW: the `prediction` field is in limited release and only enabled for preview on a per-account basis. - Use `prediction` to open alerts when your static threshold is predicted to be reached in the future. The `prediction` field is only available for static conditions.
2555
+ """
2556
+ return pulumi.get(self, "prediction")
2557
+
2558
+ @prediction.setter
2559
+ def prediction(self, value: Optional[pulumi.Input['NrqlAlertConditionWarningPredictionArgs']]):
2560
+ pulumi.set(self, "prediction", value)
2561
+
2392
2562
  @property
2393
2563
  @pulumi.getter(name="thresholdDuration")
2394
2564
  def threshold_duration(self) -> Optional[pulumi.Input[int]]:
@@ -2427,6 +2597,58 @@ class NrqlAlertConditionWarningArgs:
2427
2597
  pulumi.set(self, "time_function", value)
2428
2598
 
2429
2599
 
2600
+ if not MYPY:
2601
+ class NrqlAlertConditionWarningPredictionArgsDict(TypedDict):
2602
+ predict_by: NotRequired[pulumi.Input[int]]
2603
+ """
2604
+ BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2605
+ """
2606
+ prefer_prediction_violation: NotRequired[pulumi.Input[bool]]
2607
+ """
2608
+ BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2609
+ """
2610
+ elif False:
2611
+ NrqlAlertConditionWarningPredictionArgsDict: TypeAlias = Mapping[str, Any]
2612
+
2613
+ @pulumi.input_type
2614
+ class NrqlAlertConditionWarningPredictionArgs:
2615
+ def __init__(__self__, *,
2616
+ predict_by: Optional[pulumi.Input[int]] = None,
2617
+ prefer_prediction_violation: Optional[pulumi.Input[bool]] = None):
2618
+ """
2619
+ :param pulumi.Input[int] predict_by: BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2620
+ :param pulumi.Input[bool] prefer_prediction_violation: BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2621
+ """
2622
+ if predict_by is not None:
2623
+ pulumi.set(__self__, "predict_by", predict_by)
2624
+ if prefer_prediction_violation is not None:
2625
+ pulumi.set(__self__, "prefer_prediction_violation", prefer_prediction_violation)
2626
+
2627
+ @property
2628
+ @pulumi.getter(name="predictBy")
2629
+ def predict_by(self) -> Optional[pulumi.Input[int]]:
2630
+ """
2631
+ BETA PREVIEW: the `predict_by` field is in limited release and only enabled for preview on a per-account basis. - The duration, in seconds, that the prediction should look into the future.
2632
+ """
2633
+ return pulumi.get(self, "predict_by")
2634
+
2635
+ @predict_by.setter
2636
+ def predict_by(self, value: Optional[pulumi.Input[int]]):
2637
+ pulumi.set(self, "predict_by", value)
2638
+
2639
+ @property
2640
+ @pulumi.getter(name="preferPredictionViolation")
2641
+ def prefer_prediction_violation(self) -> Optional[pulumi.Input[bool]]:
2642
+ """
2643
+ BETA PREVIEW: the `prefer_prediction_violation` field is in limited release and only enabled for preview on a per-account basis. - If a prediction incident is open when a term's static threshold is breached by the actual signal, default behavior is to close the prediction incident and open a static incident. Setting `prefer_prediction_violation` to `true` overrides this behavior leaving the prediction incident open and preventing a static incident from opening.
2644
+ """
2645
+ return pulumi.get(self, "prefer_prediction_violation")
2646
+
2647
+ @prefer_prediction_violation.setter
2648
+ def prefer_prediction_violation(self, value: Optional[pulumi.Input[bool]]):
2649
+ pulumi.set(self, "prefer_prediction_violation", value)
2650
+
2651
+
2430
2652
  if not MYPY:
2431
2653
  class ObfuscationRuleActionArgsDict(TypedDict):
2432
2654
  attributes: pulumi.Input[Sequence[pulumi.Input[str]]]
@@ -89,12 +89,16 @@ def _get_semver_version():
89
89
  elif pep440_version.pre_tag == 'rc':
90
90
  prerelease = f"rc.{pep440_version.pre}"
91
91
  elif pep440_version.dev is not None:
92
+ # PEP440 has explicit support for dev builds, while semver encodes them as "prerelease" versions. To bridge
93
+ # between the two, we convert our dev build version into a prerelease tag. This matches what all of our other
94
+ # packages do when constructing their own semver string.
92
95
  prerelease = f"dev.{pep440_version.dev}"
96
+ elif pep440_version.local is not None:
97
+ # PEP440 only allows a small set of prerelease tags, so when converting an arbitrary prerelease,
98
+ # PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to
99
+ # do the reverse conversion here and set the local version as the prerelease tag.
100
+ prerelease = pep440_version.local
93
101
 
94
- # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support
95
- # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert
96
- # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing
97
- # their own semver string.
98
102
  return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease)
99
103
 
100
104