pulumi-newrelic 5.24.0a1715356536__py3-none-any.whl → 5.25.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/_inputs.py +499 -93
- pulumi_newrelic/account_management.py +14 -14
- pulumi_newrelic/alert_channel.py +38 -38
- pulumi_newrelic/alert_condition.py +153 -112
- pulumi_newrelic/alert_muting_rule.py +31 -31
- pulumi_newrelic/alert_policy.py +47 -41
- pulumi_newrelic/alert_policy_channel.py +42 -42
- pulumi_newrelic/api_access_key.py +28 -28
- pulumi_newrelic/browser_application.py +14 -14
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +28 -28
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +14 -14
- pulumi_newrelic/cloud/aws_integrations.py +28 -28
- pulumi_newrelic/cloud/aws_link_account.py +14 -14
- pulumi_newrelic/cloud/azure_integrations.py +28 -28
- pulumi_newrelic/cloud/azure_link_account.py +14 -14
- pulumi_newrelic/cloud/gcp_integrations.py +28 -28
- pulumi_newrelic/cloud/gcp_link_account.py +14 -14
- pulumi_newrelic/config/__init__.pyi +1 -1
- pulumi_newrelic/config/vars.py +2 -2
- pulumi_newrelic/data_partition_rule.py +14 -14
- pulumi_newrelic/entity_tags.py +7 -7
- pulumi_newrelic/events_to_metrics_rule.py +16 -16
- pulumi_newrelic/get_account.py +7 -7
- pulumi_newrelic/get_alert_channel.py +8 -8
- pulumi_newrelic/get_alert_policy.py +16 -7
- pulumi_newrelic/get_application.py +2 -2
- pulumi_newrelic/get_cloud_account.py +9 -9
- pulumi_newrelic/get_entity.py +15 -15
- pulumi_newrelic/get_notification_destination.py +7 -7
- pulumi_newrelic/get_obfuscation_expression.py +9 -9
- pulumi_newrelic/get_service_level_alert_helper.py +28 -10
- pulumi_newrelic/get_test_grok_pattern.py +7 -7
- pulumi_newrelic/infra_alert_condition.py +119 -140
- pulumi_newrelic/insights/event.py +13 -0
- pulumi_newrelic/log_parsing_rule.py +14 -14
- pulumi_newrelic/monitor_downtime.py +14 -14
- pulumi_newrelic/notification_channel.py +36 -36
- pulumi_newrelic/notification_destination.py +28 -24
- pulumi_newrelic/nrql_alert_condition.py +32 -32
- pulumi_newrelic/nrql_drop_rule.py +44 -44
- pulumi_newrelic/obfuscation_expression.py +16 -16
- pulumi_newrelic/obfuscation_rule.py +14 -14
- pulumi_newrelic/one_dashboard.py +58 -52
- pulumi_newrelic/one_dashboard_json.py +14 -14
- pulumi_newrelic/one_dashboard_raw.py +14 -14
- pulumi_newrelic/outputs.py +482 -77
- pulumi_newrelic/plugins/_inputs.py +8 -8
- pulumi_newrelic/plugins/outputs.py +8 -8
- pulumi_newrelic/plugins/workload.py +83 -83
- pulumi_newrelic/provider.py +14 -9
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +85 -6
- pulumi_newrelic/synthetics/alert_condition.py +56 -28
- pulumi_newrelic/synthetics/broken_links_monitor.py +32 -14
- pulumi_newrelic/synthetics/cert_check_monitor.py +32 -14
- pulumi_newrelic/synthetics/get_private_location.py +11 -11
- pulumi_newrelic/synthetics/get_secure_credential.py +13 -5
- pulumi_newrelic/synthetics/monitor.py +18 -14
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +77 -63
- pulumi_newrelic/synthetics/private_location.py +14 -14
- pulumi_newrelic/synthetics/script_monitor.py +18 -14
- pulumi_newrelic/synthetics/secure_credential.py +24 -31
- pulumi_newrelic/synthetics/step_monitor.py +32 -14
- pulumi_newrelic/workflow.py +14 -14
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.25.0.dist-info/RECORD +89 -0
- pulumi_newrelic-5.24.0a1715356536.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/top_level.txt +0 -0
@@ -18,7 +18,7 @@ class NotificationDestinationArgs:
|
|
18
18
|
def __init__(__self__, *,
|
19
19
|
properties: pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]],
|
20
20
|
type: pulumi.Input[str],
|
21
|
-
account_id: Optional[pulumi.Input[
|
21
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
22
22
|
active: Optional[pulumi.Input[bool]] = None,
|
23
23
|
auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
|
24
24
|
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
|
@@ -30,7 +30,7 @@ class NotificationDestinationArgs:
|
|
30
30
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
|
31
31
|
:param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
|
32
32
|
PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
|
33
|
-
:param pulumi.Input[
|
33
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
34
34
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
35
35
|
:param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
36
36
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
@@ -82,14 +82,14 @@ class NotificationDestinationArgs:
|
|
82
82
|
|
83
83
|
@property
|
84
84
|
@pulumi.getter(name="accountId")
|
85
|
-
def account_id(self) -> Optional[pulumi.Input[
|
85
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
86
86
|
"""
|
87
87
|
Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
88
88
|
"""
|
89
89
|
return pulumi.get(self, "account_id")
|
90
90
|
|
91
91
|
@account_id.setter
|
92
|
-
def account_id(self, value: Optional[pulumi.Input[
|
92
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
93
93
|
pulumi.set(self, "account_id", value)
|
94
94
|
|
95
95
|
@property
|
@@ -168,7 +168,7 @@ class NotificationDestinationArgs:
|
|
168
168
|
@pulumi.input_type
|
169
169
|
class _NotificationDestinationState:
|
170
170
|
def __init__(__self__, *,
|
171
|
-
account_id: Optional[pulumi.Input[
|
171
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
172
172
|
active: Optional[pulumi.Input[bool]] = None,
|
173
173
|
auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
|
174
174
|
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
|
@@ -182,7 +182,7 @@ class _NotificationDestinationState:
|
|
182
182
|
type: Optional[pulumi.Input[str]] = None):
|
183
183
|
"""
|
184
184
|
Input properties used for looking up and filtering NotificationDestination resources.
|
185
|
-
:param pulumi.Input[
|
185
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
186
186
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
187
187
|
:param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
188
188
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
@@ -223,14 +223,14 @@ class _NotificationDestinationState:
|
|
223
223
|
|
224
224
|
@property
|
225
225
|
@pulumi.getter(name="accountId")
|
226
|
-
def account_id(self) -> Optional[pulumi.Input[
|
226
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
227
227
|
"""
|
228
228
|
Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
229
229
|
"""
|
230
230
|
return pulumi.get(self, "account_id")
|
231
231
|
|
232
232
|
@account_id.setter
|
233
|
-
def account_id(self, value: Optional[pulumi.Input[
|
233
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
234
234
|
pulumi.set(self, "account_id", value)
|
235
235
|
|
236
236
|
@property
|
@@ -372,7 +372,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
372
372
|
def __init__(__self__,
|
373
373
|
resource_name: str,
|
374
374
|
opts: Optional[pulumi.ResourceOptions] = None,
|
375
|
-
account_id: Optional[pulumi.Input[
|
375
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
376
376
|
active: Optional[pulumi.Input[bool]] = None,
|
377
377
|
auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
|
378
378
|
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
|
@@ -385,6 +385,8 @@ class NotificationDestination(pulumi.CustomResource):
|
|
385
385
|
"""
|
386
386
|
## Import
|
387
387
|
|
388
|
+
~> **WARNING:** Slack-based destinations can only be imported and destroyed; this resource **does not** support creating and updating Slack-based destinations, owing to the reasons stated above, under the **Slack** section.
|
389
|
+
|
388
390
|
Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
|
389
391
|
|
390
392
|
This example is especially useful for slack destinations which *must* be imported.
|
@@ -402,16 +404,16 @@ class NotificationDestination(pulumi.CustomResource):
|
|
402
404
|
```
|
403
405
|
|
404
406
|
3. Run the following command after the import successfully done and copy the information to your resource:
|
407
|
+
|
408
|
+
`terraform state show newrelic_notification_destination.foo`
|
405
409
|
|
406
|
-
`
|
407
|
-
|
408
|
-
4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
|
410
|
+
4. Add `ignore_changes` attribute on `all` in your imported resource:
|
409
411
|
|
410
412
|
terraform
|
411
413
|
|
412
414
|
lifecycle {
|
413
415
|
|
414
|
-
ignore_changes =
|
416
|
+
ignore_changes = all
|
415
417
|
|
416
418
|
}
|
417
419
|
|
@@ -423,7 +425,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
423
425
|
|
424
426
|
lifecycle {
|
425
427
|
|
426
|
-
ignore_changes =
|
428
|
+
ignore_changes = all
|
427
429
|
|
428
430
|
}
|
429
431
|
|
@@ -451,7 +453,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
451
453
|
|
452
454
|
:param str resource_name: The name of the resource.
|
453
455
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
454
|
-
:param pulumi.Input[
|
456
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
455
457
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
456
458
|
:param pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
457
459
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
@@ -471,6 +473,8 @@ class NotificationDestination(pulumi.CustomResource):
|
|
471
473
|
"""
|
472
474
|
## Import
|
473
475
|
|
476
|
+
~> **WARNING:** Slack-based destinations can only be imported and destroyed; this resource **does not** support creating and updating Slack-based destinations, owing to the reasons stated above, under the **Slack** section.
|
477
|
+
|
474
478
|
Destination id can be found in the Destinations page -> three dots at the right of the chosen destination -> copy destination id to clipboard.
|
475
479
|
|
476
480
|
This example is especially useful for slack destinations which *must* be imported.
|
@@ -488,16 +492,16 @@ class NotificationDestination(pulumi.CustomResource):
|
|
488
492
|
```
|
489
493
|
|
490
494
|
3. Run the following command after the import successfully done and copy the information to your resource:
|
495
|
+
|
496
|
+
`terraform state show newrelic_notification_destination.foo`
|
491
497
|
|
492
|
-
`
|
493
|
-
|
494
|
-
4. Add `ignore_changes` attribute on `auth_token` in your imported resource:
|
498
|
+
4. Add `ignore_changes` attribute on `all` in your imported resource:
|
495
499
|
|
496
500
|
terraform
|
497
501
|
|
498
502
|
lifecycle {
|
499
503
|
|
500
|
-
ignore_changes =
|
504
|
+
ignore_changes = all
|
501
505
|
|
502
506
|
}
|
503
507
|
|
@@ -509,7 +513,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
509
513
|
|
510
514
|
lifecycle {
|
511
515
|
|
512
|
-
ignore_changes =
|
516
|
+
ignore_changes = all
|
513
517
|
|
514
518
|
}
|
515
519
|
|
@@ -550,7 +554,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
550
554
|
def _internal_init(__self__,
|
551
555
|
resource_name: str,
|
552
556
|
opts: Optional[pulumi.ResourceOptions] = None,
|
553
|
-
account_id: Optional[pulumi.Input[
|
557
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
554
558
|
active: Optional[pulumi.Input[bool]] = None,
|
555
559
|
auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
|
556
560
|
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
|
@@ -594,7 +598,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
594
598
|
def get(resource_name: str,
|
595
599
|
id: pulumi.Input[str],
|
596
600
|
opts: Optional[pulumi.ResourceOptions] = None,
|
597
|
-
account_id: Optional[pulumi.Input[
|
601
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
598
602
|
active: Optional[pulumi.Input[bool]] = None,
|
599
603
|
auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
|
600
604
|
auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
|
@@ -613,7 +617,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
613
617
|
:param str resource_name: The unique name of the resulting resource.
|
614
618
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
615
619
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
616
|
-
:param pulumi.Input[
|
620
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
617
621
|
:param pulumi.Input[bool] active: Indicates whether the destination is active.
|
618
622
|
:param pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
|
619
623
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
|
@@ -647,7 +651,7 @@ class NotificationDestination(pulumi.CustomResource):
|
|
647
651
|
|
648
652
|
@property
|
649
653
|
@pulumi.getter(name="accountId")
|
650
|
-
def account_id(self) -> pulumi.Output[
|
654
|
+
def account_id(self) -> pulumi.Output[str]:
|
651
655
|
"""
|
652
656
|
Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
|
653
657
|
"""
|
@@ -17,8 +17,8 @@ __all__ = ['NrqlAlertConditionArgs', 'NrqlAlertCondition']
|
|
17
17
|
class NrqlAlertConditionArgs:
|
18
18
|
def __init__(__self__, *,
|
19
19
|
nrql: pulumi.Input['NrqlAlertConditionNrqlArgs'],
|
20
|
-
policy_id: pulumi.Input[
|
21
|
-
account_id: Optional[pulumi.Input[
|
20
|
+
policy_id: pulumi.Input[str],
|
21
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
22
22
|
aggregation_delay: Optional[pulumi.Input[str]] = None,
|
23
23
|
aggregation_method: Optional[pulumi.Input[str]] = None,
|
24
24
|
aggregation_timer: Optional[pulumi.Input[str]] = None,
|
@@ -44,8 +44,8 @@ class NrqlAlertConditionArgs:
|
|
44
44
|
"""
|
45
45
|
The set of arguments for constructing a NrqlAlertCondition resource.
|
46
46
|
:param pulumi.Input['NrqlAlertConditionNrqlArgs'] nrql: A NRQL query. See NRQL below for details.
|
47
|
-
:param pulumi.Input[
|
48
|
-
:param pulumi.Input[
|
47
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
48
|
+
: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`.
|
49
49
|
: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`.
|
50
50
|
: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`.
|
51
51
|
: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`.
|
@@ -140,26 +140,26 @@ class NrqlAlertConditionArgs:
|
|
140
140
|
|
141
141
|
@property
|
142
142
|
@pulumi.getter(name="policyId")
|
143
|
-
def policy_id(self) -> pulumi.Input[
|
143
|
+
def policy_id(self) -> pulumi.Input[str]:
|
144
144
|
"""
|
145
145
|
The ID of the policy where this condition should be used.
|
146
146
|
"""
|
147
147
|
return pulumi.get(self, "policy_id")
|
148
148
|
|
149
149
|
@policy_id.setter
|
150
|
-
def policy_id(self, value: pulumi.Input[
|
150
|
+
def policy_id(self, value: pulumi.Input[str]):
|
151
151
|
pulumi.set(self, "policy_id", value)
|
152
152
|
|
153
153
|
@property
|
154
154
|
@pulumi.getter(name="accountId")
|
155
|
-
def account_id(self) -> Optional[pulumi.Input[
|
155
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
156
156
|
"""
|
157
157
|
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`.
|
158
158
|
"""
|
159
159
|
return pulumi.get(self, "account_id")
|
160
160
|
|
161
161
|
@account_id.setter
|
162
|
-
def account_id(self, value: Optional[pulumi.Input[
|
162
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
163
163
|
pulumi.set(self, "account_id", value)
|
164
164
|
|
165
165
|
@property
|
@@ -438,7 +438,7 @@ class NrqlAlertConditionArgs:
|
|
438
438
|
@pulumi.input_type
|
439
439
|
class _NrqlAlertConditionState:
|
440
440
|
def __init__(__self__, *,
|
441
|
-
account_id: Optional[pulumi.Input[
|
441
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
442
442
|
aggregation_delay: Optional[pulumi.Input[str]] = None,
|
443
443
|
aggregation_method: Optional[pulumi.Input[str]] = None,
|
444
444
|
aggregation_timer: Optional[pulumi.Input[str]] = None,
|
@@ -456,7 +456,7 @@ class _NrqlAlertConditionState:
|
|
456
456
|
name: Optional[pulumi.Input[str]] = None,
|
457
457
|
nrql: Optional[pulumi.Input['NrqlAlertConditionNrqlArgs']] = None,
|
458
458
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
459
|
-
policy_id: Optional[pulumi.Input[
|
459
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
460
460
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
461
461
|
slide_by: Optional[pulumi.Input[int]] = None,
|
462
462
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]] = None,
|
@@ -466,7 +466,7 @@ class _NrqlAlertConditionState:
|
|
466
466
|
warning: Optional[pulumi.Input['NrqlAlertConditionWarningArgs']] = None):
|
467
467
|
"""
|
468
468
|
Input properties used for looking up and filtering NrqlAlertCondition resources.
|
469
|
-
:param pulumi.Input[
|
469
|
+
: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`.
|
470
470
|
: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`.
|
471
471
|
: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`.
|
472
472
|
: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`.
|
@@ -484,7 +484,7 @@ class _NrqlAlertConditionState:
|
|
484
484
|
:param pulumi.Input[str] name: The title of the condition.
|
485
485
|
:param pulumi.Input['NrqlAlertConditionNrqlArgs'] nrql: A NRQL query. See NRQL below for details.
|
486
486
|
:param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
|
487
|
-
:param pulumi.Input[
|
487
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
488
488
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
489
489
|
: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`.
|
490
490
|
: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.
|
@@ -556,14 +556,14 @@ class _NrqlAlertConditionState:
|
|
556
556
|
|
557
557
|
@property
|
558
558
|
@pulumi.getter(name="accountId")
|
559
|
-
def account_id(self) -> Optional[pulumi.Input[
|
559
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
560
560
|
"""
|
561
561
|
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`.
|
562
562
|
"""
|
563
563
|
return pulumi.get(self, "account_id")
|
564
564
|
|
565
565
|
@account_id.setter
|
566
|
-
def account_id(self, value: Optional[pulumi.Input[
|
566
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
567
567
|
pulumi.set(self, "account_id", value)
|
568
568
|
|
569
569
|
@property
|
@@ -772,14 +772,14 @@ class _NrqlAlertConditionState:
|
|
772
772
|
|
773
773
|
@property
|
774
774
|
@pulumi.getter(name="policyId")
|
775
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
775
|
+
def policy_id(self) -> Optional[pulumi.Input[str]]:
|
776
776
|
"""
|
777
777
|
The ID of the policy where this condition should be used.
|
778
778
|
"""
|
779
779
|
return pulumi.get(self, "policy_id")
|
780
780
|
|
781
781
|
@policy_id.setter
|
782
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
782
|
+
def policy_id(self, value: Optional[pulumi.Input[str]]):
|
783
783
|
pulumi.set(self, "policy_id", value)
|
784
784
|
|
785
785
|
@property
|
@@ -880,7 +880,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
880
880
|
def __init__(__self__,
|
881
881
|
resource_name: str,
|
882
882
|
opts: Optional[pulumi.ResourceOptions] = None,
|
883
|
-
account_id: Optional[pulumi.Input[
|
883
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
884
884
|
aggregation_delay: Optional[pulumi.Input[str]] = None,
|
885
885
|
aggregation_method: Optional[pulumi.Input[str]] = None,
|
886
886
|
aggregation_timer: Optional[pulumi.Input[str]] = None,
|
@@ -897,7 +897,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
897
897
|
name: Optional[pulumi.Input[str]] = None,
|
898
898
|
nrql: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']]] = None,
|
899
899
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
900
|
-
policy_id: Optional[pulumi.Input[
|
900
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
901
901
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
902
902
|
slide_by: Optional[pulumi.Input[int]] = None,
|
903
903
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]]] = None,
|
@@ -919,7 +919,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
919
919
|
|
920
920
|
foo = newrelic.AlertPolicy("foo", name="foo")
|
921
921
|
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
922
|
-
account_id=12345678,
|
922
|
+
account_id="12345678",
|
923
923
|
policy_id=foo.id,
|
924
924
|
type="static",
|
925
925
|
name="foo",
|
@@ -1041,7 +1041,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1041
1041
|
|
1042
1042
|
foo = newrelic.AlertPolicy("foo", name="foo")
|
1043
1043
|
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1044
|
-
account_id=12345678,
|
1044
|
+
account_id="12345678",
|
1045
1045
|
policy_id=foo.id,
|
1046
1046
|
type="static",
|
1047
1047
|
name="foo",
|
@@ -1166,7 +1166,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1166
1166
|
|
1167
1167
|
:param str resource_name: The name of the resource.
|
1168
1168
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
1169
|
-
:param pulumi.Input[
|
1169
|
+
: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`.
|
1170
1170
|
: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`.
|
1171
1171
|
: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`.
|
1172
1172
|
: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`.
|
@@ -1183,7 +1183,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1183
1183
|
:param pulumi.Input[str] name: The title of the condition.
|
1184
1184
|
:param pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']] nrql: A NRQL query. See NRQL below for details.
|
1185
1185
|
:param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
|
1186
|
-
:param pulumi.Input[
|
1186
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
1187
1187
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
1188
1188
|
: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`.
|
1189
1189
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
@@ -1213,7 +1213,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1213
1213
|
|
1214
1214
|
foo = newrelic.AlertPolicy("foo", name="foo")
|
1215
1215
|
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1216
|
-
account_id=12345678,
|
1216
|
+
account_id="12345678",
|
1217
1217
|
policy_id=foo.id,
|
1218
1218
|
type="static",
|
1219
1219
|
name="foo",
|
@@ -1335,7 +1335,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1335
1335
|
|
1336
1336
|
foo = newrelic.AlertPolicy("foo", name="foo")
|
1337
1337
|
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1338
|
-
account_id=12345678,
|
1338
|
+
account_id="12345678",
|
1339
1339
|
policy_id=foo.id,
|
1340
1340
|
type="static",
|
1341
1341
|
name="foo",
|
@@ -1473,7 +1473,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1473
1473
|
def _internal_init(__self__,
|
1474
1474
|
resource_name: str,
|
1475
1475
|
opts: Optional[pulumi.ResourceOptions] = None,
|
1476
|
-
account_id: Optional[pulumi.Input[
|
1476
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
1477
1477
|
aggregation_delay: Optional[pulumi.Input[str]] = None,
|
1478
1478
|
aggregation_method: Optional[pulumi.Input[str]] = None,
|
1479
1479
|
aggregation_timer: Optional[pulumi.Input[str]] = None,
|
@@ -1490,7 +1490,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1490
1490
|
name: Optional[pulumi.Input[str]] = None,
|
1491
1491
|
nrql: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']]] = None,
|
1492
1492
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
1493
|
-
policy_id: Optional[pulumi.Input[
|
1493
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
1494
1494
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
1495
1495
|
slide_by: Optional[pulumi.Input[int]] = None,
|
1496
1496
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]]] = None,
|
@@ -1547,7 +1547,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1547
1547
|
def get(resource_name: str,
|
1548
1548
|
id: pulumi.Input[str],
|
1549
1549
|
opts: Optional[pulumi.ResourceOptions] = None,
|
1550
|
-
account_id: Optional[pulumi.Input[
|
1550
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
1551
1551
|
aggregation_delay: Optional[pulumi.Input[str]] = None,
|
1552
1552
|
aggregation_method: Optional[pulumi.Input[str]] = None,
|
1553
1553
|
aggregation_timer: Optional[pulumi.Input[str]] = None,
|
@@ -1565,7 +1565,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1565
1565
|
name: Optional[pulumi.Input[str]] = None,
|
1566
1566
|
nrql: Optional[pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']]] = None,
|
1567
1567
|
open_violation_on_expiration: Optional[pulumi.Input[bool]] = None,
|
1568
|
-
policy_id: Optional[pulumi.Input[
|
1568
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
1569
1569
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
1570
1570
|
slide_by: Optional[pulumi.Input[int]] = None,
|
1571
1571
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]]] = None,
|
@@ -1580,7 +1580,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1580
1580
|
:param str resource_name: The unique name of the resulting resource.
|
1581
1581
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
1582
1582
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
1583
|
-
:param pulumi.Input[
|
1583
|
+
: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`.
|
1584
1584
|
: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`.
|
1585
1585
|
: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`.
|
1586
1586
|
: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`.
|
@@ -1598,7 +1598,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1598
1598
|
:param pulumi.Input[str] name: The title of the condition.
|
1599
1599
|
:param pulumi.Input[pulumi.InputType['NrqlAlertConditionNrqlArgs']] nrql: A NRQL query. See NRQL below for details.
|
1600
1600
|
:param pulumi.Input[bool] open_violation_on_expiration: Whether to create a new incident to capture that the signal expired.
|
1601
|
-
:param pulumi.Input[
|
1601
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
1602
1602
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
1603
1603
|
: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`.
|
1604
1604
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NrqlAlertConditionTermArgs']]]] terms: **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
@@ -1643,7 +1643,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1643
1643
|
|
1644
1644
|
@property
|
1645
1645
|
@pulumi.getter(name="accountId")
|
1646
|
-
def account_id(self) -> pulumi.Output[
|
1646
|
+
def account_id(self) -> pulumi.Output[str]:
|
1647
1647
|
"""
|
1648
1648
|
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`.
|
1649
1649
|
"""
|
@@ -1787,7 +1787,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1787
1787
|
|
1788
1788
|
@property
|
1789
1789
|
@pulumi.getter(name="policyId")
|
1790
|
-
def policy_id(self) -> pulumi.Output[
|
1790
|
+
def policy_id(self) -> pulumi.Output[str]:
|
1791
1791
|
"""
|
1792
1792
|
The ID of the policy where this condition should be used.
|
1793
1793
|
"""
|