pulumi-newrelic 5.16.0a1703138319__py3-none-any.whl → 5.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ class NrqlAlertConditionArgs:
49
49
  :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
50
50
  :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
51
51
  :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
52
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 7200 seconds (2 hours). Default is 60 seconds.
52
+ :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
53
53
  :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
54
54
  :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
55
55
  :param pulumi.Input['NrqlAlertConditionCriticalArgs'] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
@@ -202,7 +202,7 @@ class NrqlAlertConditionArgs:
202
202
  @pulumi.getter(name="aggregationWindow")
203
203
  def aggregation_window(self) -> Optional[pulumi.Input[int]]:
204
204
  """
205
- The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 7200 seconds (2 hours). Default is 60 seconds.
205
+ The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
206
206
  """
207
207
  return pulumi.get(self, "aggregation_window")
208
208
 
@@ -470,7 +470,7 @@ class _NrqlAlertConditionState:
470
470
  :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
471
471
  :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
472
472
  :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
473
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 7200 seconds (2 hours). Default is 60 seconds.
473
+ :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
474
474
  :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
475
475
  :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
476
476
  :param pulumi.Input['NrqlAlertConditionCriticalArgs'] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
@@ -606,7 +606,7 @@ class _NrqlAlertConditionState:
606
606
  @pulumi.getter(name="aggregationWindow")
607
607
  def aggregation_window(self) -> Optional[pulumi.Input[int]]:
608
608
  """
609
- The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 7200 seconds (2 hours). Default is 60 seconds.
609
+ The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
610
610
  """
611
611
  return pulumi.get(self, "aggregation_window")
612
612
 
@@ -910,6 +910,46 @@ class NrqlAlertCondition(pulumi.CustomResource):
910
910
  Use this resource to create and manage NRQL alert conditions in New Relic.
911
911
 
912
912
  ## Example Usage
913
+ ### Type: `static` (default)
914
+
915
+ ```python
916
+ import pulumi
917
+ import pulumi_newrelic as newrelic
918
+
919
+ foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
920
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
921
+ account_id=12345678,
922
+ policy_id=foo_alert_policy.id,
923
+ type="static",
924
+ description="Alert when transactions are taking too long",
925
+ runbook_url="https://www.example.com",
926
+ enabled=True,
927
+ violation_time_limit_seconds=3600,
928
+ fill_option="static",
929
+ fill_value=1,
930
+ aggregation_window=60,
931
+ aggregation_method="event_flow",
932
+ aggregation_delay="120",
933
+ expiration_duration=120,
934
+ open_violation_on_expiration=True,
935
+ close_violations_on_expiration=True,
936
+ slide_by=30,
937
+ nrql=newrelic.NrqlAlertConditionNrqlArgs(
938
+ query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
939
+ ),
940
+ critical=newrelic.NrqlAlertConditionCriticalArgs(
941
+ operator="above",
942
+ threshold=5.5,
943
+ threshold_duration=300,
944
+ threshold_occurrences="ALL",
945
+ ),
946
+ warning=newrelic.NrqlAlertConditionWarningArgs(
947
+ operator="above",
948
+ threshold=3.5,
949
+ threshold_duration=600,
950
+ threshold_occurrences="ALL",
951
+ ))
952
+ ```
913
953
  ## NRQL
914
954
 
915
955
  The `nrql` block supports the following arguments:
@@ -953,7 +993,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
953
993
  import pulumi_newrelic as newrelic
954
994
 
955
995
  foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
956
- foo_index_alert_policy_alert_policy = newrelic.AlertPolicy("fooIndex/alertPolicyAlertPolicy")
957
996
  foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
958
997
  account_id="your_account_id",
959
998
  policy_id=foo_alert_policy.id,
@@ -988,6 +1027,66 @@ class NrqlAlertCondition(pulumi.CustomResource):
988
1027
  ))
989
1028
  ```
990
1029
 
1030
+ ## Tags
1031
+
1032
+ Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
1033
+
1034
+ ```python
1035
+ import pulumi
1036
+ import pulumi_newrelic as newrelic
1037
+
1038
+ foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1039
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1040
+ account_id=12345678,
1041
+ policy_id=foo_alert_policy.id,
1042
+ type="static",
1043
+ description="Alert when transactions are taking too long",
1044
+ runbook_url="https://www.example.com",
1045
+ enabled=True,
1046
+ violation_time_limit_seconds=3600,
1047
+ fill_option="static",
1048
+ fill_value=1,
1049
+ aggregation_window=60,
1050
+ aggregation_method="event_flow",
1051
+ aggregation_delay="120",
1052
+ expiration_duration=120,
1053
+ open_violation_on_expiration=True,
1054
+ close_violations_on_expiration=True,
1055
+ slide_by=30,
1056
+ nrql=newrelic.NrqlAlertConditionNrqlArgs(
1057
+ query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1058
+ ),
1059
+ critical=newrelic.NrqlAlertConditionCriticalArgs(
1060
+ operator="above",
1061
+ threshold=5.5,
1062
+ threshold_duration=300,
1063
+ threshold_occurrences="ALL",
1064
+ ),
1065
+ warning=newrelic.NrqlAlertConditionWarningArgs(
1066
+ operator="above",
1067
+ threshold=3.5,
1068
+ threshold_duration=600,
1069
+ threshold_occurrences="ALL",
1070
+ ))
1071
+ my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
1072
+ guid=foo_nrql_alert_condition.entity_guid,
1073
+ tags=[
1074
+ newrelic.EntityTagsTagArgs(
1075
+ key="my-key",
1076
+ values=[
1077
+ "my-value",
1078
+ "my-other-value",
1079
+ ],
1080
+ ),
1081
+ newrelic.EntityTagsTagArgs(
1082
+ key="my-key-2",
1083
+ values=["my-value-2"],
1084
+ ),
1085
+ ])
1086
+ ```
1087
+
1088
+ <small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
1089
+
991
1090
  ## Upgrade from 1.x to 2.x
992
1091
 
993
1092
  There have been several deprecations in the `NrqlAlertCondition`
@@ -1062,7 +1161,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1062
1161
  :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
1063
1162
  :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
1064
1163
  :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
1065
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 7200 seconds (2 hours). Default is 60 seconds.
1164
+ :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1066
1165
  :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1067
1166
  :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1068
1167
  :param pulumi.Input[pulumi.InputType['NrqlAlertConditionCriticalArgs']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
@@ -1096,6 +1195,46 @@ class NrqlAlertCondition(pulumi.CustomResource):
1096
1195
  Use this resource to create and manage NRQL alert conditions in New Relic.
1097
1196
 
1098
1197
  ## Example Usage
1198
+ ### Type: `static` (default)
1199
+
1200
+ ```python
1201
+ import pulumi
1202
+ import pulumi_newrelic as newrelic
1203
+
1204
+ foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1205
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1206
+ account_id=12345678,
1207
+ policy_id=foo_alert_policy.id,
1208
+ type="static",
1209
+ description="Alert when transactions are taking too long",
1210
+ runbook_url="https://www.example.com",
1211
+ enabled=True,
1212
+ violation_time_limit_seconds=3600,
1213
+ fill_option="static",
1214
+ fill_value=1,
1215
+ aggregation_window=60,
1216
+ aggregation_method="event_flow",
1217
+ aggregation_delay="120",
1218
+ expiration_duration=120,
1219
+ open_violation_on_expiration=True,
1220
+ close_violations_on_expiration=True,
1221
+ slide_by=30,
1222
+ nrql=newrelic.NrqlAlertConditionNrqlArgs(
1223
+ query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1224
+ ),
1225
+ critical=newrelic.NrqlAlertConditionCriticalArgs(
1226
+ operator="above",
1227
+ threshold=5.5,
1228
+ threshold_duration=300,
1229
+ threshold_occurrences="ALL",
1230
+ ),
1231
+ warning=newrelic.NrqlAlertConditionWarningArgs(
1232
+ operator="above",
1233
+ threshold=3.5,
1234
+ threshold_duration=600,
1235
+ threshold_occurrences="ALL",
1236
+ ))
1237
+ ```
1099
1238
  ## NRQL
1100
1239
 
1101
1240
  The `nrql` block supports the following arguments:
@@ -1139,7 +1278,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
1139
1278
  import pulumi_newrelic as newrelic
1140
1279
 
1141
1280
  foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1142
- foo_index_alert_policy_alert_policy = newrelic.AlertPolicy("fooIndex/alertPolicyAlertPolicy")
1143
1281
  foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1144
1282
  account_id="your_account_id",
1145
1283
  policy_id=foo_alert_policy.id,
@@ -1174,6 +1312,66 @@ class NrqlAlertCondition(pulumi.CustomResource):
1174
1312
  ))
1175
1313
  ```
1176
1314
 
1315
+ ## Tags
1316
+
1317
+ Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
1318
+
1319
+ ```python
1320
+ import pulumi
1321
+ import pulumi_newrelic as newrelic
1322
+
1323
+ foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1324
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1325
+ account_id=12345678,
1326
+ policy_id=foo_alert_policy.id,
1327
+ type="static",
1328
+ description="Alert when transactions are taking too long",
1329
+ runbook_url="https://www.example.com",
1330
+ enabled=True,
1331
+ violation_time_limit_seconds=3600,
1332
+ fill_option="static",
1333
+ fill_value=1,
1334
+ aggregation_window=60,
1335
+ aggregation_method="event_flow",
1336
+ aggregation_delay="120",
1337
+ expiration_duration=120,
1338
+ open_violation_on_expiration=True,
1339
+ close_violations_on_expiration=True,
1340
+ slide_by=30,
1341
+ nrql=newrelic.NrqlAlertConditionNrqlArgs(
1342
+ query="SELECT average(duration) FROM Transaction where appName = 'Your App'",
1343
+ ),
1344
+ critical=newrelic.NrqlAlertConditionCriticalArgs(
1345
+ operator="above",
1346
+ threshold=5.5,
1347
+ threshold_duration=300,
1348
+ threshold_occurrences="ALL",
1349
+ ),
1350
+ warning=newrelic.NrqlAlertConditionWarningArgs(
1351
+ operator="above",
1352
+ threshold=3.5,
1353
+ threshold_duration=600,
1354
+ threshold_occurrences="ALL",
1355
+ ))
1356
+ my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
1357
+ guid=foo_nrql_alert_condition.entity_guid,
1358
+ tags=[
1359
+ newrelic.EntityTagsTagArgs(
1360
+ key="my-key",
1361
+ values=[
1362
+ "my-value",
1363
+ "my-other-value",
1364
+ ],
1365
+ ),
1366
+ newrelic.EntityTagsTagArgs(
1367
+ key="my-key-2",
1368
+ values=["my-value-2"],
1369
+ ),
1370
+ ])
1371
+ ```
1372
+
1373
+ <small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
1374
+
1177
1375
  ## Upgrade from 1.x to 2.x
1178
1376
 
1179
1377
  There have been several deprecations in the `NrqlAlertCondition`
@@ -1368,7 +1566,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1368
1566
  :param pulumi.Input[str] aggregation_delay: How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregation_delay` with the `event_flow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `event_flow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregation_delay` cannot be set with `nrql.evaluation_offset`.
1369
1567
  :param pulumi.Input[str] aggregation_method: Determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. Possible values are `cadence`, `event_flow` or `event_timer`. Default is `event_flow`. `aggregation_method` cannot be set with `nrql.evaluation_offset`.
1370
1568
  :param pulumi.Input[str] aggregation_timer: How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregation_timer` with the `event_timer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregation_timer` cannot be set with `nrql.evaluation_offset`.
1371
- :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 7200 seconds (2 hours). Default is 60 seconds.
1569
+ :param pulumi.Input[int] aggregation_window: The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1372
1570
  :param pulumi.Input[str] baseline_direction: The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lower_only`, `upper_and_lower`, `upper_only` (case insensitive).
1373
1571
  :param pulumi.Input[bool] close_violations_on_expiration: Whether to close all open incidents when the signal expires.
1374
1572
  :param pulumi.Input[pulumi.InputType['NrqlAlertConditionCriticalArgs']] critical: A list containing the `critical` threshold values. At least one `critical` or `warning` threshold must be defined. See Terms below for details.
@@ -1461,7 +1659,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1461
1659
  @pulumi.getter(name="aggregationWindow")
1462
1660
  def aggregation_window(self) -> pulumi.Output[int]:
1463
1661
  """
1464
- The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 7200 seconds (2 hours). Default is 60 seconds.
1662
+ The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 21600 seconds (6 hours). Default is 60 seconds.
1465
1663
  """
1466
1664
  return pulumi.get(self, "aggregation_window")
1467
1665
 
@@ -19,6 +19,9 @@ __all__ = [
19
19
  'EntityTagsTag',
20
20
  'InfraAlertConditionCritical',
21
21
  'InfraAlertConditionWarning',
22
+ 'MonitorDowntimeEndRepeat',
23
+ 'MonitorDowntimeFrequency',
24
+ 'MonitorDowntimeFrequencyDaysOfWeek',
22
25
  'NotificationChannelProperty',
23
26
  'NotificationDestinationAuthBasic',
24
27
  'NotificationDestinationAuthToken',
@@ -822,6 +825,162 @@ class InfraAlertConditionWarning(dict):
822
825
  return pulumi.get(self, "value")
823
826
 
824
827
 
828
+ @pulumi.output_type
829
+ class MonitorDowntimeEndRepeat(dict):
830
+ @staticmethod
831
+ def __key_warning(key: str):
832
+ suggest = None
833
+ if key == "onDate":
834
+ suggest = "on_date"
835
+ elif key == "onRepeat":
836
+ suggest = "on_repeat"
837
+
838
+ if suggest:
839
+ pulumi.log.warn(f"Key '{key}' not found in MonitorDowntimeEndRepeat. Access the value via the '{suggest}' property getter instead.")
840
+
841
+ def __getitem__(self, key: str) -> Any:
842
+ MonitorDowntimeEndRepeat.__key_warning(key)
843
+ return super().__getitem__(key)
844
+
845
+ def get(self, key: str, default = None) -> Any:
846
+ MonitorDowntimeEndRepeat.__key_warning(key)
847
+ return super().get(key, default)
848
+
849
+ def __init__(__self__, *,
850
+ on_date: Optional[str] = None,
851
+ on_repeat: Optional[int] = None):
852
+ """
853
+ :param str on_date: The date on which the monitor downtime's repeat cycle would need to come to an end, a string in `DDDD-MM-YY` format.
854
+ :param int on_repeat: An integer that specifies the number of occurrences, after which the monitor downtime's repeat cycle would need to come to an end.
855
+
856
+ > **NOTE:** `end_repeat` **can only be used with the modes** `DAILY`, `MONTHLY` and `WEEKLY` and **is an optional argument** when monitor downtimes of these modes are created. Additionally, **either** `on_date` or `on_repeat` **are required to be specified with** `end_repeat`, but not both, as `on_date` and `on_repeat` are mutually exclusive.
857
+ """
858
+ if on_date is not None:
859
+ pulumi.set(__self__, "on_date", on_date)
860
+ if on_repeat is not None:
861
+ pulumi.set(__self__, "on_repeat", on_repeat)
862
+
863
+ @property
864
+ @pulumi.getter(name="onDate")
865
+ def on_date(self) -> Optional[str]:
866
+ """
867
+ The date on which the monitor downtime's repeat cycle would need to come to an end, a string in `DDDD-MM-YY` format.
868
+ """
869
+ return pulumi.get(self, "on_date")
870
+
871
+ @property
872
+ @pulumi.getter(name="onRepeat")
873
+ def on_repeat(self) -> Optional[int]:
874
+ """
875
+ An integer that specifies the number of occurrences, after which the monitor downtime's repeat cycle would need to come to an end.
876
+
877
+ > **NOTE:** `end_repeat` **can only be used with the modes** `DAILY`, `MONTHLY` and `WEEKLY` and **is an optional argument** when monitor downtimes of these modes are created. Additionally, **either** `on_date` or `on_repeat` **are required to be specified with** `end_repeat`, but not both, as `on_date` and `on_repeat` are mutually exclusive.
878
+ """
879
+ return pulumi.get(self, "on_repeat")
880
+
881
+
882
+ @pulumi.output_type
883
+ class MonitorDowntimeFrequency(dict):
884
+ @staticmethod
885
+ def __key_warning(key: str):
886
+ suggest = None
887
+ if key == "daysOfMonths":
888
+ suggest = "days_of_months"
889
+ elif key == "daysOfWeek":
890
+ suggest = "days_of_week"
891
+
892
+ if suggest:
893
+ pulumi.log.warn(f"Key '{key}' not found in MonitorDowntimeFrequency. Access the value via the '{suggest}' property getter instead.")
894
+
895
+ def __getitem__(self, key: str) -> Any:
896
+ MonitorDowntimeFrequency.__key_warning(key)
897
+ return super().__getitem__(key)
898
+
899
+ def get(self, key: str, default = None) -> Any:
900
+ MonitorDowntimeFrequency.__key_warning(key)
901
+ return super().get(key, default)
902
+
903
+ def __init__(__self__, *,
904
+ days_of_months: Optional[Sequence[int]] = None,
905
+ days_of_week: Optional['outputs.MonitorDowntimeFrequencyDaysOfWeek'] = None):
906
+ """
907
+ :param Sequence[int] days_of_months: A list of integers, specifying the days of a month on which the monthly monitor downtime would function, e.g. [3, 6, 14, 23].
908
+ :param 'MonitorDowntimeFrequencyDaysOfWeekArgs' days_of_week: An argument that specifies a day of a week and its occurrence in a month, on which the monthly monitor downtime would function. This argument, further, comprises the following nested arguments -
909
+ """
910
+ if days_of_months is not None:
911
+ pulumi.set(__self__, "days_of_months", days_of_months)
912
+ if days_of_week is not None:
913
+ pulumi.set(__self__, "days_of_week", days_of_week)
914
+
915
+ @property
916
+ @pulumi.getter(name="daysOfMonths")
917
+ def days_of_months(self) -> Optional[Sequence[int]]:
918
+ """
919
+ A list of integers, specifying the days of a month on which the monthly monitor downtime would function, e.g. [3, 6, 14, 23].
920
+ """
921
+ return pulumi.get(self, "days_of_months")
922
+
923
+ @property
924
+ @pulumi.getter(name="daysOfWeek")
925
+ def days_of_week(self) -> Optional['outputs.MonitorDowntimeFrequencyDaysOfWeek']:
926
+ """
927
+ An argument that specifies a day of a week and its occurrence in a month, on which the monthly monitor downtime would function. This argument, further, comprises the following nested arguments -
928
+ """
929
+ return pulumi.get(self, "days_of_week")
930
+
931
+
932
+ @pulumi.output_type
933
+ class MonitorDowntimeFrequencyDaysOfWeek(dict):
934
+ @staticmethod
935
+ def __key_warning(key: str):
936
+ suggest = None
937
+ if key == "ordinalDayOfMonth":
938
+ suggest = "ordinal_day_of_month"
939
+ elif key == "weekDay":
940
+ suggest = "week_day"
941
+
942
+ if suggest:
943
+ pulumi.log.warn(f"Key '{key}' not found in MonitorDowntimeFrequencyDaysOfWeek. Access the value via the '{suggest}' property getter instead.")
944
+
945
+ def __getitem__(self, key: str) -> Any:
946
+ MonitorDowntimeFrequencyDaysOfWeek.__key_warning(key)
947
+ return super().__getitem__(key)
948
+
949
+ def get(self, key: str, default = None) -> Any:
950
+ MonitorDowntimeFrequencyDaysOfWeek.__key_warning(key)
951
+ return super().get(key, default)
952
+
953
+ def __init__(__self__, *,
954
+ ordinal_day_of_month: str,
955
+ week_day: str):
956
+ """
957
+ :param str ordinal_day_of_month: The occurrence of `week_day` in a month (one of `"FIRST"`, `"SECOND"`, `"THIRD"`, `"FOURTH"`, `"LAST"`).
958
+
959
+ > **NOTE:** `frequency` **can only be used with the mode** `MONTHLY`, and **is a required argument** with monthly monitor downtimes (if the `mode` is `MONTHLY`). Additionally, **either** `days_of_month` or `days_of_week` **are required to be specified with** `frequency`, but not both, as `days_of_month` and `days_of_week` are mutually exclusive. If `days_of_week` is specified, values of **both** of its nested arguments, `week_day` and `ordinal_day_of_month` **would need to be specified** too.
960
+ :param str week_day: A day of the week (one of `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` or `"SATURDAY"`).
961
+ """
962
+ pulumi.set(__self__, "ordinal_day_of_month", ordinal_day_of_month)
963
+ pulumi.set(__self__, "week_day", week_day)
964
+
965
+ @property
966
+ @pulumi.getter(name="ordinalDayOfMonth")
967
+ def ordinal_day_of_month(self) -> str:
968
+ """
969
+ The occurrence of `week_day` in a month (one of `"FIRST"`, `"SECOND"`, `"THIRD"`, `"FOURTH"`, `"LAST"`).
970
+
971
+ > **NOTE:** `frequency` **can only be used with the mode** `MONTHLY`, and **is a required argument** with monthly monitor downtimes (if the `mode` is `MONTHLY`). Additionally, **either** `days_of_month` or `days_of_week` **are required to be specified with** `frequency`, but not both, as `days_of_month` and `days_of_week` are mutually exclusive. If `days_of_week` is specified, values of **both** of its nested arguments, `week_day` and `ordinal_day_of_month` **would need to be specified** too.
972
+ """
973
+ return pulumi.get(self, "ordinal_day_of_month")
974
+
975
+ @property
976
+ @pulumi.getter(name="weekDay")
977
+ def week_day(self) -> str:
978
+ """
979
+ A day of the week (one of `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` or `"SATURDAY"`).
980
+ """
981
+ return pulumi.get(self, "week_day")
982
+
983
+
825
984
  @pulumi.output_type
826
985
  class NotificationChannelProperty(dict):
827
986
  @staticmethod
@@ -231,7 +231,7 @@ class AlertCondition(pulumi.CustomResource):
231
231
  """
232
232
  Use this resource to create and manage synthetics alert conditions in New Relic.
233
233
 
234
- > **NOTE:** This is a legacy resource. The NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. This condition type may be deprecated in the future.
234
+ > **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query.
235
235
 
236
236
  ## Example Usage
237
237
 
@@ -321,7 +321,7 @@ class AlertCondition(pulumi.CustomResource):
321
321
  """
322
322
  Use this resource to create and manage synthetics alert conditions in New Relic.
323
323
 
324
- > **NOTE:** This is a legacy resource. The NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. This condition type may be deprecated in the future.
324
+ > **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query.
325
325
 
326
326
  ## Example Usage
327
327
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: pulumi-newrelic
3
- Version: 5.16.0a1703138319
2
+ Name: pulumi_newrelic
3
+ Version: 5.17.0
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,9 +1,9 @@
1
- pulumi_newrelic/__init__.py,sha256=WxmsponGSYNz_1ckbFhAxP3K_Me4JdmNjHnDRwbz4_I,10709
2
- pulumi_newrelic/_inputs.py,sha256=F2ZALiIjC3sAOD24s1w0xHe9jXaNTd9b0F7UxGzdW9s,452806
1
+ pulumi_newrelic/__init__.py,sha256=b7YOA-gAiMkaPzFnCabtZGnGEj0W8C0cYYhj8GqpU34,10921
2
+ pulumi_newrelic/_inputs.py,sha256=ODk8h3wngoejnRkvJ9DxWsxV5h8fz8B4kk7UAEKi4B8,459954
3
3
  pulumi_newrelic/_utilities.py,sha256=nNKRJyG0bkCleVzIGnszB5TSQOVUqAHks2baneWhujg,9249
4
4
  pulumi_newrelic/account_management.py,sha256=n6PRT6MlHnqzV5pjIE5SJuxc-oAN3a0gwNOMPAovx4I,8673
5
5
  pulumi_newrelic/alert_channel.py,sha256=tYCerX_BsVt0rjxK4DBOzqYYvi74V7xY9FHgIpVO1yM,20872
6
- pulumi_newrelic/alert_condition.py,sha256=SZ6aQ3HXY6TGJnyrXTg0s9opIN5_DaWPXOepX2OWMdE,45682
6
+ pulumi_newrelic/alert_condition.py,sha256=X_2UfWFTWd7PJpmfRGSbgpX4eW1NmPoqtYNFfyR5U1o,45746
7
7
  pulumi_newrelic/alert_muting_rule.py,sha256=nGTdLpOM2fk_wOEMWZLIZokEsMvnbJVH2Mm3Tu1qnHY,19077
8
8
  pulumi_newrelic/alert_policy.py,sha256=qaIWag4jIrzO4dk-pJYO2iQI8Mqp5RtSCeNk79JvcGo,21883
9
9
  pulumi_newrelic/alert_policy_channel.py,sha256=VvXWw8dVPQ7p-xFzDxREC0fS9cCuKo6xRN2vmZLp-Sk,15043
@@ -21,20 +21,21 @@ pulumi_newrelic/get_entity.py,sha256=RNG2amzCxUcwWs3uBRyZL-je70lTzuwO-dpOqk9bpiU
21
21
  pulumi_newrelic/get_key_transaction.py,sha256=QOLqA1EZ4G6BxVQCSZt94rf0M9iJJwGwvW3ioSX71Y0,4081
22
22
  pulumi_newrelic/get_notification_destination.py,sha256=x13_HISLPz42t8MnE9QGf1QEhhc_WfDN3OE4Cx1wB8Q,6365
23
23
  pulumi_newrelic/get_obfuscation_expression.py,sha256=UUhLN7g-VnQ9ASzFt8M4-GE4EpWawIfoug8DJW0Mb_U,4867
24
- pulumi_newrelic/get_service_level_alert_helper.py,sha256=AquTG0ppnA6KVZQSv68CJR_oSpAapfSDmWfNhYbz2_M,17788
24
+ pulumi_newrelic/get_service_level_alert_helper.py,sha256=4kXTFgbkDG8KRHPppMca8W_iEhyHZCJf3a8P-fD5lTw,17818
25
25
  pulumi_newrelic/get_test_grok_pattern.py,sha256=Mxo8j32CyD6W_lGwk3BF_NnUA1mi9gfe9voa947HbtU,5504
26
- pulumi_newrelic/infra_alert_condition.py,sha256=_mfyOdtFCJkA2VMmXp2K6JehtWKCZLEVCJW3kHMIOoA,56668
26
+ pulumi_newrelic/infra_alert_condition.py,sha256=T2cW_J8mqiIReV9YNQT3KbNSU8_5GGvPrvpMzWiFYLU,56742
27
27
  pulumi_newrelic/log_parsing_rule.py,sha256=NtnaxEwfencWrJguSuNqc5zKu-jGX-iTNbbztvGac7M,22252
28
+ pulumi_newrelic/monitor_downtime.py,sha256=vsme-jp77Pu2s3cqIgVmOSD-oUohZjtLNgV8SBdyKd8,45206
28
29
  pulumi_newrelic/notification_channel.py,sha256=_55p2WkYvHV-8I4ApZ1q7HW8y1CIBtkrLJFpB7pn-e4,43984
29
30
  pulumi_newrelic/notification_destination.py,sha256=ELFKkBpyc4ZzkYe64ZenFVM8lCgVXD8bQf2aYGdWRjA,25645
30
- pulumi_newrelic/nrql_alert_condition.py,sha256=tUk34M3NdpQkFSiZeWhx_QQIwt9r175XncGwOcVU-5k,97988
31
+ pulumi_newrelic/nrql_alert_condition.py,sha256=Qw0CUkgcb6Ff3lWypq_ngKp8nE-ZAPZUoKUtQwLW6eI,105545
31
32
  pulumi_newrelic/nrql_drop_rule.py,sha256=GQNQ8MqZZUW3f9WSYukmRdkecm0W39bsl5f6eb9wwlE,15708
32
33
  pulumi_newrelic/obfuscation_expression.py,sha256=0I8MGGsUjLm0Y6mhvYiutrXhLRSi2fD8VcClwIJ-g8k,12273
33
34
  pulumi_newrelic/obfuscation_rule.py,sha256=VXoVR-rs6S6jB8SgpHGJcL8mkCDldhCe8qoaK6dx7Eg,17665
34
35
  pulumi_newrelic/one_dashboard.py,sha256=31nqi42fXi5iwbku7YtjeaODPzlw0NVMJ7-OAn66yNc,20474
35
36
  pulumi_newrelic/one_dashboard_json.py,sha256=ghRsdJehfoW9fRI-i3j4twDF7-0K12ZJ_DwzwdfYVLc,12606
36
37
  pulumi_newrelic/one_dashboard_raw.py,sha256=CBPCIQtnYSfttTKKoHh54xFqaBuFaZsMvTcW4hncqzk,23116
37
- pulumi_newrelic/outputs.py,sha256=tUOWpMxjfhy7XqImZV_GnbUk8-5elvdZ7BRbYECxhro,446075
38
+ pulumi_newrelic/outputs.py,sha256=qcban7gPy6NYy6aMRH64yGkXpQt4dal-HCNdiHf6IFQ,454091
38
39
  pulumi_newrelic/provider.py,sha256=VPXhUfFLSVoIFew1P_oy7pHeondN5LbHsLoLqD3z7qs,19536
39
40
  pulumi_newrelic/pulumi-plugin.json,sha256=BB2nuoRbgCmufIppkKjSbeCa7oIqt8NBakO_A4QV0Pk,45
40
41
  pulumi_newrelic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -65,7 +66,7 @@ pulumi_newrelic/plugins/outputs.py,sha256=-QBbMX5uPcEPsTA3v-Qia3kT9DzQp-dA6D80E6
65
66
  pulumi_newrelic/plugins/workload.py,sha256=gCa04x_MRodvD7YtJJrASKf9tbdtRAeFlUjnoIDL55g,31618
66
67
  pulumi_newrelic/synthetics/__init__.py,sha256=8O5SCapCaxLPwCnTDb8XJ3w1Vw_1avXP4bCZ3bTXxMs,680
67
68
  pulumi_newrelic/synthetics/_inputs.py,sha256=k4_MaTwp_iXasOHX3XswGJIogWLzPCBH6GnkJPk9a4Q,12981
68
- pulumi_newrelic/synthetics/alert_condition.py,sha256=LaJOmsVYgKLObbPqWAvwQlbAyQwc7GwTXWimTm0IvXc,20478
69
+ pulumi_newrelic/synthetics/alert_condition.py,sha256=1JTG4uwB1Z-jPsLpe7zTtmVr6WH1gNMKmM4Mdz8y59A,20564
69
70
  pulumi_newrelic/synthetics/broken_links_monitor.py,sha256=E9gdJPGCqxmoC4jEuY13pFmjfUioH4dRYQRb4tPVtzQ,32023
70
71
  pulumi_newrelic/synthetics/cert_check_monitor.py,sha256=lXIj8CcwwAIcrhgdRxMJuRsemhLRtZ1RRJFv4U0vYqw,34119
71
72
  pulumi_newrelic/synthetics/get_private_location.py,sha256=Phsn8ZDUJhSvJLdXEowWPoS-VBm1nRcgLNwMIduxKSw,5787
@@ -77,7 +78,7 @@ pulumi_newrelic/synthetics/private_location.py,sha256=x2Ji28435eqLVwZY9tXLN4QV08
77
78
  pulumi_newrelic/synthetics/script_monitor.py,sha256=Ar_IK1e_qkcSatmcPOtGXwPiQpKrgclxj3AlkceTcEs,54564
78
79
  pulumi_newrelic/synthetics/secure_credential.py,sha256=O5SFzx3UNw64KjxCRzxatsXoPjT_e6VyJ32JTa0f0Dw,15604
79
80
  pulumi_newrelic/synthetics/step_monitor.py,sha256=44JHBqmNrBv_1nmDU3z2s3kRKQ8wxdIL1ScEqHDLcHk,35123
80
- pulumi_newrelic-5.16.0a1703138319.dist-info/METADATA,sha256=3yEsAP9LqNfs70eh_mK_Rm00QxeTuyNQdhT0TJNSiT8,3900
81
- pulumi_newrelic-5.16.0a1703138319.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
82
- pulumi_newrelic-5.16.0a1703138319.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
83
- pulumi_newrelic-5.16.0a1703138319.dist-info/RECORD,,
81
+ pulumi_newrelic-5.17.0.dist-info/METADATA,sha256=nc-yBJt076d_4kcYc4Whcevo3iL6YT64fwzLR73cON4,3889
82
+ pulumi_newrelic-5.17.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
83
+ pulumi_newrelic-5.17.0.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
84
+ pulumi_newrelic-5.17.0.dist-info/RECORD,,