pulumi-newrelic 5.42.1__py3-none-any.whl → 5.58.0a1766556761__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +19 -1
  2. pulumi_newrelic/_inputs.py +4314 -3779
  3. pulumi_newrelic/_utilities.py +1 -1
  4. pulumi_newrelic/account_management.py +37 -36
  5. pulumi_newrelic/alert_channel.py +63 -62
  6. pulumi_newrelic/alert_condition.py +219 -218
  7. pulumi_newrelic/alert_muting_rule.py +96 -95
  8. pulumi_newrelic/alert_policy.py +71 -70
  9. pulumi_newrelic/alert_policy_channel.py +54 -53
  10. pulumi_newrelic/api_access_key.py +186 -201
  11. pulumi_newrelic/browser_application.py +115 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +2226 -2118
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +101 -96
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +71 -70
  16. pulumi_newrelic/cloud/aws_integrations.py +240 -192
  17. pulumi_newrelic/cloud/aws_link_account.py +71 -70
  18. pulumi_newrelic/cloud/azure_integrations.py +180 -132
  19. pulumi_newrelic/cloud/azure_link_account.py +105 -104
  20. pulumi_newrelic/cloud/gcp_integrations.py +115 -114
  21. pulumi_newrelic/cloud/gcp_link_account.py +56 -55
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1512 -1410
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +2 -2
  26. pulumi_newrelic/config/vars.py +15 -15
  27. pulumi_newrelic/data_partition_rule.py +114 -113
  28. pulumi_newrelic/entity_tags.py +79 -22
  29. pulumi_newrelic/events_to_metrics_rule.py +97 -96
  30. pulumi_newrelic/get_account.py +22 -22
  31. pulumi_newrelic/get_alert_channel.py +53 -21
  32. pulumi_newrelic/get_alert_policy.py +52 -26
  33. pulumi_newrelic/get_application.py +14 -14
  34. pulumi_newrelic/get_authentication_domain.py +10 -10
  35. pulumi_newrelic/get_cloud_account.py +22 -22
  36. pulumi_newrelic/get_entity.py +53 -53
  37. pulumi_newrelic/get_group.py +22 -22
  38. pulumi_newrelic/get_key_transaction.py +26 -26
  39. pulumi_newrelic/get_notification_destination.py +31 -31
  40. pulumi_newrelic/get_obfuscation_expression.py +16 -16
  41. pulumi_newrelic/get_service_level_alert_helper.py +54 -54
  42. pulumi_newrelic/get_test_grok_pattern.py +23 -23
  43. pulumi_newrelic/get_user.py +22 -22
  44. pulumi_newrelic/group.py +54 -53
  45. pulumi_newrelic/infra_alert_condition.py +257 -256
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +33 -33
  48. pulumi_newrelic/insights/event.py +6 -5
  49. pulumi_newrelic/insights/outputs.py +23 -23
  50. pulumi_newrelic/key_transaction.py +106 -105
  51. pulumi_newrelic/log_parsing_rule.py +148 -147
  52. pulumi_newrelic/monitor_downtime.py +148 -154
  53. pulumi_newrelic/notification_channel.py +218 -163
  54. pulumi_newrelic/notification_destination.py +123 -136
  55. pulumi_newrelic/nrql_alert_condition.py +513 -414
  56. pulumi_newrelic/nrql_drop_rule.py +108 -147
  57. pulumi_newrelic/obfuscation_expression.py +71 -70
  58. pulumi_newrelic/obfuscation_rule.py +91 -90
  59. pulumi_newrelic/one_dashboard.py +95 -94
  60. pulumi_newrelic/one_dashboard_json.py +64 -63
  61. pulumi_newrelic/one_dashboard_raw.py +116 -115
  62. pulumi_newrelic/outputs.py +3026 -2665
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +159 -159
  66. pulumi_newrelic/plugins/application_settings.py +186 -171
  67. pulumi_newrelic/plugins/outputs.py +109 -109
  68. pulumi_newrelic/plugins/workload.py +133 -132
  69. pulumi_newrelic/provider.py +136 -116
  70. pulumi_newrelic/pulumi-plugin.json +1 -1
  71. pulumi_newrelic/service_level.py +78 -77
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +128 -128
  74. pulumi_newrelic/synthetics/alert_condition.py +97 -96
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +218 -189
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +226 -197
  77. pulumi_newrelic/synthetics/get_private_location.py +22 -22
  78. pulumi_newrelic/synthetics/get_secure_credential.py +20 -20
  79. pulumi_newrelic/synthetics/monitor.py +399 -370
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +120 -119
  81. pulumi_newrelic/synthetics/outputs.py +86 -86
  82. pulumi_newrelic/synthetics/private_location.py +107 -106
  83. pulumi_newrelic/synthetics/script_monitor.py +385 -294
  84. pulumi_newrelic/synthetics/secure_credential.py +88 -87
  85. pulumi_newrelic/synthetics/step_monitor.py +241 -212
  86. pulumi_newrelic/user.py +71 -70
  87. pulumi_newrelic/workflow.py +141 -140
  88. {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/METADATA +4 -4
  89. pulumi_newrelic-5.58.0a1766556761.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.42.1.dist-info/RECORD +0 -90
  92. {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -22,61 +22,65 @@ __all__ = ['NrqlAlertConditionArgs', 'NrqlAlertCondition']
22
22
  class NrqlAlertConditionArgs:
23
23
  def __init__(__self__, *,
24
24
  nrql: pulumi.Input['NrqlAlertConditionNrqlArgs'],
25
- policy_id: pulumi.Input[str],
26
- account_id: Optional[pulumi.Input[str]] = None,
27
- aggregation_delay: Optional[pulumi.Input[str]] = None,
28
- aggregation_method: Optional[pulumi.Input[str]] = None,
29
- aggregation_timer: Optional[pulumi.Input[str]] = None,
30
- aggregation_window: Optional[pulumi.Input[int]] = None,
31
- baseline_direction: Optional[pulumi.Input[str]] = None,
32
- close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
25
+ policy_id: pulumi.Input[_builtins.str],
26
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
27
+ aggregation_delay: Optional[pulumi.Input[_builtins.str]] = None,
28
+ aggregation_method: Optional[pulumi.Input[_builtins.str]] = None,
29
+ aggregation_timer: Optional[pulumi.Input[_builtins.str]] = None,
30
+ aggregation_window: Optional[pulumi.Input[_builtins.int]] = None,
31
+ baseline_direction: Optional[pulumi.Input[_builtins.str]] = None,
32
+ close_violations_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
33
33
  critical: Optional[pulumi.Input['NrqlAlertConditionCriticalArgs']] = None,
34
- description: Optional[pulumi.Input[str]] = None,
35
- enabled: Optional[pulumi.Input[bool]] = None,
36
- evaluation_delay: Optional[pulumi.Input[int]] = None,
37
- expiration_duration: Optional[pulumi.Input[int]] = None,
38
- fill_option: Optional[pulumi.Input[str]] = None,
39
- fill_value: Optional[pulumi.Input[float]] = None,
40
- ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
41
- name: Optional[pulumi.Input[str]] = None,
42
- open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
43
- runbook_url: Optional[pulumi.Input[str]] = None,
44
- slide_by: Optional[pulumi.Input[int]] = None,
34
+ description: Optional[pulumi.Input[_builtins.str]] = None,
35
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
36
+ evaluation_delay: Optional[pulumi.Input[_builtins.int]] = None,
37
+ expiration_duration: Optional[pulumi.Input[_builtins.int]] = None,
38
+ fill_option: Optional[pulumi.Input[_builtins.str]] = None,
39
+ fill_value: Optional[pulumi.Input[_builtins.float]] = None,
40
+ ignore_on_expected_termination: Optional[pulumi.Input[_builtins.bool]] = None,
41
+ name: Optional[pulumi.Input[_builtins.str]] = None,
42
+ open_violation_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
43
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
44
+ signal_seasonality: Optional[pulumi.Input[_builtins.str]] = None,
45
+ slide_by: Optional[pulumi.Input[_builtins.int]] = None,
46
+ target_entity: Optional[pulumi.Input[_builtins.str]] = None,
45
47
  terms: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]] = None,
46
- title_template: Optional[pulumi.Input[str]] = None,
47
- type: Optional[pulumi.Input[str]] = None,
48
- violation_time_limit: Optional[pulumi.Input[str]] = None,
49
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
48
+ title_template: Optional[pulumi.Input[_builtins.str]] = None,
49
+ type: Optional[pulumi.Input[_builtins.str]] = None,
50
+ violation_time_limit: Optional[pulumi.Input[_builtins.str]] = None,
51
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
50
52
  warning: Optional[pulumi.Input['NrqlAlertConditionWarningArgs']] = None):
51
53
  """
52
54
  The set of arguments for constructing a NrqlAlertCondition resource.
53
55
  :param pulumi.Input['NrqlAlertConditionNrqlArgs'] nrql: A NRQL query. See NRQL below for details.
54
- :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
55
- :param pulumi.Input[str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
56
- :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
57
- :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
58
- :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
59
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
60
- :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
61
- :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
56
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
57
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
58
+ :param pulumi.Input[_builtins.str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
59
+ :param pulumi.Input[_builtins.str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
60
+ :param pulumi.Input[_builtins.str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
61
+ :param pulumi.Input[_builtins.int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
62
+ :param pulumi.Input[_builtins.str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
63
+ :param pulumi.Input[_builtins.bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
62
64
  :param pulumi.Input['NrqlAlertConditionCriticalArgs'] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
63
- :param pulumi.Input[str] description: The description of the NRQL alert condition.
64
- :param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
65
- :param pulumi.Input[int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
66
- :param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
67
- :param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
68
- :param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
69
- :param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
70
- :param pulumi.Input[str] name: The title of the condition.
71
- :param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
72
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
73
- :param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
65
+ :param pulumi.Input[_builtins.str] description: The description of the NRQL alert condition.
66
+ :param pulumi.Input[_builtins.bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
67
+ :param pulumi.Input[_builtins.int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
68
+ :param pulumi.Input[_builtins.int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
69
+ :param pulumi.Input[_builtins.str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
70
+ :param pulumi.Input[_builtins.float] fill_value: This value will be used for filling gaps in the signal.
71
+ :param pulumi.Input[_builtins.bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
72
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
73
+ :param pulumi.Input[_builtins.bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
74
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
75
+ :param pulumi.Input[_builtins.str] signal_seasonality: Seasonality under which a condition's signal(s) are evaluated. Only available for baseline conditions. Valid values are: `NEW_RELIC_CALCULATION`, `HOURLY`, `DAILY`, `WEEKLY`, or `NONE`. To have New Relic calculate seasonality automatically, set to `NEW_RELIC_CALCULATION`. To turn off seasonality completely, set to `NONE`.
76
+ :param pulumi.Input[_builtins.int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
77
+ :param pulumi.Input[_builtins.str] target_entity: BETA PREVIEW: The GUID of the entity explicitly targeted by the condition. Issues triggered by this condition will affect the health status of this entity instead of having the affected entity detected automatically. The entity's account ID must be either `account_id` or `nrql.data_account_id`.
74
78
  :param pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
75
- :param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
76
- :param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
77
- :param pulumi.Input[str] violation_time_limit: **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>
79
+ :param pulumi.Input[_builtins.str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
80
+ :param pulumi.Input[_builtins.str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
81
+ :param pulumi.Input[_builtins.str] violation_time_limit: **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>
78
82
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
79
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
83
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
80
84
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
81
85
  :param pulumi.Input['NrqlAlertConditionWarningArgs'] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
82
86
  """
@@ -118,8 +122,12 @@ class NrqlAlertConditionArgs:
118
122
  pulumi.set(__self__, "open_violation_on_expiration", open_violation_on_expiration)
119
123
  if runbook_url is not None:
120
124
  pulumi.set(__self__, "runbook_url", runbook_url)
125
+ if signal_seasonality is not None:
126
+ pulumi.set(__self__, "signal_seasonality", signal_seasonality)
121
127
  if slide_by is not None:
122
128
  pulumi.set(__self__, "slide_by", slide_by)
129
+ if target_entity is not None:
130
+ pulumi.set(__self__, "target_entity", target_entity)
123
131
  if terms is not None:
124
132
  warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
125
133
  pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
@@ -139,7 +147,7 @@ class NrqlAlertConditionArgs:
139
147
  if warning is not None:
140
148
  pulumi.set(__self__, "warning", warning)
141
149
 
142
- @property
150
+ @_builtins.property
143
151
  @pulumi.getter
144
152
  def nrql(self) -> pulumi.Input['NrqlAlertConditionNrqlArgs']:
145
153
  """
@@ -151,103 +159,103 @@ class NrqlAlertConditionArgs:
151
159
  def nrql(self, value: pulumi.Input['NrqlAlertConditionNrqlArgs']):
152
160
  pulumi.set(self, "nrql", value)
153
161
 
154
- @property
162
+ @_builtins.property
155
163
  @pulumi.getter(name="policyId")
156
- def policy_id(self) -> pulumi.Input[str]:
164
+ def policy_id(self) -> pulumi.Input[_builtins.str]:
157
165
  """
158
166
  The ID of the policy where this condition should be used.
159
167
  """
160
168
  return pulumi.get(self, "policy_id")
161
169
 
162
170
  @policy_id.setter
163
- def policy_id(self, value: pulumi.Input[str]):
171
+ def policy_id(self, value: pulumi.Input[_builtins.str]):
164
172
  pulumi.set(self, "policy_id", value)
165
173
 
166
- @property
174
+ @_builtins.property
167
175
  @pulumi.getter(name="accountId")
168
- def account_id(self) -> Optional[pulumi.Input[str]]:
176
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
169
177
  """
170
178
  The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
171
179
  """
172
180
  return pulumi.get(self, "account_id")
173
181
 
174
182
  @account_id.setter
175
- def account_id(self, value: Optional[pulumi.Input[str]]):
183
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
176
184
  pulumi.set(self, "account_id", value)
177
185
 
178
- @property
186
+ @_builtins.property
179
187
  @pulumi.getter(name="aggregationDelay")
180
- def aggregation_delay(self) -> Optional[pulumi.Input[str]]:
188
+ def aggregation_delay(self) -> Optional[pulumi.Input[_builtins.str]]:
181
189
  """
182
190
  How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
183
191
  """
184
192
  return pulumi.get(self, "aggregation_delay")
185
193
 
186
194
  @aggregation_delay.setter
187
- def aggregation_delay(self, value: Optional[pulumi.Input[str]]):
195
+ def aggregation_delay(self, value: Optional[pulumi.Input[_builtins.str]]):
188
196
  pulumi.set(self, "aggregation_delay", value)
189
197
 
190
- @property
198
+ @_builtins.property
191
199
  @pulumi.getter(name="aggregationMethod")
192
- def aggregation_method(self) -> Optional[pulumi.Input[str]]:
200
+ def aggregation_method(self) -> Optional[pulumi.Input[_builtins.str]]:
193
201
  """
194
202
  Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
195
203
  """
196
204
  return pulumi.get(self, "aggregation_method")
197
205
 
198
206
  @aggregation_method.setter
199
- def aggregation_method(self, value: Optional[pulumi.Input[str]]):
207
+ def aggregation_method(self, value: Optional[pulumi.Input[_builtins.str]]):
200
208
  pulumi.set(self, "aggregation_method", value)
201
209
 
202
- @property
210
+ @_builtins.property
203
211
  @pulumi.getter(name="aggregationTimer")
204
- def aggregation_timer(self) -> Optional[pulumi.Input[str]]:
212
+ def aggregation_timer(self) -> Optional[pulumi.Input[_builtins.str]]:
205
213
  """
206
214
  How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
207
215
  """
208
216
  return pulumi.get(self, "aggregation_timer")
209
217
 
210
218
  @aggregation_timer.setter
211
- def aggregation_timer(self, value: Optional[pulumi.Input[str]]):
219
+ def aggregation_timer(self, value: Optional[pulumi.Input[_builtins.str]]):
212
220
  pulumi.set(self, "aggregation_timer", value)
213
221
 
214
- @property
222
+ @_builtins.property
215
223
  @pulumi.getter(name="aggregationWindow")
216
- def aggregation_window(self) -> Optional[pulumi.Input[int]]:
224
+ def aggregation_window(self) -> Optional[pulumi.Input[_builtins.int]]:
217
225
  """
218
226
  The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
219
227
  """
220
228
  return pulumi.get(self, "aggregation_window")
221
229
 
222
230
  @aggregation_window.setter
223
- def aggregation_window(self, value: Optional[pulumi.Input[int]]):
231
+ def aggregation_window(self, value: Optional[pulumi.Input[_builtins.int]]):
224
232
  pulumi.set(self, "aggregation_window", value)
225
233
 
226
- @property
234
+ @_builtins.property
227
235
  @pulumi.getter(name="baselineDirection")
228
- def baseline_direction(self) -> Optional[pulumi.Input[str]]:
236
+ def baseline_direction(self) -> Optional[pulumi.Input[_builtins.str]]:
229
237
  """
230
238
  The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
231
239
  """
232
240
  return pulumi.get(self, "baseline_direction")
233
241
 
234
242
  @baseline_direction.setter
235
- def baseline_direction(self, value: Optional[pulumi.Input[str]]):
243
+ def baseline_direction(self, value: Optional[pulumi.Input[_builtins.str]]):
236
244
  pulumi.set(self, "baseline_direction", value)
237
245
 
238
- @property
246
+ @_builtins.property
239
247
  @pulumi.getter(name="closeViolationsOnExpiration")
240
- def close_violations_on_expiration(self) -> Optional[pulumi.Input[bool]]:
248
+ def close_violations_on_expiration(self) -> Optional[pulumi.Input[_builtins.bool]]:
241
249
  """
242
250
  Whether to close all open incidents when the signal expires.
243
251
  """
244
252
  return pulumi.get(self, "close_violations_on_expiration")
245
253
 
246
254
  @close_violations_on_expiration.setter
247
- def close_violations_on_expiration(self, value: Optional[pulumi.Input[bool]]):
255
+ def close_violations_on_expiration(self, value: Optional[pulumi.Input[_builtins.bool]]):
248
256
  pulumi.set(self, "close_violations_on_expiration", value)
249
257
 
250
- @property
258
+ @_builtins.property
251
259
  @pulumi.getter
252
260
  def critical(self) -> Optional[pulumi.Input['NrqlAlertConditionCriticalArgs']]:
253
261
  """
@@ -259,139 +267,163 @@ class NrqlAlertConditionArgs:
259
267
  def critical(self, value: Optional[pulumi.Input['NrqlAlertConditionCriticalArgs']]):
260
268
  pulumi.set(self, "critical", value)
261
269
 
262
- @property
270
+ @_builtins.property
263
271
  @pulumi.getter
264
- def description(self) -> Optional[pulumi.Input[str]]:
272
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
265
273
  """
266
274
  The description of the NRQL alert condition.
267
275
  """
268
276
  return pulumi.get(self, "description")
269
277
 
270
278
  @description.setter
271
- def description(self, value: Optional[pulumi.Input[str]]):
279
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
272
280
  pulumi.set(self, "description", value)
273
281
 
274
- @property
282
+ @_builtins.property
275
283
  @pulumi.getter
276
- def enabled(self) -> Optional[pulumi.Input[bool]]:
284
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
277
285
  """
278
286
  Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
279
287
  """
280
288
  return pulumi.get(self, "enabled")
281
289
 
282
290
  @enabled.setter
283
- def enabled(self, value: Optional[pulumi.Input[bool]]):
291
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
284
292
  pulumi.set(self, "enabled", value)
285
293
 
286
- @property
294
+ @_builtins.property
287
295
  @pulumi.getter(name="evaluationDelay")
288
- def evaluation_delay(self) -> Optional[pulumi.Input[int]]:
296
+ def evaluation_delay(self) -> Optional[pulumi.Input[_builtins.int]]:
289
297
  """
290
298
  How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
291
299
  """
292
300
  return pulumi.get(self, "evaluation_delay")
293
301
 
294
302
  @evaluation_delay.setter
295
- def evaluation_delay(self, value: Optional[pulumi.Input[int]]):
303
+ def evaluation_delay(self, value: Optional[pulumi.Input[_builtins.int]]):
296
304
  pulumi.set(self, "evaluation_delay", value)
297
305
 
298
- @property
306
+ @_builtins.property
299
307
  @pulumi.getter(name="expirationDuration")
300
- def expiration_duration(self) -> Optional[pulumi.Input[int]]:
308
+ def expiration_duration(self) -> Optional[pulumi.Input[_builtins.int]]:
301
309
  """
302
310
  The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
303
311
  """
304
312
  return pulumi.get(self, "expiration_duration")
305
313
 
306
314
  @expiration_duration.setter
307
- def expiration_duration(self, value: Optional[pulumi.Input[int]]):
315
+ def expiration_duration(self, value: Optional[pulumi.Input[_builtins.int]]):
308
316
  pulumi.set(self, "expiration_duration", value)
309
317
 
310
- @property
318
+ @_builtins.property
311
319
  @pulumi.getter(name="fillOption")
312
- def fill_option(self) -> Optional[pulumi.Input[str]]:
320
+ def fill_option(self) -> Optional[pulumi.Input[_builtins.str]]:
313
321
  """
314
322
  Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
315
323
  """
316
324
  return pulumi.get(self, "fill_option")
317
325
 
318
326
  @fill_option.setter
319
- def fill_option(self, value: Optional[pulumi.Input[str]]):
327
+ def fill_option(self, value: Optional[pulumi.Input[_builtins.str]]):
320
328
  pulumi.set(self, "fill_option", value)
321
329
 
322
- @property
330
+ @_builtins.property
323
331
  @pulumi.getter(name="fillValue")
324
- def fill_value(self) -> Optional[pulumi.Input[float]]:
332
+ def fill_value(self) -> Optional[pulumi.Input[_builtins.float]]:
325
333
  """
326
334
  This value will be used for filling gaps in the signal.
327
335
  """
328
336
  return pulumi.get(self, "fill_value")
329
337
 
330
338
  @fill_value.setter
331
- def fill_value(self, value: Optional[pulumi.Input[float]]):
339
+ def fill_value(self, value: Optional[pulumi.Input[_builtins.float]]):
332
340
  pulumi.set(self, "fill_value", value)
333
341
 
334
- @property
342
+ @_builtins.property
335
343
  @pulumi.getter(name="ignoreOnExpectedTermination")
336
- def ignore_on_expected_termination(self) -> Optional[pulumi.Input[bool]]:
344
+ def ignore_on_expected_termination(self) -> Optional[pulumi.Input[_builtins.bool]]:
337
345
  """
338
346
  Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
339
347
  """
340
348
  return pulumi.get(self, "ignore_on_expected_termination")
341
349
 
342
350
  @ignore_on_expected_termination.setter
343
- def ignore_on_expected_termination(self, value: Optional[pulumi.Input[bool]]):
351
+ def ignore_on_expected_termination(self, value: Optional[pulumi.Input[_builtins.bool]]):
344
352
  pulumi.set(self, "ignore_on_expected_termination", value)
345
353
 
346
- @property
354
+ @_builtins.property
347
355
  @pulumi.getter
348
- def name(self) -> Optional[pulumi.Input[str]]:
356
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
349
357
  """
350
358
  The title of the condition.
351
359
  """
352
360
  return pulumi.get(self, "name")
353
361
 
354
362
  @name.setter
355
- def name(self, value: Optional[pulumi.Input[str]]):
363
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
356
364
  pulumi.set(self, "name", value)
357
365
 
358
- @property
366
+ @_builtins.property
359
367
  @pulumi.getter(name="openViolationOnExpiration")
360
- def open_violation_on_expiration(self) -> Optional[pulumi.Input[bool]]:
368
+ def open_violation_on_expiration(self) -> Optional[pulumi.Input[_builtins.bool]]:
361
369
  """
362
370
  Whether to create a new incident to capture that the signal expired.
363
371
  """
364
372
  return pulumi.get(self, "open_violation_on_expiration")
365
373
 
366
374
  @open_violation_on_expiration.setter
367
- def open_violation_on_expiration(self, value: Optional[pulumi.Input[bool]]):
375
+ def open_violation_on_expiration(self, value: Optional[pulumi.Input[_builtins.bool]]):
368
376
  pulumi.set(self, "open_violation_on_expiration", value)
369
377
 
370
- @property
378
+ @_builtins.property
371
379
  @pulumi.getter(name="runbookUrl")
372
- def runbook_url(self) -> Optional[pulumi.Input[str]]:
380
+ def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
373
381
  """
374
382
  Runbook URL to display in notifications.
375
383
  """
376
384
  return pulumi.get(self, "runbook_url")
377
385
 
378
386
  @runbook_url.setter
379
- def runbook_url(self, value: Optional[pulumi.Input[str]]):
387
+ def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
380
388
  pulumi.set(self, "runbook_url", value)
381
389
 
382
- @property
390
+ @_builtins.property
391
+ @pulumi.getter(name="signalSeasonality")
392
+ def signal_seasonality(self) -> Optional[pulumi.Input[_builtins.str]]:
393
+ """
394
+ Seasonality under which a condition's signal(s) are evaluated. Only available for baseline conditions. Valid values are: `NEW_RELIC_CALCULATION`, `HOURLY`, `DAILY`, `WEEKLY`, or `NONE`. To have New Relic calculate seasonality automatically, set to `NEW_RELIC_CALCULATION`. To turn off seasonality completely, set to `NONE`.
395
+ """
396
+ return pulumi.get(self, "signal_seasonality")
397
+
398
+ @signal_seasonality.setter
399
+ def signal_seasonality(self, value: Optional[pulumi.Input[_builtins.str]]):
400
+ pulumi.set(self, "signal_seasonality", value)
401
+
402
+ @_builtins.property
383
403
  @pulumi.getter(name="slideBy")
384
- def slide_by(self) -> Optional[pulumi.Input[int]]:
404
+ def slide_by(self) -> Optional[pulumi.Input[_builtins.int]]:
385
405
  """
386
406
  Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
387
407
  """
388
408
  return pulumi.get(self, "slide_by")
389
409
 
390
410
  @slide_by.setter
391
- def slide_by(self, value: Optional[pulumi.Input[int]]):
411
+ def slide_by(self, value: Optional[pulumi.Input[_builtins.int]]):
392
412
  pulumi.set(self, "slide_by", value)
393
413
 
394
- @property
414
+ @_builtins.property
415
+ @pulumi.getter(name="targetEntity")
416
+ def target_entity(self) -> Optional[pulumi.Input[_builtins.str]]:
417
+ """
418
+ BETA PREVIEW: The GUID of the entity explicitly targeted by the condition. Issues triggered by this condition will affect the health status of this entity instead of having the affected entity detected automatically. The entity's account ID must be either `account_id` or `nrql.data_account_id`.
419
+ """
420
+ return pulumi.get(self, "target_entity")
421
+
422
+ @target_entity.setter
423
+ def target_entity(self, value: Optional[pulumi.Input[_builtins.str]]):
424
+ pulumi.set(self, "target_entity", value)
425
+
426
+ @_builtins.property
395
427
  @pulumi.getter
396
428
  @_utilities.deprecated("""use `critical` and `warning` attributes instead""")
397
429
  def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]:
@@ -404,34 +436,34 @@ class NrqlAlertConditionArgs:
404
436
  def terms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]):
405
437
  pulumi.set(self, "terms", value)
406
438
 
407
- @property
439
+ @_builtins.property
408
440
  @pulumi.getter(name="titleTemplate")
409
- def title_template(self) -> Optional[pulumi.Input[str]]:
441
+ def title_template(self) -> Optional[pulumi.Input[_builtins.str]]:
410
442
  """
411
443
  The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
412
444
  """
413
445
  return pulumi.get(self, "title_template")
414
446
 
415
447
  @title_template.setter
416
- def title_template(self, value: Optional[pulumi.Input[str]]):
448
+ def title_template(self, value: Optional[pulumi.Input[_builtins.str]]):
417
449
  pulumi.set(self, "title_template", value)
418
450
 
419
- @property
451
+ @_builtins.property
420
452
  @pulumi.getter
421
- def type(self) -> Optional[pulumi.Input[str]]:
453
+ def type(self) -> Optional[pulumi.Input[_builtins.str]]:
422
454
  """
423
455
  The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
424
456
  """
425
457
  return pulumi.get(self, "type")
426
458
 
427
459
  @type.setter
428
- def type(self, value: Optional[pulumi.Input[str]]):
460
+ def type(self, value: Optional[pulumi.Input[_builtins.str]]):
429
461
  pulumi.set(self, "type", value)
430
462
 
431
- @property
463
+ @_builtins.property
432
464
  @pulumi.getter(name="violationTimeLimit")
433
465
  @_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
434
- def violation_time_limit(self) -> Optional[pulumi.Input[str]]:
466
+ def violation_time_limit(self) -> Optional[pulumi.Input[_builtins.str]]:
435
467
  """
436
468
  **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>
437
469
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
@@ -439,12 +471,12 @@ class NrqlAlertConditionArgs:
439
471
  return pulumi.get(self, "violation_time_limit")
440
472
 
441
473
  @violation_time_limit.setter
442
- def violation_time_limit(self, value: Optional[pulumi.Input[str]]):
474
+ def violation_time_limit(self, value: Optional[pulumi.Input[_builtins.str]]):
443
475
  pulumi.set(self, "violation_time_limit", value)
444
476
 
445
- @property
477
+ @_builtins.property
446
478
  @pulumi.getter(name="violationTimeLimitSeconds")
447
- def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
479
+ def violation_time_limit_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
448
480
  """
449
481
  Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
450
482
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
@@ -452,10 +484,10 @@ class NrqlAlertConditionArgs:
452
484
  return pulumi.get(self, "violation_time_limit_seconds")
453
485
 
454
486
  @violation_time_limit_seconds.setter
455
- def violation_time_limit_seconds(self, value: Optional[pulumi.Input[int]]):
487
+ def violation_time_limit_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
456
488
  pulumi.set(self, "violation_time_limit_seconds", value)
457
489
 
458
- @property
490
+ @_builtins.property
459
491
  @pulumi.getter
460
492
  def warning(self) -> Optional[pulumi.Input['NrqlAlertConditionWarningArgs']]:
461
493
  """
@@ -471,64 +503,68 @@ class NrqlAlertConditionArgs:
471
503
  @pulumi.input_type
472
504
  class _NrqlAlertConditionState:
473
505
  def __init__(__self__, *,
474
- account_id: Optional[pulumi.Input[str]] = None,
475
- aggregation_delay: Optional[pulumi.Input[str]] = None,
476
- aggregation_method: Optional[pulumi.Input[str]] = None,
477
- aggregation_timer: Optional[pulumi.Input[str]] = None,
478
- aggregation_window: Optional[pulumi.Input[int]] = None,
479
- baseline_direction: Optional[pulumi.Input[str]] = None,
480
- close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
506
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
507
+ aggregation_delay: Optional[pulumi.Input[_builtins.str]] = None,
508
+ aggregation_method: Optional[pulumi.Input[_builtins.str]] = None,
509
+ aggregation_timer: Optional[pulumi.Input[_builtins.str]] = None,
510
+ aggregation_window: Optional[pulumi.Input[_builtins.int]] = None,
511
+ baseline_direction: Optional[pulumi.Input[_builtins.str]] = None,
512
+ close_violations_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
481
513
  critical: Optional[pulumi.Input['NrqlAlertConditionCriticalArgs']] = None,
482
- description: Optional[pulumi.Input[str]] = None,
483
- enabled: Optional[pulumi.Input[bool]] = None,
484
- entity_guid: Optional[pulumi.Input[str]] = None,
485
- evaluation_delay: Optional[pulumi.Input[int]] = None,
486
- expiration_duration: Optional[pulumi.Input[int]] = None,
487
- fill_option: Optional[pulumi.Input[str]] = None,
488
- fill_value: Optional[pulumi.Input[float]] = None,
489
- ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
490
- name: Optional[pulumi.Input[str]] = None,
514
+ description: Optional[pulumi.Input[_builtins.str]] = None,
515
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
516
+ entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
517
+ evaluation_delay: Optional[pulumi.Input[_builtins.int]] = None,
518
+ expiration_duration: Optional[pulumi.Input[_builtins.int]] = None,
519
+ fill_option: Optional[pulumi.Input[_builtins.str]] = None,
520
+ fill_value: Optional[pulumi.Input[_builtins.float]] = None,
521
+ ignore_on_expected_termination: Optional[pulumi.Input[_builtins.bool]] = None,
522
+ name: Optional[pulumi.Input[_builtins.str]] = None,
491
523
  nrql: Optional[pulumi.Input['NrqlAlertConditionNrqlArgs']] = None,
492
- open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
493
- policy_id: Optional[pulumi.Input[str]] = None,
494
- runbook_url: Optional[pulumi.Input[str]] = None,
495
- slide_by: Optional[pulumi.Input[int]] = None,
524
+ open_violation_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
525
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
526
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
527
+ signal_seasonality: Optional[pulumi.Input[_builtins.str]] = None,
528
+ slide_by: Optional[pulumi.Input[_builtins.int]] = None,
529
+ target_entity: Optional[pulumi.Input[_builtins.str]] = None,
496
530
  terms: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]] = None,
497
- title_template: Optional[pulumi.Input[str]] = None,
498
- type: Optional[pulumi.Input[str]] = None,
499
- violation_time_limit: Optional[pulumi.Input[str]] = None,
500
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
531
+ title_template: Optional[pulumi.Input[_builtins.str]] = None,
532
+ type: Optional[pulumi.Input[_builtins.str]] = None,
533
+ violation_time_limit: Optional[pulumi.Input[_builtins.str]] = None,
534
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
501
535
  warning: Optional[pulumi.Input['NrqlAlertConditionWarningArgs']] = None):
502
536
  """
503
537
  Input properties used for looking up and filtering NrqlAlertCondition resources.
504
- :param pulumi.Input[str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
505
- :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
506
- :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
507
- :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
508
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
509
- :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
510
- :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
538
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
539
+ :param pulumi.Input[_builtins.str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
540
+ :param pulumi.Input[_builtins.str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
541
+ :param pulumi.Input[_builtins.str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
542
+ :param pulumi.Input[_builtins.int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
543
+ :param pulumi.Input[_builtins.str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
544
+ :param pulumi.Input[_builtins.bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
511
545
  :param pulumi.Input['NrqlAlertConditionCriticalArgs'] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
512
- :param pulumi.Input[str] description: The description of the NRQL alert condition.
513
- :param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
514
- :param pulumi.Input[str] entity_guid: The unique entity identifier of the NRQL Condition in New Relic.
515
- :param pulumi.Input[int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
516
- :param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
517
- :param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
518
- :param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
519
- :param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
520
- :param pulumi.Input[str] name: The title of the condition.
546
+ :param pulumi.Input[_builtins.str] description: The description of the NRQL alert condition.
547
+ :param pulumi.Input[_builtins.bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
548
+ :param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the NRQL Condition in New Relic.
549
+ :param pulumi.Input[_builtins.int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
550
+ :param pulumi.Input[_builtins.int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
551
+ :param pulumi.Input[_builtins.str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
552
+ :param pulumi.Input[_builtins.float] fill_value: This value will be used for filling gaps in the signal.
553
+ :param pulumi.Input[_builtins.bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
554
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
521
555
  :param pulumi.Input['NrqlAlertConditionNrqlArgs'] nrql: A NRQL query. See NRQL below for details.
522
- :param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
523
- :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
524
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
525
- :param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
556
+ :param pulumi.Input[_builtins.bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
557
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
558
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
559
+ :param pulumi.Input[_builtins.str] signal_seasonality: Seasonality under which a condition's signal(s) are evaluated. Only available for baseline conditions. Valid values are: `NEW_RELIC_CALCULATION`, `HOURLY`, `DAILY`, `WEEKLY`, or `NONE`. To have New Relic calculate seasonality automatically, set to `NEW_RELIC_CALCULATION`. To turn off seasonality completely, set to `NONE`.
560
+ :param pulumi.Input[_builtins.int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
561
+ :param pulumi.Input[_builtins.str] target_entity: BETA PREVIEW: The GUID of the entity explicitly targeted by the condition. Issues triggered by this condition will affect the health status of this entity instead of having the affected entity detected automatically. The entity's account ID must be either `account_id` or `nrql.data_account_id`.
526
562
  :param pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
527
- :param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
528
- :param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
529
- :param pulumi.Input[str] violation_time_limit: **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>
563
+ :param pulumi.Input[_builtins.str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
564
+ :param pulumi.Input[_builtins.str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
565
+ :param pulumi.Input[_builtins.str] violation_time_limit: **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>
530
566
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
531
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
567
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
532
568
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
533
569
  :param pulumi.Input['NrqlAlertConditionWarningArgs'] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
534
570
  """
@@ -574,8 +610,12 @@ class _NrqlAlertConditionState:
574
610
  pulumi.set(__self__, "policy_id", policy_id)
575
611
  if runbook_url is not None:
576
612
  pulumi.set(__self__, "runbook_url", runbook_url)
613
+ if signal_seasonality is not None:
614
+ pulumi.set(__self__, "signal_seasonality", signal_seasonality)
577
615
  if slide_by is not None:
578
616
  pulumi.set(__self__, "slide_by", slide_by)
617
+ if target_entity is not None:
618
+ pulumi.set(__self__, "target_entity", target_entity)
579
619
  if terms is not None:
580
620
  warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
581
621
  pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
@@ -595,91 +635,91 @@ class _NrqlAlertConditionState:
595
635
  if warning is not None:
596
636
  pulumi.set(__self__, "warning", warning)
597
637
 
598
- @property
638
+ @_builtins.property
599
639
  @pulumi.getter(name="accountId")
600
- def account_id(self) -> Optional[pulumi.Input[str]]:
640
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
601
641
  """
602
642
  The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
603
643
  """
604
644
  return pulumi.get(self, "account_id")
605
645
 
606
646
  @account_id.setter
607
- def account_id(self, value: Optional[pulumi.Input[str]]):
647
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
608
648
  pulumi.set(self, "account_id", value)
609
649
 
610
- @property
650
+ @_builtins.property
611
651
  @pulumi.getter(name="aggregationDelay")
612
- def aggregation_delay(self) -> Optional[pulumi.Input[str]]:
652
+ def aggregation_delay(self) -> Optional[pulumi.Input[_builtins.str]]:
613
653
  """
614
654
  How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
615
655
  """
616
656
  return pulumi.get(self, "aggregation_delay")
617
657
 
618
658
  @aggregation_delay.setter
619
- def aggregation_delay(self, value: Optional[pulumi.Input[str]]):
659
+ def aggregation_delay(self, value: Optional[pulumi.Input[_builtins.str]]):
620
660
  pulumi.set(self, "aggregation_delay", value)
621
661
 
622
- @property
662
+ @_builtins.property
623
663
  @pulumi.getter(name="aggregationMethod")
624
- def aggregation_method(self) -> Optional[pulumi.Input[str]]:
664
+ def aggregation_method(self) -> Optional[pulumi.Input[_builtins.str]]:
625
665
  """
626
666
  Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
627
667
  """
628
668
  return pulumi.get(self, "aggregation_method")
629
669
 
630
670
  @aggregation_method.setter
631
- def aggregation_method(self, value: Optional[pulumi.Input[str]]):
671
+ def aggregation_method(self, value: Optional[pulumi.Input[_builtins.str]]):
632
672
  pulumi.set(self, "aggregation_method", value)
633
673
 
634
- @property
674
+ @_builtins.property
635
675
  @pulumi.getter(name="aggregationTimer")
636
- def aggregation_timer(self) -> Optional[pulumi.Input[str]]:
676
+ def aggregation_timer(self) -> Optional[pulumi.Input[_builtins.str]]:
637
677
  """
638
678
  How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
639
679
  """
640
680
  return pulumi.get(self, "aggregation_timer")
641
681
 
642
682
  @aggregation_timer.setter
643
- def aggregation_timer(self, value: Optional[pulumi.Input[str]]):
683
+ def aggregation_timer(self, value: Optional[pulumi.Input[_builtins.str]]):
644
684
  pulumi.set(self, "aggregation_timer", value)
645
685
 
646
- @property
686
+ @_builtins.property
647
687
  @pulumi.getter(name="aggregationWindow")
648
- def aggregation_window(self) -> Optional[pulumi.Input[int]]:
688
+ def aggregation_window(self) -> Optional[pulumi.Input[_builtins.int]]:
649
689
  """
650
690
  The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
651
691
  """
652
692
  return pulumi.get(self, "aggregation_window")
653
693
 
654
694
  @aggregation_window.setter
655
- def aggregation_window(self, value: Optional[pulumi.Input[int]]):
695
+ def aggregation_window(self, value: Optional[pulumi.Input[_builtins.int]]):
656
696
  pulumi.set(self, "aggregation_window", value)
657
697
 
658
- @property
698
+ @_builtins.property
659
699
  @pulumi.getter(name="baselineDirection")
660
- def baseline_direction(self) -> Optional[pulumi.Input[str]]:
700
+ def baseline_direction(self) -> Optional[pulumi.Input[_builtins.str]]:
661
701
  """
662
702
  The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
663
703
  """
664
704
  return pulumi.get(self, "baseline_direction")
665
705
 
666
706
  @baseline_direction.setter
667
- def baseline_direction(self, value: Optional[pulumi.Input[str]]):
707
+ def baseline_direction(self, value: Optional[pulumi.Input[_builtins.str]]):
668
708
  pulumi.set(self, "baseline_direction", value)
669
709
 
670
- @property
710
+ @_builtins.property
671
711
  @pulumi.getter(name="closeViolationsOnExpiration")
672
- def close_violations_on_expiration(self) -> Optional[pulumi.Input[bool]]:
712
+ def close_violations_on_expiration(self) -> Optional[pulumi.Input[_builtins.bool]]:
673
713
  """
674
714
  Whether to close all open incidents when the signal expires.
675
715
  """
676
716
  return pulumi.get(self, "close_violations_on_expiration")
677
717
 
678
718
  @close_violations_on_expiration.setter
679
- def close_violations_on_expiration(self, value: Optional[pulumi.Input[bool]]):
719
+ def close_violations_on_expiration(self, value: Optional[pulumi.Input[_builtins.bool]]):
680
720
  pulumi.set(self, "close_violations_on_expiration", value)
681
721
 
682
- @property
722
+ @_builtins.property
683
723
  @pulumi.getter
684
724
  def critical(self) -> Optional[pulumi.Input['NrqlAlertConditionCriticalArgs']]:
685
725
  """
@@ -691,115 +731,115 @@ class _NrqlAlertConditionState:
691
731
  def critical(self, value: Optional[pulumi.Input['NrqlAlertConditionCriticalArgs']]):
692
732
  pulumi.set(self, "critical", value)
693
733
 
694
- @property
734
+ @_builtins.property
695
735
  @pulumi.getter
696
- def description(self) -> Optional[pulumi.Input[str]]:
736
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
697
737
  """
698
738
  The description of the NRQL alert condition.
699
739
  """
700
740
  return pulumi.get(self, "description")
701
741
 
702
742
  @description.setter
703
- def description(self, value: Optional[pulumi.Input[str]]):
743
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
704
744
  pulumi.set(self, "description", value)
705
745
 
706
- @property
746
+ @_builtins.property
707
747
  @pulumi.getter
708
- def enabled(self) -> Optional[pulumi.Input[bool]]:
748
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
709
749
  """
710
750
  Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
711
751
  """
712
752
  return pulumi.get(self, "enabled")
713
753
 
714
754
  @enabled.setter
715
- def enabled(self, value: Optional[pulumi.Input[bool]]):
755
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
716
756
  pulumi.set(self, "enabled", value)
717
757
 
718
- @property
758
+ @_builtins.property
719
759
  @pulumi.getter(name="entityGuid")
720
- def entity_guid(self) -> Optional[pulumi.Input[str]]:
760
+ def entity_guid(self) -> Optional[pulumi.Input[_builtins.str]]:
721
761
  """
722
762
  The unique entity identifier of the NRQL Condition in New Relic.
723
763
  """
724
764
  return pulumi.get(self, "entity_guid")
725
765
 
726
766
  @entity_guid.setter
727
- def entity_guid(self, value: Optional[pulumi.Input[str]]):
767
+ def entity_guid(self, value: Optional[pulumi.Input[_builtins.str]]):
728
768
  pulumi.set(self, "entity_guid", value)
729
769
 
730
- @property
770
+ @_builtins.property
731
771
  @pulumi.getter(name="evaluationDelay")
732
- def evaluation_delay(self) -> Optional[pulumi.Input[int]]:
772
+ def evaluation_delay(self) -> Optional[pulumi.Input[_builtins.int]]:
733
773
  """
734
774
  How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
735
775
  """
736
776
  return pulumi.get(self, "evaluation_delay")
737
777
 
738
778
  @evaluation_delay.setter
739
- def evaluation_delay(self, value: Optional[pulumi.Input[int]]):
779
+ def evaluation_delay(self, value: Optional[pulumi.Input[_builtins.int]]):
740
780
  pulumi.set(self, "evaluation_delay", value)
741
781
 
742
- @property
782
+ @_builtins.property
743
783
  @pulumi.getter(name="expirationDuration")
744
- def expiration_duration(self) -> Optional[pulumi.Input[int]]:
784
+ def expiration_duration(self) -> Optional[pulumi.Input[_builtins.int]]:
745
785
  """
746
786
  The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
747
787
  """
748
788
  return pulumi.get(self, "expiration_duration")
749
789
 
750
790
  @expiration_duration.setter
751
- def expiration_duration(self, value: Optional[pulumi.Input[int]]):
791
+ def expiration_duration(self, value: Optional[pulumi.Input[_builtins.int]]):
752
792
  pulumi.set(self, "expiration_duration", value)
753
793
 
754
- @property
794
+ @_builtins.property
755
795
  @pulumi.getter(name="fillOption")
756
- def fill_option(self) -> Optional[pulumi.Input[str]]:
796
+ def fill_option(self) -> Optional[pulumi.Input[_builtins.str]]:
757
797
  """
758
798
  Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
759
799
  """
760
800
  return pulumi.get(self, "fill_option")
761
801
 
762
802
  @fill_option.setter
763
- def fill_option(self, value: Optional[pulumi.Input[str]]):
803
+ def fill_option(self, value: Optional[pulumi.Input[_builtins.str]]):
764
804
  pulumi.set(self, "fill_option", value)
765
805
 
766
- @property
806
+ @_builtins.property
767
807
  @pulumi.getter(name="fillValue")
768
- def fill_value(self) -> Optional[pulumi.Input[float]]:
808
+ def fill_value(self) -> Optional[pulumi.Input[_builtins.float]]:
769
809
  """
770
810
  This value will be used for filling gaps in the signal.
771
811
  """
772
812
  return pulumi.get(self, "fill_value")
773
813
 
774
814
  @fill_value.setter
775
- def fill_value(self, value: Optional[pulumi.Input[float]]):
815
+ def fill_value(self, value: Optional[pulumi.Input[_builtins.float]]):
776
816
  pulumi.set(self, "fill_value", value)
777
817
 
778
- @property
818
+ @_builtins.property
779
819
  @pulumi.getter(name="ignoreOnExpectedTermination")
780
- def ignore_on_expected_termination(self) -> Optional[pulumi.Input[bool]]:
820
+ def ignore_on_expected_termination(self) -> Optional[pulumi.Input[_builtins.bool]]:
781
821
  """
782
822
  Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
783
823
  """
784
824
  return pulumi.get(self, "ignore_on_expected_termination")
785
825
 
786
826
  @ignore_on_expected_termination.setter
787
- def ignore_on_expected_termination(self, value: Optional[pulumi.Input[bool]]):
827
+ def ignore_on_expected_termination(self, value: Optional[pulumi.Input[_builtins.bool]]):
788
828
  pulumi.set(self, "ignore_on_expected_termination", value)
789
829
 
790
- @property
830
+ @_builtins.property
791
831
  @pulumi.getter
792
- def name(self) -> Optional[pulumi.Input[str]]:
832
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
793
833
  """
794
834
  The title of the condition.
795
835
  """
796
836
  return pulumi.get(self, "name")
797
837
 
798
838
  @name.setter
799
- def name(self, value: Optional[pulumi.Input[str]]):
839
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
800
840
  pulumi.set(self, "name", value)
801
841
 
802
- @property
842
+ @_builtins.property
803
843
  @pulumi.getter
804
844
  def nrql(self) -> Optional[pulumi.Input['NrqlAlertConditionNrqlArgs']]:
805
845
  """
@@ -811,55 +851,79 @@ class _NrqlAlertConditionState:
811
851
  def nrql(self, value: Optional[pulumi.Input['NrqlAlertConditionNrqlArgs']]):
812
852
  pulumi.set(self, "nrql", value)
813
853
 
814
- @property
854
+ @_builtins.property
815
855
  @pulumi.getter(name="openViolationOnExpiration")
816
- def open_violation_on_expiration(self) -> Optional[pulumi.Input[bool]]:
856
+ def open_violation_on_expiration(self) -> Optional[pulumi.Input[_builtins.bool]]:
817
857
  """
818
858
  Whether to create a new incident to capture that the signal expired.
819
859
  """
820
860
  return pulumi.get(self, "open_violation_on_expiration")
821
861
 
822
862
  @open_violation_on_expiration.setter
823
- def open_violation_on_expiration(self, value: Optional[pulumi.Input[bool]]):
863
+ def open_violation_on_expiration(self, value: Optional[pulumi.Input[_builtins.bool]]):
824
864
  pulumi.set(self, "open_violation_on_expiration", value)
825
865
 
826
- @property
866
+ @_builtins.property
827
867
  @pulumi.getter(name="policyId")
828
- def policy_id(self) -> Optional[pulumi.Input[str]]:
868
+ def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
829
869
  """
830
870
  The ID of the policy where this condition should be used.
831
871
  """
832
872
  return pulumi.get(self, "policy_id")
833
873
 
834
874
  @policy_id.setter
835
- def policy_id(self, value: Optional[pulumi.Input[str]]):
875
+ def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
836
876
  pulumi.set(self, "policy_id", value)
837
877
 
838
- @property
878
+ @_builtins.property
839
879
  @pulumi.getter(name="runbookUrl")
840
- def runbook_url(self) -> Optional[pulumi.Input[str]]:
880
+ def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
841
881
  """
842
882
  Runbook URL to display in notifications.
843
883
  """
844
884
  return pulumi.get(self, "runbook_url")
845
885
 
846
886
  @runbook_url.setter
847
- def runbook_url(self, value: Optional[pulumi.Input[str]]):
887
+ def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
848
888
  pulumi.set(self, "runbook_url", value)
849
889
 
850
- @property
890
+ @_builtins.property
891
+ @pulumi.getter(name="signalSeasonality")
892
+ def signal_seasonality(self) -> Optional[pulumi.Input[_builtins.str]]:
893
+ """
894
+ Seasonality under which a condition's signal(s) are evaluated. Only available for baseline conditions. Valid values are: `NEW_RELIC_CALCULATION`, `HOURLY`, `DAILY`, `WEEKLY`, or `NONE`. To have New Relic calculate seasonality automatically, set to `NEW_RELIC_CALCULATION`. To turn off seasonality completely, set to `NONE`.
895
+ """
896
+ return pulumi.get(self, "signal_seasonality")
897
+
898
+ @signal_seasonality.setter
899
+ def signal_seasonality(self, value: Optional[pulumi.Input[_builtins.str]]):
900
+ pulumi.set(self, "signal_seasonality", value)
901
+
902
+ @_builtins.property
851
903
  @pulumi.getter(name="slideBy")
852
- def slide_by(self) -> Optional[pulumi.Input[int]]:
904
+ def slide_by(self) -> Optional[pulumi.Input[_builtins.int]]:
853
905
  """
854
906
  Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
855
907
  """
856
908
  return pulumi.get(self, "slide_by")
857
909
 
858
910
  @slide_by.setter
859
- def slide_by(self, value: Optional[pulumi.Input[int]]):
911
+ def slide_by(self, value: Optional[pulumi.Input[_builtins.int]]):
860
912
  pulumi.set(self, "slide_by", value)
861
913
 
862
- @property
914
+ @_builtins.property
915
+ @pulumi.getter(name="targetEntity")
916
+ def target_entity(self) -> Optional[pulumi.Input[_builtins.str]]:
917
+ """
918
+ BETA PREVIEW: The GUID of the entity explicitly targeted by the condition. Issues triggered by this condition will affect the health status of this entity instead of having the affected entity detected automatically. The entity's account ID must be either `account_id` or `nrql.data_account_id`.
919
+ """
920
+ return pulumi.get(self, "target_entity")
921
+
922
+ @target_entity.setter
923
+ def target_entity(self, value: Optional[pulumi.Input[_builtins.str]]):
924
+ pulumi.set(self, "target_entity", value)
925
+
926
+ @_builtins.property
863
927
  @pulumi.getter
864
928
  @_utilities.deprecated("""use `critical` and `warning` attributes instead""")
865
929
  def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]:
@@ -872,34 +936,34 @@ class _NrqlAlertConditionState:
872
936
  def terms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]):
873
937
  pulumi.set(self, "terms", value)
874
938
 
875
- @property
939
+ @_builtins.property
876
940
  @pulumi.getter(name="titleTemplate")
877
- def title_template(self) -> Optional[pulumi.Input[str]]:
941
+ def title_template(self) -> Optional[pulumi.Input[_builtins.str]]:
878
942
  """
879
943
  The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
880
944
  """
881
945
  return pulumi.get(self, "title_template")
882
946
 
883
947
  @title_template.setter
884
- def title_template(self, value: Optional[pulumi.Input[str]]):
948
+ def title_template(self, value: Optional[pulumi.Input[_builtins.str]]):
885
949
  pulumi.set(self, "title_template", value)
886
950
 
887
- @property
951
+ @_builtins.property
888
952
  @pulumi.getter
889
- def type(self) -> Optional[pulumi.Input[str]]:
953
+ def type(self) -> Optional[pulumi.Input[_builtins.str]]:
890
954
  """
891
955
  The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
892
956
  """
893
957
  return pulumi.get(self, "type")
894
958
 
895
959
  @type.setter
896
- def type(self, value: Optional[pulumi.Input[str]]):
960
+ def type(self, value: Optional[pulumi.Input[_builtins.str]]):
897
961
  pulumi.set(self, "type", value)
898
962
 
899
- @property
963
+ @_builtins.property
900
964
  @pulumi.getter(name="violationTimeLimit")
901
965
  @_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
902
- def violation_time_limit(self) -> Optional[pulumi.Input[str]]:
966
+ def violation_time_limit(self) -> Optional[pulumi.Input[_builtins.str]]:
903
967
  """
904
968
  **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>
905
969
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
@@ -907,12 +971,12 @@ class _NrqlAlertConditionState:
907
971
  return pulumi.get(self, "violation_time_limit")
908
972
 
909
973
  @violation_time_limit.setter
910
- def violation_time_limit(self, value: Optional[pulumi.Input[str]]):
974
+ def violation_time_limit(self, value: Optional[pulumi.Input[_builtins.str]]):
911
975
  pulumi.set(self, "violation_time_limit", value)
912
976
 
913
- @property
977
+ @_builtins.property
914
978
  @pulumi.getter(name="violationTimeLimitSeconds")
915
- def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
979
+ def violation_time_limit_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
916
980
  """
917
981
  Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
918
982
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
@@ -920,10 +984,10 @@ class _NrqlAlertConditionState:
920
984
  return pulumi.get(self, "violation_time_limit_seconds")
921
985
 
922
986
  @violation_time_limit_seconds.setter
923
- def violation_time_limit_seconds(self, value: Optional[pulumi.Input[int]]):
987
+ def violation_time_limit_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
924
988
  pulumi.set(self, "violation_time_limit_seconds", value)
925
989
 
926
- @property
990
+ @_builtins.property
927
991
  @pulumi.getter
928
992
  def warning(self) -> Optional[pulumi.Input['NrqlAlertConditionWarningArgs']]:
929
993
  """
@@ -936,37 +1000,40 @@ class _NrqlAlertConditionState:
936
1000
  pulumi.set(self, "warning", value)
937
1001
 
938
1002
 
1003
+ @pulumi.type_token("newrelic:index/nrqlAlertCondition:NrqlAlertCondition")
939
1004
  class NrqlAlertCondition(pulumi.CustomResource):
940
1005
  @overload
941
1006
  def __init__(__self__,
942
1007
  resource_name: str,
943
1008
  opts: Optional[pulumi.ResourceOptions] = None,
944
- account_id: Optional[pulumi.Input[str]] = None,
945
- aggregation_delay: Optional[pulumi.Input[str]] = None,
946
- aggregation_method: Optional[pulumi.Input[str]] = None,
947
- aggregation_timer: Optional[pulumi.Input[str]] = None,
948
- aggregation_window: Optional[pulumi.Input[int]] = None,
949
- baseline_direction: Optional[pulumi.Input[str]] = None,
950
- close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
1009
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
1010
+ aggregation_delay: Optional[pulumi.Input[_builtins.str]] = None,
1011
+ aggregation_method: Optional[pulumi.Input[_builtins.str]] = None,
1012
+ aggregation_timer: Optional[pulumi.Input[_builtins.str]] = None,
1013
+ aggregation_window: Optional[pulumi.Input[_builtins.int]] = None,
1014
+ baseline_direction: Optional[pulumi.Input[_builtins.str]] = None,
1015
+ close_violations_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
951
1016
  critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
952
- description: Optional[pulumi.Input[str]] = None,
953
- enabled: Optional[pulumi.Input[bool]] = None,
954
- evaluation_delay: Optional[pulumi.Input[int]] = None,
955
- expiration_duration: Optional[pulumi.Input[int]] = None,
956
- fill_option: Optional[pulumi.Input[str]] = None,
957
- fill_value: Optional[pulumi.Input[float]] = None,
958
- ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
959
- name: Optional[pulumi.Input[str]] = None,
1017
+ description: Optional[pulumi.Input[_builtins.str]] = None,
1018
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
1019
+ evaluation_delay: Optional[pulumi.Input[_builtins.int]] = None,
1020
+ expiration_duration: Optional[pulumi.Input[_builtins.int]] = None,
1021
+ fill_option: Optional[pulumi.Input[_builtins.str]] = None,
1022
+ fill_value: Optional[pulumi.Input[_builtins.float]] = None,
1023
+ ignore_on_expected_termination: Optional[pulumi.Input[_builtins.bool]] = None,
1024
+ name: Optional[pulumi.Input[_builtins.str]] = None,
960
1025
  nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
961
- open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
962
- policy_id: Optional[pulumi.Input[str]] = None,
963
- runbook_url: Optional[pulumi.Input[str]] = None,
964
- slide_by: Optional[pulumi.Input[int]] = None,
1026
+ open_violation_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
1027
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
1028
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
1029
+ signal_seasonality: Optional[pulumi.Input[_builtins.str]] = None,
1030
+ slide_by: Optional[pulumi.Input[_builtins.int]] = None,
1031
+ target_entity: Optional[pulumi.Input[_builtins.str]] = None,
965
1032
  terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
966
- title_template: Optional[pulumi.Input[str]] = None,
967
- type: Optional[pulumi.Input[str]] = None,
968
- violation_time_limit: Optional[pulumi.Input[str]] = None,
969
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
1033
+ title_template: Optional[pulumi.Input[_builtins.str]] = None,
1034
+ type: Optional[pulumi.Input[_builtins.str]] = None,
1035
+ violation_time_limit: Optional[pulumi.Input[_builtins.str]] = None,
1036
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
970
1037
  warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None,
971
1038
  __props__=None):
972
1039
  """
@@ -988,6 +1055,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
988
1055
  name="foo",
989
1056
  description="Alert when transactions are taking too long",
990
1057
  title_template="Issue in environment: {{ tags.environment }}",
1058
+ target_entity="MXxBUE18QVBQTElDQVRJT058MQ",
991
1059
  runbook_url="https://www.example.com",
992
1060
  enabled=True,
993
1061
  violation_time_limit_seconds=3600,
@@ -1047,6 +1115,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1047
1115
  - `duration` - (Optional) **DEPRECATED:** Use `threshold_duration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create an incident. Must be within 1-120 (inclusive).
1048
1116
  - `time_function` - (Optional) **DEPRECATED:** Use `threshold_occurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
1049
1117
  - `prediction` - (Optional) **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_ NRQL alert conditions. See Prediction below for details.
1118
+ - `disable_health_status_reporting` - (Optional) `true` or `false`. Defaults to `false` when field not included in TF config. Violations will not change system health status for this term.
1050
1119
 
1051
1120
  > **NOTE:** When a `critical` or `warning` block is added to this resource, using either `duration` or `threshold_duration` (one of the two) is mandatory. Both of these should not be specified.
1052
1121
 
@@ -1244,33 +1313,35 @@ class NrqlAlertCondition(pulumi.CustomResource):
1244
1313
 
1245
1314
  :param str resource_name: The name of the resource.
1246
1315
  :param pulumi.ResourceOptions opts: Options for the resource.
1247
- :param pulumi.Input[str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
1248
- :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
1249
- :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
1250
- :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
1251
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1252
- :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1253
- :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1316
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
1317
+ :param pulumi.Input[_builtins.str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
1318
+ :param pulumi.Input[_builtins.str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
1319
+ :param pulumi.Input[_builtins.str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
1320
+ :param pulumi.Input[_builtins.int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1321
+ :param pulumi.Input[_builtins.str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1322
+ :param pulumi.Input[_builtins.bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1254
1323
  :param pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1255
- :param pulumi.Input[str] description: The description of the NRQL alert condition.
1256
- :param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
1257
- :param pulumi.Input[int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
1258
- :param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
1259
- :param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
1260
- :param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
1261
- :param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
1262
- :param pulumi.Input[str] name: The title of the condition.
1324
+ :param pulumi.Input[_builtins.str] description: The description of the NRQL alert condition.
1325
+ :param pulumi.Input[_builtins.bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
1326
+ :param pulumi.Input[_builtins.int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
1327
+ :param pulumi.Input[_builtins.int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
1328
+ :param pulumi.Input[_builtins.str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
1329
+ :param pulumi.Input[_builtins.float] fill_value: This value will be used for filling gaps in the signal.
1330
+ :param pulumi.Input[_builtins.bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
1331
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
1263
1332
  :param pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']] nrql: A NRQL query. See NRQL below for details.
1264
- :param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
1265
- :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
1266
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
1267
- :param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
1333
+ :param pulumi.Input[_builtins.bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
1334
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
1335
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
1336
+ :param pulumi.Input[_builtins.str] signal_seasonality: Seasonality under which a condition's signal(s) are evaluated. Only available for baseline conditions. Valid values are: `NEW_RELIC_CALCULATION`, `HOURLY`, `DAILY`, `WEEKLY`, or `NONE`. To have New Relic calculate seasonality automatically, set to `NEW_RELIC_CALCULATION`. To turn off seasonality completely, set to `NONE`.
1337
+ :param pulumi.Input[_builtins.int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
1338
+ :param pulumi.Input[_builtins.str] target_entity: BETA PREVIEW: The GUID of the entity explicitly targeted by the condition. Issues triggered by this condition will affect the health status of this entity instead of having the affected entity detected automatically. The entity's account ID must be either `account_id` or `nrql.data_account_id`.
1268
1339
  :param pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1269
- :param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
1270
- :param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
1271
- :param pulumi.Input[str] violation_time_limit: **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>
1340
+ :param pulumi.Input[_builtins.str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
1341
+ :param pulumi.Input[_builtins.str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
1342
+ :param pulumi.Input[_builtins.str] violation_time_limit: **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>
1272
1343
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1273
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
1344
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
1274
1345
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1275
1346
  :param pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1276
1347
  """
@@ -1299,6 +1370,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1299
1370
  name="foo",
1300
1371
  description="Alert when transactions are taking too long",
1301
1372
  title_template="Issue in environment: {{ tags.environment }}",
1373
+ target_entity="MXxBUE18QVBQTElDQVRJT058MQ",
1302
1374
  runbook_url="https://www.example.com",
1303
1375
  enabled=True,
1304
1376
  violation_time_limit_seconds=3600,
@@ -1358,6 +1430,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1358
1430
  - `duration` - (Optional) **DEPRECATED:** Use `threshold_duration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create an incident. Must be within 1-120 (inclusive).
1359
1431
  - `time_function` - (Optional) **DEPRECATED:** Use `threshold_occurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
1360
1432
  - `prediction` - (Optional) **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_ NRQL alert conditions. See Prediction below for details.
1433
+ - `disable_health_status_reporting` - (Optional) `true` or `false`. Defaults to `false` when field not included in TF config. Violations will not change system health status for this term.
1361
1434
 
1362
1435
  > **NOTE:** When a `critical` or `warning` block is added to this resource, using either `duration` or `threshold_duration` (one of the two) is mandatory. Both of these should not be specified.
1363
1436
 
@@ -1568,32 +1641,34 @@ class NrqlAlertCondition(pulumi.CustomResource):
1568
1641
  def _internal_init(__self__,
1569
1642
  resource_name: str,
1570
1643
  opts: Optional[pulumi.ResourceOptions] = None,
1571
- account_id: Optional[pulumi.Input[str]] = None,
1572
- aggregation_delay: Optional[pulumi.Input[str]] = None,
1573
- aggregation_method: Optional[pulumi.Input[str]] = None,
1574
- aggregation_timer: Optional[pulumi.Input[str]] = None,
1575
- aggregation_window: Optional[pulumi.Input[int]] = None,
1576
- baseline_direction: Optional[pulumi.Input[str]] = None,
1577
- close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
1644
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
1645
+ aggregation_delay: Optional[pulumi.Input[_builtins.str]] = None,
1646
+ aggregation_method: Optional[pulumi.Input[_builtins.str]] = None,
1647
+ aggregation_timer: Optional[pulumi.Input[_builtins.str]] = None,
1648
+ aggregation_window: Optional[pulumi.Input[_builtins.int]] = None,
1649
+ baseline_direction: Optional[pulumi.Input[_builtins.str]] = None,
1650
+ close_violations_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
1578
1651
  critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
1579
- description: Optional[pulumi.Input[str]] = None,
1580
- enabled: Optional[pulumi.Input[bool]] = None,
1581
- evaluation_delay: Optional[pulumi.Input[int]] = None,
1582
- expiration_duration: Optional[pulumi.Input[int]] = None,
1583
- fill_option: Optional[pulumi.Input[str]] = None,
1584
- fill_value: Optional[pulumi.Input[float]] = None,
1585
- ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
1586
- name: Optional[pulumi.Input[str]] = None,
1652
+ description: Optional[pulumi.Input[_builtins.str]] = None,
1653
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
1654
+ evaluation_delay: Optional[pulumi.Input[_builtins.int]] = None,
1655
+ expiration_duration: Optional[pulumi.Input[_builtins.int]] = None,
1656
+ fill_option: Optional[pulumi.Input[_builtins.str]] = None,
1657
+ fill_value: Optional[pulumi.Input[_builtins.float]] = None,
1658
+ ignore_on_expected_termination: Optional[pulumi.Input[_builtins.bool]] = None,
1659
+ name: Optional[pulumi.Input[_builtins.str]] = None,
1587
1660
  nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
1588
- open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
1589
- policy_id: Optional[pulumi.Input[str]] = None,
1590
- runbook_url: Optional[pulumi.Input[str]] = None,
1591
- slide_by: Optional[pulumi.Input[int]] = None,
1661
+ open_violation_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
1662
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
1663
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
1664
+ signal_seasonality: Optional[pulumi.Input[_builtins.str]] = None,
1665
+ slide_by: Optional[pulumi.Input[_builtins.int]] = None,
1666
+ target_entity: Optional[pulumi.Input[_builtins.str]] = None,
1592
1667
  terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
1593
- title_template: Optional[pulumi.Input[str]] = None,
1594
- type: Optional[pulumi.Input[str]] = None,
1595
- violation_time_limit: Optional[pulumi.Input[str]] = None,
1596
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
1668
+ title_template: Optional[pulumi.Input[_builtins.str]] = None,
1669
+ type: Optional[pulumi.Input[_builtins.str]] = None,
1670
+ violation_time_limit: Optional[pulumi.Input[_builtins.str]] = None,
1671
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
1597
1672
  warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None,
1598
1673
  __props__=None):
1599
1674
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -1628,7 +1703,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
1628
1703
  raise TypeError("Missing required property 'policy_id'")
1629
1704
  __props__.__dict__["policy_id"] = policy_id
1630
1705
  __props__.__dict__["runbook_url"] = runbook_url
1706
+ __props__.__dict__["signal_seasonality"] = signal_seasonality
1631
1707
  __props__.__dict__["slide_by"] = slide_by
1708
+ __props__.__dict__["target_entity"] = target_entity
1632
1709
  __props__.__dict__["terms"] = terms
1633
1710
  __props__.__dict__["title_template"] = title_template
1634
1711
  __props__.__dict__["type"] = type
@@ -1646,33 +1723,35 @@ class NrqlAlertCondition(pulumi.CustomResource):
1646
1723
  def get(resource_name: str,
1647
1724
  id: pulumi.Input[str],
1648
1725
  opts: Optional[pulumi.ResourceOptions] = None,
1649
- account_id: Optional[pulumi.Input[str]] = None,
1650
- aggregation_delay: Optional[pulumi.Input[str]] = None,
1651
- aggregation_method: Optional[pulumi.Input[str]] = None,
1652
- aggregation_timer: Optional[pulumi.Input[str]] = None,
1653
- aggregation_window: Optional[pulumi.Input[int]] = None,
1654
- baseline_direction: Optional[pulumi.Input[str]] = None,
1655
- close_violations_on_expiration: Optional[pulumi.Input[bool]] = None,
1726
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
1727
+ aggregation_delay: Optional[pulumi.Input[_builtins.str]] = None,
1728
+ aggregation_method: Optional[pulumi.Input[_builtins.str]] = None,
1729
+ aggregation_timer: Optional[pulumi.Input[_builtins.str]] = None,
1730
+ aggregation_window: Optional[pulumi.Input[_builtins.int]] = None,
1731
+ baseline_direction: Optional[pulumi.Input[_builtins.str]] = None,
1732
+ close_violations_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
1656
1733
  critical: Optional[pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']]] = None,
1657
- description: Optional[pulumi.Input[str]] = None,
1658
- enabled: Optional[pulumi.Input[bool]] = None,
1659
- entity_guid: Optional[pulumi.Input[str]] = None,
1660
- evaluation_delay: Optional[pulumi.Input[int]] = None,
1661
- expiration_duration: Optional[pulumi.Input[int]] = None,
1662
- fill_option: Optional[pulumi.Input[str]] = None,
1663
- fill_value: Optional[pulumi.Input[float]] = None,
1664
- ignore_on_expected_termination: Optional[pulumi.Input[bool]] = None,
1665
- name: Optional[pulumi.Input[str]] = None,
1734
+ description: Optional[pulumi.Input[_builtins.str]] = None,
1735
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
1736
+ entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
1737
+ evaluation_delay: Optional[pulumi.Input[_builtins.int]] = None,
1738
+ expiration_duration: Optional[pulumi.Input[_builtins.int]] = None,
1739
+ fill_option: Optional[pulumi.Input[_builtins.str]] = None,
1740
+ fill_value: Optional[pulumi.Input[_builtins.float]] = None,
1741
+ ignore_on_expected_termination: Optional[pulumi.Input[_builtins.bool]] = None,
1742
+ name: Optional[pulumi.Input[_builtins.str]] = None,
1666
1743
  nrql: Optional[pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']]] = None,
1667
- open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
1668
- policy_id: Optional[pulumi.Input[str]] = None,
1669
- runbook_url: Optional[pulumi.Input[str]] = None,
1670
- slide_by: Optional[pulumi.Input[int]] = None,
1744
+ open_violation_on_expiration: Optional[pulumi.Input[_builtins.bool]] = None,
1745
+ policy_id: Optional[pulumi.Input[_builtins.str]] = None,
1746
+ runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
1747
+ signal_seasonality: Optional[pulumi.Input[_builtins.str]] = None,
1748
+ slide_by: Optional[pulumi.Input[_builtins.int]] = None,
1749
+ target_entity: Optional[pulumi.Input[_builtins.str]] = None,
1671
1750
  terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]]] = None,
1672
- title_template: Optional[pulumi.Input[str]] = None,
1673
- type: Optional[pulumi.Input[str]] = None,
1674
- violation_time_limit: Optional[pulumi.Input[str]] = None,
1675
- violation_time_limit_seconds: Optional[pulumi.Input[int]] = None,
1751
+ title_template: Optional[pulumi.Input[_builtins.str]] = None,
1752
+ type: Optional[pulumi.Input[_builtins.str]] = None,
1753
+ violation_time_limit: Optional[pulumi.Input[_builtins.str]] = None,
1754
+ violation_time_limit_seconds: Optional[pulumi.Input[_builtins.int]] = None,
1676
1755
  warning: Optional[pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']]] = None) -> 'NrqlAlertCondition':
1677
1756
  """
1678
1757
  Get an existing NrqlAlertCondition resource's state with the given name, id, and optional extra
@@ -1681,34 +1760,36 @@ class NrqlAlertCondition(pulumi.CustomResource):
1681
1760
  :param str resource_name: The unique name of the resulting resource.
1682
1761
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
1683
1762
  :param pulumi.ResourceOptions opts: Options for the resource.
1684
- :param pulumi.Input[str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
1685
- :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
1686
- :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
1687
- :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
1688
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1689
- :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1690
- :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1763
+ :param pulumi.Input[_builtins.str] account_id: The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
1764
+ :param pulumi.Input[_builtins.str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
1765
+ :param pulumi.Input[_builtins.str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
1766
+ :param pulumi.Input[_builtins.str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
1767
+ :param pulumi.Input[_builtins.int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1768
+ :param pulumi.Input[_builtins.str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1769
+ :param pulumi.Input[_builtins.bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1691
1770
  :param pulumi.Input[Union['NrqlAlertConditionCriticalArgs', 'NrqlAlertConditionCriticalArgsDict']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1692
- :param pulumi.Input[str] description: The description of the NRQL alert condition.
1693
- :param pulumi.Input[bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
1694
- :param pulumi.Input[str] entity_guid: The unique entity identifier of the NRQL Condition in New Relic.
1695
- :param pulumi.Input[int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
1696
- :param pulumi.Input[int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
1697
- :param pulumi.Input[str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
1698
- :param pulumi.Input[float] fill_value: This value will be used for filling gaps in the signal.
1699
- :param pulumi.Input[bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
1700
- :param pulumi.Input[str] name: The title of the condition.
1771
+ :param pulumi.Input[_builtins.str] description: The description of the NRQL alert condition.
1772
+ :param pulumi.Input[_builtins.bool] enabled: Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
1773
+ :param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the NRQL Condition in New Relic.
1774
+ :param pulumi.Input[_builtins.int] evaluation_delay: How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
1775
+ :param pulumi.Input[_builtins.int] expiration_duration: The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
1776
+ :param pulumi.Input[_builtins.str] fill_option: Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
1777
+ :param pulumi.Input[_builtins.float] fill_value: This value will be used for filling gaps in the signal.
1778
+ :param pulumi.Input[_builtins.bool] ignore_on_expected_termination: Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
1779
+ :param pulumi.Input[_builtins.str] name: The title of the condition.
1701
1780
  :param pulumi.Input[Union['NrqlAlertConditionNrqlArgs', 'NrqlAlertConditionNrqlArgsDict']] nrql: A NRQL query. See NRQL below for details.
1702
- :param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
1703
- :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
1704
- :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
1705
- :param pulumi.Input[int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
1781
+ :param pulumi.Input[_builtins.bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
1782
+ :param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
1783
+ :param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
1784
+ :param pulumi.Input[_builtins.str] signal_seasonality: Seasonality under which a condition's signal(s) are evaluated. Only available for baseline conditions. Valid values are: `NEW_RELIC_CALCULATION`, `HOURLY`, `DAILY`, `WEEKLY`, or `NONE`. To have New Relic calculate seasonality automatically, set to `NEW_RELIC_CALCULATION`. To turn off seasonality completely, set to `NONE`.
1785
+ :param pulumi.Input[_builtins.int] slide_by: Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
1786
+ :param pulumi.Input[_builtins.str] target_entity: BETA PREVIEW: The GUID of the entity explicitly targeted by the condition. Issues triggered by this condition will affect the health status of this entity instead of having the affected entity detected automatically. The entity's account ID must be either `account_id` or `nrql.data_account_id`.
1706
1787
  :param pulumi.Input[Sequence[pulumi.Input[Union['NrqlAlertConditionTermArgs', 'NrqlAlertConditionTermArgsDict']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
1707
- :param pulumi.Input[str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
1708
- :param pulumi.Input[str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
1709
- :param pulumi.Input[str] violation_time_limit: **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>
1788
+ :param pulumi.Input[_builtins.str] title_template: The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
1789
+ :param pulumi.Input[_builtins.str] type: The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
1790
+ :param pulumi.Input[_builtins.str] violation_time_limit: **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>
1710
1791
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1711
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
1792
+ :param pulumi.Input[_builtins.int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
1712
1793
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1713
1794
  :param pulumi.Input[Union['NrqlAlertConditionWarningArgs', 'NrqlAlertConditionWarningArgsDict']] warning: A list containing the `warning` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
1714
1795
  """
@@ -1737,7 +1818,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
1737
1818
  __props__.__dict__["open_violation_on_expiration"] = open_violation_on_expiration
1738
1819
  __props__.__dict__["policy_id"] = policy_id
1739
1820
  __props__.__dict__["runbook_url"] = runbook_url
1821
+ __props__.__dict__["signal_seasonality"] = signal_seasonality
1740
1822
  __props__.__dict__["slide_by"] = slide_by
1823
+ __props__.__dict__["target_entity"] = target_entity
1741
1824
  __props__.__dict__["terms"] = terms
1742
1825
  __props__.__dict__["title_template"] = title_template
1743
1826
  __props__.__dict__["type"] = type
@@ -1746,63 +1829,63 @@ class NrqlAlertCondition(pulumi.CustomResource):
1746
1829
  __props__.__dict__["warning"] = warning
1747
1830
  return NrqlAlertCondition(resource_name, opts=opts, __props__=__props__)
1748
1831
 
1749
- @property
1832
+ @_builtins.property
1750
1833
  @pulumi.getter(name="accountId")
1751
- def account_id(self) -> pulumi.Output[str]:
1834
+ def account_id(self) -> pulumi.Output[_builtins.str]:
1752
1835
  """
1753
1836
  The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
1754
1837
  """
1755
1838
  return pulumi.get(self, "account_id")
1756
1839
 
1757
- @property
1840
+ @_builtins.property
1758
1841
  @pulumi.getter(name="aggregationDelay")
1759
- def aggregation_delay(self) -> pulumi.Output[Optional[str]]:
1842
+ def aggregation_delay(self) -> pulumi.Output[Optional[_builtins.str]]:
1760
1843
  """
1761
1844
  How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
1762
1845
  """
1763
1846
  return pulumi.get(self, "aggregation_delay")
1764
1847
 
1765
- @property
1848
+ @_builtins.property
1766
1849
  @pulumi.getter(name="aggregationMethod")
1767
- def aggregation_method(self) -> pulumi.Output[Optional[str]]:
1850
+ def aggregation_method(self) -> pulumi.Output[Optional[_builtins.str]]:
1768
1851
  """
1769
1852
  Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
1770
1853
  """
1771
1854
  return pulumi.get(self, "aggregation_method")
1772
1855
 
1773
- @property
1856
+ @_builtins.property
1774
1857
  @pulumi.getter(name="aggregationTimer")
1775
- def aggregation_timer(self) -> pulumi.Output[Optional[str]]:
1858
+ def aggregation_timer(self) -> pulumi.Output[Optional[_builtins.str]]:
1776
1859
  """
1777
1860
  How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
1778
1861
  """
1779
1862
  return pulumi.get(self, "aggregation_timer")
1780
1863
 
1781
- @property
1864
+ @_builtins.property
1782
1865
  @pulumi.getter(name="aggregationWindow")
1783
- def aggregation_window(self) -> pulumi.Output[int]:
1866
+ def aggregation_window(self) -> pulumi.Output[_builtins.int]:
1784
1867
  """
1785
1868
  The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1786
1869
  """
1787
1870
  return pulumi.get(self, "aggregation_window")
1788
1871
 
1789
- @property
1872
+ @_builtins.property
1790
1873
  @pulumi.getter(name="baselineDirection")
1791
- def baseline_direction(self) -> pulumi.Output[Optional[str]]:
1874
+ def baseline_direction(self) -> pulumi.Output[Optional[_builtins.str]]:
1792
1875
  """
1793
1876
  The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1794
1877
  """
1795
1878
  return pulumi.get(self, "baseline_direction")
1796
1879
 
1797
- @property
1880
+ @_builtins.property
1798
1881
  @pulumi.getter(name="closeViolationsOnExpiration")
1799
- def close_violations_on_expiration(self) -> pulumi.Output[Optional[bool]]:
1882
+ def close_violations_on_expiration(self) -> pulumi.Output[Optional[_builtins.bool]]:
1800
1883
  """
1801
1884
  Whether to close all open incidents when the signal expires.
1802
1885
  """
1803
1886
  return pulumi.get(self, "close_violations_on_expiration")
1804
1887
 
1805
- @property
1888
+ @_builtins.property
1806
1889
  @pulumi.getter
1807
1890
  def critical(self) -> pulumi.Output[Optional['outputs.NrqlAlertConditionCritical']]:
1808
1891
  """
@@ -1810,79 +1893,79 @@ class NrqlAlertCondition(pulumi.CustomResource):
1810
1893
  """
1811
1894
  return pulumi.get(self, "critical")
1812
1895
 
1813
- @property
1896
+ @_builtins.property
1814
1897
  @pulumi.getter
1815
- def description(self) -> pulumi.Output[Optional[str]]:
1898
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
1816
1899
  """
1817
1900
  The description of the NRQL alert condition.
1818
1901
  """
1819
1902
  return pulumi.get(self, "description")
1820
1903
 
1821
- @property
1904
+ @_builtins.property
1822
1905
  @pulumi.getter
1823
- def enabled(self) -> pulumi.Output[Optional[bool]]:
1906
+ def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
1824
1907
  """
1825
1908
  Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`.
1826
1909
  """
1827
1910
  return pulumi.get(self, "enabled")
1828
1911
 
1829
- @property
1912
+ @_builtins.property
1830
1913
  @pulumi.getter(name="entityGuid")
1831
- def entity_guid(self) -> pulumi.Output[str]:
1914
+ def entity_guid(self) -> pulumi.Output[_builtins.str]:
1832
1915
  """
1833
1916
  The unique entity identifier of the NRQL Condition in New Relic.
1834
1917
  """
1835
1918
  return pulumi.get(self, "entity_guid")
1836
1919
 
1837
- @property
1920
+ @_builtins.property
1838
1921
  @pulumi.getter(name="evaluationDelay")
1839
- def evaluation_delay(self) -> pulumi.Output[Optional[int]]:
1922
+ def evaluation_delay(self) -> pulumi.Output[Optional[_builtins.int]]:
1840
1923
  """
1841
1924
  How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes).
1842
1925
  """
1843
1926
  return pulumi.get(self, "evaluation_delay")
1844
1927
 
1845
- @property
1928
+ @_builtins.property
1846
1929
  @pulumi.getter(name="expirationDuration")
1847
- def expiration_duration(self) -> pulumi.Output[Optional[int]]:
1930
+ def expiration_duration(self) -> pulumi.Output[Optional[_builtins.int]]:
1848
1931
  """
1849
1932
  The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
1850
1933
  """
1851
1934
  return pulumi.get(self, "expiration_duration")
1852
1935
 
1853
- @property
1936
+ @_builtins.property
1854
1937
  @pulumi.getter(name="fillOption")
1855
- def fill_option(self) -> pulumi.Output[Optional[str]]:
1938
+ def fill_option(self) -> pulumi.Output[Optional[_builtins.str]]:
1856
1939
  """
1857
1940
  Which strategy to use when filling gaps in the signal. Possible values are `none`, `last_value` or `static`. If `static`, the `fill_value` field will be used for filling gaps in the signal.
1858
1941
  """
1859
1942
  return pulumi.get(self, "fill_option")
1860
1943
 
1861
- @property
1944
+ @_builtins.property
1862
1945
  @pulumi.getter(name="fillValue")
1863
- def fill_value(self) -> pulumi.Output[Optional[float]]:
1946
+ def fill_value(self) -> pulumi.Output[Optional[_builtins.float]]:
1864
1947
  """
1865
1948
  This value will be used for filling gaps in the signal.
1866
1949
  """
1867
1950
  return pulumi.get(self, "fill_value")
1868
1951
 
1869
- @property
1952
+ @_builtins.property
1870
1953
  @pulumi.getter(name="ignoreOnExpectedTermination")
1871
- def ignore_on_expected_termination(self) -> pulumi.Output[Optional[bool]]:
1954
+ def ignore_on_expected_termination(self) -> pulumi.Output[Optional[_builtins.bool]]:
1872
1955
  """
1873
1956
  Whether an alert condition should ignore expected termination of a signal when considering whether to create a loss of signal incident. Defaults to false.
1874
1957
  """
1875
1958
  return pulumi.get(self, "ignore_on_expected_termination")
1876
1959
 
1877
- @property
1960
+ @_builtins.property
1878
1961
  @pulumi.getter
1879
- def name(self) -> pulumi.Output[str]:
1962
+ def name(self) -> pulumi.Output[_builtins.str]:
1880
1963
  """
1881
1964
  The title of the condition.
1882
1965
  """
1883
1966
  return pulumi.get(self, "name")
1884
1967
 
1885
- @property
1968
+ @_builtins.property
1886
1969
  @pulumi.getter
1887
1970
  def nrql(self) -> pulumi.Output['outputs.NrqlAlertConditionNrql']:
1888
1971
  """
@@ -1890,39 +1973,55 @@ class NrqlAlertCondition(pulumi.CustomResource):
1890
1973
  """
1891
1974
  return pulumi.get(self, "nrql")
1892
1975
 
1893
- @property
1976
+ @_builtins.property
1894
1977
  @pulumi.getter(name="openViolationOnExpiration")
1895
- def open_violation_on_expiration(self) -> pulumi.Output[Optional[bool]]:
1978
+ def open_violation_on_expiration(self) -> pulumi.Output[Optional[_builtins.bool]]:
1896
1979
  """
1897
1980
  Whether to create a new incident to capture that the signal expired.
1898
1981
  """
1899
1982
  return pulumi.get(self, "open_violation_on_expiration")
1900
1983
 
1901
- @property
1984
+ @_builtins.property
1902
1985
  @pulumi.getter(name="policyId")
1903
- def policy_id(self) -> pulumi.Output[str]:
1986
+ def policy_id(self) -> pulumi.Output[_builtins.str]:
1904
1987
  """
1905
1988
  The ID of the policy where this condition should be used.
1906
1989
  """
1907
1990
  return pulumi.get(self, "policy_id")
1908
1991
 
1909
- @property
1992
+ @_builtins.property
1910
1993
  @pulumi.getter(name="runbookUrl")
1911
- def runbook_url(self) -> pulumi.Output[Optional[str]]:
1994
+ def runbook_url(self) -> pulumi.Output[Optional[_builtins.str]]:
1912
1995
  """
1913
1996
  Runbook URL to display in notifications.
1914
1997
  """
1915
1998
  return pulumi.get(self, "runbook_url")
1916
1999
 
1917
- @property
2000
+ @_builtins.property
2001
+ @pulumi.getter(name="signalSeasonality")
2002
+ def signal_seasonality(self) -> pulumi.Output[Optional[_builtins.str]]:
2003
+ """
2004
+ Seasonality under which a condition's signal(s) are evaluated. Only available for baseline conditions. Valid values are: `NEW_RELIC_CALCULATION`, `HOURLY`, `DAILY`, `WEEKLY`, or `NONE`. To have New Relic calculate seasonality automatically, set to `NEW_RELIC_CALCULATION`. To turn off seasonality completely, set to `NONE`.
2005
+ """
2006
+ return pulumi.get(self, "signal_seasonality")
2007
+
2008
+ @_builtins.property
1918
2009
  @pulumi.getter(name="slideBy")
1919
- def slide_by(self) -> pulumi.Output[Optional[int]]:
2010
+ def slide_by(self) -> pulumi.Output[Optional[_builtins.int]]:
1920
2011
  """
1921
2012
  Gathers data in overlapping time windows to smooth the chart line, making it easier to spot trends. The `slide_by` value is specified in seconds and must be smaller than and a factor of the `aggregation_window`.
1922
2013
  """
1923
2014
  return pulumi.get(self, "slide_by")
1924
2015
 
1925
- @property
2016
+ @_builtins.property
2017
+ @pulumi.getter(name="targetEntity")
2018
+ def target_entity(self) -> pulumi.Output[Optional[_builtins.str]]:
2019
+ """
2020
+ BETA PREVIEW: The GUID of the entity explicitly targeted by the condition. Issues triggered by this condition will affect the health status of this entity instead of having the affected entity detected automatically. The entity's account ID must be either `account_id` or `nrql.data_account_id`.
2021
+ """
2022
+ return pulumi.get(self, "target_entity")
2023
+
2024
+ @_builtins.property
1926
2025
  @pulumi.getter
1927
2026
  @_utilities.deprecated("""use `critical` and `warning` attributes instead""")
1928
2027
  def terms(self) -> pulumi.Output[Optional[Sequence['outputs.NrqlAlertConditionTerm']]]:
@@ -1931,42 +2030,42 @@ class NrqlAlertCondition(pulumi.CustomResource):
1931
2030
  """
1932
2031
  return pulumi.get(self, "terms")
1933
2032
 
1934
- @property
2033
+ @_builtins.property
1935
2034
  @pulumi.getter(name="titleTemplate")
1936
- def title_template(self) -> pulumi.Output[Optional[str]]:
2035
+ def title_template(self) -> pulumi.Output[Optional[_builtins.str]]:
1937
2036
  """
1938
2037
  The custom title to be used when incidents are opened by the condition. Setting this field will override the default title. Must be [Handlebars](https://handlebarsjs.com/) format.
1939
2038
  """
1940
2039
  return pulumi.get(self, "title_template")
1941
2040
 
1942
- @property
2041
+ @_builtins.property
1943
2042
  @pulumi.getter
1944
- def type(self) -> pulumi.Output[Optional[str]]:
2043
+ def type(self) -> pulumi.Output[Optional[_builtins.str]]:
1945
2044
  """
1946
2045
  The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
1947
2046
  """
1948
2047
  return pulumi.get(self, "type")
1949
2048
 
1950
- @property
2049
+ @_builtins.property
1951
2050
  @pulumi.getter(name="violationTimeLimit")
1952
2051
  @_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
1953
- def violation_time_limit(self) -> pulumi.Output[str]:
2052
+ def violation_time_limit(self) -> pulumi.Output[_builtins.str]:
1954
2053
  """
1955
2054
  **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>
1956
2055
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1957
2056
  """
1958
2057
  return pulumi.get(self, "violation_time_limit")
1959
2058
 
1960
- @property
2059
+ @_builtins.property
1961
2060
  @pulumi.getter(name="violationTimeLimitSeconds")
1962
- def violation_time_limit_seconds(self) -> pulumi.Output[Optional[int]]:
2061
+ def violation_time_limit_seconds(self) -> pulumi.Output[Optional[_builtins.int]]:
1963
2062
  """
1964
2063
  Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days) (inclusive). <br>
1965
2064
  <small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
1966
2065
  """
1967
2066
  return pulumi.get(self, "violation_time_limit_seconds")
1968
2067
 
1969
- @property
2068
+ @_builtins.property
1970
2069
  @pulumi.getter
1971
2070
  def warning(self) -> pulumi.Output[Optional['outputs.NrqlAlertConditionWarning']]:
1972
2071
  """