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
@@ -15,14 +15,14 @@ __all__ = ['EventsToMetricsRuleArgs', 'EventsToMetricsRule']
|
|
15
15
|
class EventsToMetricsRuleArgs:
|
16
16
|
def __init__(__self__, *,
|
17
17
|
nrql: pulumi.Input[str],
|
18
|
-
account_id: Optional[pulumi.Input[
|
18
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
19
19
|
description: Optional[pulumi.Input[str]] = None,
|
20
20
|
enabled: Optional[pulumi.Input[bool]] = None,
|
21
21
|
name: Optional[pulumi.Input[str]] = None):
|
22
22
|
"""
|
23
23
|
The set of arguments for constructing a EventsToMetricsRule resource.
|
24
24
|
:param pulumi.Input[str] nrql: Explains how to create metrics from events.
|
25
|
-
:param pulumi.Input[
|
25
|
+
:param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
|
26
26
|
:param pulumi.Input[str] description: Provides additional information about the rule.
|
27
27
|
:param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
|
28
28
|
:param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
|
@@ -51,14 +51,14 @@ class EventsToMetricsRuleArgs:
|
|
51
51
|
|
52
52
|
@property
|
53
53
|
@pulumi.getter(name="accountId")
|
54
|
-
def account_id(self) -> Optional[pulumi.Input[
|
54
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
55
55
|
"""
|
56
56
|
Account with the event and where the metrics will be put.
|
57
57
|
"""
|
58
58
|
return pulumi.get(self, "account_id")
|
59
59
|
|
60
60
|
@account_id.setter
|
61
|
-
def account_id(self, value: Optional[pulumi.Input[
|
61
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
62
62
|
pulumi.set(self, "account_id", value)
|
63
63
|
|
64
64
|
@property
|
@@ -101,7 +101,7 @@ class EventsToMetricsRuleArgs:
|
|
101
101
|
@pulumi.input_type
|
102
102
|
class _EventsToMetricsRuleState:
|
103
103
|
def __init__(__self__, *,
|
104
|
-
account_id: Optional[pulumi.Input[
|
104
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
105
105
|
description: Optional[pulumi.Input[str]] = None,
|
106
106
|
enabled: Optional[pulumi.Input[bool]] = None,
|
107
107
|
name: Optional[pulumi.Input[str]] = None,
|
@@ -109,7 +109,7 @@ class _EventsToMetricsRuleState:
|
|
109
109
|
rule_id: Optional[pulumi.Input[str]] = None):
|
110
110
|
"""
|
111
111
|
Input properties used for looking up and filtering EventsToMetricsRule resources.
|
112
|
-
:param pulumi.Input[
|
112
|
+
:param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
|
113
113
|
:param pulumi.Input[str] description: Provides additional information about the rule.
|
114
114
|
:param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
|
115
115
|
:param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
|
@@ -131,14 +131,14 @@ class _EventsToMetricsRuleState:
|
|
131
131
|
|
132
132
|
@property
|
133
133
|
@pulumi.getter(name="accountId")
|
134
|
-
def account_id(self) -> Optional[pulumi.Input[
|
134
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
135
135
|
"""
|
136
136
|
Account with the event and where the metrics will be put.
|
137
137
|
"""
|
138
138
|
return pulumi.get(self, "account_id")
|
139
139
|
|
140
140
|
@account_id.setter
|
141
|
-
def account_id(self, value: Optional[pulumi.Input[
|
141
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
142
142
|
pulumi.set(self, "account_id", value)
|
143
143
|
|
144
144
|
@property
|
@@ -207,7 +207,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
207
207
|
def __init__(__self__,
|
208
208
|
resource_name: str,
|
209
209
|
opts: Optional[pulumi.ResourceOptions] = None,
|
210
|
-
account_id: Optional[pulumi.Input[
|
210
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
211
211
|
description: Optional[pulumi.Input[str]] = None,
|
212
212
|
enabled: Optional[pulumi.Input[bool]] = None,
|
213
213
|
name: Optional[pulumi.Input[str]] = None,
|
@@ -223,7 +223,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
223
223
|
import pulumi_newrelic as newrelic
|
224
224
|
|
225
225
|
foo = newrelic.EventsToMetricsRule("foo",
|
226
|
-
account_id=12345,
|
226
|
+
account_id="12345",
|
227
227
|
name="Example events to metrics rule",
|
228
228
|
description="Example description",
|
229
229
|
nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
|
@@ -243,7 +243,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
243
243
|
|
244
244
|
:param str resource_name: The name of the resource.
|
245
245
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
246
|
-
:param pulumi.Input[
|
246
|
+
:param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
|
247
247
|
:param pulumi.Input[str] description: Provides additional information about the rule.
|
248
248
|
:param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
|
249
249
|
:param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
|
@@ -265,7 +265,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
265
265
|
import pulumi_newrelic as newrelic
|
266
266
|
|
267
267
|
foo = newrelic.EventsToMetricsRule("foo",
|
268
|
-
account_id=12345,
|
268
|
+
account_id="12345",
|
269
269
|
name="Example events to metrics rule",
|
270
270
|
description="Example description",
|
271
271
|
nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
|
@@ -298,7 +298,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
298
298
|
def _internal_init(__self__,
|
299
299
|
resource_name: str,
|
300
300
|
opts: Optional[pulumi.ResourceOptions] = None,
|
301
|
-
account_id: Optional[pulumi.Input[
|
301
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
302
302
|
description: Optional[pulumi.Input[str]] = None,
|
303
303
|
enabled: Optional[pulumi.Input[bool]] = None,
|
304
304
|
name: Optional[pulumi.Input[str]] = None,
|
@@ -330,7 +330,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
330
330
|
def get(resource_name: str,
|
331
331
|
id: pulumi.Input[str],
|
332
332
|
opts: Optional[pulumi.ResourceOptions] = None,
|
333
|
-
account_id: Optional[pulumi.Input[
|
333
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
334
334
|
description: Optional[pulumi.Input[str]] = None,
|
335
335
|
enabled: Optional[pulumi.Input[bool]] = None,
|
336
336
|
name: Optional[pulumi.Input[str]] = None,
|
@@ -343,7 +343,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
343
343
|
:param str resource_name: The unique name of the resulting resource.
|
344
344
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
345
345
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
346
|
-
:param pulumi.Input[
|
346
|
+
:param pulumi.Input[str] account_id: Account with the event and where the metrics will be put.
|
347
347
|
:param pulumi.Input[str] description: Provides additional information about the rule.
|
348
348
|
:param pulumi.Input[bool] enabled: True means this rule is enabled. False means the rule is currently not creating metrics.
|
349
349
|
:param pulumi.Input[str] name: The name of the rule. This must be unique within an account.
|
@@ -364,7 +364,7 @@ class EventsToMetricsRule(pulumi.CustomResource):
|
|
364
364
|
|
365
365
|
@property
|
366
366
|
@pulumi.getter(name="accountId")
|
367
|
-
def account_id(self) -> pulumi.Output[
|
367
|
+
def account_id(self) -> pulumi.Output[str]:
|
368
368
|
"""
|
369
369
|
Account with the event and where the metrics will be put.
|
370
370
|
"""
|
pulumi_newrelic/get_account.py
CHANGED
@@ -22,8 +22,8 @@ class GetAccountResult:
|
|
22
22
|
A collection of values returned by getAccount.
|
23
23
|
"""
|
24
24
|
def __init__(__self__, account_id=None, id=None, name=None, scope=None):
|
25
|
-
if account_id and not isinstance(account_id,
|
26
|
-
raise TypeError("Expected argument 'account_id' to be a
|
25
|
+
if account_id and not isinstance(account_id, str):
|
26
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
27
27
|
pulumi.set(__self__, "account_id", account_id)
|
28
28
|
if id and not isinstance(id, str):
|
29
29
|
raise TypeError("Expected argument 'id' to be a str")
|
@@ -37,7 +37,7 @@ class GetAccountResult:
|
|
37
37
|
|
38
38
|
@property
|
39
39
|
@pulumi.getter(name="accountId")
|
40
|
-
def account_id(self) -> Optional[
|
40
|
+
def account_id(self) -> Optional[str]:
|
41
41
|
return pulumi.get(self, "account_id")
|
42
42
|
|
43
43
|
@property
|
@@ -71,7 +71,7 @@ class AwaitableGetAccountResult(GetAccountResult):
|
|
71
71
|
scope=self.scope)
|
72
72
|
|
73
73
|
|
74
|
-
def get_account(account_id: Optional[
|
74
|
+
def get_account(account_id: Optional[str] = None,
|
75
75
|
name: Optional[str] = None,
|
76
76
|
scope: Optional[str] = None,
|
77
77
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
|
@@ -90,7 +90,7 @@ def get_account(account_id: Optional[int] = None,
|
|
90
90
|
```
|
91
91
|
|
92
92
|
|
93
|
-
:param
|
93
|
+
:param str account_id: The account ID in New Relic.
|
94
94
|
:param str name: The account name in New Relic.
|
95
95
|
:param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
|
96
96
|
"""
|
@@ -109,7 +109,7 @@ def get_account(account_id: Optional[int] = None,
|
|
109
109
|
|
110
110
|
|
111
111
|
@_utilities.lift_output_func(get_account)
|
112
|
-
def get_account_output(account_id: Optional[pulumi.Input[Optional[
|
112
|
+
def get_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
113
113
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
114
114
|
scope: Optional[pulumi.Input[Optional[str]]] = None,
|
115
115
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountResult]:
|
@@ -128,7 +128,7 @@ def get_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
128
128
|
```
|
129
129
|
|
130
130
|
|
131
|
-
:param
|
131
|
+
:param str account_id: The account ID in New Relic.
|
132
132
|
:param str name: The account name in New Relic.
|
133
133
|
:param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
|
134
134
|
"""
|
@@ -23,8 +23,8 @@ class GetAlertChannelResult:
|
|
23
23
|
A collection of values returned by getAlertChannel.
|
24
24
|
"""
|
25
25
|
def __init__(__self__, account_id=None, config=None, id=None, name=None, policy_ids=None, type=None):
|
26
|
-
if account_id and not isinstance(account_id,
|
27
|
-
raise TypeError("Expected argument 'account_id' to be a
|
26
|
+
if account_id and not isinstance(account_id, str):
|
27
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
28
28
|
pulumi.set(__self__, "account_id", account_id)
|
29
29
|
if config and not isinstance(config, dict):
|
30
30
|
raise TypeError("Expected argument 'config' to be a dict")
|
@@ -44,7 +44,7 @@ class GetAlertChannelResult:
|
|
44
44
|
|
45
45
|
@property
|
46
46
|
@pulumi.getter(name="accountId")
|
47
|
-
def account_id(self) ->
|
47
|
+
def account_id(self) -> str:
|
48
48
|
return pulumi.get(self, "account_id")
|
49
49
|
|
50
50
|
@property
|
@@ -70,7 +70,7 @@ class GetAlertChannelResult:
|
|
70
70
|
|
71
71
|
@property
|
72
72
|
@pulumi.getter(name="policyIds")
|
73
|
-
def policy_ids(self) -> Sequence[
|
73
|
+
def policy_ids(self) -> Sequence[str]:
|
74
74
|
"""
|
75
75
|
A list of policy IDs associated with the alert channel.
|
76
76
|
"""
|
@@ -99,7 +99,7 @@ class AwaitableGetAlertChannelResult(GetAlertChannelResult):
|
|
99
99
|
type=self.type)
|
100
100
|
|
101
101
|
|
102
|
-
def get_alert_channel(account_id: Optional[
|
102
|
+
def get_alert_channel(account_id: Optional[str] = None,
|
103
103
|
name: Optional[str] = None,
|
104
104
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertChannelResult:
|
105
105
|
"""
|
@@ -108,7 +108,7 @@ def get_alert_channel(account_id: Optional[int] = None,
|
|
108
108
|
> **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
|
109
109
|
|
110
110
|
|
111
|
-
:param
|
111
|
+
: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`.
|
112
112
|
:param str name: The name of the alert channel in New Relic.
|
113
113
|
"""
|
114
114
|
__args__ = dict()
|
@@ -127,7 +127,7 @@ def get_alert_channel(account_id: Optional[int] = None,
|
|
127
127
|
|
128
128
|
|
129
129
|
@_utilities.lift_output_func(get_alert_channel)
|
130
|
-
def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[
|
130
|
+
def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
131
131
|
name: Optional[pulumi.Input[str]] = None,
|
132
132
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertChannelResult]:
|
133
133
|
"""
|
@@ -136,7 +136,7 @@ def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[int]]] =
|
|
136
136
|
> **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
|
137
137
|
|
138
138
|
|
139
|
-
:param
|
139
|
+
: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`.
|
140
140
|
:param str name: The name of the alert channel in New Relic.
|
141
141
|
"""
|
142
142
|
...
|
@@ -22,8 +22,8 @@ class GetAlertPolicyResult:
|
|
22
22
|
A collection of values returned by getAlertPolicy.
|
23
23
|
"""
|
24
24
|
def __init__(__self__, account_id=None, created_at=None, id=None, incident_preference=None, name=None, updated_at=None):
|
25
|
-
if account_id and not isinstance(account_id,
|
26
|
-
raise TypeError("Expected argument 'account_id' to be a
|
25
|
+
if account_id and not isinstance(account_id, str):
|
26
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
27
27
|
pulumi.set(__self__, "account_id", account_id)
|
28
28
|
if created_at and not isinstance(created_at, str):
|
29
29
|
raise TypeError("Expected argument 'created_at' to be a str")
|
@@ -43,7 +43,7 @@ class GetAlertPolicyResult:
|
|
43
43
|
|
44
44
|
@property
|
45
45
|
@pulumi.getter(name="accountId")
|
46
|
-
def account_id(self) ->
|
46
|
+
def account_id(self) -> str:
|
47
47
|
return pulumi.get(self, "account_id")
|
48
48
|
|
49
49
|
@property
|
@@ -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
|
|
@@ -98,7 +101,7 @@ class AwaitableGetAlertPolicyResult(GetAlertPolicyResult):
|
|
98
101
|
updated_at=self.updated_at)
|
99
102
|
|
100
103
|
|
101
|
-
def get_alert_policy(account_id: Optional[
|
104
|
+
def get_alert_policy(account_id: Optional[str] = None,
|
102
105
|
incident_preference: Optional[str] = None,
|
103
106
|
name: Optional[str] = None,
|
104
107
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertPolicyResult:
|
@@ -106,8 +109,11 @@ def get_alert_policy(account_id: Optional[int] = None,
|
|
106
109
|
Use this data source to get information about a specific alert policy in New Relic that already exists.
|
107
110
|
|
108
111
|
|
109
|
-
:param
|
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()
|
@@ -127,7 +133,7 @@ def get_alert_policy(account_id: Optional[int] = None,
|
|
127
133
|
|
128
134
|
|
129
135
|
@_utilities.lift_output_func(get_alert_policy)
|
130
|
-
def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[
|
136
|
+
def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
131
137
|
incident_preference: Optional[pulumi.Input[Optional[str]]] = None,
|
132
138
|
name: Optional[pulumi.Input[str]] = None,
|
133
139
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertPolicyResult]:
|
@@ -135,8 +141,11 @@ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[int]]] =
|
|
135
141
|
Use this data source to get information about a specific alert policy in New Relic that already exists.
|
136
142
|
|
137
143
|
|
138
|
-
:param
|
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
|
...
|
@@ -37,7 +37,7 @@ class GetApplicationResult:
|
|
37
37
|
|
38
38
|
@property
|
39
39
|
@pulumi.getter(name="hostIds")
|
40
|
-
def host_ids(self) -> Sequence[
|
40
|
+
def host_ids(self) -> Sequence[str]:
|
41
41
|
"""
|
42
42
|
A list of host IDs associated with the application.
|
43
43
|
"""
|
@@ -53,7 +53,7 @@ class GetApplicationResult:
|
|
53
53
|
|
54
54
|
@property
|
55
55
|
@pulumi.getter(name="instanceIds")
|
56
|
-
def instance_ids(self) -> Sequence[
|
56
|
+
def instance_ids(self) -> Sequence[str]:
|
57
57
|
"""
|
58
58
|
A list of instance IDs associated with the application.
|
59
59
|
"""
|
@@ -22,8 +22,8 @@ class GetCloudAccountResult:
|
|
22
22
|
A collection of values returned by getCloudAccount.
|
23
23
|
"""
|
24
24
|
def __init__(__self__, account_id=None, cloud_provider=None, id=None, name=None):
|
25
|
-
if account_id and not isinstance(account_id,
|
26
|
-
raise TypeError("Expected argument 'account_id' to be a
|
25
|
+
if account_id and not isinstance(account_id, str):
|
26
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
27
27
|
pulumi.set(__self__, "account_id", account_id)
|
28
28
|
if cloud_provider and not isinstance(cloud_provider, str):
|
29
29
|
raise TypeError("Expected argument 'cloud_provider' to be a str")
|
@@ -37,7 +37,7 @@ class GetCloudAccountResult:
|
|
37
37
|
|
38
38
|
@property
|
39
39
|
@pulumi.getter(name="accountId")
|
40
|
-
def account_id(self) -> Optional[
|
40
|
+
def account_id(self) -> Optional[str]:
|
41
41
|
return pulumi.get(self, "account_id")
|
42
42
|
|
43
43
|
@property
|
@@ -71,7 +71,7 @@ class AwaitableGetCloudAccountResult(GetCloudAccountResult):
|
|
71
71
|
name=self.name)
|
72
72
|
|
73
73
|
|
74
|
-
def get_cloud_account(account_id: Optional[
|
74
|
+
def get_cloud_account(account_id: Optional[str] = None,
|
75
75
|
cloud_provider: Optional[str] = None,
|
76
76
|
name: Optional[str] = None,
|
77
77
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCloudAccountResult:
|
@@ -85,13 +85,13 @@ def get_cloud_account(account_id: Optional[int] = None,
|
|
85
85
|
import pulumi
|
86
86
|
import pulumi_newrelic as newrelic
|
87
87
|
|
88
|
-
account = newrelic.get_cloud_account(account_id=12345,
|
88
|
+
account = newrelic.get_cloud_account(account_id="12345",
|
89
89
|
cloud_provider="aws",
|
90
90
|
name="my aws account")
|
91
91
|
```
|
92
92
|
|
93
93
|
|
94
|
-
:param
|
94
|
+
:param str account_id: The account ID in New Relic.
|
95
95
|
:param str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
|
96
96
|
:param str name: The cloud account name in New Relic.
|
97
97
|
"""
|
@@ -110,7 +110,7 @@ def get_cloud_account(account_id: Optional[int] = None,
|
|
110
110
|
|
111
111
|
|
112
112
|
@_utilities.lift_output_func(get_cloud_account)
|
113
|
-
def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[
|
113
|
+
def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
114
114
|
cloud_provider: Optional[pulumi.Input[str]] = None,
|
115
115
|
name: Optional[pulumi.Input[str]] = None,
|
116
116
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCloudAccountResult]:
|
@@ -124,13 +124,13 @@ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[int]]] =
|
|
124
124
|
import pulumi
|
125
125
|
import pulumi_newrelic as newrelic
|
126
126
|
|
127
|
-
account = newrelic.get_cloud_account(account_id=12345,
|
127
|
+
account = newrelic.get_cloud_account(account_id="12345",
|
128
128
|
cloud_provider="aws",
|
129
129
|
name="my aws account")
|
130
130
|
```
|
131
131
|
|
132
132
|
|
133
|
-
:param
|
133
|
+
:param str account_id: The account ID in New Relic.
|
134
134
|
:param str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
|
135
135
|
:param str name: The cloud account name in New Relic.
|
136
136
|
"""
|
pulumi_newrelic/get_entity.py
CHANGED
@@ -24,11 +24,11 @@ class GetEntityResult:
|
|
24
24
|
A collection of values returned by getEntity.
|
25
25
|
"""
|
26
26
|
def __init__(__self__, account_id=None, application_id=None, domain=None, guid=None, id=None, ignore_case=None, ignore_not_found=None, name=None, serving_apm_application_id=None, tags=None, type=None):
|
27
|
-
if account_id and not isinstance(account_id,
|
28
|
-
raise TypeError("Expected argument 'account_id' to be a
|
27
|
+
if account_id and not isinstance(account_id, str):
|
28
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
29
29
|
pulumi.set(__self__, "account_id", account_id)
|
30
|
-
if application_id and not isinstance(application_id,
|
31
|
-
raise TypeError("Expected argument 'application_id' to be a
|
30
|
+
if application_id and not isinstance(application_id, str):
|
31
|
+
raise TypeError("Expected argument 'application_id' to be a str")
|
32
32
|
pulumi.set(__self__, "application_id", application_id)
|
33
33
|
if domain and not isinstance(domain, str):
|
34
34
|
raise TypeError("Expected argument 'domain' to be a str")
|
@@ -48,8 +48,8 @@ class GetEntityResult:
|
|
48
48
|
if name and not isinstance(name, str):
|
49
49
|
raise TypeError("Expected argument 'name' to be a str")
|
50
50
|
pulumi.set(__self__, "name", name)
|
51
|
-
if serving_apm_application_id and not isinstance(serving_apm_application_id,
|
52
|
-
raise TypeError("Expected argument 'serving_apm_application_id' to be a
|
51
|
+
if serving_apm_application_id and not isinstance(serving_apm_application_id, str):
|
52
|
+
raise TypeError("Expected argument 'serving_apm_application_id' to be a str")
|
53
53
|
pulumi.set(__self__, "serving_apm_application_id", serving_apm_application_id)
|
54
54
|
if tags and not isinstance(tags, list):
|
55
55
|
raise TypeError("Expected argument 'tags' to be a list")
|
@@ -60,12 +60,12 @@ class GetEntityResult:
|
|
60
60
|
|
61
61
|
@property
|
62
62
|
@pulumi.getter(name="accountId")
|
63
|
-
def account_id(self) ->
|
63
|
+
def account_id(self) -> str:
|
64
64
|
return pulumi.get(self, "account_id")
|
65
65
|
|
66
66
|
@property
|
67
67
|
@pulumi.getter(name="applicationId")
|
68
|
-
def application_id(self) ->
|
68
|
+
def application_id(self) -> str:
|
69
69
|
"""
|
70
70
|
The domain-specific application ID of the entity. Only returned for APM and Browser applications.
|
71
71
|
"""
|
@@ -109,7 +109,7 @@ class GetEntityResult:
|
|
109
109
|
|
110
110
|
@property
|
111
111
|
@pulumi.getter(name="servingApmApplicationId")
|
112
|
-
def serving_apm_application_id(self) ->
|
112
|
+
def serving_apm_application_id(self) -> str:
|
113
113
|
"""
|
114
114
|
The browser-specific ID of the backing APM entity. Only returned for Browser applications.
|
115
115
|
"""
|
@@ -145,7 +145,7 @@ class AwaitableGetEntityResult(GetEntityResult):
|
|
145
145
|
type=self.type)
|
146
146
|
|
147
147
|
|
148
|
-
def get_entity(account_id: Optional[
|
148
|
+
def get_entity(account_id: Optional[str] = None,
|
149
149
|
domain: Optional[str] = None,
|
150
150
|
ignore_case: Optional[bool] = None,
|
151
151
|
ignore_not_found: Optional[bool] = None,
|
@@ -182,7 +182,7 @@ def get_entity(account_id: Optional[int] = None,
|
|
182
182
|
# the above example, would have to belong to the account_id
|
183
183
|
# specified in the configuration below, i.e. 654321.
|
184
184
|
app = newrelic.get_entity(name="my-app",
|
185
|
-
account_id=654321,
|
185
|
+
account_id="654321",
|
186
186
|
domain="APM",
|
187
187
|
type="APPLICATION")
|
188
188
|
```
|
@@ -215,7 +215,7 @@ def get_entity(account_id: Optional[int] = None,
|
|
215
215
|
```
|
216
216
|
|
217
217
|
|
218
|
-
:param
|
218
|
+
:param str account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
|
219
219
|
:param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
|
220
220
|
:param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
|
221
221
|
:param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
|
@@ -251,7 +251,7 @@ def get_entity(account_id: Optional[int] = None,
|
|
251
251
|
|
252
252
|
|
253
253
|
@_utilities.lift_output_func(get_entity)
|
254
|
-
def get_entity_output(account_id: Optional[pulumi.Input[Optional[
|
254
|
+
def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
255
255
|
domain: Optional[pulumi.Input[Optional[str]]] = None,
|
256
256
|
ignore_case: Optional[pulumi.Input[Optional[bool]]] = None,
|
257
257
|
ignore_not_found: Optional[pulumi.Input[Optional[bool]]] = None,
|
@@ -288,7 +288,7 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
288
288
|
# the above example, would have to belong to the account_id
|
289
289
|
# specified in the configuration below, i.e. 654321.
|
290
290
|
app = newrelic.get_entity(name="my-app",
|
291
|
-
account_id=654321,
|
291
|
+
account_id="654321",
|
292
292
|
domain="APM",
|
293
293
|
type="APPLICATION")
|
294
294
|
```
|
@@ -321,7 +321,7 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
321
321
|
```
|
322
322
|
|
323
323
|
|
324
|
-
:param
|
324
|
+
:param str account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
|
325
325
|
:param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
|
326
326
|
:param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
|
327
327
|
:param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
|
@@ -24,8 +24,8 @@ class GetNotificationDestinationResult:
|
|
24
24
|
A collection of values returned by getNotificationDestination.
|
25
25
|
"""
|
26
26
|
def __init__(__self__, account_id=None, active=None, guid=None, id=None, name=None, properties=None, secure_urls=None, status=None, type=None):
|
27
|
-
if account_id and not isinstance(account_id,
|
28
|
-
raise TypeError("Expected argument 'account_id' to be a
|
27
|
+
if account_id and not isinstance(account_id, str):
|
28
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
29
29
|
pulumi.set(__self__, "account_id", account_id)
|
30
30
|
if active and not isinstance(active, bool):
|
31
31
|
raise TypeError("Expected argument 'active' to be a bool")
|
@@ -54,7 +54,7 @@ class GetNotificationDestinationResult:
|
|
54
54
|
|
55
55
|
@property
|
56
56
|
@pulumi.getter(name="accountId")
|
57
|
-
def account_id(self) ->
|
57
|
+
def account_id(self) -> str:
|
58
58
|
return pulumi.get(self, "account_id")
|
59
59
|
|
60
60
|
@property
|
@@ -136,7 +136,7 @@ class AwaitableGetNotificationDestinationResult(GetNotificationDestinationResult
|
|
136
136
|
type=self.type)
|
137
137
|
|
138
138
|
|
139
|
-
def get_notification_destination(account_id: Optional[
|
139
|
+
def get_notification_destination(account_id: Optional[str] = None,
|
140
140
|
id: Optional[str] = None,
|
141
141
|
name: Optional[str] = None,
|
142
142
|
secure_urls: Optional[Sequence[pulumi.InputType['GetNotificationDestinationSecureUrlArgs']]] = None,
|
@@ -144,7 +144,7 @@ def get_notification_destination(account_id: Optional[int] = None,
|
|
144
144
|
"""
|
145
145
|
Use this data source to access information about an existing resource.
|
146
146
|
|
147
|
-
:param
|
147
|
+
: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`.
|
148
148
|
:param str id: The id of the notification destination in New Relic.
|
149
149
|
:param str name: The name of the notification destination.
|
150
150
|
|
@@ -172,7 +172,7 @@ def get_notification_destination(account_id: Optional[int] = None,
|
|
172
172
|
|
173
173
|
|
174
174
|
@_utilities.lift_output_func(get_notification_destination)
|
175
|
-
def get_notification_destination_output(account_id: Optional[pulumi.Input[Optional[
|
175
|
+
def get_notification_destination_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
176
176
|
id: Optional[pulumi.Input[Optional[str]]] = None,
|
177
177
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
178
178
|
secure_urls: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetNotificationDestinationSecureUrlArgs']]]]] = None,
|
@@ -180,7 +180,7 @@ def get_notification_destination_output(account_id: Optional[pulumi.Input[Option
|
|
180
180
|
"""
|
181
181
|
Use this data source to access information about an existing resource.
|
182
182
|
|
183
|
-
:param
|
183
|
+
: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`.
|
184
184
|
:param str id: The id of the notification destination in New Relic.
|
185
185
|
:param str name: The name of the notification destination.
|
186
186
|
|