pulumi-newrelic 5.25.0__py3-none-any.whl → 5.25.0a1715378777__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 +43 -449
- pulumi_newrelic/account_management.py +14 -14
- pulumi_newrelic/alert_channel.py +28 -28
- pulumi_newrelic/alert_condition.py +84 -125
- pulumi_newrelic/alert_muting_rule.py +21 -21
- pulumi_newrelic/alert_policy.py +21 -27
- pulumi_newrelic/entity_tags.py +7 -7
- pulumi_newrelic/get_alert_policy.py +0 -9
- pulumi_newrelic/get_service_level_alert_helper.py +0 -18
- pulumi_newrelic/infra_alert_condition.py +126 -105
- pulumi_newrelic/insights/event.py +0 -13
- pulumi_newrelic/notification_destination.py +10 -14
- pulumi_newrelic/nrql_drop_rule.py +28 -28
- pulumi_newrelic/one_dashboard.py +42 -48
- pulumi_newrelic/outputs.py +43 -448
- pulumi_newrelic/plugins/_inputs.py +8 -8
- pulumi_newrelic/plugins/outputs.py +8 -8
- pulumi_newrelic/plugins/workload.py +28 -28
- pulumi_newrelic/pulumi-plugin.json +1 -2
- pulumi_newrelic/service_level.py +0 -79
- pulumi_newrelic/synthetics/alert_condition.py +14 -42
- pulumi_newrelic/synthetics/broken_links_monitor.py +0 -18
- pulumi_newrelic/synthetics/cert_check_monitor.py +0 -18
- pulumi_newrelic/synthetics/get_secure_credential.py +0 -8
- pulumi_newrelic/synthetics/monitor.py +0 -4
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -63
- pulumi_newrelic/synthetics/script_monitor.py +0 -4
- pulumi_newrelic/synthetics/secure_credential.py +21 -14
- pulumi_newrelic/synthetics/step_monitor.py +0 -18
- {pulumi_newrelic-5.25.0.dist-info → pulumi_newrelic-5.25.0a1715378777.dist-info}/METADATA +1 -1
- {pulumi_newrelic-5.25.0.dist-info → pulumi_newrelic-5.25.0a1715378777.dist-info}/RECORD +33 -33
- {pulumi_newrelic-5.25.0.dist-info → pulumi_newrelic-5.25.0a1715378777.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.25.0.dist-info → pulumi_newrelic-5.25.0a1715378777.dist-info}/top_level.txt +0 -0
pulumi_newrelic/alert_policy.py
CHANGED
@@ -20,9 +20,9 @@ class AlertPolicyArgs:
|
|
20
20
|
name: Optional[pulumi.Input[str]] = None):
|
21
21
|
"""
|
22
22
|
The set of arguments for constructing a AlertPolicy resource.
|
23
|
-
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
24
|
-
:param pulumi.Input[
|
25
|
-
|
23
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
24
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
25
|
+
is PER_POLICY.
|
26
26
|
:param pulumi.Input[str] name: The name of the policy.
|
27
27
|
"""
|
28
28
|
if account_id is not None:
|
@@ -41,7 +41,7 @@ class AlertPolicyArgs:
|
|
41
41
|
@pulumi.getter(name="accountId")
|
42
42
|
def account_id(self) -> Optional[pulumi.Input[str]]:
|
43
43
|
"""
|
44
|
-
The New Relic account ID to operate on.
|
44
|
+
The New Relic account ID to operate on.
|
45
45
|
"""
|
46
46
|
return pulumi.get(self, "account_id")
|
47
47
|
|
@@ -52,9 +52,6 @@ class AlertPolicyArgs:
|
|
52
52
|
@property
|
53
53
|
@pulumi.getter(name="channelIds")
|
54
54
|
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
55
|
-
"""
|
56
|
-
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
57
|
-
"""
|
58
55
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
59
56
|
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
60
57
|
|
@@ -68,7 +65,8 @@ class AlertPolicyArgs:
|
|
68
65
|
@pulumi.getter(name="incidentPreference")
|
69
66
|
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
70
67
|
"""
|
71
|
-
The rollup strategy for the policy.
|
68
|
+
The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
69
|
+
is PER_POLICY.
|
72
70
|
"""
|
73
71
|
return pulumi.get(self, "incident_preference")
|
74
72
|
|
@@ -98,9 +96,9 @@ class _AlertPolicyState:
|
|
98
96
|
name: Optional[pulumi.Input[str]] = None):
|
99
97
|
"""
|
100
98
|
Input properties used for looking up and filtering AlertPolicy resources.
|
101
|
-
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
102
|
-
:param pulumi.Input[
|
103
|
-
|
99
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
100
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
101
|
+
is PER_POLICY.
|
104
102
|
:param pulumi.Input[str] name: The name of the policy.
|
105
103
|
"""
|
106
104
|
if account_id is not None:
|
@@ -119,7 +117,7 @@ class _AlertPolicyState:
|
|
119
117
|
@pulumi.getter(name="accountId")
|
120
118
|
def account_id(self) -> Optional[pulumi.Input[str]]:
|
121
119
|
"""
|
122
|
-
The New Relic account ID to operate on.
|
120
|
+
The New Relic account ID to operate on.
|
123
121
|
"""
|
124
122
|
return pulumi.get(self, "account_id")
|
125
123
|
|
@@ -130,9 +128,6 @@ class _AlertPolicyState:
|
|
130
128
|
@property
|
131
129
|
@pulumi.getter(name="channelIds")
|
132
130
|
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
133
|
-
"""
|
134
|
-
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
135
|
-
"""
|
136
131
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
137
132
|
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
138
133
|
|
@@ -146,7 +141,8 @@ class _AlertPolicyState:
|
|
146
141
|
@pulumi.getter(name="incidentPreference")
|
147
142
|
def incident_preference(self) -> Optional[pulumi.Input[str]]:
|
148
143
|
"""
|
149
|
-
The rollup strategy for the policy.
|
144
|
+
The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
145
|
+
is PER_POLICY.
|
150
146
|
"""
|
151
147
|
return pulumi.get(self, "incident_preference")
|
152
148
|
|
@@ -270,9 +266,9 @@ class AlertPolicy(pulumi.CustomResource):
|
|
270
266
|
|
271
267
|
:param str resource_name: The name of the resource.
|
272
268
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
273
|
-
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
274
|
-
:param pulumi.Input[
|
275
|
-
|
269
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
270
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
271
|
+
is PER_POLICY.
|
276
272
|
:param pulumi.Input[str] name: The name of the policy.
|
277
273
|
"""
|
278
274
|
...
|
@@ -425,9 +421,9 @@ class AlertPolicy(pulumi.CustomResource):
|
|
425
421
|
:param str resource_name: The unique name of the resulting resource.
|
426
422
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
427
423
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
428
|
-
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
429
|
-
:param pulumi.Input[
|
430
|
-
|
424
|
+
:param pulumi.Input[str] account_id: The New Relic account ID to operate on.
|
425
|
+
:param pulumi.Input[str] incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
426
|
+
is PER_POLICY.
|
431
427
|
:param pulumi.Input[str] name: The name of the policy.
|
432
428
|
"""
|
433
429
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -444,16 +440,13 @@ class AlertPolicy(pulumi.CustomResource):
|
|
444
440
|
@pulumi.getter(name="accountId")
|
445
441
|
def account_id(self) -> pulumi.Output[str]:
|
446
442
|
"""
|
447
|
-
The New Relic account ID to operate on.
|
443
|
+
The New Relic account ID to operate on.
|
448
444
|
"""
|
449
445
|
return pulumi.get(self, "account_id")
|
450
446
|
|
451
447
|
@property
|
452
448
|
@pulumi.getter(name="channelIds")
|
453
449
|
def channel_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
454
|
-
"""
|
455
|
-
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
456
|
-
"""
|
457
450
|
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
458
451
|
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
459
452
|
|
@@ -463,7 +456,8 @@ class AlertPolicy(pulumi.CustomResource):
|
|
463
456
|
@pulumi.getter(name="incidentPreference")
|
464
457
|
def incident_preference(self) -> pulumi.Output[Optional[str]]:
|
465
458
|
"""
|
466
|
-
The rollup strategy for the policy.
|
459
|
+
The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
|
460
|
+
is PER_POLICY.
|
467
461
|
"""
|
468
462
|
return pulumi.get(self, "incident_preference")
|
469
463
|
|
pulumi_newrelic/entity_tags.py
CHANGED
@@ -21,7 +21,7 @@ class EntityTagsArgs:
|
|
21
21
|
"""
|
22
22
|
The set of arguments for constructing a EntityTags resource.
|
23
23
|
:param pulumi.Input[str] guid: The guid of the entity to tag.
|
24
|
-
:param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A
|
24
|
+
:param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
|
25
25
|
"""
|
26
26
|
pulumi.set(__self__, "guid", guid)
|
27
27
|
pulumi.set(__self__, "tags", tags)
|
@@ -42,7 +42,7 @@ class EntityTagsArgs:
|
|
42
42
|
@pulumi.getter
|
43
43
|
def tags(self) -> pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]:
|
44
44
|
"""
|
45
|
-
A
|
45
|
+
A set of key-value pairs to represent a tag. For example: Team:TeamName
|
46
46
|
"""
|
47
47
|
return pulumi.get(self, "tags")
|
48
48
|
|
@@ -59,7 +59,7 @@ class _EntityTagsState:
|
|
59
59
|
"""
|
60
60
|
Input properties used for looking up and filtering EntityTags resources.
|
61
61
|
:param pulumi.Input[str] guid: The guid of the entity to tag.
|
62
|
-
:param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A
|
62
|
+
:param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
|
63
63
|
"""
|
64
64
|
if guid is not None:
|
65
65
|
pulumi.set(__self__, "guid", guid)
|
@@ -82,7 +82,7 @@ class _EntityTagsState:
|
|
82
82
|
@pulumi.getter
|
83
83
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]]:
|
84
84
|
"""
|
85
|
-
A
|
85
|
+
A set of key-value pairs to represent a tag. For example: Team:TeamName
|
86
86
|
"""
|
87
87
|
return pulumi.get(self, "tags")
|
88
88
|
|
@@ -143,7 +143,7 @@ class EntityTags(pulumi.CustomResource):
|
|
143
143
|
:param str resource_name: The name of the resource.
|
144
144
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
145
145
|
:param pulumi.Input[str] guid: The guid of the entity to tag.
|
146
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A
|
146
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
|
147
147
|
"""
|
148
148
|
...
|
149
149
|
@overload
|
@@ -244,7 +244,7 @@ class EntityTags(pulumi.CustomResource):
|
|
244
244
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
245
245
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
246
246
|
:param pulumi.Input[str] guid: The guid of the entity to tag.
|
247
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A
|
247
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
|
248
248
|
"""
|
249
249
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
250
250
|
|
@@ -266,7 +266,7 @@ class EntityTags(pulumi.CustomResource):
|
|
266
266
|
@pulumi.getter
|
267
267
|
def tags(self) -> pulumi.Output[Sequence['outputs.EntityTagsTag']]:
|
268
268
|
"""
|
269
|
-
A
|
269
|
+
A set of key-value pairs to represent a tag. For example: Team:TeamName
|
270
270
|
"""
|
271
271
|
return pulumi.get(self, "tags")
|
272
272
|
|
@@ -67,9 +67,6 @@ class GetAlertPolicyResult:
|
|
67
67
|
def incident_preference(self) -> Optional[str]:
|
68
68
|
"""
|
69
69
|
The rollup strategy for the policy, which can have one of the following values:
|
70
|
-
* `PER_POLICY` - Represents the incident grouping preference **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference.
|
71
|
-
* `PER_CONDITION` - Represents the incident grouping preference **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference.
|
72
|
-
* `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference.
|
73
70
|
"""
|
74
71
|
return pulumi.get(self, "incident_preference")
|
75
72
|
|
@@ -111,9 +108,6 @@ def get_alert_policy(account_id: Optional[str] = None,
|
|
111
108
|
|
112
109
|
:param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
113
110
|
:param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
|
114
|
-
* `PER_POLICY` - Represents the incident grouping preference **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference.
|
115
|
-
* `PER_CONDITION` - Represents the incident grouping preference **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference.
|
116
|
-
* `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference.
|
117
111
|
:param str name: The name of the alert policy in New Relic.
|
118
112
|
"""
|
119
113
|
__args__ = dict()
|
@@ -143,9 +137,6 @@ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[str]]] =
|
|
143
137
|
|
144
138
|
:param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
145
139
|
:param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
|
146
|
-
* `PER_POLICY` - Represents the incident grouping preference **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference.
|
147
|
-
* `PER_CONDITION` - Represents the incident grouping preference **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference.
|
148
|
-
* `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference.
|
149
140
|
:param str name: The name of the alert policy in New Relic.
|
150
141
|
"""
|
151
142
|
...
|
@@ -274,15 +274,6 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
274
274
|
aggregation_delay="120",
|
275
275
|
slide_by=60)
|
276
276
|
```
|
277
|
-
|
278
|
-
|
279
|
-
:param str alert_type: The type of alert we want to set. Valid values are:
|
280
|
-
:param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
281
|
-
:param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
282
|
-
:param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
283
|
-
:param str sli_guid: The guid of the sli we want to set the alert on.
|
284
|
-
:param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
285
|
-
:param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
286
277
|
"""
|
287
278
|
__args__ = dict()
|
288
279
|
__args__['alertType'] = alert_type
|
@@ -430,14 +421,5 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
430
421
|
aggregation_delay="120",
|
431
422
|
slide_by=60)
|
432
423
|
```
|
433
|
-
|
434
|
-
|
435
|
-
:param str alert_type: The type of alert we want to set. Valid values are:
|
436
|
-
:param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
437
|
-
:param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
438
|
-
:param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
439
|
-
:param str sli_guid: The guid of the sli we want to set the alert on.
|
440
|
-
:param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
441
|
-
:param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
442
424
|
"""
|
443
425
|
...
|