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.
- pulumi_newrelic/__init__.py +9 -0
- pulumi_newrelic/_inputs.py +126 -0
- pulumi_newrelic/alert_condition.py +2 -2
- pulumi_newrelic/get_service_level_alert_helper.py +2 -2
- pulumi_newrelic/infra_alert_condition.py +2 -2
- pulumi_newrelic/monitor_downtime.py +904 -0
- pulumi_newrelic/nrql_alert_condition.py +207 -9
- pulumi_newrelic/outputs.py +159 -0
- pulumi_newrelic/synthetics/alert_condition.py +2 -2
- {pulumi_newrelic-5.16.0a1703138319.dist-info → pulumi_newrelic-5.17.0.dist-info}/METADATA +2 -2
- {pulumi_newrelic-5.16.0a1703138319.dist-info → pulumi_newrelic-5.17.0.dist-info}/RECORD +13 -12
- {pulumi_newrelic-5.16.0a1703138319.dist-info → pulumi_newrelic-5.17.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.16.0a1703138319.dist-info → pulumi_newrelic-5.17.0.dist-info}/top_level.txt +0 -0
pulumi_newrelic/__init__.py
CHANGED
@@ -29,6 +29,7 @@ from .get_service_level_alert_helper import *
|
|
29
29
|
from .get_test_grok_pattern import *
|
30
30
|
from .infra_alert_condition import *
|
31
31
|
from .log_parsing_rule import *
|
32
|
+
from .monitor_downtime import *
|
32
33
|
from .notification_channel import *
|
33
34
|
from .notification_destination import *
|
34
35
|
from .nrql_alert_condition import *
|
@@ -234,6 +235,14 @@ _utilities.register(
|
|
234
235
|
"newrelic:index/logParsingRule:LogParsingRule": "LogParsingRule"
|
235
236
|
}
|
236
237
|
},
|
238
|
+
{
|
239
|
+
"pkg": "newrelic",
|
240
|
+
"mod": "index/monitorDowntime",
|
241
|
+
"fqn": "pulumi_newrelic",
|
242
|
+
"classes": {
|
243
|
+
"newrelic:index/monitorDowntime:MonitorDowntime": "MonitorDowntime"
|
244
|
+
}
|
245
|
+
},
|
237
246
|
{
|
238
247
|
"pkg": "newrelic",
|
239
248
|
"mod": "index/notificationChannel",
|
pulumi_newrelic/_inputs.py
CHANGED
@@ -18,6 +18,9 @@ __all__ = [
|
|
18
18
|
'EntityTagsTagArgs',
|
19
19
|
'InfraAlertConditionCriticalArgs',
|
20
20
|
'InfraAlertConditionWarningArgs',
|
21
|
+
'MonitorDowntimeEndRepeatArgs',
|
22
|
+
'MonitorDowntimeFrequencyArgs',
|
23
|
+
'MonitorDowntimeFrequencyDaysOfWeekArgs',
|
21
24
|
'NotificationChannelPropertyArgs',
|
22
25
|
'NotificationDestinationAuthBasicArgs',
|
23
26
|
'NotificationDestinationAuthTokenArgs',
|
@@ -884,6 +887,129 @@ class InfraAlertConditionWarningArgs:
|
|
884
887
|
pulumi.set(self, "value", value)
|
885
888
|
|
886
889
|
|
890
|
+
@pulumi.input_type
|
891
|
+
class MonitorDowntimeEndRepeatArgs:
|
892
|
+
def __init__(__self__, *,
|
893
|
+
on_date: Optional[pulumi.Input[str]] = None,
|
894
|
+
on_repeat: Optional[pulumi.Input[int]] = None):
|
895
|
+
"""
|
896
|
+
:param pulumi.Input[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.
|
897
|
+
:param pulumi.Input[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.
|
898
|
+
|
899
|
+
> **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.
|
900
|
+
"""
|
901
|
+
if on_date is not None:
|
902
|
+
pulumi.set(__self__, "on_date", on_date)
|
903
|
+
if on_repeat is not None:
|
904
|
+
pulumi.set(__self__, "on_repeat", on_repeat)
|
905
|
+
|
906
|
+
@property
|
907
|
+
@pulumi.getter(name="onDate")
|
908
|
+
def on_date(self) -> Optional[pulumi.Input[str]]:
|
909
|
+
"""
|
910
|
+
The date on which the monitor downtime's repeat cycle would need to come to an end, a string in `DDDD-MM-YY` format.
|
911
|
+
"""
|
912
|
+
return pulumi.get(self, "on_date")
|
913
|
+
|
914
|
+
@on_date.setter
|
915
|
+
def on_date(self, value: Optional[pulumi.Input[str]]):
|
916
|
+
pulumi.set(self, "on_date", value)
|
917
|
+
|
918
|
+
@property
|
919
|
+
@pulumi.getter(name="onRepeat")
|
920
|
+
def on_repeat(self) -> Optional[pulumi.Input[int]]:
|
921
|
+
"""
|
922
|
+
An integer that specifies the number of occurrences, after which the monitor downtime's repeat cycle would need to come to an end.
|
923
|
+
|
924
|
+
> **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.
|
925
|
+
"""
|
926
|
+
return pulumi.get(self, "on_repeat")
|
927
|
+
|
928
|
+
@on_repeat.setter
|
929
|
+
def on_repeat(self, value: Optional[pulumi.Input[int]]):
|
930
|
+
pulumi.set(self, "on_repeat", value)
|
931
|
+
|
932
|
+
|
933
|
+
@pulumi.input_type
|
934
|
+
class MonitorDowntimeFrequencyArgs:
|
935
|
+
def __init__(__self__, *,
|
936
|
+
days_of_months: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
937
|
+
days_of_week: Optional[pulumi.Input['MonitorDowntimeFrequencyDaysOfWeekArgs']] = None):
|
938
|
+
"""
|
939
|
+
:param pulumi.Input[Sequence[pulumi.Input[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].
|
940
|
+
:param pulumi.Input['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 -
|
941
|
+
"""
|
942
|
+
if days_of_months is not None:
|
943
|
+
pulumi.set(__self__, "days_of_months", days_of_months)
|
944
|
+
if days_of_week is not None:
|
945
|
+
pulumi.set(__self__, "days_of_week", days_of_week)
|
946
|
+
|
947
|
+
@property
|
948
|
+
@pulumi.getter(name="daysOfMonths")
|
949
|
+
def days_of_months(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
950
|
+
"""
|
951
|
+
A list of integers, specifying the days of a month on which the monthly monitor downtime would function, e.g. [3, 6, 14, 23].
|
952
|
+
"""
|
953
|
+
return pulumi.get(self, "days_of_months")
|
954
|
+
|
955
|
+
@days_of_months.setter
|
956
|
+
def days_of_months(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
957
|
+
pulumi.set(self, "days_of_months", value)
|
958
|
+
|
959
|
+
@property
|
960
|
+
@pulumi.getter(name="daysOfWeek")
|
961
|
+
def days_of_week(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyDaysOfWeekArgs']]:
|
962
|
+
"""
|
963
|
+
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 -
|
964
|
+
"""
|
965
|
+
return pulumi.get(self, "days_of_week")
|
966
|
+
|
967
|
+
@days_of_week.setter
|
968
|
+
def days_of_week(self, value: Optional[pulumi.Input['MonitorDowntimeFrequencyDaysOfWeekArgs']]):
|
969
|
+
pulumi.set(self, "days_of_week", value)
|
970
|
+
|
971
|
+
|
972
|
+
@pulumi.input_type
|
973
|
+
class MonitorDowntimeFrequencyDaysOfWeekArgs:
|
974
|
+
def __init__(__self__, *,
|
975
|
+
ordinal_day_of_month: pulumi.Input[str],
|
976
|
+
week_day: pulumi.Input[str]):
|
977
|
+
"""
|
978
|
+
:param pulumi.Input[str] ordinal_day_of_month: The occurrence of `week_day` in a month (one of `"FIRST"`, `"SECOND"`, `"THIRD"`, `"FOURTH"`, `"LAST"`).
|
979
|
+
|
980
|
+
> **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.
|
981
|
+
:param pulumi.Input[str] week_day: A day of the week (one of `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` or `"SATURDAY"`).
|
982
|
+
"""
|
983
|
+
pulumi.set(__self__, "ordinal_day_of_month", ordinal_day_of_month)
|
984
|
+
pulumi.set(__self__, "week_day", week_day)
|
985
|
+
|
986
|
+
@property
|
987
|
+
@pulumi.getter(name="ordinalDayOfMonth")
|
988
|
+
def ordinal_day_of_month(self) -> pulumi.Input[str]:
|
989
|
+
"""
|
990
|
+
The occurrence of `week_day` in a month (one of `"FIRST"`, `"SECOND"`, `"THIRD"`, `"FOURTH"`, `"LAST"`).
|
991
|
+
|
992
|
+
> **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.
|
993
|
+
"""
|
994
|
+
return pulumi.get(self, "ordinal_day_of_month")
|
995
|
+
|
996
|
+
@ordinal_day_of_month.setter
|
997
|
+
def ordinal_day_of_month(self, value: pulumi.Input[str]):
|
998
|
+
pulumi.set(self, "ordinal_day_of_month", value)
|
999
|
+
|
1000
|
+
@property
|
1001
|
+
@pulumi.getter(name="weekDay")
|
1002
|
+
def week_day(self) -> pulumi.Input[str]:
|
1003
|
+
"""
|
1004
|
+
A day of the week (one of `"SUNDAY"`, `"MONDAY"`, `"TUESDAY"`, `"WEDNESDAY"`, `"THURSDAY"`, `"FRIDAY"` or `"SATURDAY"`).
|
1005
|
+
"""
|
1006
|
+
return pulumi.get(self, "week_day")
|
1007
|
+
|
1008
|
+
@week_day.setter
|
1009
|
+
def week_day(self, value: pulumi.Input[str]):
|
1010
|
+
pulumi.set(self, "week_day", value)
|
1011
|
+
|
1012
|
+
|
887
1013
|
@pulumi.input_type
|
888
1014
|
class NotificationChannelPropertyArgs:
|
889
1015
|
def __init__(__self__, *,
|
@@ -510,7 +510,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
510
510
|
"""
|
511
511
|
Use this resource to create and manage alert conditions for APM, Browser, and Mobile in New Relic.
|
512
512
|
|
513
|
-
> **
|
513
|
+
> **WARNING:** The `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.
|
514
514
|
|
515
515
|
## Example Usage
|
516
516
|
|
@@ -629,7 +629,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
629
629
|
"""
|
630
630
|
Use this resource to create and manage alert conditions for APM, Browser, and Mobile in New Relic.
|
631
631
|
|
632
|
-
> **
|
632
|
+
> **WARNING:** The `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.
|
633
633
|
|
634
634
|
## Example Usage
|
635
635
|
|
@@ -164,7 +164,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
164
164
|
slo_target: Optional[float] = None,
|
165
165
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceLevelAlertHelperResult:
|
166
166
|
"""
|
167
|
-
Use this data source to obtain the necessary fields to set up alerts on your service levels. It can be used for a `custom` alert_type in order to set up an alert with custom tolerated budget consumption and custom evaluation period or for recommended ones like `fast_burn`. For more information check [the documentation](https://docs.newrelic.com/docs/service-level-management/alerts-slm/).
|
167
|
+
Use this data source to obtain the necessary fields to set up alerts on your service levels. It can be used for a `custom` alert_type in order to set up an alert with custom tolerated budget consumption and custom evaluation period or for recommended ones like `fast_burn` or `slow_burn`. For more information check [the documentation](https://docs.newrelic.com/docs/service-level-management/alerts-slm/).
|
168
168
|
|
169
169
|
## Example Usage
|
170
170
|
|
@@ -282,7 +282,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
282
282
|
slo_target: Optional[pulumi.Input[float]] = None,
|
283
283
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServiceLevelAlertHelperResult]:
|
284
284
|
"""
|
285
|
-
Use this data source to obtain the necessary fields to set up alerts on your service levels. It can be used for a `custom` alert_type in order to set up an alert with custom tolerated budget consumption and custom evaluation period or for recommended ones like `fast_burn`. For more information check [the documentation](https://docs.newrelic.com/docs/service-level-management/alerts-slm/).
|
285
|
+
Use this data source to obtain the necessary fields to set up alerts on your service levels. It can be used for a `custom` alert_type in order to set up an alert with custom tolerated budget consumption and custom evaluation period or for recommended ones like `fast_burn` or `slow_burn`. For more information check [the documentation](https://docs.newrelic.com/docs/service-level-management/alerts-slm/).
|
286
286
|
|
287
287
|
## Example Usage
|
288
288
|
|
@@ -595,7 +595,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
595
595
|
"""
|
596
596
|
Use this resource to create and manage Infrastructure alert conditions in New Relic.
|
597
597
|
|
598
|
-
> **
|
598
|
+
> **WARNING:** The `InfraAlertCondition` 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.
|
599
599
|
|
600
600
|
## Example Usage
|
601
601
|
|
@@ -747,7 +747,7 @@ class InfraAlertCondition(pulumi.CustomResource):
|
|
747
747
|
"""
|
748
748
|
Use this resource to create and manage Infrastructure alert conditions in New Relic.
|
749
749
|
|
750
|
-
> **
|
750
|
+
> **WARNING:** The `InfraAlertCondition` 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.
|
751
751
|
|
752
752
|
## Example Usage
|
753
753
|
|