pulumi-newrelic 5.48.0a1752732890__py3-none-any.whl → 5.58.0a1766556761__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/__init__.py +18 -1
- pulumi_newrelic/_inputs.py +4269 -3795
- pulumi_newrelic/account_management.py +35 -36
- pulumi_newrelic/alert_channel.py +61 -62
- pulumi_newrelic/alert_condition.py +217 -218
- pulumi_newrelic/alert_muting_rule.py +92 -93
- pulumi_newrelic/alert_policy.py +69 -70
- pulumi_newrelic/alert_policy_channel.py +52 -53
- pulumi_newrelic/api_access_key.py +190 -159
- pulumi_newrelic/browser_application.py +113 -114
- pulumi_newrelic/cloud/__init__.py +2 -1
- pulumi_newrelic/cloud/_inputs.py +2183 -2130
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +99 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +69 -70
- pulumi_newrelic/cloud/aws_integrations.py +194 -195
- pulumi_newrelic/cloud/aws_link_account.py +69 -70
- pulumi_newrelic/cloud/azure_integrations.py +178 -132
- pulumi_newrelic/cloud/azure_link_account.py +103 -104
- pulumi_newrelic/cloud/gcp_integrations.py +113 -114
- pulumi_newrelic/cloud/gcp_link_account.py +52 -53
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1468 -1418
- pulumi_newrelic/config/__init__.py +1 -1
- pulumi_newrelic/config/__init__.pyi +1 -2
- pulumi_newrelic/config/vars.py +14 -15
- pulumi_newrelic/data_partition_rule.py +112 -113
- pulumi_newrelic/entity_tags.py +77 -22
- pulumi_newrelic/events_to_metrics_rule.py +95 -96
- pulumi_newrelic/get_account.py +21 -22
- pulumi_newrelic/get_alert_channel.py +52 -21
- pulumi_newrelic/get_alert_policy.py +51 -26
- pulumi_newrelic/get_application.py +13 -14
- pulumi_newrelic/get_authentication_domain.py +9 -10
- pulumi_newrelic/get_cloud_account.py +21 -22
- pulumi_newrelic/get_entity.py +52 -53
- pulumi_newrelic/get_group.py +17 -18
- pulumi_newrelic/get_key_transaction.py +25 -26
- pulumi_newrelic/get_notification_destination.py +29 -30
- pulumi_newrelic/get_obfuscation_expression.py +15 -16
- pulumi_newrelic/get_service_level_alert_helper.py +53 -54
- pulumi_newrelic/get_test_grok_pattern.py +22 -23
- pulumi_newrelic/get_user.py +21 -22
- pulumi_newrelic/group.py +52 -53
- pulumi_newrelic/infra_alert_condition.py +255 -256
- pulumi_newrelic/insights/__init__.py +1 -1
- pulumi_newrelic/insights/_inputs.py +32 -33
- pulumi_newrelic/insights/event.py +4 -5
- pulumi_newrelic/insights/outputs.py +22 -23
- pulumi_newrelic/key_transaction.py +104 -105
- pulumi_newrelic/log_parsing_rule.py +146 -147
- pulumi_newrelic/monitor_downtime.py +146 -154
- pulumi_newrelic/notification_channel.py +159 -160
- pulumi_newrelic/notification_destination.py +114 -129
- pulumi_newrelic/nrql_alert_condition.py +479 -431
- pulumi_newrelic/nrql_drop_rule.py +106 -147
- pulumi_newrelic/obfuscation_expression.py +69 -70
- pulumi_newrelic/obfuscation_rule.py +89 -90
- pulumi_newrelic/one_dashboard.py +93 -94
- pulumi_newrelic/one_dashboard_json.py +62 -63
- pulumi_newrelic/one_dashboard_raw.py +114 -115
- pulumi_newrelic/outputs.py +2991 -2673
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +1 -1
- pulumi_newrelic/plugins/_inputs.py +158 -159
- pulumi_newrelic/plugins/application_settings.py +167 -168
- pulumi_newrelic/plugins/outputs.py +108 -109
- pulumi_newrelic/plugins/workload.py +131 -132
- pulumi_newrelic/provider.py +106 -107
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +76 -77
- pulumi_newrelic/synthetics/__init__.py +1 -1
- pulumi_newrelic/synthetics/_inputs.py +127 -128
- pulumi_newrelic/synthetics/alert_condition.py +95 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +197 -198
- pulumi_newrelic/synthetics/cert_check_monitor.py +205 -206
- pulumi_newrelic/synthetics/get_private_location.py +21 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +19 -20
- pulumi_newrelic/synthetics/monitor.py +378 -379
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +118 -119
- pulumi_newrelic/synthetics/outputs.py +85 -86
- pulumi_newrelic/synthetics/private_location.py +105 -106
- pulumi_newrelic/synthetics/script_monitor.py +364 -303
- pulumi_newrelic/synthetics/secure_credential.py +86 -87
- pulumi_newrelic/synthetics/step_monitor.py +220 -221
- pulumi_newrelic/user.py +69 -70
- pulumi_newrelic/workflow.py +139 -140
- {pulumi_newrelic-5.48.0a1752732890.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.58.0a1766556761.dist-info/RECORD +92 -0
- pulumi_newrelic-5.48.0a1752732890.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.48.0a1752732890.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.48.0a1752732890.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/top_level.txt +0 -0
pulumi_newrelic/get_account.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -41,27 +40,27 @@ class GetAccountResult:
|
|
|
41
40
|
raise TypeError("Expected argument 'scope' to be a str")
|
|
42
41
|
pulumi.set(__self__, "scope", scope)
|
|
43
42
|
|
|
44
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
45
44
|
@pulumi.getter(name="accountId")
|
|
46
|
-
def account_id(self) -> Optional[
|
|
45
|
+
def account_id(self) -> Optional[_builtins.str]:
|
|
47
46
|
return pulumi.get(self, "account_id")
|
|
48
47
|
|
|
49
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
50
49
|
@pulumi.getter
|
|
51
|
-
def id(self) ->
|
|
50
|
+
def id(self) -> _builtins.str:
|
|
52
51
|
"""
|
|
53
52
|
The provider-assigned unique ID for this managed resource.
|
|
54
53
|
"""
|
|
55
54
|
return pulumi.get(self, "id")
|
|
56
55
|
|
|
57
|
-
@property
|
|
56
|
+
@_builtins.property
|
|
58
57
|
@pulumi.getter
|
|
59
|
-
def name(self) -> Optional[
|
|
58
|
+
def name(self) -> Optional[_builtins.str]:
|
|
60
59
|
return pulumi.get(self, "name")
|
|
61
60
|
|
|
62
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
63
62
|
@pulumi.getter
|
|
64
|
-
def scope(self) -> Optional[
|
|
63
|
+
def scope(self) -> Optional[_builtins.str]:
|
|
65
64
|
return pulumi.get(self, "scope")
|
|
66
65
|
|
|
67
66
|
|
|
@@ -77,9 +76,9 @@ class AwaitableGetAccountResult(GetAccountResult):
|
|
|
77
76
|
scope=self.scope)
|
|
78
77
|
|
|
79
78
|
|
|
80
|
-
def get_account(account_id: Optional[
|
|
81
|
-
name: Optional[
|
|
82
|
-
scope: Optional[
|
|
79
|
+
def get_account(account_id: Optional[_builtins.str] = None,
|
|
80
|
+
name: Optional[_builtins.str] = None,
|
|
81
|
+
scope: Optional[_builtins.str] = None,
|
|
83
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
|
|
84
83
|
"""
|
|
85
84
|
Use this data source to get information about a specific account in New Relic.
|
|
@@ -96,9 +95,9 @@ def get_account(account_id: Optional[builtins.str] = None,
|
|
|
96
95
|
```
|
|
97
96
|
|
|
98
97
|
|
|
99
|
-
:param
|
|
100
|
-
:param
|
|
101
|
-
:param
|
|
98
|
+
:param _builtins.str account_id: The account ID in New Relic.
|
|
99
|
+
:param _builtins.str name: The account name in New Relic.
|
|
100
|
+
:param _builtins.str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
|
|
102
101
|
"""
|
|
103
102
|
__args__ = dict()
|
|
104
103
|
__args__['accountId'] = account_id
|
|
@@ -112,9 +111,9 @@ def get_account(account_id: Optional[builtins.str] = None,
|
|
|
112
111
|
id=pulumi.get(__ret__, 'id'),
|
|
113
112
|
name=pulumi.get(__ret__, 'name'),
|
|
114
113
|
scope=pulumi.get(__ret__, 'scope'))
|
|
115
|
-
def get_account_output(account_id: Optional[pulumi.Input[Optional[
|
|
116
|
-
name: Optional[pulumi.Input[Optional[
|
|
117
|
-
scope: Optional[pulumi.Input[Optional[
|
|
114
|
+
def get_account_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
115
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
116
|
+
scope: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
118
117
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountResult]:
|
|
119
118
|
"""
|
|
120
119
|
Use this data source to get information about a specific account in New Relic.
|
|
@@ -131,9 +130,9 @@ def get_account_output(account_id: Optional[pulumi.Input[Optional[builtins.str]]
|
|
|
131
130
|
```
|
|
132
131
|
|
|
133
132
|
|
|
134
|
-
:param
|
|
135
|
-
:param
|
|
136
|
-
:param
|
|
133
|
+
:param _builtins.str account_id: The account ID in New Relic.
|
|
134
|
+
:param _builtins.str name: The account name in New Relic.
|
|
135
|
+
:param _builtins.str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
|
|
137
136
|
"""
|
|
138
137
|
__args__ = dict()
|
|
139
138
|
__args__['accountId'] = account_id
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -48,12 +47,12 @@ class GetAlertChannelResult:
|
|
|
48
47
|
raise TypeError("Expected argument 'type' to be a str")
|
|
49
48
|
pulumi.set(__self__, "type", type)
|
|
50
49
|
|
|
51
|
-
@property
|
|
50
|
+
@_builtins.property
|
|
52
51
|
@pulumi.getter(name="accountId")
|
|
53
|
-
def account_id(self) ->
|
|
52
|
+
def account_id(self) -> _builtins.str:
|
|
54
53
|
return pulumi.get(self, "account_id")
|
|
55
54
|
|
|
56
|
-
@property
|
|
55
|
+
@_builtins.property
|
|
57
56
|
@pulumi.getter
|
|
58
57
|
def config(self) -> 'outputs.GetAlertChannelConfigResult':
|
|
59
58
|
"""
|
|
@@ -61,30 +60,30 @@ class GetAlertChannelResult:
|
|
|
61
60
|
"""
|
|
62
61
|
return pulumi.get(self, "config")
|
|
63
62
|
|
|
64
|
-
@property
|
|
63
|
+
@_builtins.property
|
|
65
64
|
@pulumi.getter
|
|
66
|
-
def id(self) ->
|
|
65
|
+
def id(self) -> _builtins.str:
|
|
67
66
|
"""
|
|
68
67
|
The provider-assigned unique ID for this managed resource.
|
|
69
68
|
"""
|
|
70
69
|
return pulumi.get(self, "id")
|
|
71
70
|
|
|
72
|
-
@property
|
|
71
|
+
@_builtins.property
|
|
73
72
|
@pulumi.getter
|
|
74
|
-
def name(self) ->
|
|
73
|
+
def name(self) -> _builtins.str:
|
|
75
74
|
return pulumi.get(self, "name")
|
|
76
75
|
|
|
77
|
-
@property
|
|
76
|
+
@_builtins.property
|
|
78
77
|
@pulumi.getter(name="policyIds")
|
|
79
|
-
def policy_ids(self) -> Sequence[
|
|
78
|
+
def policy_ids(self) -> Sequence[_builtins.str]:
|
|
80
79
|
"""
|
|
81
80
|
A list of policy IDs associated with the alert channel.
|
|
82
81
|
"""
|
|
83
82
|
return pulumi.get(self, "policy_ids")
|
|
84
83
|
|
|
85
|
-
@property
|
|
84
|
+
@_builtins.property
|
|
86
85
|
@pulumi.getter
|
|
87
|
-
def type(self) ->
|
|
86
|
+
def type(self) -> _builtins.str:
|
|
88
87
|
"""
|
|
89
88
|
Alert channel type, either: `email`, `opsgenie`, `pagerduty`, `slack`, `victorops`, or `webhook`.
|
|
90
89
|
"""
|
|
@@ -105,17 +104,33 @@ class AwaitableGetAlertChannelResult(GetAlertChannelResult):
|
|
|
105
104
|
type=self.type)
|
|
106
105
|
|
|
107
106
|
|
|
108
|
-
def get_alert_channel(account_id: Optional[
|
|
109
|
-
name: Optional[
|
|
107
|
+
def get_alert_channel(account_id: Optional[_builtins.str] = None,
|
|
108
|
+
name: Optional[_builtins.str] = None,
|
|
110
109
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertChannelResult:
|
|
111
110
|
"""
|
|
112
111
|
Use this data source to get information about a specific alert channel in New Relic that already exists.
|
|
113
112
|
|
|
114
113
|
> **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
|
|
115
114
|
|
|
115
|
+
## Example Usage
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
```python
|
|
118
|
+
import pulumi
|
|
119
|
+
import pulumi_newrelic as newrelic
|
|
120
|
+
|
|
121
|
+
# Data source
|
|
122
|
+
foo = newrelic.get_alert_channel(name="foo@example.com")
|
|
123
|
+
# Resource
|
|
124
|
+
foo_alert_policy = newrelic.AlertPolicy("foo", name="foo")
|
|
125
|
+
# Using the data source and resource together
|
|
126
|
+
foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
|
|
127
|
+
policy_id=foo_alert_policy.id,
|
|
128
|
+
channel_id=foo.id)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param _builtins.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`.
|
|
133
|
+
:param _builtins.str name: The name of the alert channel in New Relic.
|
|
119
134
|
"""
|
|
120
135
|
__args__ = dict()
|
|
121
136
|
__args__['accountId'] = account_id
|
|
@@ -130,17 +145,33 @@ def get_alert_channel(account_id: Optional[builtins.str] = None,
|
|
|
130
145
|
name=pulumi.get(__ret__, 'name'),
|
|
131
146
|
policy_ids=pulumi.get(__ret__, 'policy_ids'),
|
|
132
147
|
type=pulumi.get(__ret__, 'type'))
|
|
133
|
-
def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[
|
|
134
|
-
name: Optional[pulumi.Input[
|
|
148
|
+
def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
149
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
135
150
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertChannelResult]:
|
|
136
151
|
"""
|
|
137
152
|
Use this data source to get information about a specific alert channel in New Relic that already exists.
|
|
138
153
|
|
|
139
154
|
> **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
|
|
140
155
|
|
|
156
|
+
## Example Usage
|
|
157
|
+
|
|
158
|
+
```python
|
|
159
|
+
import pulumi
|
|
160
|
+
import pulumi_newrelic as newrelic
|
|
161
|
+
|
|
162
|
+
# Data source
|
|
163
|
+
foo = newrelic.get_alert_channel(name="foo@example.com")
|
|
164
|
+
# Resource
|
|
165
|
+
foo_alert_policy = newrelic.AlertPolicy("foo", name="foo")
|
|
166
|
+
# Using the data source and resource together
|
|
167
|
+
foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
|
|
168
|
+
policy_id=foo_alert_policy.id,
|
|
169
|
+
channel_id=foo.id)
|
|
170
|
+
```
|
|
171
|
+
|
|
141
172
|
|
|
142
|
-
:param
|
|
143
|
-
:param
|
|
173
|
+
:param _builtins.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`.
|
|
174
|
+
:param _builtins.str name: The name of the alert channel in New Relic.
|
|
144
175
|
"""
|
|
145
176
|
__args__ = dict()
|
|
146
177
|
__args__['accountId'] = account_id
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -47,30 +46,30 @@ class GetAlertPolicyResult:
|
|
|
47
46
|
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
48
47
|
pulumi.set(__self__, "updated_at", updated_at)
|
|
49
48
|
|
|
50
|
-
@property
|
|
49
|
+
@_builtins.property
|
|
51
50
|
@pulumi.getter(name="accountId")
|
|
52
|
-
def account_id(self) ->
|
|
51
|
+
def account_id(self) -> _builtins.str:
|
|
53
52
|
return pulumi.get(self, "account_id")
|
|
54
53
|
|
|
55
|
-
@property
|
|
54
|
+
@_builtins.property
|
|
56
55
|
@pulumi.getter(name="createdAt")
|
|
57
|
-
def created_at(self) ->
|
|
56
|
+
def created_at(self) -> _builtins.str:
|
|
58
57
|
"""
|
|
59
58
|
The time the policy was created.
|
|
60
59
|
"""
|
|
61
60
|
return pulumi.get(self, "created_at")
|
|
62
61
|
|
|
63
|
-
@property
|
|
62
|
+
@_builtins.property
|
|
64
63
|
@pulumi.getter
|
|
65
|
-
def id(self) ->
|
|
64
|
+
def id(self) -> _builtins.str:
|
|
66
65
|
"""
|
|
67
66
|
The provider-assigned unique ID for this managed resource.
|
|
68
67
|
"""
|
|
69
68
|
return pulumi.get(self, "id")
|
|
70
69
|
|
|
71
|
-
@property
|
|
70
|
+
@_builtins.property
|
|
72
71
|
@pulumi.getter(name="incidentPreference")
|
|
73
|
-
def incident_preference(self) -> Optional[
|
|
72
|
+
def incident_preference(self) -> Optional[_builtins.str]:
|
|
74
73
|
"""
|
|
75
74
|
The rollup strategy for the policy, which can have one of the following values:
|
|
76
75
|
* `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.
|
|
@@ -79,14 +78,14 @@ class GetAlertPolicyResult:
|
|
|
79
78
|
"""
|
|
80
79
|
return pulumi.get(self, "incident_preference")
|
|
81
80
|
|
|
82
|
-
@property
|
|
81
|
+
@_builtins.property
|
|
83
82
|
@pulumi.getter
|
|
84
|
-
def name(self) ->
|
|
83
|
+
def name(self) -> _builtins.str:
|
|
85
84
|
return pulumi.get(self, "name")
|
|
86
85
|
|
|
87
|
-
@property
|
|
86
|
+
@_builtins.property
|
|
88
87
|
@pulumi.getter(name="updatedAt")
|
|
89
|
-
def updated_at(self) ->
|
|
88
|
+
def updated_at(self) -> _builtins.str:
|
|
90
89
|
"""
|
|
91
90
|
The time the policy was last updated.
|
|
92
91
|
"""
|
|
@@ -107,20 +106,33 @@ class AwaitableGetAlertPolicyResult(GetAlertPolicyResult):
|
|
|
107
106
|
updated_at=self.updated_at)
|
|
108
107
|
|
|
109
108
|
|
|
110
|
-
def get_alert_policy(account_id: Optional[
|
|
111
|
-
incident_preference: Optional[
|
|
112
|
-
name: Optional[
|
|
109
|
+
def get_alert_policy(account_id: Optional[_builtins.str] = None,
|
|
110
|
+
incident_preference: Optional[_builtins.str] = None,
|
|
111
|
+
name: Optional[_builtins.str] = None,
|
|
113
112
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertPolicyResult:
|
|
114
113
|
"""
|
|
115
114
|
Use this data source to get information about a specific alert policy in New Relic that already exists.
|
|
116
115
|
|
|
116
|
+
## Example Usage
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
```python
|
|
119
|
+
import pulumi
|
|
120
|
+
import pulumi_newrelic as newrelic
|
|
121
|
+
|
|
122
|
+
foo = newrelic.get_alert_channel(name="foo@example.com")
|
|
123
|
+
foo_get_alert_policy = newrelic.get_alert_policy(name="foo policy")
|
|
124
|
+
foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
|
|
125
|
+
policy_id=foo_get_alert_policy.id,
|
|
126
|
+
channel_id=foo.id)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param _builtins.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`.
|
|
131
|
+
:param _builtins.str incident_preference: The rollup strategy for the policy, which can have one of the following values:
|
|
120
132
|
* `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.
|
|
121
133
|
* `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.
|
|
122
134
|
* `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.
|
|
123
|
-
:param
|
|
135
|
+
:param _builtins.str name: The name of the alert policy in New Relic.
|
|
124
136
|
"""
|
|
125
137
|
__args__ = dict()
|
|
126
138
|
__args__['accountId'] = account_id
|
|
@@ -136,20 +148,33 @@ def get_alert_policy(account_id: Optional[builtins.str] = None,
|
|
|
136
148
|
incident_preference=pulumi.get(__ret__, 'incident_preference'),
|
|
137
149
|
name=pulumi.get(__ret__, 'name'),
|
|
138
150
|
updated_at=pulumi.get(__ret__, 'updated_at'))
|
|
139
|
-
def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[
|
|
140
|
-
incident_preference: Optional[pulumi.Input[Optional[
|
|
141
|
-
name: Optional[pulumi.Input[
|
|
151
|
+
def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
152
|
+
incident_preference: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
153
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
142
154
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertPolicyResult]:
|
|
143
155
|
"""
|
|
144
156
|
Use this data source to get information about a specific alert policy in New Relic that already exists.
|
|
145
157
|
|
|
158
|
+
## Example Usage
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
import pulumi
|
|
162
|
+
import pulumi_newrelic as newrelic
|
|
163
|
+
|
|
164
|
+
foo = newrelic.get_alert_channel(name="foo@example.com")
|
|
165
|
+
foo_get_alert_policy = newrelic.get_alert_policy(name="foo policy")
|
|
166
|
+
foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
|
|
167
|
+
policy_id=foo_get_alert_policy.id,
|
|
168
|
+
channel_id=foo.id)
|
|
169
|
+
```
|
|
170
|
+
|
|
146
171
|
|
|
147
|
-
:param
|
|
148
|
-
:param
|
|
172
|
+
:param _builtins.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`.
|
|
173
|
+
:param _builtins.str incident_preference: The rollup strategy for the policy, which can have one of the following values:
|
|
149
174
|
* `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.
|
|
150
175
|
* `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.
|
|
151
176
|
* `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.
|
|
152
|
-
:param
|
|
177
|
+
:param _builtins.str name: The name of the alert policy in New Relic.
|
|
153
178
|
"""
|
|
154
179
|
__args__ = dict()
|
|
155
180
|
__args__['accountId'] = account_id
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -41,33 +40,33 @@ class GetApplicationResult:
|
|
|
41
40
|
raise TypeError("Expected argument 'name' to be a str")
|
|
42
41
|
pulumi.set(__self__, "name", name)
|
|
43
42
|
|
|
44
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
45
44
|
@pulumi.getter(name="hostIds")
|
|
46
|
-
def host_ids(self) -> Sequence[
|
|
45
|
+
def host_ids(self) -> Sequence[_builtins.str]:
|
|
47
46
|
"""
|
|
48
47
|
A list of host IDs associated with the application.
|
|
49
48
|
"""
|
|
50
49
|
return pulumi.get(self, "host_ids")
|
|
51
50
|
|
|
52
|
-
@property
|
|
51
|
+
@_builtins.property
|
|
53
52
|
@pulumi.getter
|
|
54
|
-
def id(self) ->
|
|
53
|
+
def id(self) -> _builtins.str:
|
|
55
54
|
"""
|
|
56
55
|
The provider-assigned unique ID for this managed resource.
|
|
57
56
|
"""
|
|
58
57
|
return pulumi.get(self, "id")
|
|
59
58
|
|
|
60
|
-
@property
|
|
59
|
+
@_builtins.property
|
|
61
60
|
@pulumi.getter(name="instanceIds")
|
|
62
|
-
def instance_ids(self) -> Sequence[
|
|
61
|
+
def instance_ids(self) -> Sequence[_builtins.str]:
|
|
63
62
|
"""
|
|
64
63
|
A list of instance IDs associated with the application.
|
|
65
64
|
"""
|
|
66
65
|
return pulumi.get(self, "instance_ids")
|
|
67
66
|
|
|
68
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
69
68
|
@pulumi.getter
|
|
70
|
-
def name(self) ->
|
|
69
|
+
def name(self) -> _builtins.str:
|
|
71
70
|
return pulumi.get(self, "name")
|
|
72
71
|
|
|
73
72
|
|
|
@@ -83,7 +82,7 @@ class AwaitableGetApplicationResult(GetApplicationResult):
|
|
|
83
82
|
name=self.name)
|
|
84
83
|
|
|
85
84
|
|
|
86
|
-
def get_application(name: Optional[
|
|
85
|
+
def get_application(name: Optional[_builtins.str] = None,
|
|
87
86
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApplicationResult:
|
|
88
87
|
"""
|
|
89
88
|
#### DEPRECATED! Use at your own risk. Use the `get_entity` data source instead. This feature may be removed in the next major release
|
|
@@ -115,7 +114,7 @@ def get_application(name: Optional[builtins.str] = None,
|
|
|
115
114
|
```
|
|
116
115
|
|
|
117
116
|
|
|
118
|
-
:param
|
|
117
|
+
:param _builtins.str name: The name of the application in New Relic.
|
|
119
118
|
"""
|
|
120
119
|
__args__ = dict()
|
|
121
120
|
__args__['name'] = name
|
|
@@ -127,7 +126,7 @@ def get_application(name: Optional[builtins.str] = None,
|
|
|
127
126
|
id=pulumi.get(__ret__, 'id'),
|
|
128
127
|
instance_ids=pulumi.get(__ret__, 'instance_ids'),
|
|
129
128
|
name=pulumi.get(__ret__, 'name'))
|
|
130
|
-
def get_application_output(name: Optional[pulumi.Input[
|
|
129
|
+
def get_application_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
131
130
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetApplicationResult]:
|
|
132
131
|
"""
|
|
133
132
|
#### DEPRECATED! Use at your own risk. Use the `get_entity` data source instead. This feature may be removed in the next major release
|
|
@@ -159,7 +158,7 @@ def get_application_output(name: Optional[pulumi.Input[builtins.str]] = None,
|
|
|
159
158
|
```
|
|
160
159
|
|
|
161
160
|
|
|
162
|
-
:param
|
|
161
|
+
:param _builtins.str name: The name of the application in New Relic.
|
|
163
162
|
"""
|
|
164
163
|
__args__ = dict()
|
|
165
164
|
__args__['name'] = name
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -35,17 +34,17 @@ class GetAuthenticationDomainResult:
|
|
|
35
34
|
raise TypeError("Expected argument 'name' to be a str")
|
|
36
35
|
pulumi.set(__self__, "name", name)
|
|
37
36
|
|
|
38
|
-
@property
|
|
37
|
+
@_builtins.property
|
|
39
38
|
@pulumi.getter
|
|
40
|
-
def id(self) ->
|
|
39
|
+
def id(self) -> _builtins.str:
|
|
41
40
|
"""
|
|
42
41
|
The ID of the matching authentication domain fetched.
|
|
43
42
|
"""
|
|
44
43
|
return pulumi.get(self, "id")
|
|
45
44
|
|
|
46
|
-
@property
|
|
45
|
+
@_builtins.property
|
|
47
46
|
@pulumi.getter
|
|
48
|
-
def name(self) ->
|
|
47
|
+
def name(self) -> _builtins.str:
|
|
49
48
|
return pulumi.get(self, "name")
|
|
50
49
|
|
|
51
50
|
|
|
@@ -59,7 +58,7 @@ class AwaitableGetAuthenticationDomainResult(GetAuthenticationDomainResult):
|
|
|
59
58
|
name=self.name)
|
|
60
59
|
|
|
61
60
|
|
|
62
|
-
def get_authentication_domain(name: Optional[
|
|
61
|
+
def get_authentication_domain(name: Optional[_builtins.str] = None,
|
|
63
62
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAuthenticationDomainResult:
|
|
64
63
|
"""
|
|
65
64
|
Use this data source to fetch the ID of an authentication domain belonging to your account, matching the specified name.
|
|
@@ -75,7 +74,7 @@ def get_authentication_domain(name: Optional[builtins.str] = None,
|
|
|
75
74
|
```
|
|
76
75
|
|
|
77
76
|
|
|
78
|
-
:param
|
|
77
|
+
:param _builtins.str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
|
|
79
78
|
"""
|
|
80
79
|
__args__ = dict()
|
|
81
80
|
__args__['name'] = name
|
|
@@ -85,7 +84,7 @@ def get_authentication_domain(name: Optional[builtins.str] = None,
|
|
|
85
84
|
return AwaitableGetAuthenticationDomainResult(
|
|
86
85
|
id=pulumi.get(__ret__, 'id'),
|
|
87
86
|
name=pulumi.get(__ret__, 'name'))
|
|
88
|
-
def get_authentication_domain_output(name: Optional[pulumi.Input[
|
|
87
|
+
def get_authentication_domain_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
89
88
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAuthenticationDomainResult]:
|
|
90
89
|
"""
|
|
91
90
|
Use this data source to fetch the ID of an authentication domain belonging to your account, matching the specified name.
|
|
@@ -101,7 +100,7 @@ def get_authentication_domain_output(name: Optional[pulumi.Input[builtins.str]]
|
|
|
101
100
|
```
|
|
102
101
|
|
|
103
102
|
|
|
104
|
-
:param
|
|
103
|
+
:param _builtins.str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
|
|
105
104
|
"""
|
|
106
105
|
__args__ = dict()
|
|
107
106
|
__args__['name'] = name
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -41,27 +40,27 @@ class GetCloudAccountResult:
|
|
|
41
40
|
raise TypeError("Expected argument 'name' to be a str")
|
|
42
41
|
pulumi.set(__self__, "name", name)
|
|
43
42
|
|
|
44
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
45
44
|
@pulumi.getter(name="accountId")
|
|
46
|
-
def account_id(self) -> Optional[
|
|
45
|
+
def account_id(self) -> Optional[_builtins.str]:
|
|
47
46
|
return pulumi.get(self, "account_id")
|
|
48
47
|
|
|
49
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
50
49
|
@pulumi.getter(name="cloudProvider")
|
|
51
|
-
def cloud_provider(self) ->
|
|
50
|
+
def cloud_provider(self) -> _builtins.str:
|
|
52
51
|
return pulumi.get(self, "cloud_provider")
|
|
53
52
|
|
|
54
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
55
54
|
@pulumi.getter
|
|
56
|
-
def id(self) ->
|
|
55
|
+
def id(self) -> _builtins.str:
|
|
57
56
|
"""
|
|
58
57
|
The provider-assigned unique ID for this managed resource.
|
|
59
58
|
"""
|
|
60
59
|
return pulumi.get(self, "id")
|
|
61
60
|
|
|
62
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
63
62
|
@pulumi.getter
|
|
64
|
-
def name(self) ->
|
|
63
|
+
def name(self) -> _builtins.str:
|
|
65
64
|
return pulumi.get(self, "name")
|
|
66
65
|
|
|
67
66
|
|
|
@@ -77,9 +76,9 @@ class AwaitableGetCloudAccountResult(GetCloudAccountResult):
|
|
|
77
76
|
name=self.name)
|
|
78
77
|
|
|
79
78
|
|
|
80
|
-
def get_cloud_account(account_id: Optional[
|
|
81
|
-
cloud_provider: Optional[
|
|
82
|
-
name: Optional[
|
|
79
|
+
def get_cloud_account(account_id: Optional[_builtins.str] = None,
|
|
80
|
+
cloud_provider: Optional[_builtins.str] = None,
|
|
81
|
+
name: Optional[_builtins.str] = None,
|
|
83
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCloudAccountResult:
|
|
84
83
|
"""
|
|
85
84
|
Use this data source to get information about a specific cloud account linked to New Relic.
|
|
@@ -97,9 +96,9 @@ def get_cloud_account(account_id: Optional[builtins.str] = None,
|
|
|
97
96
|
```
|
|
98
97
|
|
|
99
98
|
|
|
100
|
-
:param
|
|
101
|
-
:param
|
|
102
|
-
:param
|
|
99
|
+
:param _builtins.str account_id: The account ID in New Relic.
|
|
100
|
+
:param _builtins.str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
|
|
101
|
+
:param _builtins.str name: The cloud account name in New Relic.
|
|
103
102
|
"""
|
|
104
103
|
__args__ = dict()
|
|
105
104
|
__args__['accountId'] = account_id
|
|
@@ -113,9 +112,9 @@ def get_cloud_account(account_id: Optional[builtins.str] = None,
|
|
|
113
112
|
cloud_provider=pulumi.get(__ret__, 'cloud_provider'),
|
|
114
113
|
id=pulumi.get(__ret__, 'id'),
|
|
115
114
|
name=pulumi.get(__ret__, 'name'))
|
|
116
|
-
def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[
|
|
117
|
-
cloud_provider: Optional[pulumi.Input[
|
|
118
|
-
name: Optional[pulumi.Input[
|
|
115
|
+
def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
116
|
+
cloud_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
117
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
119
118
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCloudAccountResult]:
|
|
120
119
|
"""
|
|
121
120
|
Use this data source to get information about a specific cloud account linked to New Relic.
|
|
@@ -133,9 +132,9 @@ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[builtins
|
|
|
133
132
|
```
|
|
134
133
|
|
|
135
134
|
|
|
136
|
-
:param
|
|
137
|
-
:param
|
|
138
|
-
:param
|
|
135
|
+
:param _builtins.str account_id: The account ID in New Relic.
|
|
136
|
+
:param _builtins.str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
|
|
137
|
+
:param _builtins.str name: The cloud account name in New Relic.
|
|
139
138
|
"""
|
|
140
139
|
__args__ = dict()
|
|
141
140
|
__args__['accountId'] = account_id
|