pulumi-newrelic 5.42.1__py3-none-any.whl → 5.58.0a1766556761__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_newrelic/__init__.py +19 -1
- pulumi_newrelic/_inputs.py +4314 -3779
- pulumi_newrelic/_utilities.py +1 -1
- pulumi_newrelic/account_management.py +37 -36
- pulumi_newrelic/alert_channel.py +63 -62
- pulumi_newrelic/alert_condition.py +219 -218
- pulumi_newrelic/alert_muting_rule.py +96 -95
- pulumi_newrelic/alert_policy.py +71 -70
- pulumi_newrelic/alert_policy_channel.py +54 -53
- pulumi_newrelic/api_access_key.py +186 -201
- pulumi_newrelic/browser_application.py +115 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +2226 -2118
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +101 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +71 -70
- pulumi_newrelic/cloud/aws_integrations.py +240 -192
- pulumi_newrelic/cloud/aws_link_account.py +71 -70
- pulumi_newrelic/cloud/azure_integrations.py +180 -132
- pulumi_newrelic/cloud/azure_link_account.py +105 -104
- pulumi_newrelic/cloud/gcp_integrations.py +115 -114
- pulumi_newrelic/cloud/gcp_link_account.py +56 -55
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1512 -1410
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +2 -2
- pulumi_newrelic/config/vars.py +15 -15
- pulumi_newrelic/data_partition_rule.py +114 -113
- pulumi_newrelic/entity_tags.py +79 -22
- pulumi_newrelic/events_to_metrics_rule.py +97 -96
- pulumi_newrelic/get_account.py +22 -22
- pulumi_newrelic/get_alert_channel.py +53 -21
- pulumi_newrelic/get_alert_policy.py +52 -26
- pulumi_newrelic/get_application.py +14 -14
- pulumi_newrelic/get_authentication_domain.py +10 -10
- pulumi_newrelic/get_cloud_account.py +22 -22
- pulumi_newrelic/get_entity.py +53 -53
- pulumi_newrelic/get_group.py +22 -22
- pulumi_newrelic/get_key_transaction.py +26 -26
- pulumi_newrelic/get_notification_destination.py +31 -31
- pulumi_newrelic/get_obfuscation_expression.py +16 -16
- pulumi_newrelic/get_service_level_alert_helper.py +54 -54
- pulumi_newrelic/get_test_grok_pattern.py +23 -23
- pulumi_newrelic/get_user.py +22 -22
- pulumi_newrelic/group.py +54 -53
- pulumi_newrelic/infra_alert_condition.py +257 -256
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +33 -33
- pulumi_newrelic/insights/event.py +6 -5
- pulumi_newrelic/insights/outputs.py +23 -23
- pulumi_newrelic/key_transaction.py +106 -105
- pulumi_newrelic/log_parsing_rule.py +148 -147
- pulumi_newrelic/monitor_downtime.py +148 -154
- pulumi_newrelic/notification_channel.py +218 -163
- pulumi_newrelic/notification_destination.py +123 -136
- pulumi_newrelic/nrql_alert_condition.py +513 -414
- pulumi_newrelic/nrql_drop_rule.py +108 -147
- pulumi_newrelic/obfuscation_expression.py +71 -70
- pulumi_newrelic/obfuscation_rule.py +91 -90
- pulumi_newrelic/one_dashboard.py +95 -94
- pulumi_newrelic/one_dashboard_json.py +64 -63
- pulumi_newrelic/one_dashboard_raw.py +116 -115
- pulumi_newrelic/outputs.py +3026 -2665
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +159 -159
- pulumi_newrelic/plugins/application_settings.py +186 -171
- pulumi_newrelic/plugins/outputs.py +109 -109
- pulumi_newrelic/plugins/workload.py +133 -132
- pulumi_newrelic/provider.py +136 -116
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +78 -77
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +128 -128
- pulumi_newrelic/synthetics/alert_condition.py +97 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +218 -189
- pulumi_newrelic/synthetics/cert_check_monitor.py +226 -197
- pulumi_newrelic/synthetics/get_private_location.py +22 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +20 -20
- pulumi_newrelic/synthetics/monitor.py +399 -370
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +120 -119
- pulumi_newrelic/synthetics/outputs.py +86 -86
- pulumi_newrelic/synthetics/private_location.py +107 -106
- pulumi_newrelic/synthetics/script_monitor.py +385 -294
- pulumi_newrelic/synthetics/secure_credential.py +88 -87
- pulumi_newrelic/synthetics/step_monitor.py +241 -212
- pulumi_newrelic/user.py +71 -70
- pulumi_newrelic/workflow.py +141 -140
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/METADATA +4 -4
- pulumi_newrelic-5.58.0a1766556761.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.42.1.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -37,22 +37,22 @@ class GetObfuscationExpressionResult:
|
|
|
37
37
|
raise TypeError("Expected argument 'name' to be a str")
|
|
38
38
|
pulumi.set(__self__, "name", name)
|
|
39
39
|
|
|
40
|
-
@property
|
|
40
|
+
@_builtins.property
|
|
41
41
|
@pulumi.getter(name="accountId")
|
|
42
|
-
def account_id(self) -> Optional[str]:
|
|
42
|
+
def account_id(self) -> Optional[_builtins.str]:
|
|
43
43
|
return pulumi.get(self, "account_id")
|
|
44
44
|
|
|
45
|
-
@property
|
|
45
|
+
@_builtins.property
|
|
46
46
|
@pulumi.getter
|
|
47
|
-
def id(self) -> str:
|
|
47
|
+
def id(self) -> _builtins.str:
|
|
48
48
|
"""
|
|
49
49
|
The provider-assigned unique ID for this managed resource.
|
|
50
50
|
"""
|
|
51
51
|
return pulumi.get(self, "id")
|
|
52
52
|
|
|
53
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
54
54
|
@pulumi.getter
|
|
55
|
-
def name(self) -> str:
|
|
55
|
+
def name(self) -> _builtins.str:
|
|
56
56
|
return pulumi.get(self, "name")
|
|
57
57
|
|
|
58
58
|
|
|
@@ -67,8 +67,8 @@ class AwaitableGetObfuscationExpressionResult(GetObfuscationExpressionResult):
|
|
|
67
67
|
name=self.name)
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
def get_obfuscation_expression(account_id: Optional[str] = None,
|
|
71
|
-
name: Optional[str] = None,
|
|
70
|
+
def get_obfuscation_expression(account_id: Optional[_builtins.str] = None,
|
|
71
|
+
name: Optional[_builtins.str] = None,
|
|
72
72
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetObfuscationExpressionResult:
|
|
73
73
|
"""
|
|
74
74
|
Use this data source to get information about a specific Obfuscation Expression in New Relic that already exists.
|
|
@@ -94,8 +94,8 @@ def get_obfuscation_expression(account_id: Optional[str] = None,
|
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
:param str account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
|
|
98
|
-
:param str name: Name of expression.
|
|
97
|
+
:param _builtins.str account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
|
|
98
|
+
:param _builtins.str name: Name of expression.
|
|
99
99
|
"""
|
|
100
100
|
__args__ = dict()
|
|
101
101
|
__args__['accountId'] = account_id
|
|
@@ -107,8 +107,8 @@ def get_obfuscation_expression(account_id: Optional[str] = None,
|
|
|
107
107
|
account_id=pulumi.get(__ret__, 'account_id'),
|
|
108
108
|
id=pulumi.get(__ret__, 'id'),
|
|
109
109
|
name=pulumi.get(__ret__, 'name'))
|
|
110
|
-
def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
111
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
110
|
+
def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
111
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
112
112
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetObfuscationExpressionResult]:
|
|
113
113
|
"""
|
|
114
114
|
Use this data source to get information about a specific Obfuscation Expression in New Relic that already exists.
|
|
@@ -134,8 +134,8 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
|
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
:param str account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
|
|
138
|
-
:param str name: Name of expression.
|
|
137
|
+
:param _builtins.str account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
|
|
138
|
+
:param _builtins.str name: Name of expression.
|
|
139
139
|
"""
|
|
140
140
|
__args__ = dict()
|
|
141
141
|
__args__['accountId'] = account_id
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -64,76 +64,76 @@ class GetServiceLevelAlertHelperResult:
|
|
|
64
64
|
raise TypeError("Expected argument 'tolerated_budget_consumption' to be a float")
|
|
65
65
|
pulumi.set(__self__, "tolerated_budget_consumption", tolerated_budget_consumption)
|
|
66
66
|
|
|
67
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
68
68
|
@pulumi.getter(name="alertType")
|
|
69
|
-
def alert_type(self) -> str:
|
|
69
|
+
def alert_type(self) -> _builtins.str:
|
|
70
70
|
return pulumi.get(self, "alert_type")
|
|
71
71
|
|
|
72
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
73
73
|
@pulumi.getter(name="customEvaluationPeriod")
|
|
74
|
-
def custom_evaluation_period(self) -> Optional[int]:
|
|
74
|
+
def custom_evaluation_period(self) -> Optional[_builtins.int]:
|
|
75
75
|
return pulumi.get(self, "custom_evaluation_period")
|
|
76
76
|
|
|
77
|
-
@property
|
|
77
|
+
@_builtins.property
|
|
78
78
|
@pulumi.getter(name="customToleratedBudgetConsumption")
|
|
79
|
-
def custom_tolerated_budget_consumption(self) -> Optional[float]:
|
|
79
|
+
def custom_tolerated_budget_consumption(self) -> Optional[_builtins.float]:
|
|
80
80
|
return pulumi.get(self, "custom_tolerated_budget_consumption")
|
|
81
81
|
|
|
82
|
-
@property
|
|
82
|
+
@_builtins.property
|
|
83
83
|
@pulumi.getter(name="evaluationPeriod")
|
|
84
|
-
def evaluation_period(self) -> int:
|
|
84
|
+
def evaluation_period(self) -> _builtins.int:
|
|
85
85
|
"""
|
|
86
86
|
(Computed) For non `custom` alert_type, this is the recommended for that type of alert. For `custom` alert_type it has the same value as `custom_evaluation_period`.
|
|
87
87
|
"""
|
|
88
88
|
return pulumi.get(self, "evaluation_period")
|
|
89
89
|
|
|
90
|
-
@property
|
|
90
|
+
@_builtins.property
|
|
91
91
|
@pulumi.getter
|
|
92
|
-
def id(self) -> str:
|
|
92
|
+
def id(self) -> _builtins.str:
|
|
93
93
|
"""
|
|
94
94
|
The provider-assigned unique ID for this managed resource.
|
|
95
95
|
"""
|
|
96
96
|
return pulumi.get(self, "id")
|
|
97
97
|
|
|
98
|
-
@property
|
|
98
|
+
@_builtins.property
|
|
99
99
|
@pulumi.getter(name="isBadEvents")
|
|
100
|
-
def is_bad_events(self) -> Optional[bool]:
|
|
100
|
+
def is_bad_events(self) -> Optional[_builtins.bool]:
|
|
101
101
|
return pulumi.get(self, "is_bad_events")
|
|
102
102
|
|
|
103
|
-
@property
|
|
103
|
+
@_builtins.property
|
|
104
104
|
@pulumi.getter
|
|
105
|
-
def nrql(self) -> str:
|
|
105
|
+
def nrql(self) -> _builtins.str:
|
|
106
106
|
"""
|
|
107
107
|
(Computed) The nrql query for the selected type of alert.
|
|
108
108
|
"""
|
|
109
109
|
return pulumi.get(self, "nrql")
|
|
110
110
|
|
|
111
|
-
@property
|
|
111
|
+
@_builtins.property
|
|
112
112
|
@pulumi.getter(name="sliGuid")
|
|
113
|
-
def sli_guid(self) -> str:
|
|
113
|
+
def sli_guid(self) -> _builtins.str:
|
|
114
114
|
return pulumi.get(self, "sli_guid")
|
|
115
115
|
|
|
116
|
-
@property
|
|
116
|
+
@_builtins.property
|
|
117
117
|
@pulumi.getter(name="sloPeriod")
|
|
118
|
-
def slo_period(self) -> int:
|
|
118
|
+
def slo_period(self) -> _builtins.int:
|
|
119
119
|
return pulumi.get(self, "slo_period")
|
|
120
120
|
|
|
121
|
-
@property
|
|
121
|
+
@_builtins.property
|
|
122
122
|
@pulumi.getter(name="sloTarget")
|
|
123
|
-
def slo_target(self) -> float:
|
|
123
|
+
def slo_target(self) -> _builtins.float:
|
|
124
124
|
return pulumi.get(self, "slo_target")
|
|
125
125
|
|
|
126
|
-
@property
|
|
126
|
+
@_builtins.property
|
|
127
127
|
@pulumi.getter
|
|
128
|
-
def threshold(self) -> float:
|
|
128
|
+
def threshold(self) -> _builtins.float:
|
|
129
129
|
"""
|
|
130
130
|
(Computed) The computed threshold given the provided arguments.
|
|
131
131
|
"""
|
|
132
132
|
return pulumi.get(self, "threshold")
|
|
133
133
|
|
|
134
|
-
@property
|
|
134
|
+
@_builtins.property
|
|
135
135
|
@pulumi.getter(name="toleratedBudgetConsumption")
|
|
136
|
-
def tolerated_budget_consumption(self) -> float:
|
|
136
|
+
def tolerated_budget_consumption(self) -> _builtins.float:
|
|
137
137
|
"""
|
|
138
138
|
(Computed) For non `custom` alert_type, this is the recommended for that type of alert. For `custom` alert_type it has the same value as `custom_tolerated_budget_consumption`.
|
|
139
139
|
"""
|
|
@@ -160,13 +160,13 @@ class AwaitableGetServiceLevelAlertHelperResult(GetServiceLevelAlertHelperResult
|
|
|
160
160
|
tolerated_budget_consumption=self.tolerated_budget_consumption)
|
|
161
161
|
|
|
162
162
|
|
|
163
|
-
def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
164
|
-
custom_evaluation_period: Optional[int] = None,
|
|
165
|
-
custom_tolerated_budget_consumption: Optional[float] = None,
|
|
166
|
-
is_bad_events: Optional[bool] = None,
|
|
167
|
-
sli_guid: Optional[str] = None,
|
|
168
|
-
slo_period: Optional[int] = None,
|
|
169
|
-
slo_target: Optional[float] = None,
|
|
163
|
+
def get_service_level_alert_helper(alert_type: Optional[_builtins.str] = None,
|
|
164
|
+
custom_evaluation_period: Optional[_builtins.int] = None,
|
|
165
|
+
custom_tolerated_budget_consumption: Optional[_builtins.float] = None,
|
|
166
|
+
is_bad_events: Optional[_builtins.bool] = None,
|
|
167
|
+
sli_guid: Optional[_builtins.str] = None,
|
|
168
|
+
slo_period: Optional[_builtins.int] = None,
|
|
169
|
+
slo_target: Optional[_builtins.float] = None,
|
|
170
170
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceLevelAlertHelperResult:
|
|
171
171
|
"""
|
|
172
172
|
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/).
|
|
@@ -281,13 +281,13 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
|
281
281
|
```
|
|
282
282
|
|
|
283
283
|
|
|
284
|
-
:param str alert_type: The type of alert we want to set. Valid values are:
|
|
285
|
-
:param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
|
286
|
-
:param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
|
287
|
-
:param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
|
288
|
-
:param str sli_guid: The guid of the sli we want to set the alert on.
|
|
289
|
-
:param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
|
290
|
-
:param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
|
284
|
+
:param _builtins.str alert_type: The type of alert we want to set. Valid values are:
|
|
285
|
+
:param _builtins.int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
|
286
|
+
:param _builtins.float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
|
287
|
+
:param _builtins.bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
|
288
|
+
:param _builtins.str sli_guid: The guid of the sli we want to set the alert on.
|
|
289
|
+
:param _builtins.int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
|
290
|
+
:param _builtins.float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
|
291
291
|
"""
|
|
292
292
|
__args__ = dict()
|
|
293
293
|
__args__['alertType'] = alert_type
|
|
@@ -313,13 +313,13 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
|
|
|
313
313
|
slo_target=pulumi.get(__ret__, 'slo_target'),
|
|
314
314
|
threshold=pulumi.get(__ret__, 'threshold'),
|
|
315
315
|
tolerated_budget_consumption=pulumi.get(__ret__, 'tolerated_budget_consumption'))
|
|
316
|
-
def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]] = None,
|
|
317
|
-
custom_evaluation_period: Optional[pulumi.Input[Optional[int]]] = None,
|
|
318
|
-
custom_tolerated_budget_consumption: Optional[pulumi.Input[Optional[float]]] = None,
|
|
319
|
-
is_bad_events: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
320
|
-
sli_guid: Optional[pulumi.Input[str]] = None,
|
|
321
|
-
slo_period: Optional[pulumi.Input[int]] = None,
|
|
322
|
-
slo_target: Optional[pulumi.Input[float]] = None,
|
|
316
|
+
def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
317
|
+
custom_evaluation_period: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
318
|
+
custom_tolerated_budget_consumption: Optional[pulumi.Input[Optional[_builtins.float]]] = None,
|
|
319
|
+
is_bad_events: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
320
|
+
sli_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
321
|
+
slo_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
322
|
+
slo_target: Optional[pulumi.Input[_builtins.float]] = None,
|
|
323
323
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceLevelAlertHelperResult]:
|
|
324
324
|
"""
|
|
325
325
|
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/).
|
|
@@ -434,13 +434,13 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
|
|
|
434
434
|
```
|
|
435
435
|
|
|
436
436
|
|
|
437
|
-
:param str alert_type: The type of alert we want to set. Valid values are:
|
|
438
|
-
:param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
|
439
|
-
:param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
|
440
|
-
:param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
|
441
|
-
:param str sli_guid: The guid of the sli we want to set the alert on.
|
|
442
|
-
:param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
|
443
|
-
:param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
|
437
|
+
:param _builtins.str alert_type: The type of alert we want to set. Valid values are:
|
|
438
|
+
:param _builtins.int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
|
|
439
|
+
:param _builtins.float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
|
|
440
|
+
:param _builtins.bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
|
|
441
|
+
:param _builtins.str sli_guid: The guid of the sli we want to set the alert on.
|
|
442
|
+
:param _builtins.int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
|
|
443
|
+
:param _builtins.float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
|
|
444
444
|
"""
|
|
445
445
|
__args__ = dict()
|
|
446
446
|
__args__['alertType'] = alert_type
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -44,30 +44,30 @@ class GetTestGrokPatternResult:
|
|
|
44
44
|
raise TypeError("Expected argument 'test_groks' to be a list")
|
|
45
45
|
pulumi.set(__self__, "test_groks", test_groks)
|
|
46
46
|
|
|
47
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
48
48
|
@pulumi.getter(name="accountId")
|
|
49
|
-
def account_id(self) -> Optional[str]:
|
|
49
|
+
def account_id(self) -> Optional[_builtins.str]:
|
|
50
50
|
return pulumi.get(self, "account_id")
|
|
51
51
|
|
|
52
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
53
53
|
@pulumi.getter
|
|
54
|
-
def grok(self) -> str:
|
|
54
|
+
def grok(self) -> _builtins.str:
|
|
55
55
|
return pulumi.get(self, "grok")
|
|
56
56
|
|
|
57
|
-
@property
|
|
57
|
+
@_builtins.property
|
|
58
58
|
@pulumi.getter
|
|
59
|
-
def id(self) -> str:
|
|
59
|
+
def id(self) -> _builtins.str:
|
|
60
60
|
"""
|
|
61
61
|
The provider-assigned unique ID for this managed resource.
|
|
62
62
|
"""
|
|
63
63
|
return pulumi.get(self, "id")
|
|
64
64
|
|
|
65
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
66
66
|
@pulumi.getter(name="logLines")
|
|
67
|
-
def log_lines(self) -> Sequence[str]:
|
|
67
|
+
def log_lines(self) -> Sequence[_builtins.str]:
|
|
68
68
|
return pulumi.get(self, "log_lines")
|
|
69
69
|
|
|
70
|
-
@property
|
|
70
|
+
@_builtins.property
|
|
71
71
|
@pulumi.getter(name="testGroks")
|
|
72
72
|
def test_groks(self) -> Sequence['outputs.GetTestGrokPatternTestGrokResult']:
|
|
73
73
|
"""
|
|
@@ -89,9 +89,9 @@ class AwaitableGetTestGrokPatternResult(GetTestGrokPatternResult):
|
|
|
89
89
|
test_groks=self.test_groks)
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
def get_test_grok_pattern(account_id: Optional[str] = None,
|
|
93
|
-
grok: Optional[str] = None,
|
|
94
|
-
log_lines: Optional[Sequence[str]] = None,
|
|
92
|
+
def get_test_grok_pattern(account_id: Optional[_builtins.str] = None,
|
|
93
|
+
grok: Optional[_builtins.str] = None,
|
|
94
|
+
log_lines: Optional[Sequence[_builtins.str]] = None,
|
|
95
95
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTestGrokPatternResult:
|
|
96
96
|
"""
|
|
97
97
|
## Example Usage
|
|
@@ -109,9 +109,9 @@ def get_test_grok_pattern(account_id: Optional[str] = None,
|
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
:param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
113
|
-
:param str grok: The Grok pattern to test.
|
|
114
|
-
:param Sequence[str] log_lines: The log lines to test the Grok pattern against.
|
|
112
|
+
:param _builtins.str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
113
|
+
:param _builtins.str grok: The Grok pattern to test.
|
|
114
|
+
:param Sequence[_builtins.str] log_lines: The log lines to test the Grok pattern against.
|
|
115
115
|
"""
|
|
116
116
|
__args__ = dict()
|
|
117
117
|
__args__['accountId'] = account_id
|
|
@@ -126,9 +126,9 @@ def get_test_grok_pattern(account_id: Optional[str] = None,
|
|
|
126
126
|
id=pulumi.get(__ret__, 'id'),
|
|
127
127
|
log_lines=pulumi.get(__ret__, 'log_lines'),
|
|
128
128
|
test_groks=pulumi.get(__ret__, 'test_groks'))
|
|
129
|
-
def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
130
|
-
grok: Optional[pulumi.Input[str]] = None,
|
|
131
|
-
log_lines: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
129
|
+
def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
130
|
+
grok: Optional[pulumi.Input[_builtins.str]] = None,
|
|
131
|
+
log_lines: Optional[pulumi.Input[Sequence[_builtins.str]]] = None,
|
|
132
132
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTestGrokPatternResult]:
|
|
133
133
|
"""
|
|
134
134
|
## Example Usage
|
|
@@ -146,9 +146,9 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[str]
|
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
|
|
149
|
-
:param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
150
|
-
:param str grok: The Grok pattern to test.
|
|
151
|
-
:param Sequence[str] log_lines: The log lines to test the Grok pattern against.
|
|
149
|
+
:param _builtins.str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
150
|
+
:param _builtins.str grok: The Grok pattern to test.
|
|
151
|
+
:param Sequence[_builtins.str] log_lines: The log lines to test the Grok pattern against.
|
|
152
152
|
"""
|
|
153
153
|
__args__ = dict()
|
|
154
154
|
__args__['accountId'] = account_id
|
pulumi_newrelic/get_user.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -40,27 +40,27 @@ class GetUserResult:
|
|
|
40
40
|
raise TypeError("Expected argument 'name' to be a str")
|
|
41
41
|
pulumi.set(__self__, "name", name)
|
|
42
42
|
|
|
43
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
44
44
|
@pulumi.getter(name="authenticationDomainId")
|
|
45
|
-
def authentication_domain_id(self) -> str:
|
|
45
|
+
def authentication_domain_id(self) -> _builtins.str:
|
|
46
46
|
return pulumi.get(self, "authentication_domain_id")
|
|
47
47
|
|
|
48
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
49
49
|
@pulumi.getter(name="emailId")
|
|
50
|
-
def email_id(self) -> str:
|
|
50
|
+
def email_id(self) -> _builtins.str:
|
|
51
51
|
return pulumi.get(self, "email_id")
|
|
52
52
|
|
|
53
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
54
54
|
@pulumi.getter
|
|
55
|
-
def id(self) -> str:
|
|
55
|
+
def id(self) -> _builtins.str:
|
|
56
56
|
"""
|
|
57
57
|
The ID of the matching user fetched.
|
|
58
58
|
"""
|
|
59
59
|
return pulumi.get(self, "id")
|
|
60
60
|
|
|
61
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
62
62
|
@pulumi.getter
|
|
63
|
-
def name(self) -> str:
|
|
63
|
+
def name(self) -> _builtins.str:
|
|
64
64
|
return pulumi.get(self, "name")
|
|
65
65
|
|
|
66
66
|
|
|
@@ -76,9 +76,9 @@ class AwaitableGetUserResult(GetUserResult):
|
|
|
76
76
|
name=self.name)
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
def get_user(authentication_domain_id: Optional[str] = None,
|
|
80
|
-
email_id: Optional[str] = None,
|
|
81
|
-
name: Optional[str] = None,
|
|
79
|
+
def get_user(authentication_domain_id: Optional[_builtins.str] = None,
|
|
80
|
+
email_id: Optional[_builtins.str] = None,
|
|
81
|
+
name: Optional[_builtins.str] = None,
|
|
82
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserResult:
|
|
83
83
|
"""
|
|
84
84
|
The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
|
|
@@ -98,15 +98,15 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
102
|
-
:param str email_id: The email ID of the user to search for.
|
|
101
|
+
:param _builtins.str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
102
|
+
:param _builtins.str email_id: The email ID of the user to search for.
|
|
103
103
|
|
|
104
104
|
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
|
105
105
|
|
|
106
106
|
> **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
|
|
107
107
|
|
|
108
108
|
> **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
|
|
109
|
-
:param str name: The name of the user to search for.
|
|
109
|
+
:param _builtins.str name: The name of the user to search for.
|
|
110
110
|
"""
|
|
111
111
|
__args__ = dict()
|
|
112
112
|
__args__['authenticationDomainId'] = authentication_domain_id
|
|
@@ -120,9 +120,9 @@ def get_user(authentication_domain_id: Optional[str] = None,
|
|
|
120
120
|
email_id=pulumi.get(__ret__, 'email_id'),
|
|
121
121
|
id=pulumi.get(__ret__, 'id'),
|
|
122
122
|
name=pulumi.get(__ret__, 'name'))
|
|
123
|
-
def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None,
|
|
124
|
-
email_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
125
|
-
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
123
|
+
def get_user_output(authentication_domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
124
|
+
email_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
125
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
126
126
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserResult]:
|
|
127
127
|
"""
|
|
128
128
|
The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
|
|
@@ -142,15 +142,15 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
|
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
:param str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
146
|
-
:param str email_id: The email ID of the user to search for.
|
|
145
|
+
:param _builtins.str authentication_domain_id: The ID of the authentication domain the user to be searched for belongs to.
|
|
146
|
+
:param _builtins.str email_id: The email ID of the user to search for.
|
|
147
147
|
|
|
148
148
|
It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
|
|
149
149
|
|
|
150
150
|
> **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
|
|
151
151
|
|
|
152
152
|
> **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
|
|
153
|
-
:param str name: The name of the user to search for.
|
|
153
|
+
:param _builtins.str name: The name of the user to search for.
|
|
154
154
|
"""
|
|
155
155
|
__args__ = dict()
|
|
156
156
|
__args__['authenticationDomainId'] = authentication_domain_id
|