pulumi-newrelic 5.19.0a1708065288__tar.gz → 5.20.0__tar.gz
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-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/PKG-INFO +1 -1
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/__init__.py +20 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_policy.py +26 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/_inputs.py +4 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/outputs.py +4 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_alert_policy.py +3 -3
- pulumi_newrelic-5.20.0/pulumi_newrelic/get_group.py +141 -0
- pulumi_newrelic-5.20.0/pulumi_newrelic/get_user.py +153 -0
- pulumi_newrelic-5.20.0/pulumi_newrelic/group.py +412 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/notification_channel.py +26 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/notification_destination.py +140 -2
- pulumi_newrelic-5.20.0/pulumi_newrelic/user.py +358 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/PKG-INFO +1 -1
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/SOURCES.txt +4 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pyproject.toml +1 -1
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/README.md +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/_inputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/_utilities.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/account_management.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_channel.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_condition.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_muting_rule.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_policy_channel.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/api_access_key.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/browser_application.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/__init__.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_govcloud_integrations.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_integrations.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_link_account.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/azure_integrations.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/azure_link_account.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/gcp_integrations.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/gcp_link_account.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/config/__init__.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/config/__init__.pyi +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/config/vars.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/data_partition_rule.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/entity_tags.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/events_to_metrics_rule.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_account.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_alert_channel.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_application.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_authentication_domain.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_cloud_account.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_entity.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_key_transaction.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_notification_destination.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_obfuscation_expression.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_service_level_alert_helper.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_test_grok_pattern.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/infra_alert_condition.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/__init__.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/_inputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/event.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/outputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/log_parsing_rule.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/monitor_downtime.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/nrql_alert_condition.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/nrql_drop_rule.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/obfuscation_expression.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/obfuscation_rule.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/one_dashboard.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/one_dashboard_json.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/one_dashboard_raw.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/outputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/__init__.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/_inputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/application_settings.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/outputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/workload.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/provider.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/pulumi-plugin.json +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/py.typed +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/service_level.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/__init__.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/_inputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/alert_condition.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/broken_links_monitor.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/cert_check_monitor.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/get_private_location.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/get_secure_credential.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/monitor.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/multi_location_alert_condition.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/outputs.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/private_location.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/script_monitor.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/secure_credential.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/step_monitor.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/workflow.py +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/dependency_links.txt +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/requires.txt +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/top_level.txt +0 -0
- {pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/setup.cfg +0 -0
@@ -23,11 +23,14 @@ from .get_application import *
|
|
23
23
|
from .get_authentication_domain import *
|
24
24
|
from .get_cloud_account import *
|
25
25
|
from .get_entity import *
|
26
|
+
from .get_group import *
|
26
27
|
from .get_key_transaction import *
|
27
28
|
from .get_notification_destination import *
|
28
29
|
from .get_obfuscation_expression import *
|
29
30
|
from .get_service_level_alert_helper import *
|
30
31
|
from .get_test_grok_pattern import *
|
32
|
+
from .get_user import *
|
33
|
+
from .group import *
|
31
34
|
from .infra_alert_condition import *
|
32
35
|
from .log_parsing_rule import *
|
33
36
|
from .monitor_downtime import *
|
@@ -42,6 +45,7 @@ from .one_dashboard_json import *
|
|
42
45
|
from .one_dashboard_raw import *
|
43
46
|
from .provider import *
|
44
47
|
from .service_level import *
|
48
|
+
from .user import *
|
45
49
|
from .workflow import *
|
46
50
|
from ._inputs import *
|
47
51
|
from . import outputs
|
@@ -220,6 +224,14 @@ _utilities.register(
|
|
220
224
|
"newrelic:index/eventsToMetricsRule:EventsToMetricsRule": "EventsToMetricsRule"
|
221
225
|
}
|
222
226
|
},
|
227
|
+
{
|
228
|
+
"pkg": "newrelic",
|
229
|
+
"mod": "index/group",
|
230
|
+
"fqn": "pulumi_newrelic",
|
231
|
+
"classes": {
|
232
|
+
"newrelic:index/group:Group": "Group"
|
233
|
+
}
|
234
|
+
},
|
223
235
|
{
|
224
236
|
"pkg": "newrelic",
|
225
237
|
"mod": "index/infraAlertCondition",
|
@@ -324,6 +336,14 @@ _utilities.register(
|
|
324
336
|
"newrelic:index/serviceLevel:ServiceLevel": "ServiceLevel"
|
325
337
|
}
|
326
338
|
},
|
339
|
+
{
|
340
|
+
"pkg": "newrelic",
|
341
|
+
"mod": "index/user",
|
342
|
+
"fqn": "pulumi_newrelic",
|
343
|
+
"classes": {
|
344
|
+
"newrelic:index/user:User": "User"
|
345
|
+
}
|
346
|
+
},
|
327
347
|
{
|
328
348
|
"pkg": "newrelic",
|
329
349
|
"mod": "index/workflow",
|
{pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_policy.py
RENAMED
@@ -191,6 +191,18 @@ class AlertPolicy(pulumi.CustomResource):
|
|
191
191
|
```
|
192
192
|
### Provision multiple notification channels and add those channels to a policy
|
193
193
|
|
194
|
+
The following arguments are supported:
|
195
|
+
|
196
|
+
* `name` - (Required) The name of the policy.
|
197
|
+
* `incident_preference` - (Optional) The rollup strategy for the policy, which can have one of the following values (the default value is `PER_POLICY`):
|
198
|
+
* `PER_POLICY` - This sets the incident grouping preference of the policy to **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.
|
199
|
+
* `PER_CONDITION` - This sets the incident grouping preference of the policy to **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.
|
200
|
+
* `PER_CONDITION_AND_TARGET` - This sets the incident grouping preference of the policy to **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.
|
201
|
+
* `channel_ids` - (Optional) **DEPRECATED** The `channel_ids` argument is deprecated and will be removed in the next major release of the provider. 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 via `pulumi import` (see Import for info).
|
202
|
+
* `account_id` - (Optional) 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`.
|
203
|
+
## Additional Examples
|
204
|
+
|
205
|
+
##### Provision multiple notification channels and add those channels to a policy
|
194
206
|
```python
|
195
207
|
import pulumi
|
196
208
|
import pulumi_newrelic as newrelic
|
@@ -217,6 +229,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
217
229
|
email_channel.id,
|
218
230
|
])
|
219
231
|
```
|
232
|
+
|
220
233
|
### Reference existing notification channels and add those channel to a policy
|
221
234
|
```python
|
222
235
|
import pulumi
|
@@ -271,6 +284,18 @@ class AlertPolicy(pulumi.CustomResource):
|
|
271
284
|
```
|
272
285
|
### Provision multiple notification channels and add those channels to a policy
|
273
286
|
|
287
|
+
The following arguments are supported:
|
288
|
+
|
289
|
+
* `name` - (Required) The name of the policy.
|
290
|
+
* `incident_preference` - (Optional) The rollup strategy for the policy, which can have one of the following values (the default value is `PER_POLICY`):
|
291
|
+
* `PER_POLICY` - This sets the incident grouping preference of the policy to **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.
|
292
|
+
* `PER_CONDITION` - This sets the incident grouping preference of the policy to **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.
|
293
|
+
* `PER_CONDITION_AND_TARGET` - This sets the incident grouping preference of the policy to **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.
|
294
|
+
* `channel_ids` - (Optional) **DEPRECATED** The `channel_ids` argument is deprecated and will be removed in the next major release of the provider. 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 via `pulumi import` (see Import for info).
|
295
|
+
* `account_id` - (Optional) 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`.
|
296
|
+
## Additional Examples
|
297
|
+
|
298
|
+
##### Provision multiple notification channels and add those channels to a policy
|
274
299
|
```python
|
275
300
|
import pulumi
|
276
301
|
import pulumi_newrelic as newrelic
|
@@ -297,6 +322,7 @@ class AlertPolicy(pulumi.CustomResource):
|
|
297
322
|
email_channel.id,
|
298
323
|
])
|
299
324
|
```
|
325
|
+
|
300
326
|
### Reference existing notification channels and add those channel to a policy
|
301
327
|
```python
|
302
328
|
import pulumi
|
{pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/_inputs.py
RENAMED
@@ -5966,6 +5966,8 @@ class AzureIntegrationsMonitorArgs:
|
|
5966
5966
|
resource_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
5967
5967
|
"""
|
5968
5968
|
:param pulumi.Input[bool] enabled: A boolean value, that specifies if the integration needs to be active. Defaults to 'true' if not specified.
|
5969
|
+
|
5970
|
+
> **IMPORTANT!** Using the `monitor` integration along with other polling integrations in this resource might lead to duplication of metrics. More information about this scenario may be found in the note in [this section](https://docs.newrelic.com/docs/infrastructure/microsoft-azure-integrations/azure-integrations-list/azure-monitor/#migration-from-polling) of New Relic's documentation on the Azure Monitor integration.
|
5969
5971
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] exclude_tags: A list of resource tags associated with the resources that need to be excluded from monitoring.
|
5970
5972
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] include_tags: A list of resource tags associated with the resources that need to be monitored, in a "key:value" format. If this is not specified, all resources will be monitored.
|
5971
5973
|
:param pulumi.Input[int] metrics_polling_interval: The data polling interval in seconds.
|
@@ -5992,6 +5994,8 @@ class AzureIntegrationsMonitorArgs:
|
|
5992
5994
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
5993
5995
|
"""
|
5994
5996
|
A boolean value, that specifies if the integration needs to be active. Defaults to 'true' if not specified.
|
5997
|
+
|
5998
|
+
> **IMPORTANT!** Using the `monitor` integration along with other polling integrations in this resource might lead to duplication of metrics. More information about this scenario may be found in the note in [this section](https://docs.newrelic.com/docs/infrastructure/microsoft-azure-integrations/azure-integrations-list/azure-monitor/#migration-from-polling) of New Relic's documentation on the Azure Monitor integration.
|
5995
5999
|
"""
|
5996
6000
|
return pulumi.get(self, "enabled")
|
5997
6001
|
|
{pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/outputs.py
RENAMED
@@ -6750,6 +6750,8 @@ class AzureIntegrationsMonitor(dict):
|
|
6750
6750
|
resource_types: Optional[Sequence[str]] = None):
|
6751
6751
|
"""
|
6752
6752
|
:param bool enabled: A boolean value, that specifies if the integration needs to be active. Defaults to 'true' if not specified.
|
6753
|
+
|
6754
|
+
> **IMPORTANT!** Using the `monitor` integration along with other polling integrations in this resource might lead to duplication of metrics. More information about this scenario may be found in the note in [this section](https://docs.newrelic.com/docs/infrastructure/microsoft-azure-integrations/azure-integrations-list/azure-monitor/#migration-from-polling) of New Relic's documentation on the Azure Monitor integration.
|
6753
6755
|
:param Sequence[str] exclude_tags: A list of resource tags associated with the resources that need to be excluded from monitoring.
|
6754
6756
|
:param Sequence[str] include_tags: A list of resource tags associated with the resources that need to be monitored, in a "key:value" format. If this is not specified, all resources will be monitored.
|
6755
6757
|
:param int metrics_polling_interval: The data polling interval in seconds.
|
@@ -6776,6 +6778,8 @@ class AzureIntegrationsMonitor(dict):
|
|
6776
6778
|
def enabled(self) -> Optional[bool]:
|
6777
6779
|
"""
|
6778
6780
|
A boolean value, that specifies if the integration needs to be active. Defaults to 'true' if not specified.
|
6781
|
+
|
6782
|
+
> **IMPORTANT!** Using the `monitor` integration along with other polling integrations in this resource might lead to duplication of metrics. More information about this scenario may be found in the note in [this section](https://docs.newrelic.com/docs/infrastructure/microsoft-azure-integrations/azure-integrations-list/azure-monitor/#migration-from-polling) of New Relic's documentation on the Azure Monitor integration.
|
6779
6783
|
"""
|
6780
6784
|
return pulumi.get(self, "enabled")
|
6781
6785
|
|
{pulumi_newrelic-5.19.0a1708065288 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_alert_policy.py
RENAMED
@@ -66,7 +66,7 @@ class GetAlertPolicyResult:
|
|
66
66
|
@pulumi.getter(name="incidentPreference")
|
67
67
|
def incident_preference(self) -> Optional[str]:
|
68
68
|
"""
|
69
|
-
The rollup strategy for the policy
|
69
|
+
The rollup strategy for the policy, which can have one of the following values:
|
70
70
|
"""
|
71
71
|
return pulumi.get(self, "incident_preference")
|
72
72
|
|
@@ -107,7 +107,7 @@ def get_alert_policy(account_id: Optional[int] = None,
|
|
107
107
|
|
108
108
|
|
109
109
|
:param int 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
|
-
:param str incident_preference: The rollup strategy for the policy
|
110
|
+
:param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
|
111
111
|
:param str name: The name of the alert policy in New Relic.
|
112
112
|
"""
|
113
113
|
__args__ = dict()
|
@@ -136,7 +136,7 @@ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[int]]] =
|
|
136
136
|
|
137
137
|
|
138
138
|
:param int 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
|
-
:param str incident_preference: The rollup strategy for the policy
|
139
|
+
:param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
|
140
140
|
:param str name: The name of the alert policy in New Relic.
|
141
141
|
"""
|
142
142
|
...
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from . import _utilities
|
11
|
+
|
12
|
+
__all__ = [
|
13
|
+
'GetGroupResult',
|
14
|
+
'AwaitableGetGroupResult',
|
15
|
+
'get_group',
|
16
|
+
'get_group_output',
|
17
|
+
]
|
18
|
+
|
19
|
+
@pulumi.output_type
|
20
|
+
class GetGroupResult:
|
21
|
+
"""
|
22
|
+
A collection of values returned by getGroup.
|
23
|
+
"""
|
24
|
+
def __init__(__self__, authentication_domain_id=None, id=None, name=None, user_ids=None):
|
25
|
+
if authentication_domain_id and not isinstance(authentication_domain_id, str):
|
26
|
+
raise TypeError("Expected argument 'authentication_domain_id' to be a str")
|
27
|
+
pulumi.set(__self__, "authentication_domain_id", authentication_domain_id)
|
28
|
+
if id and not isinstance(id, str):
|
29
|
+
raise TypeError("Expected argument 'id' to be a str")
|
30
|
+
pulumi.set(__self__, "id", id)
|
31
|
+
if name and not isinstance(name, str):
|
32
|
+
raise TypeError("Expected argument 'name' to be a str")
|
33
|
+
pulumi.set(__self__, "name", name)
|
34
|
+
if user_ids and not isinstance(user_ids, list):
|
35
|
+
raise TypeError("Expected argument 'user_ids' to be a list")
|
36
|
+
pulumi.set(__self__, "user_ids", user_ids)
|
37
|
+
|
38
|
+
@property
|
39
|
+
@pulumi.getter(name="authenticationDomainId")
|
40
|
+
def authentication_domain_id(self) -> str:
|
41
|
+
return pulumi.get(self, "authentication_domain_id")
|
42
|
+
|
43
|
+
@property
|
44
|
+
@pulumi.getter
|
45
|
+
def id(self) -> str:
|
46
|
+
"""
|
47
|
+
The ID of the fetched matching group.
|
48
|
+
"""
|
49
|
+
return pulumi.get(self, "id")
|
50
|
+
|
51
|
+
@property
|
52
|
+
@pulumi.getter
|
53
|
+
def name(self) -> str:
|
54
|
+
return pulumi.get(self, "name")
|
55
|
+
|
56
|
+
@property
|
57
|
+
@pulumi.getter(name="userIds")
|
58
|
+
def user_ids(self) -> Sequence[str]:
|
59
|
+
"""
|
60
|
+
IDs of users who belong to the group. In the absence of any users in the group, the value of this attribute would be an empty list.
|
61
|
+
"""
|
62
|
+
return pulumi.get(self, "user_ids")
|
63
|
+
|
64
|
+
|
65
|
+
class AwaitableGetGroupResult(GetGroupResult):
|
66
|
+
# pylint: disable=using-constant-test
|
67
|
+
def __await__(self):
|
68
|
+
if False:
|
69
|
+
yield self
|
70
|
+
return GetGroupResult(
|
71
|
+
authentication_domain_id=self.authentication_domain_id,
|
72
|
+
id=self.id,
|
73
|
+
name=self.name,
|
74
|
+
user_ids=self.user_ids)
|
75
|
+
|
76
|
+
|
77
|
+
def get_group(authentication_domain_id: Optional[str] = None,
|
78
|
+
name: Optional[str] = None,
|
79
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupResult:
|
80
|
+
"""
|
81
|
+
The `Group` data source helps search for a group by its name and retrieve the ID of the matching group and other associated attributes.
|
82
|
+
|
83
|
+
## Example Usage
|
84
|
+
|
85
|
+
The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
|
86
|
+
|
87
|
+
```python
|
88
|
+
import pulumi
|
89
|
+
import pulumi_newrelic as newrelic
|
90
|
+
|
91
|
+
foo_authentication_domain = newrelic.get_authentication_domain(name="Test Authentication Domain")
|
92
|
+
foo_group = newrelic.get_group(authentication_domain_id=foo_authentication_domain.id,
|
93
|
+
name="Test Group")
|
94
|
+
```
|
95
|
+
|
96
|
+
|
97
|
+
:param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
|
98
|
+
:param str name: The name of the group to search for.
|
99
|
+
|
100
|
+
> **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
|
101
|
+
"""
|
102
|
+
__args__ = dict()
|
103
|
+
__args__['authenticationDomainId'] = authentication_domain_id
|
104
|
+
__args__['name'] = name
|
105
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
106
|
+
__ret__ = pulumi.runtime.invoke('newrelic:index/getGroup:getGroup', __args__, opts=opts, typ=GetGroupResult).value
|
107
|
+
|
108
|
+
return AwaitableGetGroupResult(
|
109
|
+
authentication_domain_id=pulumi.get(__ret__, 'authentication_domain_id'),
|
110
|
+
id=pulumi.get(__ret__, 'id'),
|
111
|
+
name=pulumi.get(__ret__, 'name'),
|
112
|
+
user_ids=pulumi.get(__ret__, 'user_ids'))
|
113
|
+
|
114
|
+
|
115
|
+
@_utilities.lift_output_func(get_group)
|
116
|
+
def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
117
|
+
name: Optional[pulumi.Input[str]] = None,
|
118
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGroupResult]:
|
119
|
+
"""
|
120
|
+
The `Group` data source helps search for a group by its name and retrieve the ID of the matching group and other associated attributes.
|
121
|
+
|
122
|
+
## Example Usage
|
123
|
+
|
124
|
+
The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
|
125
|
+
|
126
|
+
```python
|
127
|
+
import pulumi
|
128
|
+
import pulumi_newrelic as newrelic
|
129
|
+
|
130
|
+
foo_authentication_domain = newrelic.get_authentication_domain(name="Test Authentication Domain")
|
131
|
+
foo_group = newrelic.get_group(authentication_domain_id=foo_authentication_domain.id,
|
132
|
+
name="Test Group")
|
133
|
+
```
|
134
|
+
|
135
|
+
|
136
|
+
:param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
|
137
|
+
:param str name: The name of the group to search for.
|
138
|
+
|
139
|
+
> **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
|
140
|
+
"""
|
141
|
+
...
|
@@ -0,0 +1,153 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from . import _utilities
|
11
|
+
|
12
|
+
__all__ = [
|
13
|
+
'GetUserResult',
|
14
|
+
'AwaitableGetUserResult',
|
15
|
+
'get_user',
|
16
|
+
'get_user_output',
|
17
|
+
]
|
18
|
+
|
19
|
+
@pulumi.output_type
|
20
|
+
class GetUserResult:
|
21
|
+
"""
|
22
|
+
A collection of values returned by getUser.
|
23
|
+
"""
|
24
|
+
def __init__(__self__, authentication_domain_id=None, email_id=None, id=None, name=None):
|
25
|
+
if authentication_domain_id and not isinstance(authentication_domain_id, str):
|
26
|
+
raise TypeError("Expected argument 'authentication_domain_id' to be a str")
|
27
|
+
pulumi.set(__self__, "authentication_domain_id", authentication_domain_id)
|
28
|
+
if email_id and not isinstance(email_id, str):
|
29
|
+
raise TypeError("Expected argument 'email_id' to be a str")
|
30
|
+
pulumi.set(__self__, "email_id", email_id)
|
31
|
+
if id and not isinstance(id, str):
|
32
|
+
raise TypeError("Expected argument 'id' to be a str")
|
33
|
+
pulumi.set(__self__, "id", id)
|
34
|
+
if name and not isinstance(name, str):
|
35
|
+
raise TypeError("Expected argument 'name' to be a str")
|
36
|
+
pulumi.set(__self__, "name", name)
|
37
|
+
|
38
|
+
@property
|
39
|
+
@pulumi.getter(name="authenticationDomainId")
|
40
|
+
def authentication_domain_id(self) -> str:
|
41
|
+
return pulumi.get(self, "authentication_domain_id")
|
42
|
+
|
43
|
+
@property
|
44
|
+
@pulumi.getter(name="emailId")
|
45
|
+
def email_id(self) -> str:
|
46
|
+
return pulumi.get(self, "email_id")
|
47
|
+
|
48
|
+
@property
|
49
|
+
@pulumi.getter
|
50
|
+
def id(self) -> str:
|
51
|
+
"""
|
52
|
+
The ID of the matching user fetched.
|
53
|
+
"""
|
54
|
+
return pulumi.get(self, "id")
|
55
|
+
|
56
|
+
@property
|
57
|
+
@pulumi.getter
|
58
|
+
def name(self) -> str:
|
59
|
+
return pulumi.get(self, "name")
|
60
|
+
|
61
|
+
|
62
|
+
class AwaitableGetUserResult(GetUserResult):
|
63
|
+
# pylint: disable=using-constant-test
|
64
|
+
def __await__(self):
|
65
|
+
if False:
|
66
|
+
yield self
|
67
|
+
return GetUserResult(
|
68
|
+
authentication_domain_id=self.authentication_domain_id,
|
69
|
+
email_id=self.email_id,
|
70
|
+
id=self.id,
|
71
|
+
name=self.name)
|
72
|
+
|
73
|
+
|
74
|
+
def get_user(authentication_domain_id: Optional[str] = None,
|
75
|
+
email_id: Optional[str] = None,
|
76
|
+
name: Optional[str] = None,
|
77
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserResult:
|
78
|
+
"""
|
79
|
+
The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
|
80
|
+
|
81
|
+
## Example Usage
|
82
|
+
|
83
|
+
The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
|
84
|
+
```python
|
85
|
+
import pulumi
|
86
|
+
import pulumi_newrelic as newrelic
|
87
|
+
|
88
|
+
foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
|
89
|
+
user_one = newrelic.get_user(authentication_domain_id=foo.id,
|
90
|
+
name="Test User")
|
91
|
+
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
92
|
+
email_id="test_user@random.com")
|
93
|
+
```
|
94
|
+
|
95
|
+
|
96
|
+
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
97
|
+
:param str email_id: The email ID of the user to search for.
|
98
|
+
|
99
|
+
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
100
|
+
|
101
|
+
> **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
|
102
|
+
|
103
|
+
> **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
|
104
|
+
:param str name: The name of the user to search for.
|
105
|
+
"""
|
106
|
+
__args__ = dict()
|
107
|
+
__args__['authenticationDomainId'] = authentication_domain_id
|
108
|
+
__args__['emailId'] = email_id
|
109
|
+
__args__['name'] = name
|
110
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
111
|
+
__ret__ = pulumi.runtime.invoke('newrelic:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult).value
|
112
|
+
|
113
|
+
return AwaitableGetUserResult(
|
114
|
+
authentication_domain_id=pulumi.get(__ret__, 'authentication_domain_id'),
|
115
|
+
email_id=pulumi.get(__ret__, 'email_id'),
|
116
|
+
id=pulumi.get(__ret__, 'id'),
|
117
|
+
name=pulumi.get(__ret__, 'name'))
|
118
|
+
|
119
|
+
|
120
|
+
@_utilities.lift_output_func(get_user)
|
121
|
+
def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
122
|
+
email_id: Optional[pulumi.Input[Optional[str]]] = None,
|
123
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
124
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserResult]:
|
125
|
+
"""
|
126
|
+
The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
|
127
|
+
|
128
|
+
## Example Usage
|
129
|
+
|
130
|
+
The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
|
131
|
+
```python
|
132
|
+
import pulumi
|
133
|
+
import pulumi_newrelic as newrelic
|
134
|
+
|
135
|
+
foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
|
136
|
+
user_one = newrelic.get_user(authentication_domain_id=foo.id,
|
137
|
+
name="Test User")
|
138
|
+
user_two = newrelic.get_user(authentication_domain_id=foo.id,
|
139
|
+
email_id="test_user@random.com")
|
140
|
+
```
|
141
|
+
|
142
|
+
|
143
|
+
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
144
|
+
:param str email_id: The email ID of the user to search for.
|
145
|
+
|
146
|
+
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
147
|
+
|
148
|
+
> **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
|
149
|
+
|
150
|
+
> **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
|
151
|
+
:param str name: The name of the user to search for.
|
152
|
+
"""
|
153
|
+
...
|