pulumi-newrelic 5.25.1a1716913561__tar.gz → 5.25.3__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.25.1a1716913561 → pulumi_newrelic-5.25.3}/PKG-INFO +1 -1
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/_inputs.py +8 -24
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/_utilities.py +35 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_channel.py +2 -2
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_policy.py +3 -9
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_policy_channel.py +2 -2
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_entity.py +24 -121
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/notification_channel.py +10 -2
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/nrql_alert_condition.py +6 -18
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/outputs.py +8 -24
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/provider.py +8 -24
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/pulumi-plugin.json +1 -1
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/broken_links_monitor.py +9 -9
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/cert_check_monitor.py +9 -9
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/monitor.py +2 -2
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/script_monitor.py +2 -2
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/step_monitor.py +9 -9
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/workflow.py +21 -9
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/PKG-INFO +1 -1
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pyproject.toml +1 -1
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/README.md +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/__init__.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/account_management.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_condition.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_muting_rule.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/api_access_key.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/browser_application.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/__init__.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/_inputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_govcloud_integrations.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_integrations.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/aws_link_account.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/azure_integrations.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/azure_link_account.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/gcp_integrations.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/gcp_link_account.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/cloud/outputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/config/__init__.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/config/__init__.pyi +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/config/vars.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/data_partition_rule.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/entity_tags.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/events_to_metrics_rule.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_account.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_alert_channel.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_alert_policy.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_application.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_authentication_domain.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_cloud_account.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_group.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_key_transaction.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_notification_destination.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_obfuscation_expression.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_service_level_alert_helper.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_test_grok_pattern.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/get_user.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/group.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/infra_alert_condition.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/__init__.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/_inputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/event.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/insights/outputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/log_parsing_rule.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/monitor_downtime.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/notification_destination.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/nrql_drop_rule.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/obfuscation_expression.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/obfuscation_rule.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/one_dashboard.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/one_dashboard_json.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/one_dashboard_raw.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/__init__.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/_inputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/application_settings.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/outputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/plugins/workload.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/py.typed +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/service_level.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/__init__.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/_inputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/alert_condition.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/get_private_location.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/get_secure_credential.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/multi_location_alert_condition.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/outputs.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/private_location.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/synthetics/secure_credential.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/user.py +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/SOURCES.txt +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/dependency_links.txt +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/requires.txt +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic.egg-info/top_level.txt +0 -0
- {pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/setup.cfg +0 -0
@@ -1337,13 +1337,11 @@ class NrqlAlertConditionCriticalArgs:
|
|
1337
1337
|
|
1338
1338
|
@property
|
1339
1339
|
@pulumi.getter
|
1340
|
+
@_utilities.deprecated("""use `threshold_duration` attribute instead""")
|
1340
1341
|
def duration(self) -> Optional[pulumi.Input[int]]:
|
1341
1342
|
"""
|
1342
1343
|
In minutes, must be in the range of 1 to 120 (inclusive).
|
1343
1344
|
"""
|
1344
|
-
warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
|
1345
|
-
pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
|
1346
|
-
|
1347
1345
|
return pulumi.get(self, "duration")
|
1348
1346
|
|
1349
1347
|
@duration.setter
|
@@ -1388,13 +1386,11 @@ class NrqlAlertConditionCriticalArgs:
|
|
1388
1386
|
|
1389
1387
|
@property
|
1390
1388
|
@pulumi.getter(name="timeFunction")
|
1389
|
+
@_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
|
1391
1390
|
def time_function(self) -> Optional[pulumi.Input[str]]:
|
1392
1391
|
"""
|
1393
1392
|
Valid values are: 'all' or 'any'
|
1394
1393
|
"""
|
1395
|
-
warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
|
1396
|
-
pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
|
1397
|
-
|
1398
1394
|
return pulumi.get(self, "time_function")
|
1399
1395
|
|
1400
1396
|
@time_function.setter
|
@@ -1435,13 +1431,11 @@ class NrqlAlertConditionNrqlArgs:
|
|
1435
1431
|
|
1436
1432
|
@property
|
1437
1433
|
@pulumi.getter(name="evaluationOffset")
|
1434
|
+
@_utilities.deprecated("""use `aggregation_method` attribute instead""")
|
1438
1435
|
def evaluation_offset(self) -> Optional[pulumi.Input[int]]:
|
1439
1436
|
"""
|
1440
1437
|
NRQL queries are evaluated in one-minute time windows. The start time depends on the value you provide in the NRQL condition's `evaluation_offset`.
|
1441
1438
|
"""
|
1442
|
-
warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
|
1443
|
-
pulumi.log.warn("""evaluation_offset is deprecated: use `aggregation_method` attribute instead""")
|
1444
|
-
|
1445
1439
|
return pulumi.get(self, "evaluation_offset")
|
1446
1440
|
|
1447
1441
|
@evaluation_offset.setter
|
@@ -1450,13 +1444,11 @@ class NrqlAlertConditionNrqlArgs:
|
|
1450
1444
|
|
1451
1445
|
@property
|
1452
1446
|
@pulumi.getter(name="sinceValue")
|
1447
|
+
@_utilities.deprecated("""use `aggregation_method` attribute instead""")
|
1453
1448
|
def since_value(self) -> Optional[pulumi.Input[str]]:
|
1454
1449
|
"""
|
1455
1450
|
NRQL queries are evaluated in one-minute time windows. The start time depends on the value you provide in the NRQL condition's `since_value`.
|
1456
1451
|
"""
|
1457
|
-
warnings.warn("""use `aggregation_method` attribute instead""", DeprecationWarning)
|
1458
|
-
pulumi.log.warn("""since_value is deprecated: use `aggregation_method` attribute instead""")
|
1459
|
-
|
1460
1452
|
return pulumi.get(self, "since_value")
|
1461
1453
|
|
1462
1454
|
@since_value.setter
|
@@ -1517,13 +1509,11 @@ class NrqlAlertConditionTermArgs:
|
|
1517
1509
|
|
1518
1510
|
@property
|
1519
1511
|
@pulumi.getter
|
1512
|
+
@_utilities.deprecated("""use `threshold_duration` attribute instead""")
|
1520
1513
|
def duration(self) -> Optional[pulumi.Input[int]]:
|
1521
1514
|
"""
|
1522
1515
|
In minutes, must be in the range of 1 to 120 (inclusive).
|
1523
1516
|
"""
|
1524
|
-
warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
|
1525
|
-
pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
|
1526
|
-
|
1527
1517
|
return pulumi.get(self, "duration")
|
1528
1518
|
|
1529
1519
|
@duration.setter
|
@@ -1580,13 +1570,11 @@ class NrqlAlertConditionTermArgs:
|
|
1580
1570
|
|
1581
1571
|
@property
|
1582
1572
|
@pulumi.getter(name="timeFunction")
|
1573
|
+
@_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
|
1583
1574
|
def time_function(self) -> Optional[pulumi.Input[str]]:
|
1584
1575
|
"""
|
1585
1576
|
Valid values are: 'all' or 'any'
|
1586
1577
|
"""
|
1587
|
-
warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
|
1588
|
-
pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
|
1589
|
-
|
1590
1578
|
return pulumi.get(self, "time_function")
|
1591
1579
|
|
1592
1580
|
@time_function.setter
|
@@ -1643,13 +1631,11 @@ class NrqlAlertConditionWarningArgs:
|
|
1643
1631
|
|
1644
1632
|
@property
|
1645
1633
|
@pulumi.getter
|
1634
|
+
@_utilities.deprecated("""use `threshold_duration` attribute instead""")
|
1646
1635
|
def duration(self) -> Optional[pulumi.Input[int]]:
|
1647
1636
|
"""
|
1648
1637
|
In minutes, must be in the range of 1 to 120 (inclusive).
|
1649
1638
|
"""
|
1650
|
-
warnings.warn("""use `threshold_duration` attribute instead""", DeprecationWarning)
|
1651
|
-
pulumi.log.warn("""duration is deprecated: use `threshold_duration` attribute instead""")
|
1652
|
-
|
1653
1639
|
return pulumi.get(self, "duration")
|
1654
1640
|
|
1655
1641
|
@duration.setter
|
@@ -1694,13 +1680,11 @@ class NrqlAlertConditionWarningArgs:
|
|
1694
1680
|
|
1695
1681
|
@property
|
1696
1682
|
@pulumi.getter(name="timeFunction")
|
1683
|
+
@_utilities.deprecated("""use `threshold_occurrences` attribute instead""")
|
1697
1684
|
def time_function(self) -> Optional[pulumi.Input[str]]:
|
1698
1685
|
"""
|
1699
1686
|
Valid values are: 'all' or 'any'
|
1700
1687
|
"""
|
1701
|
-
warnings.warn("""use `threshold_occurrences` attribute instead""", DeprecationWarning)
|
1702
|
-
pulumi.log.warn("""time_function is deprecated: use `threshold_occurrences` attribute instead""")
|
1703
|
-
|
1704
1688
|
return pulumi.get(self, "time_function")
|
1705
1689
|
|
1706
1690
|
@time_function.setter
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
import asyncio
|
7
|
+
import functools
|
7
8
|
import importlib.metadata
|
8
9
|
import importlib.util
|
9
10
|
import inspect
|
@@ -11,6 +12,7 @@ import json
|
|
11
12
|
import os
|
12
13
|
import sys
|
13
14
|
import typing
|
15
|
+
import warnings
|
14
16
|
|
15
17
|
import pulumi
|
16
18
|
import pulumi.runtime
|
@@ -19,6 +21,8 @@ from pulumi.runtime.sync_await import _sync_await
|
|
19
21
|
from semver import VersionInfo as SemverVersion
|
20
22
|
from parver import Version as PEP440Version
|
21
23
|
|
24
|
+
C = typing.TypeVar("C", bound=typing.Callable)
|
25
|
+
|
22
26
|
|
23
27
|
def get_env(*args):
|
24
28
|
for v in args:
|
@@ -287,5 +291,36 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
|
|
287
291
|
await o._resources,
|
288
292
|
)
|
289
293
|
|
294
|
+
|
295
|
+
# This is included to provide an upgrade path for users who are using a version
|
296
|
+
# of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
|
297
|
+
def deprecated(message: str) -> typing.Callable[[C], C]:
|
298
|
+
"""
|
299
|
+
Decorator to indicate a function is deprecated.
|
300
|
+
|
301
|
+
As well as inserting appropriate statements to indicate that the function is
|
302
|
+
deprecated, this decorator also tags the function with a special attribute
|
303
|
+
so that Pulumi code can detect that it is deprecated and react appropriately
|
304
|
+
in certain situations.
|
305
|
+
|
306
|
+
message is the deprecation message that should be printed if the function is called.
|
307
|
+
"""
|
308
|
+
|
309
|
+
def decorator(fn: C) -> C:
|
310
|
+
if not callable(fn):
|
311
|
+
raise TypeError("Expected fn to be callable")
|
312
|
+
|
313
|
+
@functools.wraps(fn)
|
314
|
+
def deprecated_fn(*args, **kwargs):
|
315
|
+
warnings.warn(message)
|
316
|
+
pulumi.warn(f"{fn.__name__} is deprecated: {message}")
|
317
|
+
|
318
|
+
return fn(*args, **kwargs)
|
319
|
+
|
320
|
+
deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
|
321
|
+
return typing.cast(C, deprecated_fn)
|
322
|
+
|
323
|
+
return decorator
|
324
|
+
|
290
325
|
def get_plugin_download_url():
|
291
326
|
return None
|
{pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_channel.py
RENAMED
@@ -169,7 +169,7 @@ class AlertChannel(pulumi.CustomResource):
|
|
169
169
|
"""
|
170
170
|
Use this resource to create and manage New Relic alert channels.
|
171
171
|
|
172
|
-
> **WARNING:** The `AlertChannel` resource is deprecated and will be removed in
|
172
|
+
> **WARNING:** The `AlertChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can set up channels using a combination of the newer resources `NotificationDestination` for a detailed illustration on setting up channels with these resources.
|
173
173
|
|
174
174
|
## Example Usage
|
175
175
|
|
@@ -317,7 +317,7 @@ class AlertChannel(pulumi.CustomResource):
|
|
317
317
|
"""
|
318
318
|
Use this resource to create and manage New Relic alert channels.
|
319
319
|
|
320
|
-
> **WARNING:** The `AlertChannel` resource is deprecated and will be removed in
|
320
|
+
> **WARNING:** The `AlertChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can set up channels using a combination of the newer resources `NotificationDestination` for a detailed illustration on setting up channels with these resources.
|
321
321
|
|
322
322
|
## Example Usage
|
323
323
|
|
{pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_policy.py
RENAMED
@@ -51,13 +51,11 @@ class AlertPolicyArgs:
|
|
51
51
|
|
52
52
|
@property
|
53
53
|
@pulumi.getter(name="channelIds")
|
54
|
+
@_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
54
55
|
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
55
56
|
"""
|
56
57
|
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
57
58
|
"""
|
58
|
-
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
59
|
-
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
60
|
-
|
61
59
|
return pulumi.get(self, "channel_ids")
|
62
60
|
|
63
61
|
@channel_ids.setter
|
@@ -129,13 +127,11 @@ class _AlertPolicyState:
|
|
129
127
|
|
130
128
|
@property
|
131
129
|
@pulumi.getter(name="channelIds")
|
130
|
+
@_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
132
131
|
def channel_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
133
132
|
"""
|
134
133
|
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
135
134
|
"""
|
136
|
-
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
137
|
-
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
138
|
-
|
139
135
|
return pulumi.get(self, "channel_ids")
|
140
136
|
|
141
137
|
@channel_ids.setter
|
@@ -450,13 +446,11 @@ class AlertPolicy(pulumi.CustomResource):
|
|
450
446
|
|
451
447
|
@property
|
452
448
|
@pulumi.getter(name="channelIds")
|
449
|
+
@_utilities.deprecated("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
453
450
|
def channel_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
454
451
|
"""
|
455
452
|
An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported.
|
456
453
|
"""
|
457
|
-
warnings.warn("""The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""", DeprecationWarning)
|
458
|
-
pulumi.log.warn("""channel_ids is deprecated: The `channel_ids` attribute is deprecated and will be removed in the next major release of the provider.""")
|
459
|
-
|
460
454
|
return pulumi.get(self, "channel_ids")
|
461
455
|
|
462
456
|
@property
|
{pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/alert_policy_channel.py
RENAMED
@@ -133,7 +133,7 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
133
133
|
"""
|
134
134
|
Use this resource to map alert policies to alert channels in New Relic.
|
135
135
|
|
136
|
-
> **WARNING:** The `AlertPolicyChannel` resource is deprecated and will be removed in
|
136
|
+
> **WARNING:** The `AlertPolicyChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can map channels to policies using the resource `Workflow` for a detailed illustration on setting up channels and workflows with these resources.
|
137
137
|
|
138
138
|
## Example Usage
|
139
139
|
|
@@ -196,7 +196,7 @@ class AlertPolicyChannel(pulumi.CustomResource):
|
|
196
196
|
"""
|
197
197
|
Use this resource to map alert policies to alert channels in New Relic.
|
198
198
|
|
199
|
-
> **WARNING:** The `AlertPolicyChannel` resource is deprecated and will be removed in
|
199
|
+
> **WARNING:** The `AlertPolicyChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can map channels to policies using the resource `Workflow` for a detailed illustration on setting up channels and workflows with these resources.
|
200
200
|
|
201
201
|
## Example Usage
|
202
202
|
|
@@ -23,7 +23,7 @@ class GetEntityResult:
|
|
23
23
|
"""
|
24
24
|
A collection of values returned by getEntity.
|
25
25
|
"""
|
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):
|
26
|
+
def __init__(__self__, account_id=None, application_id=None, domain=None, entity_tags=None, guid=None, id=None, ignore_case=None, ignore_not_found=None, name=None, serving_apm_application_id=None, tags=None, type=None):
|
27
27
|
if account_id and not isinstance(account_id, str):
|
28
28
|
raise TypeError("Expected argument 'account_id' to be a str")
|
29
29
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -33,6 +33,9 @@ class GetEntityResult:
|
|
33
33
|
if domain and not isinstance(domain, str):
|
34
34
|
raise TypeError("Expected argument 'domain' to be a str")
|
35
35
|
pulumi.set(__self__, "domain", domain)
|
36
|
+
if entity_tags and not isinstance(entity_tags, str):
|
37
|
+
raise TypeError("Expected argument 'entity_tags' to be a str")
|
38
|
+
pulumi.set(__self__, "entity_tags", entity_tags)
|
36
39
|
if guid and not isinstance(guid, str):
|
37
40
|
raise TypeError("Expected argument 'guid' to be a str")
|
38
41
|
pulumi.set(__self__, "guid", guid)
|
@@ -76,6 +79,15 @@ class GetEntityResult:
|
|
76
79
|
def domain(self) -> str:
|
77
80
|
return pulumi.get(self, "domain")
|
78
81
|
|
82
|
+
@property
|
83
|
+
@pulumi.getter(name="entityTags")
|
84
|
+
def entity_tags(self) -> str:
|
85
|
+
"""
|
86
|
+
A JSON-encoded string, comprising tags associated with the entity fetched.
|
87
|
+
* See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
|
88
|
+
"""
|
89
|
+
return pulumi.get(self, "entity_tags")
|
90
|
+
|
79
91
|
@property
|
80
92
|
@pulumi.getter
|
81
93
|
def guid(self) -> str:
|
@@ -135,6 +147,7 @@ class AwaitableGetEntityResult(GetEntityResult):
|
|
135
147
|
account_id=self.account_id,
|
136
148
|
application_id=self.application_id,
|
137
149
|
domain=self.domain,
|
150
|
+
entity_tags=self.entity_tags,
|
138
151
|
guid=self.guid,
|
139
152
|
id=self.id,
|
140
153
|
ignore_case=self.ignore_case,
|
@@ -147,6 +160,7 @@ class AwaitableGetEntityResult(GetEntityResult):
|
|
147
160
|
|
148
161
|
def get_entity(account_id: Optional[str] = None,
|
149
162
|
domain: Optional[str] = None,
|
163
|
+
entity_tags: Optional[str] = None,
|
150
164
|
ignore_case: Optional[bool] = None,
|
151
165
|
ignore_not_found: Optional[bool] = None,
|
152
166
|
name: Optional[str] = None,
|
@@ -154,69 +168,12 @@ def get_entity(account_id: Optional[str] = None,
|
|
154
168
|
type: Optional[str] = None,
|
155
169
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEntityResult:
|
156
170
|
"""
|
157
|
-
Use this data source to
|
158
|
-
|
159
|
-
### Example: Filter By Account ID
|
160
|
-
|
161
|
-
The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
|
162
|
-
|
163
|
-
This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
|
164
|
-
|
165
|
-
```python
|
166
|
-
import pulumi
|
167
|
-
import pulumi_newrelic as newrelic
|
168
|
-
|
169
|
-
# The entity returned by this configuration would have to
|
170
|
-
# belong to the account_id specified in the provider
|
171
|
-
# configuration, i.e. NEW_RELIC_ACCOUNT_ID.
|
172
|
-
app = newrelic.get_entity(name="my-app",
|
173
|
-
domain="APM",
|
174
|
-
type="APPLICATION")
|
175
|
-
```
|
176
|
-
However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
|
177
|
-
```python
|
178
|
-
import pulumi
|
179
|
-
import pulumi_newrelic as newrelic
|
180
|
-
|
181
|
-
# The entity returned by this configuration, unlike in
|
182
|
-
# the above example, would have to belong to the account_id
|
183
|
-
# specified in the configuration below, i.e. 654321.
|
184
|
-
app = newrelic.get_entity(name="my-app",
|
185
|
-
account_id="654321",
|
186
|
-
domain="APM",
|
187
|
-
type="APPLICATION")
|
188
|
-
```
|
189
|
-
The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
|
190
|
-
|
191
|
-
In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
|
192
|
-
### Query for an OTEL entity
|
193
|
-
|
194
|
-
```python
|
195
|
-
import pulumi
|
196
|
-
import pulumi_newrelic as newrelic
|
197
|
-
|
198
|
-
app = newrelic.get_entity(name="my-otel-app",
|
199
|
-
domain="EXT",
|
200
|
-
type="SERVICE",
|
201
|
-
tags=[newrelic.GetEntityTagArgs(
|
202
|
-
key="accountID",
|
203
|
-
value="12345",
|
204
|
-
)])
|
205
|
-
```
|
206
|
-
|
207
|
-
### Query for an entity by type (AWS Lambda entity in this example)
|
208
|
-
|
209
|
-
```python
|
210
|
-
import pulumi
|
211
|
-
import pulumi_newrelic as newrelic
|
212
|
-
|
213
|
-
app = newrelic.get_entity(name="my_lambda_trace",
|
214
|
-
type="AWSLAMBDAFUNCTION")
|
215
|
-
```
|
216
|
-
|
171
|
+
Use this data source to access information about an existing resource.
|
217
172
|
|
218
173
|
: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
174
|
:param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
|
175
|
+
:param str entity_tags: A JSON-encoded string, comprising tags associated with the entity fetched.
|
176
|
+
* See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
|
220
177
|
:param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
|
221
178
|
: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`.
|
222
179
|
|
@@ -228,6 +185,7 @@ def get_entity(account_id: Optional[str] = None,
|
|
228
185
|
__args__ = dict()
|
229
186
|
__args__['accountId'] = account_id
|
230
187
|
__args__['domain'] = domain
|
188
|
+
__args__['entityTags'] = entity_tags
|
231
189
|
__args__['ignoreCase'] = ignore_case
|
232
190
|
__args__['ignoreNotFound'] = ignore_not_found
|
233
191
|
__args__['name'] = name
|
@@ -240,6 +198,7 @@ def get_entity(account_id: Optional[str] = None,
|
|
240
198
|
account_id=pulumi.get(__ret__, 'account_id'),
|
241
199
|
application_id=pulumi.get(__ret__, 'application_id'),
|
242
200
|
domain=pulumi.get(__ret__, 'domain'),
|
201
|
+
entity_tags=pulumi.get(__ret__, 'entity_tags'),
|
243
202
|
guid=pulumi.get(__ret__, 'guid'),
|
244
203
|
id=pulumi.get(__ret__, 'id'),
|
245
204
|
ignore_case=pulumi.get(__ret__, 'ignore_case'),
|
@@ -253,6 +212,7 @@ def get_entity(account_id: Optional[str] = None,
|
|
253
212
|
@_utilities.lift_output_func(get_entity)
|
254
213
|
def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
255
214
|
domain: Optional[pulumi.Input[Optional[str]]] = None,
|
215
|
+
entity_tags: Optional[pulumi.Input[Optional[str]]] = None,
|
256
216
|
ignore_case: Optional[pulumi.Input[Optional[bool]]] = None,
|
257
217
|
ignore_not_found: Optional[pulumi.Input[Optional[bool]]] = None,
|
258
218
|
name: Optional[pulumi.Input[str]] = None,
|
@@ -260,69 +220,12 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
260
220
|
type: Optional[pulumi.Input[Optional[str]]] = None,
|
261
221
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEntityResult]:
|
262
222
|
"""
|
263
|
-
Use this data source to
|
264
|
-
|
265
|
-
### Example: Filter By Account ID
|
266
|
-
|
267
|
-
The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
|
268
|
-
|
269
|
-
This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
|
270
|
-
|
271
|
-
```python
|
272
|
-
import pulumi
|
273
|
-
import pulumi_newrelic as newrelic
|
274
|
-
|
275
|
-
# The entity returned by this configuration would have to
|
276
|
-
# belong to the account_id specified in the provider
|
277
|
-
# configuration, i.e. NEW_RELIC_ACCOUNT_ID.
|
278
|
-
app = newrelic.get_entity(name="my-app",
|
279
|
-
domain="APM",
|
280
|
-
type="APPLICATION")
|
281
|
-
```
|
282
|
-
However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
|
283
|
-
```python
|
284
|
-
import pulumi
|
285
|
-
import pulumi_newrelic as newrelic
|
286
|
-
|
287
|
-
# The entity returned by this configuration, unlike in
|
288
|
-
# the above example, would have to belong to the account_id
|
289
|
-
# specified in the configuration below, i.e. 654321.
|
290
|
-
app = newrelic.get_entity(name="my-app",
|
291
|
-
account_id="654321",
|
292
|
-
domain="APM",
|
293
|
-
type="APPLICATION")
|
294
|
-
```
|
295
|
-
The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
|
296
|
-
|
297
|
-
In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
|
298
|
-
### Query for an OTEL entity
|
299
|
-
|
300
|
-
```python
|
301
|
-
import pulumi
|
302
|
-
import pulumi_newrelic as newrelic
|
303
|
-
|
304
|
-
app = newrelic.get_entity(name="my-otel-app",
|
305
|
-
domain="EXT",
|
306
|
-
type="SERVICE",
|
307
|
-
tags=[newrelic.GetEntityTagArgs(
|
308
|
-
key="accountID",
|
309
|
-
value="12345",
|
310
|
-
)])
|
311
|
-
```
|
312
|
-
|
313
|
-
### Query for an entity by type (AWS Lambda entity in this example)
|
314
|
-
|
315
|
-
```python
|
316
|
-
import pulumi
|
317
|
-
import pulumi_newrelic as newrelic
|
318
|
-
|
319
|
-
app = newrelic.get_entity(name="my_lambda_trace",
|
320
|
-
type="AWSLAMBDAFUNCTION")
|
321
|
-
```
|
322
|
-
|
223
|
+
Use this data source to access information about an existing resource.
|
323
224
|
|
324
225
|
: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
226
|
:param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
|
227
|
+
:param str entity_tags: A JSON-encoded string, comprising tags associated with the entity fetched.
|
228
|
+
* See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
|
326
229
|
:param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
|
327
230
|
: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`.
|
328
231
|
|
{pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/notification_channel.py
RENAMED
@@ -573,8 +573,12 @@ class NotificationChannel(pulumi.CustomResource):
|
|
573
573
|
## Additional Information
|
574
574
|
|
575
575
|
More details about the channels API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels).
|
576
|
+
### Moving from Legacy Alert Channels to Notification Channels
|
577
|
+
As described in the documentation of this resource, channels can be created and managed using `NotificationDestination`, which is **deprecated** and will be **removed in a future major release**, as stated in the documentation of the resource.
|
576
578
|
|
577
|
-
|
579
|
+
If you're currently using `AlertChannel` to manage channels, we **strongly recommend** migrating to these notifications-based resources at the earliest.
|
580
|
+
|
581
|
+
Please refer to the examples in this page, or this example for illustrations on setting up channels with these resources.
|
578
582
|
|
579
583
|
## Import
|
580
584
|
|
@@ -899,8 +903,12 @@ class NotificationChannel(pulumi.CustomResource):
|
|
899
903
|
## Additional Information
|
900
904
|
|
901
905
|
More details about the channels API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels).
|
906
|
+
### Moving from Legacy Alert Channels to Notification Channels
|
907
|
+
As described in the documentation of this resource, channels can be created and managed using `NotificationDestination`, which is **deprecated** and will be **removed in a future major release**, as stated in the documentation of the resource.
|
908
|
+
|
909
|
+
If you're currently using `AlertChannel` to manage channels, we **strongly recommend** migrating to these notifications-based resources at the earliest.
|
902
910
|
|
903
|
-
|
911
|
+
Please refer to the examples in this page, or this example for illustrations on setting up channels with these resources.
|
904
912
|
|
905
913
|
## Import
|
906
914
|
|
{pulumi_newrelic-5.25.1a1716913561 → pulumi_newrelic-5.25.3}/pulumi_newrelic/nrql_alert_condition.py
RENAMED
@@ -368,13 +368,11 @@ class NrqlAlertConditionArgs:
|
|
368
368
|
|
369
369
|
@property
|
370
370
|
@pulumi.getter
|
371
|
+
@_utilities.deprecated("""use `critical` and `warning` attributes instead""")
|
371
372
|
def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]:
|
372
373
|
"""
|
373
374
|
**DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
374
375
|
"""
|
375
|
-
warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
|
376
|
-
pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
|
377
|
-
|
378
376
|
return pulumi.get(self, "terms")
|
379
377
|
|
380
378
|
@terms.setter
|
@@ -395,14 +393,12 @@ class NrqlAlertConditionArgs:
|
|
395
393
|
|
396
394
|
@property
|
397
395
|
@pulumi.getter(name="violationTimeLimit")
|
396
|
+
@_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
|
398
397
|
def violation_time_limit(self) -> Optional[pulumi.Input[str]]:
|
399
398
|
"""
|
400
399
|
**DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
|
401
400
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
402
401
|
"""
|
403
|
-
warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
|
404
|
-
pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
|
405
|
-
|
406
402
|
return pulumi.get(self, "violation_time_limit")
|
407
403
|
|
408
404
|
@violation_time_limit.setter
|
@@ -808,13 +804,11 @@ class _NrqlAlertConditionState:
|
|
808
804
|
|
809
805
|
@property
|
810
806
|
@pulumi.getter
|
807
|
+
@_utilities.deprecated("""use `critical` and `warning` attributes instead""")
|
811
808
|
def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NrqlAlertConditionTermArgs']]]]:
|
812
809
|
"""
|
813
810
|
**DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
814
811
|
"""
|
815
|
-
warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
|
816
|
-
pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
|
817
|
-
|
818
812
|
return pulumi.get(self, "terms")
|
819
813
|
|
820
814
|
@terms.setter
|
@@ -835,14 +829,12 @@ class _NrqlAlertConditionState:
|
|
835
829
|
|
836
830
|
@property
|
837
831
|
@pulumi.getter(name="violationTimeLimit")
|
832
|
+
@_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
|
838
833
|
def violation_time_limit(self) -> Optional[pulumi.Input[str]]:
|
839
834
|
"""
|
840
835
|
**DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
|
841
836
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
842
837
|
"""
|
843
|
-
warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
|
844
|
-
pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
|
845
|
-
|
846
838
|
return pulumi.get(self, "violation_time_limit")
|
847
839
|
|
848
840
|
@violation_time_limit.setter
|
@@ -1811,13 +1803,11 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1811
1803
|
|
1812
1804
|
@property
|
1813
1805
|
@pulumi.getter
|
1806
|
+
@_utilities.deprecated("""use `critical` and `warning` attributes instead""")
|
1814
1807
|
def terms(self) -> pulumi.Output[Optional[Sequence['outputs.NrqlAlertConditionTerm']]]:
|
1815
1808
|
"""
|
1816
1809
|
**DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details.
|
1817
1810
|
"""
|
1818
|
-
warnings.warn("""use `critical` and `warning` attributes instead""", DeprecationWarning)
|
1819
|
-
pulumi.log.warn("""terms is deprecated: use `critical` and `warning` attributes instead""")
|
1820
|
-
|
1821
1811
|
return pulumi.get(self, "terms")
|
1822
1812
|
|
1823
1813
|
@property
|
@@ -1830,14 +1820,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1830
1820
|
|
1831
1821
|
@property
|
1832
1822
|
@pulumi.getter(name="violationTimeLimit")
|
1823
|
+
@_utilities.deprecated("""use `violation_time_limit_seconds` attribute instead""")
|
1833
1824
|
def violation_time_limit(self) -> pulumi.Output[str]:
|
1834
1825
|
"""
|
1835
1826
|
**DEPRECATED:** Use `violation_time_limit_seconds` instead. Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`, `THIRTY_DAYS` (case insensitive).<br>
|
1836
1827
|
<small>\\***Note**: One of `violation_time_limit` _or_ `violation_time_limit_seconds` must be set, but not both.</small>
|
1837
1828
|
"""
|
1838
|
-
warnings.warn("""use `violation_time_limit_seconds` attribute instead""", DeprecationWarning)
|
1839
|
-
pulumi.log.warn("""violation_time_limit is deprecated: use `violation_time_limit_seconds` attribute instead""")
|
1840
|
-
|
1841
1829
|
return pulumi.get(self, "violation_time_limit")
|
1842
1830
|
|
1843
1831
|
@property
|