pulumi-newrelic 5.25.0a1716440799__py3-none-any.whl → 5.25.0a1716510846__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 (27) hide show
  1. pulumi_newrelic/_inputs.py +168 -42
  2. pulumi_newrelic/account_management.py +14 -14
  3. pulumi_newrelic/alert_channel.py +28 -28
  4. pulumi_newrelic/alert_condition.py +125 -84
  5. pulumi_newrelic/alert_muting_rule.py +21 -21
  6. pulumi_newrelic/alert_policy.py +27 -21
  7. pulumi_newrelic/entity_tags.py +7 -7
  8. pulumi_newrelic/get_alert_policy.py +9 -0
  9. pulumi_newrelic/get_service_level_alert_helper.py +18 -0
  10. pulumi_newrelic/infra_alert_condition.py +105 -126
  11. pulumi_newrelic/insights/event.py +13 -0
  12. pulumi_newrelic/nrql_drop_rule.py +28 -28
  13. pulumi_newrelic/one_dashboard.py +48 -42
  14. pulumi_newrelic/outputs.py +168 -42
  15. pulumi_newrelic/plugins/_inputs.py +8 -8
  16. pulumi_newrelic/plugins/outputs.py +8 -8
  17. pulumi_newrelic/plugins/workload.py +28 -28
  18. pulumi_newrelic/pulumi-plugin.json +1 -1
  19. pulumi_newrelic/service_level.py +79 -0
  20. pulumi_newrelic/synthetics/alert_condition.py +42 -14
  21. pulumi_newrelic/synthetics/get_secure_credential.py +8 -0
  22. pulumi_newrelic/synthetics/multi_location_alert_condition.py +63 -49
  23. pulumi_newrelic/synthetics/secure_credential.py +14 -21
  24. {pulumi_newrelic-5.25.0a1716440799.dist-info → pulumi_newrelic-5.25.0a1716510846.dist-info}/METADATA +1 -1
  25. {pulumi_newrelic-5.25.0a1716440799.dist-info → pulumi_newrelic-5.25.0a1716510846.dist-info}/RECORD +27 -27
  26. {pulumi_newrelic-5.25.0a1716440799.dist-info → pulumi_newrelic-5.25.0a1716510846.dist-info}/WHEEL +0 -0
  27. {pulumi_newrelic-5.25.0a1716440799.dist-info → pulumi_newrelic-5.25.0a1716510846.dist-info}/top_level.txt +0 -0
@@ -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[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.
23
+ :param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
24
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: 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.
25
+ :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 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. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
45
45
  """
46
46
  return pulumi.get(self, "account_id")
47
47
 
@@ -52,6 +52,9 @@ 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
+ """
55
58
  warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
56
59
  pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
57
60
 
@@ -65,8 +68,7 @@ class AlertPolicyArgs:
65
68
  @pulumi.getter(name="incidentPreference")
66
69
  def incident_preference(self) -> Optional[pulumi.Input[str]]:
67
70
  """
68
- The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
69
- is PER_POLICY.
71
+ The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
70
72
  """
71
73
  return pulumi.get(self, "incident_preference")
72
74
 
@@ -96,9 +98,9 @@ class _AlertPolicyState:
96
98
  name: Optional[pulumi.Input[str]] = None):
97
99
  """
98
100
  Input properties used for looking up and filtering AlertPolicy resources.
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.
101
+ :param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
102
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: 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.
103
+ :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 is `PER_POLICY`.
102
104
  :param pulumi.Input[str] name: The name of the policy.
103
105
  """
104
106
  if account_id is not None:
@@ -117,7 +119,7 @@ class _AlertPolicyState:
117
119
  @pulumi.getter(name="accountId")
118
120
  def account_id(self) -> Optional[pulumi.Input[str]]:
119
121
  """
120
- The New Relic account ID to operate on.
122
+ The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
121
123
  """
122
124
  return pulumi.get(self, "account_id")
123
125
 
@@ -128,6 +130,9 @@ class _AlertPolicyState:
128
130
  @property
129
131
  @pulumi.getter(name="channelIds")
130
132
  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
+ """
131
136
  warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
132
137
  pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
133
138
 
@@ -141,8 +146,7 @@ class _AlertPolicyState:
141
146
  @pulumi.getter(name="incidentPreference")
142
147
  def incident_preference(self) -> Optional[pulumi.Input[str]]:
143
148
  """
144
- The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
145
- is PER_POLICY.
149
+ The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
146
150
  """
147
151
  return pulumi.get(self, "incident_preference")
148
152
 
@@ -266,9 +270,9 @@ class AlertPolicy(pulumi.CustomResource):
266
270
 
267
271
  :param str resource_name: The name of the resource.
268
272
  :param pulumi.ResourceOptions opts: Options for the resource.
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.
273
+ :param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
274
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: 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.
275
+ :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 is `PER_POLICY`.
272
276
  :param pulumi.Input[str] name: The name of the policy.
273
277
  """
274
278
  ...
@@ -421,9 +425,9 @@ class AlertPolicy(pulumi.CustomResource):
421
425
  :param str resource_name: The unique name of the resulting resource.
422
426
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
423
427
  :param pulumi.ResourceOptions opts: Options for the resource.
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.
428
+ :param pulumi.Input[str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
429
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] channel_ids: 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.
430
+ :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 is `PER_POLICY`.
427
431
  :param pulumi.Input[str] name: The name of the policy.
428
432
  """
429
433
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -440,13 +444,16 @@ class AlertPolicy(pulumi.CustomResource):
440
444
  @pulumi.getter(name="accountId")
441
445
  def account_id(self) -> pulumi.Output[str]:
442
446
  """
443
- The New Relic account ID to operate on.
447
+ The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
444
448
  """
445
449
  return pulumi.get(self, "account_id")
446
450
 
447
451
  @property
448
452
  @pulumi.getter(name="channelIds")
449
453
  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
+ """
450
457
  warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
451
458
  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.""")
452
459
 
@@ -456,8 +463,7 @@ class AlertPolicy(pulumi.CustomResource):
456
463
  @pulumi.getter(name="incidentPreference")
457
464
  def incident_preference(self) -> pulumi.Output[Optional[str]]:
458
465
  """
459
- The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default
460
- is PER_POLICY.
466
+ The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`.
461
467
  """
462
468
  return pulumi.get(self, "incident_preference")
463
469
 
@@ -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 set of key-value pairs to represent a tag. For example: Team:TeamName
24
+ :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
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 set of key-value pairs to represent a tag. For example: Team:TeamName
45
+ A nested block that describes an entity tag. See Nested tag blocks below for details.
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 set of key-value pairs to represent a tag. For example: Team:TeamName
62
+ :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
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 set of key-value pairs to represent a tag. For example: Team:TeamName
85
+ A nested block that describes an entity tag. See Nested tag blocks below for details.
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 set of key-value pairs to represent a tag. For example: Team:TeamName
146
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
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 set of key-value pairs to represent a tag. For example: Team:TeamName
247
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
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 set of key-value pairs to represent a tag. For example: Team:TeamName
269
+ A nested block that describes an entity tag. See Nested tag blocks below for details.
270
270
  """
271
271
  return pulumi.get(self, "tags")
272
272
 
@@ -67,6 +67,9 @@ 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.
70
73
  """
71
74
  return pulumi.get(self, "incident_preference")
72
75
 
@@ -108,6 +111,9 @@ def get_alert_policy(account_id: Optional[str] = None,
108
111
 
109
112
  :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`.
110
113
  :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.
111
117
  :param str name: The name of the alert policy in New Relic.
112
118
  """
113
119
  __args__ = dict()
@@ -137,6 +143,9 @@ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[str]]] =
137
143
 
138
144
  :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`.
139
145
  :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.
140
149
  :param str name: The name of the alert policy in New Relic.
141
150
  """
142
151
  ...
@@ -274,6 +274,15 @@ 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`.
277
286
  """
278
287
  __args__ = dict()
279
288
  __args__['alertType'] = alert_type
@@ -421,5 +430,14 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
421
430
  aggregation_delay="120",
422
431
  slide_by=60)
423
432
  ```
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`.
424
442
  """
425
443
  ...