pulumi-newrelic 5.45.0a1743574084__py3-none-any.whl → 5.45.0a1744183332__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 +1 -0
- pulumi_newrelic/_inputs.py +2961 -2960
- pulumi_newrelic/account_management.py +29 -28
- pulumi_newrelic/alert_channel.py +43 -42
- pulumi_newrelic/alert_condition.py +176 -175
- pulumi_newrelic/alert_muting_rule.py +71 -70
- pulumi_newrelic/alert_policy.py +57 -56
- pulumi_newrelic/alert_policy_channel.py +43 -42
- pulumi_newrelic/api_access_key.py +92 -91
- pulumi_newrelic/browser_application.py +92 -91
- pulumi_newrelic/cloud/__init__.py +1 -0
- pulumi_newrelic/cloud/_inputs.py +1765 -1764
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +29 -28
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +57 -56
- pulumi_newrelic/cloud/aws_integrations.py +29 -28
- pulumi_newrelic/cloud/aws_link_account.py +57 -56
- pulumi_newrelic/cloud/azure_integrations.py +29 -28
- pulumi_newrelic/cloud/azure_link_account.py +85 -84
- pulumi_newrelic/cloud/gcp_integrations.py +29 -28
- pulumi_newrelic/cloud/gcp_link_account.py +45 -44
- pulumi_newrelic/cloud/outputs.py +1057 -1056
- pulumi_newrelic/config/__init__.py +1 -0
- pulumi_newrelic/config/__init__.pyi +1 -0
- pulumi_newrelic/config/vars.py +1 -0
- pulumi_newrelic/data_partition_rule.py +92 -91
- pulumi_newrelic/entity_tags.py +15 -14
- pulumi_newrelic/events_to_metrics_rule.py +78 -77
- pulumi_newrelic/get_account.py +17 -16
- pulumi_newrelic/get_alert_channel.py +14 -13
- pulumi_newrelic/get_alert_policy.py +19 -18
- pulumi_newrelic/get_application.py +9 -8
- pulumi_newrelic/get_authentication_domain.py +7 -6
- pulumi_newrelic/get_cloud_account.py +17 -16
- pulumi_newrelic/get_entity.py +40 -39
- pulumi_newrelic/get_group.py +13 -12
- pulumi_newrelic/get_key_transaction.py +19 -18
- pulumi_newrelic/get_notification_destination.py +20 -19
- pulumi_newrelic/get_obfuscation_expression.py +12 -11
- pulumi_newrelic/get_service_level_alert_helper.py +41 -40
- pulumi_newrelic/get_test_grok_pattern.py +17 -16
- pulumi_newrelic/get_user.py +17 -16
- pulumi_newrelic/group.py +43 -42
- pulumi_newrelic/infra_alert_condition.py +204 -203
- pulumi_newrelic/insights/__init__.py +1 -0
- pulumi_newrelic/insights/_inputs.py +26 -25
- pulumi_newrelic/insights/event.py +1 -0
- pulumi_newrelic/insights/outputs.py +16 -15
- pulumi_newrelic/key_transaction.py +85 -84
- pulumi_newrelic/log_parsing_rule.py +120 -119
- pulumi_newrelic/monitor_downtime.py +113 -112
- pulumi_newrelic/notification_channel.py +92 -91
- pulumi_newrelic/notification_destination.py +78 -77
- pulumi_newrelic/nrql_alert_condition.py +330 -329
- pulumi_newrelic/nrql_drop_rule.py +64 -63
- pulumi_newrelic/obfuscation_expression.py +57 -56
- pulumi_newrelic/obfuscation_rule.py +71 -70
- pulumi_newrelic/one_dashboard.py +71 -70
- pulumi_newrelic/one_dashboard_json.py +50 -49
- pulumi_newrelic/one_dashboard_raw.py +71 -70
- pulumi_newrelic/outputs.py +1831 -1830
- pulumi_newrelic/plugins/__init__.py +1 -0
- pulumi_newrelic/plugins/_inputs.py +126 -125
- pulumi_newrelic/plugins/application_settings.py +132 -131
- pulumi_newrelic/plugins/outputs.py +76 -75
- pulumi_newrelic/plugins/workload.py +99 -98
- pulumi_newrelic/provider.py +80 -79
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +57 -56
- pulumi_newrelic/synthetics/__init__.py +1 -0
- pulumi_newrelic/synthetics/_inputs.py +106 -105
- pulumi_newrelic/synthetics/alert_condition.py +78 -77
- pulumi_newrelic/synthetics/broken_links_monitor.py +151 -150
- pulumi_newrelic/synthetics/cert_check_monitor.py +158 -157
- pulumi_newrelic/synthetics/get_private_location.py +17 -16
- pulumi_newrelic/synthetics/get_secure_credential.py +14 -13
- pulumi_newrelic/synthetics/monitor.py +298 -297
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +92 -91
- pulumi_newrelic/synthetics/outputs.py +64 -63
- pulumi_newrelic/synthetics/private_location.py +85 -84
- pulumi_newrelic/synthetics/script_monitor.py +235 -234
- pulumi_newrelic/synthetics/secure_credential.py +71 -70
- pulumi_newrelic/synthetics/step_monitor.py +165 -164
- pulumi_newrelic/user.py +57 -56
- pulumi_newrelic/workflow.py +106 -105
- {pulumi_newrelic-5.45.0a1743574084.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.45.0a1744183332.dist-info/RECORD +90 -0
- pulumi_newrelic-5.45.0a1743574084.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.45.0a1743574084.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.45.0a1743574084.dist-info → pulumi_newrelic-5.45.0a1744183332.dist-info}/top_level.txt +0 -0
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -21,40 +22,40 @@ __all__ = ['AlertConditionArgs', 'AlertCondition']
|
|
21
22
|
@pulumi.input_type
|
22
23
|
class AlertConditionArgs:
|
23
24
|
def __init__(__self__, *,
|
24
|
-
entities: pulumi.Input[Sequence[pulumi.Input[str]]],
|
25
|
-
metric: pulumi.Input[str],
|
26
|
-
policy_id: pulumi.Input[str],
|
25
|
+
entities: pulumi.Input[Sequence[pulumi.Input[builtins.str]]],
|
26
|
+
metric: pulumi.Input[builtins.str],
|
27
|
+
policy_id: pulumi.Input[builtins.str],
|
27
28
|
terms: pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]],
|
28
|
-
type: pulumi.Input[str],
|
29
|
-
condition_scope: Optional[pulumi.Input[str]] = None,
|
30
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
31
|
-
gc_metric: Optional[pulumi.Input[str]] = None,
|
32
|
-
name: Optional[pulumi.Input[str]] = None,
|
33
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
34
|
-
user_defined_metric: Optional[pulumi.Input[str]] = None,
|
35
|
-
user_defined_value_function: Optional[pulumi.Input[str]] = None,
|
36
|
-
violation_close_timer: Optional[pulumi.Input[int]] = None):
|
29
|
+
type: pulumi.Input[builtins.str],
|
30
|
+
condition_scope: Optional[pulumi.Input[builtins.str]] = None,
|
31
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
32
|
+
gc_metric: Optional[pulumi.Input[builtins.str]] = None,
|
33
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
34
|
+
runbook_url: Optional[pulumi.Input[builtins.str]] = None,
|
35
|
+
user_defined_metric: Optional[pulumi.Input[builtins.str]] = None,
|
36
|
+
user_defined_value_function: Optional[pulumi.Input[builtins.str]] = None,
|
37
|
+
violation_close_timer: Optional[pulumi.Input[builtins.int]] = None):
|
37
38
|
"""
|
38
39
|
The set of arguments for constructing a AlertCondition resource.
|
39
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
40
|
-
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
41
|
-
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
40
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entities: The instance IDs associated with this condition.
|
41
|
+
:param pulumi.Input[builtins.str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
42
|
+
:param pulumi.Input[builtins.str] policy_id: The ID of the policy where this condition should be used.
|
42
43
|
:param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
|
43
|
-
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
44
|
-
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
45
|
-
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
46
|
-
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
47
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
48
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
49
|
-
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
50
|
-
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
44
|
+
:param pulumi.Input[builtins.str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
45
|
+
:param pulumi.Input[builtins.str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
46
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
47
|
+
:param pulumi.Input[builtins.str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
48
|
+
:param pulumi.Input[builtins.str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
49
|
+
:param pulumi.Input[builtins.str] runbook_url: Runbook URL to display in notifications.
|
50
|
+
:param pulumi.Input[builtins.str] user_defined_metric: A custom metric to be evaluated.
|
51
|
+
:param pulumi.Input[builtins.str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
51
52
|
|
52
53
|
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
53
54
|
|
54
55
|
```
|
55
56
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
56
57
|
```
|
57
|
-
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
58
|
+
:param pulumi.Input[builtins.int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
58
59
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
59
60
|
* when `type` = `apm_jvm_metric`
|
60
61
|
"""
|
@@ -82,38 +83,38 @@ class AlertConditionArgs:
|
|
82
83
|
|
83
84
|
@property
|
84
85
|
@pulumi.getter
|
85
|
-
def entities(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
86
|
+
def entities(self) -> pulumi.Input[Sequence[pulumi.Input[builtins.str]]]:
|
86
87
|
"""
|
87
88
|
The instance IDs associated with this condition.
|
88
89
|
"""
|
89
90
|
return pulumi.get(self, "entities")
|
90
91
|
|
91
92
|
@entities.setter
|
92
|
-
def entities(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
93
|
+
def entities(self, value: pulumi.Input[Sequence[pulumi.Input[builtins.str]]]):
|
93
94
|
pulumi.set(self, "entities", value)
|
94
95
|
|
95
96
|
@property
|
96
97
|
@pulumi.getter
|
97
|
-
def metric(self) -> pulumi.Input[str]:
|
98
|
+
def metric(self) -> pulumi.Input[builtins.str]:
|
98
99
|
"""
|
99
100
|
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
100
101
|
"""
|
101
102
|
return pulumi.get(self, "metric")
|
102
103
|
|
103
104
|
@metric.setter
|
104
|
-
def metric(self, value: pulumi.Input[str]):
|
105
|
+
def metric(self, value: pulumi.Input[builtins.str]):
|
105
106
|
pulumi.set(self, "metric", value)
|
106
107
|
|
107
108
|
@property
|
108
109
|
@pulumi.getter(name="policyId")
|
109
|
-
def policy_id(self) -> pulumi.Input[str]:
|
110
|
+
def policy_id(self) -> pulumi.Input[builtins.str]:
|
110
111
|
"""
|
111
112
|
The ID of the policy where this condition should be used.
|
112
113
|
"""
|
113
114
|
return pulumi.get(self, "policy_id")
|
114
115
|
|
115
116
|
@policy_id.setter
|
116
|
-
def policy_id(self, value: pulumi.Input[str]):
|
117
|
+
def policy_id(self, value: pulumi.Input[builtins.str]):
|
117
118
|
pulumi.set(self, "policy_id", value)
|
118
119
|
|
119
120
|
@property
|
@@ -130,91 +131,91 @@ class AlertConditionArgs:
|
|
130
131
|
|
131
132
|
@property
|
132
133
|
@pulumi.getter
|
133
|
-
def type(self) -> pulumi.Input[str]:
|
134
|
+
def type(self) -> pulumi.Input[builtins.str]:
|
134
135
|
"""
|
135
136
|
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
136
137
|
"""
|
137
138
|
return pulumi.get(self, "type")
|
138
139
|
|
139
140
|
@type.setter
|
140
|
-
def type(self, value: pulumi.Input[str]):
|
141
|
+
def type(self, value: pulumi.Input[builtins.str]):
|
141
142
|
pulumi.set(self, "type", value)
|
142
143
|
|
143
144
|
@property
|
144
145
|
@pulumi.getter(name="conditionScope")
|
145
|
-
def condition_scope(self) -> Optional[pulumi.Input[str]]:
|
146
|
+
def condition_scope(self) -> Optional[pulumi.Input[builtins.str]]:
|
146
147
|
"""
|
147
148
|
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
148
149
|
"""
|
149
150
|
return pulumi.get(self, "condition_scope")
|
150
151
|
|
151
152
|
@condition_scope.setter
|
152
|
-
def condition_scope(self, value: Optional[pulumi.Input[str]]):
|
153
|
+
def condition_scope(self, value: Optional[pulumi.Input[builtins.str]]):
|
153
154
|
pulumi.set(self, "condition_scope", value)
|
154
155
|
|
155
156
|
@property
|
156
157
|
@pulumi.getter
|
157
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
158
|
+
def enabled(self) -> Optional[pulumi.Input[builtins.bool]]:
|
158
159
|
"""
|
159
160
|
Whether the condition is enabled or not. Defaults to true.
|
160
161
|
"""
|
161
162
|
return pulumi.get(self, "enabled")
|
162
163
|
|
163
164
|
@enabled.setter
|
164
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
165
|
+
def enabled(self, value: Optional[pulumi.Input[builtins.bool]]):
|
165
166
|
pulumi.set(self, "enabled", value)
|
166
167
|
|
167
168
|
@property
|
168
169
|
@pulumi.getter(name="gcMetric")
|
169
|
-
def gc_metric(self) -> Optional[pulumi.Input[str]]:
|
170
|
+
def gc_metric(self) -> Optional[pulumi.Input[builtins.str]]:
|
170
171
|
"""
|
171
172
|
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
172
173
|
"""
|
173
174
|
return pulumi.get(self, "gc_metric")
|
174
175
|
|
175
176
|
@gc_metric.setter
|
176
|
-
def gc_metric(self, value: Optional[pulumi.Input[str]]):
|
177
|
+
def gc_metric(self, value: Optional[pulumi.Input[builtins.str]]):
|
177
178
|
pulumi.set(self, "gc_metric", value)
|
178
179
|
|
179
180
|
@property
|
180
181
|
@pulumi.getter
|
181
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
182
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
182
183
|
"""
|
183
184
|
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
184
185
|
"""
|
185
186
|
return pulumi.get(self, "name")
|
186
187
|
|
187
188
|
@name.setter
|
188
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
189
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
189
190
|
pulumi.set(self, "name", value)
|
190
191
|
|
191
192
|
@property
|
192
193
|
@pulumi.getter(name="runbookUrl")
|
193
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
194
|
+
def runbook_url(self) -> Optional[pulumi.Input[builtins.str]]:
|
194
195
|
"""
|
195
196
|
Runbook URL to display in notifications.
|
196
197
|
"""
|
197
198
|
return pulumi.get(self, "runbook_url")
|
198
199
|
|
199
200
|
@runbook_url.setter
|
200
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
201
|
+
def runbook_url(self, value: Optional[pulumi.Input[builtins.str]]):
|
201
202
|
pulumi.set(self, "runbook_url", value)
|
202
203
|
|
203
204
|
@property
|
204
205
|
@pulumi.getter(name="userDefinedMetric")
|
205
|
-
def user_defined_metric(self) -> Optional[pulumi.Input[str]]:
|
206
|
+
def user_defined_metric(self) -> Optional[pulumi.Input[builtins.str]]:
|
206
207
|
"""
|
207
208
|
A custom metric to be evaluated.
|
208
209
|
"""
|
209
210
|
return pulumi.get(self, "user_defined_metric")
|
210
211
|
|
211
212
|
@user_defined_metric.setter
|
212
|
-
def user_defined_metric(self, value: Optional[pulumi.Input[str]]):
|
213
|
+
def user_defined_metric(self, value: Optional[pulumi.Input[builtins.str]]):
|
213
214
|
pulumi.set(self, "user_defined_metric", value)
|
214
215
|
|
215
216
|
@property
|
216
217
|
@pulumi.getter(name="userDefinedValueFunction")
|
217
|
-
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
|
218
|
+
def user_defined_value_function(self) -> Optional[pulumi.Input[builtins.str]]:
|
218
219
|
"""
|
219
220
|
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
220
221
|
|
@@ -227,12 +228,12 @@ class AlertConditionArgs:
|
|
227
228
|
return pulumi.get(self, "user_defined_value_function")
|
228
229
|
|
229
230
|
@user_defined_value_function.setter
|
230
|
-
def user_defined_value_function(self, value: Optional[pulumi.Input[str]]):
|
231
|
+
def user_defined_value_function(self, value: Optional[pulumi.Input[builtins.str]]):
|
231
232
|
pulumi.set(self, "user_defined_value_function", value)
|
232
233
|
|
233
234
|
@property
|
234
235
|
@pulumi.getter(name="violationCloseTimer")
|
235
|
-
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
236
|
+
def violation_close_timer(self) -> Optional[pulumi.Input[builtins.int]]:
|
236
237
|
"""
|
237
238
|
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
238
239
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
@@ -241,49 +242,49 @@ class AlertConditionArgs:
|
|
241
242
|
return pulumi.get(self, "violation_close_timer")
|
242
243
|
|
243
244
|
@violation_close_timer.setter
|
244
|
-
def violation_close_timer(self, value: Optional[pulumi.Input[int]]):
|
245
|
+
def violation_close_timer(self, value: Optional[pulumi.Input[builtins.int]]):
|
245
246
|
pulumi.set(self, "violation_close_timer", value)
|
246
247
|
|
247
248
|
|
248
249
|
@pulumi.input_type
|
249
250
|
class _AlertConditionState:
|
250
251
|
def __init__(__self__, *,
|
251
|
-
condition_scope: Optional[pulumi.Input[str]] = None,
|
252
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
253
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
254
|
-
entity_guid: Optional[pulumi.Input[str]] = None,
|
255
|
-
gc_metric: Optional[pulumi.Input[str]] = None,
|
256
|
-
metric: Optional[pulumi.Input[str]] = None,
|
257
|
-
name: Optional[pulumi.Input[str]] = None,
|
258
|
-
policy_id: Optional[pulumi.Input[str]] = None,
|
259
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
252
|
+
condition_scope: Optional[pulumi.Input[builtins.str]] = None,
|
253
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
254
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
255
|
+
entity_guid: Optional[pulumi.Input[builtins.str]] = None,
|
256
|
+
gc_metric: Optional[pulumi.Input[builtins.str]] = None,
|
257
|
+
metric: Optional[pulumi.Input[builtins.str]] = None,
|
258
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
259
|
+
policy_id: Optional[pulumi.Input[builtins.str]] = None,
|
260
|
+
runbook_url: Optional[pulumi.Input[builtins.str]] = None,
|
260
261
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]] = None,
|
261
|
-
type: Optional[pulumi.Input[str]] = None,
|
262
|
-
user_defined_metric: Optional[pulumi.Input[str]] = None,
|
263
|
-
user_defined_value_function: Optional[pulumi.Input[str]] = None,
|
264
|
-
violation_close_timer: Optional[pulumi.Input[int]] = None):
|
262
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
263
|
+
user_defined_metric: Optional[pulumi.Input[builtins.str]] = None,
|
264
|
+
user_defined_value_function: Optional[pulumi.Input[builtins.str]] = None,
|
265
|
+
violation_close_timer: Optional[pulumi.Input[builtins.int]] = None):
|
265
266
|
"""
|
266
267
|
Input properties used for looking up and filtering AlertCondition resources.
|
267
|
-
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
268
|
-
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
269
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
270
|
-
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
271
|
-
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
272
|
-
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
273
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
274
|
-
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
275
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
268
|
+
:param pulumi.Input[builtins.str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
269
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
270
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entities: The instance IDs associated with this condition.
|
271
|
+
:param pulumi.Input[builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
272
|
+
:param pulumi.Input[builtins.str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
273
|
+
:param pulumi.Input[builtins.str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
274
|
+
:param pulumi.Input[builtins.str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
275
|
+
:param pulumi.Input[builtins.str] policy_id: The ID of the policy where this condition should be used.
|
276
|
+
:param pulumi.Input[builtins.str] runbook_url: Runbook URL to display in notifications.
|
276
277
|
:param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
|
277
|
-
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
278
|
-
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
279
|
-
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
278
|
+
:param pulumi.Input[builtins.str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
279
|
+
:param pulumi.Input[builtins.str] user_defined_metric: A custom metric to be evaluated.
|
280
|
+
:param pulumi.Input[builtins.str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
280
281
|
|
281
282
|
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
282
283
|
|
283
284
|
```
|
284
285
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
285
286
|
```
|
286
|
-
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
287
|
+
:param pulumi.Input[builtins.int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
287
288
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
288
289
|
* when `type` = `apm_jvm_metric`
|
289
290
|
"""
|
@@ -318,110 +319,110 @@ class _AlertConditionState:
|
|
318
319
|
|
319
320
|
@property
|
320
321
|
@pulumi.getter(name="conditionScope")
|
321
|
-
def condition_scope(self) -> Optional[pulumi.Input[str]]:
|
322
|
+
def condition_scope(self) -> Optional[pulumi.Input[builtins.str]]:
|
322
323
|
"""
|
323
324
|
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
324
325
|
"""
|
325
326
|
return pulumi.get(self, "condition_scope")
|
326
327
|
|
327
328
|
@condition_scope.setter
|
328
|
-
def condition_scope(self, value: Optional[pulumi.Input[str]]):
|
329
|
+
def condition_scope(self, value: Optional[pulumi.Input[builtins.str]]):
|
329
330
|
pulumi.set(self, "condition_scope", value)
|
330
331
|
|
331
332
|
@property
|
332
333
|
@pulumi.getter
|
333
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
334
|
+
def enabled(self) -> Optional[pulumi.Input[builtins.bool]]:
|
334
335
|
"""
|
335
336
|
Whether the condition is enabled or not. Defaults to true.
|
336
337
|
"""
|
337
338
|
return pulumi.get(self, "enabled")
|
338
339
|
|
339
340
|
@enabled.setter
|
340
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
341
|
+
def enabled(self, value: Optional[pulumi.Input[builtins.bool]]):
|
341
342
|
pulumi.set(self, "enabled", value)
|
342
343
|
|
343
344
|
@property
|
344
345
|
@pulumi.getter
|
345
|
-
def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
346
|
+
def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
346
347
|
"""
|
347
348
|
The instance IDs associated with this condition.
|
348
349
|
"""
|
349
350
|
return pulumi.get(self, "entities")
|
350
351
|
|
351
352
|
@entities.setter
|
352
|
-
def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
353
|
+
def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
353
354
|
pulumi.set(self, "entities", value)
|
354
355
|
|
355
356
|
@property
|
356
357
|
@pulumi.getter(name="entityGuid")
|
357
|
-
def entity_guid(self) -> Optional[pulumi.Input[str]]:
|
358
|
+
def entity_guid(self) -> Optional[pulumi.Input[builtins.str]]:
|
358
359
|
"""
|
359
360
|
The unique entity identifier of the condition in New Relic.
|
360
361
|
"""
|
361
362
|
return pulumi.get(self, "entity_guid")
|
362
363
|
|
363
364
|
@entity_guid.setter
|
364
|
-
def entity_guid(self, value: Optional[pulumi.Input[str]]):
|
365
|
+
def entity_guid(self, value: Optional[pulumi.Input[builtins.str]]):
|
365
366
|
pulumi.set(self, "entity_guid", value)
|
366
367
|
|
367
368
|
@property
|
368
369
|
@pulumi.getter(name="gcMetric")
|
369
|
-
def gc_metric(self) -> Optional[pulumi.Input[str]]:
|
370
|
+
def gc_metric(self) -> Optional[pulumi.Input[builtins.str]]:
|
370
371
|
"""
|
371
372
|
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
372
373
|
"""
|
373
374
|
return pulumi.get(self, "gc_metric")
|
374
375
|
|
375
376
|
@gc_metric.setter
|
376
|
-
def gc_metric(self, value: Optional[pulumi.Input[str]]):
|
377
|
+
def gc_metric(self, value: Optional[pulumi.Input[builtins.str]]):
|
377
378
|
pulumi.set(self, "gc_metric", value)
|
378
379
|
|
379
380
|
@property
|
380
381
|
@pulumi.getter
|
381
|
-
def metric(self) -> Optional[pulumi.Input[str]]:
|
382
|
+
def metric(self) -> Optional[pulumi.Input[builtins.str]]:
|
382
383
|
"""
|
383
384
|
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
384
385
|
"""
|
385
386
|
return pulumi.get(self, "metric")
|
386
387
|
|
387
388
|
@metric.setter
|
388
|
-
def metric(self, value: Optional[pulumi.Input[str]]):
|
389
|
+
def metric(self, value: Optional[pulumi.Input[builtins.str]]):
|
389
390
|
pulumi.set(self, "metric", value)
|
390
391
|
|
391
392
|
@property
|
392
393
|
@pulumi.getter
|
393
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
394
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
394
395
|
"""
|
395
396
|
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
396
397
|
"""
|
397
398
|
return pulumi.get(self, "name")
|
398
399
|
|
399
400
|
@name.setter
|
400
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
401
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
401
402
|
pulumi.set(self, "name", value)
|
402
403
|
|
403
404
|
@property
|
404
405
|
@pulumi.getter(name="policyId")
|
405
|
-
def policy_id(self) -> Optional[pulumi.Input[str]]:
|
406
|
+
def policy_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
406
407
|
"""
|
407
408
|
The ID of the policy where this condition should be used.
|
408
409
|
"""
|
409
410
|
return pulumi.get(self, "policy_id")
|
410
411
|
|
411
412
|
@policy_id.setter
|
412
|
-
def policy_id(self, value: Optional[pulumi.Input[str]]):
|
413
|
+
def policy_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
413
414
|
pulumi.set(self, "policy_id", value)
|
414
415
|
|
415
416
|
@property
|
416
417
|
@pulumi.getter(name="runbookUrl")
|
417
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
418
|
+
def runbook_url(self) -> Optional[pulumi.Input[builtins.str]]:
|
418
419
|
"""
|
419
420
|
Runbook URL to display in notifications.
|
420
421
|
"""
|
421
422
|
return pulumi.get(self, "runbook_url")
|
422
423
|
|
423
424
|
@runbook_url.setter
|
424
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
425
|
+
def runbook_url(self, value: Optional[pulumi.Input[builtins.str]]):
|
425
426
|
pulumi.set(self, "runbook_url", value)
|
426
427
|
|
427
428
|
@property
|
@@ -438,31 +439,31 @@ class _AlertConditionState:
|
|
438
439
|
|
439
440
|
@property
|
440
441
|
@pulumi.getter
|
441
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
442
|
+
def type(self) -> Optional[pulumi.Input[builtins.str]]:
|
442
443
|
"""
|
443
444
|
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
444
445
|
"""
|
445
446
|
return pulumi.get(self, "type")
|
446
447
|
|
447
448
|
@type.setter
|
448
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
449
|
+
def type(self, value: Optional[pulumi.Input[builtins.str]]):
|
449
450
|
pulumi.set(self, "type", value)
|
450
451
|
|
451
452
|
@property
|
452
453
|
@pulumi.getter(name="userDefinedMetric")
|
453
|
-
def user_defined_metric(self) -> Optional[pulumi.Input[str]]:
|
454
|
+
def user_defined_metric(self) -> Optional[pulumi.Input[builtins.str]]:
|
454
455
|
"""
|
455
456
|
A custom metric to be evaluated.
|
456
457
|
"""
|
457
458
|
return pulumi.get(self, "user_defined_metric")
|
458
459
|
|
459
460
|
@user_defined_metric.setter
|
460
|
-
def user_defined_metric(self, value: Optional[pulumi.Input[str]]):
|
461
|
+
def user_defined_metric(self, value: Optional[pulumi.Input[builtins.str]]):
|
461
462
|
pulumi.set(self, "user_defined_metric", value)
|
462
463
|
|
463
464
|
@property
|
464
465
|
@pulumi.getter(name="userDefinedValueFunction")
|
465
|
-
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
|
466
|
+
def user_defined_value_function(self) -> Optional[pulumi.Input[builtins.str]]:
|
466
467
|
"""
|
467
468
|
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
468
469
|
|
@@ -475,12 +476,12 @@ class _AlertConditionState:
|
|
475
476
|
return pulumi.get(self, "user_defined_value_function")
|
476
477
|
|
477
478
|
@user_defined_value_function.setter
|
478
|
-
def user_defined_value_function(self, value: Optional[pulumi.Input[str]]):
|
479
|
+
def user_defined_value_function(self, value: Optional[pulumi.Input[builtins.str]]):
|
479
480
|
pulumi.set(self, "user_defined_value_function", value)
|
480
481
|
|
481
482
|
@property
|
482
483
|
@pulumi.getter(name="violationCloseTimer")
|
483
|
-
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
484
|
+
def violation_close_timer(self) -> Optional[pulumi.Input[builtins.int]]:
|
484
485
|
"""
|
485
486
|
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
486
487
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
@@ -489,7 +490,7 @@ class _AlertConditionState:
|
|
489
490
|
return pulumi.get(self, "violation_close_timer")
|
490
491
|
|
491
492
|
@violation_close_timer.setter
|
492
|
-
def violation_close_timer(self, value: Optional[pulumi.Input[int]]):
|
493
|
+
def violation_close_timer(self, value: Optional[pulumi.Input[builtins.int]]):
|
493
494
|
pulumi.set(self, "violation_close_timer", value)
|
494
495
|
|
495
496
|
|
@@ -498,19 +499,19 @@ class AlertCondition(pulumi.CustomResource):
|
|
498
499
|
def __init__(__self__,
|
499
500
|
resource_name: str,
|
500
501
|
opts: Optional[pulumi.ResourceOptions] = None,
|
501
|
-
condition_scope: Optional[pulumi.Input[str]] = None,
|
502
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
503
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
504
|
-
gc_metric: Optional[pulumi.Input[str]] = None,
|
505
|
-
metric: Optional[pulumi.Input[str]] = None,
|
506
|
-
name: Optional[pulumi.Input[str]] = None,
|
507
|
-
policy_id: Optional[pulumi.Input[str]] = None,
|
508
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
502
|
+
condition_scope: Optional[pulumi.Input[builtins.str]] = None,
|
503
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
504
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
505
|
+
gc_metric: Optional[pulumi.Input[builtins.str]] = None,
|
506
|
+
metric: Optional[pulumi.Input[builtins.str]] = None,
|
507
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
508
|
+
policy_id: Optional[pulumi.Input[builtins.str]] = None,
|
509
|
+
runbook_url: Optional[pulumi.Input[builtins.str]] = None,
|
509
510
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]]] = None,
|
510
|
-
type: Optional[pulumi.Input[str]] = None,
|
511
|
-
user_defined_metric: Optional[pulumi.Input[str]] = None,
|
512
|
-
user_defined_value_function: Optional[pulumi.Input[str]] = None,
|
513
|
-
violation_close_timer: Optional[pulumi.Input[int]] = None,
|
511
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
512
|
+
user_defined_metric: Optional[pulumi.Input[builtins.str]] = None,
|
513
|
+
user_defined_value_function: Optional[pulumi.Input[builtins.str]] = None,
|
514
|
+
violation_close_timer: Optional[pulumi.Input[builtins.int]] = None,
|
514
515
|
__props__=None):
|
515
516
|
"""
|
516
517
|
Use this resource to create and manage alert conditions for APM, Browser, and Mobile in New Relic.
|
@@ -606,25 +607,25 @@ class AlertCondition(pulumi.CustomResource):
|
|
606
607
|
|
607
608
|
:param str resource_name: The name of the resource.
|
608
609
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
609
|
-
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
610
|
-
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
611
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
612
|
-
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
613
|
-
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
614
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
615
|
-
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
616
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
610
|
+
:param pulumi.Input[builtins.str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
611
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
612
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entities: The instance IDs associated with this condition.
|
613
|
+
:param pulumi.Input[builtins.str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
614
|
+
:param pulumi.Input[builtins.str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
615
|
+
:param pulumi.Input[builtins.str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
616
|
+
:param pulumi.Input[builtins.str] policy_id: The ID of the policy where this condition should be used.
|
617
|
+
:param pulumi.Input[builtins.str] runbook_url: Runbook URL to display in notifications.
|
617
618
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]] terms: A list of terms for this condition. See Terms below for details.
|
618
|
-
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
619
|
-
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
620
|
-
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
619
|
+
:param pulumi.Input[builtins.str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
620
|
+
:param pulumi.Input[builtins.str] user_defined_metric: A custom metric to be evaluated.
|
621
|
+
:param pulumi.Input[builtins.str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
621
622
|
|
622
623
|
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
623
624
|
|
624
625
|
```
|
625
626
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
626
627
|
```
|
627
|
-
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
628
|
+
:param pulumi.Input[builtins.int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
628
629
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
629
630
|
* when `type` = `apm_jvm_metric`
|
630
631
|
"""
|
@@ -741,19 +742,19 @@ class AlertCondition(pulumi.CustomResource):
|
|
741
742
|
def _internal_init(__self__,
|
742
743
|
resource_name: str,
|
743
744
|
opts: Optional[pulumi.ResourceOptions] = None,
|
744
|
-
condition_scope: Optional[pulumi.Input[str]] = None,
|
745
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
746
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
747
|
-
gc_metric: Optional[pulumi.Input[str]] = None,
|
748
|
-
metric: Optional[pulumi.Input[str]] = None,
|
749
|
-
name: Optional[pulumi.Input[str]] = None,
|
750
|
-
policy_id: Optional[pulumi.Input[str]] = None,
|
751
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
745
|
+
condition_scope: Optional[pulumi.Input[builtins.str]] = None,
|
746
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
747
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
748
|
+
gc_metric: Optional[pulumi.Input[builtins.str]] = None,
|
749
|
+
metric: Optional[pulumi.Input[builtins.str]] = None,
|
750
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
751
|
+
policy_id: Optional[pulumi.Input[builtins.str]] = None,
|
752
|
+
runbook_url: Optional[pulumi.Input[builtins.str]] = None,
|
752
753
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]]] = None,
|
753
|
-
type: Optional[pulumi.Input[str]] = None,
|
754
|
-
user_defined_metric: Optional[pulumi.Input[str]] = None,
|
755
|
-
user_defined_value_function: Optional[pulumi.Input[str]] = None,
|
756
|
-
violation_close_timer: Optional[pulumi.Input[int]] = None,
|
754
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
755
|
+
user_defined_metric: Optional[pulumi.Input[builtins.str]] = None,
|
756
|
+
user_defined_value_function: Optional[pulumi.Input[builtins.str]] = None,
|
757
|
+
violation_close_timer: Optional[pulumi.Input[builtins.int]] = None,
|
757
758
|
__props__=None):
|
758
759
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
759
760
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -797,20 +798,20 @@ class AlertCondition(pulumi.CustomResource):
|
|
797
798
|
def get(resource_name: str,
|
798
799
|
id: pulumi.Input[str],
|
799
800
|
opts: Optional[pulumi.ResourceOptions] = None,
|
800
|
-
condition_scope: Optional[pulumi.Input[str]] = None,
|
801
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
802
|
-
entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
803
|
-
entity_guid: Optional[pulumi.Input[str]] = None,
|
804
|
-
gc_metric: Optional[pulumi.Input[str]] = None,
|
805
|
-
metric: Optional[pulumi.Input[str]] = None,
|
806
|
-
name: Optional[pulumi.Input[str]] = None,
|
807
|
-
policy_id: Optional[pulumi.Input[str]] = None,
|
808
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
801
|
+
condition_scope: Optional[pulumi.Input[builtins.str]] = None,
|
802
|
+
enabled: Optional[pulumi.Input[builtins.bool]] = None,
|
803
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
804
|
+
entity_guid: Optional[pulumi.Input[builtins.str]] = None,
|
805
|
+
gc_metric: Optional[pulumi.Input[builtins.str]] = None,
|
806
|
+
metric: Optional[pulumi.Input[builtins.str]] = None,
|
807
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
808
|
+
policy_id: Optional[pulumi.Input[builtins.str]] = None,
|
809
|
+
runbook_url: Optional[pulumi.Input[builtins.str]] = None,
|
809
810
|
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]]] = None,
|
810
|
-
type: Optional[pulumi.Input[str]] = None,
|
811
|
-
user_defined_metric: Optional[pulumi.Input[str]] = None,
|
812
|
-
user_defined_value_function: Optional[pulumi.Input[str]] = None,
|
813
|
-
violation_close_timer: Optional[pulumi.Input[int]] = None) -> 'AlertCondition':
|
811
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
812
|
+
user_defined_metric: Optional[pulumi.Input[builtins.str]] = None,
|
813
|
+
user_defined_value_function: Optional[pulumi.Input[builtins.str]] = None,
|
814
|
+
violation_close_timer: Optional[pulumi.Input[builtins.int]] = None) -> 'AlertCondition':
|
814
815
|
"""
|
815
816
|
Get an existing AlertCondition resource's state with the given name, id, and optional extra
|
816
817
|
properties used to qualify the lookup.
|
@@ -818,26 +819,26 @@ class AlertCondition(pulumi.CustomResource):
|
|
818
819
|
:param str resource_name: The unique name of the resulting resource.
|
819
820
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
820
821
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
821
|
-
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
822
|
-
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
823
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
|
824
|
-
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
825
|
-
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
826
|
-
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
827
|
-
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
828
|
-
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
829
|
-
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
822
|
+
:param pulumi.Input[builtins.str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
823
|
+
:param pulumi.Input[builtins.bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
824
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entities: The instance IDs associated with this condition.
|
825
|
+
:param pulumi.Input[builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
826
|
+
:param pulumi.Input[builtins.str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
827
|
+
:param pulumi.Input[builtins.str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
828
|
+
:param pulumi.Input[builtins.str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
829
|
+
:param pulumi.Input[builtins.str] policy_id: The ID of the policy where this condition should be used.
|
830
|
+
:param pulumi.Input[builtins.str] runbook_url: Runbook URL to display in notifications.
|
830
831
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]] terms: A list of terms for this condition. See Terms below for details.
|
831
|
-
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
832
|
-
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
|
833
|
-
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
832
|
+
:param pulumi.Input[builtins.str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
833
|
+
:param pulumi.Input[builtins.str] user_defined_metric: A custom metric to be evaluated.
|
834
|
+
:param pulumi.Input[builtins.str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
834
835
|
|
835
836
|
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
836
837
|
|
837
838
|
```
|
838
839
|
Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
|
839
840
|
```
|
840
|
-
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
841
|
+
:param pulumi.Input[builtins.int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
841
842
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
842
843
|
* when `type` = `apm_jvm_metric`
|
843
844
|
"""
|
@@ -863,7 +864,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
863
864
|
|
864
865
|
@property
|
865
866
|
@pulumi.getter(name="conditionScope")
|
866
|
-
def condition_scope(self) -> pulumi.Output[Optional[str]]:
|
867
|
+
def condition_scope(self) -> pulumi.Output[Optional[builtins.str]]:
|
867
868
|
"""
|
868
869
|
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
|
869
870
|
"""
|
@@ -871,7 +872,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
871
872
|
|
872
873
|
@property
|
873
874
|
@pulumi.getter
|
874
|
-
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
875
|
+
def enabled(self) -> pulumi.Output[Optional[builtins.bool]]:
|
875
876
|
"""
|
876
877
|
Whether the condition is enabled or not. Defaults to true.
|
877
878
|
"""
|
@@ -879,7 +880,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
879
880
|
|
880
881
|
@property
|
881
882
|
@pulumi.getter
|
882
|
-
def entities(self) -> pulumi.Output[Sequence[str]]:
|
883
|
+
def entities(self) -> pulumi.Output[Sequence[builtins.str]]:
|
883
884
|
"""
|
884
885
|
The instance IDs associated with this condition.
|
885
886
|
"""
|
@@ -887,7 +888,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
887
888
|
|
888
889
|
@property
|
889
890
|
@pulumi.getter(name="entityGuid")
|
890
|
-
def entity_guid(self) -> pulumi.Output[str]:
|
891
|
+
def entity_guid(self) -> pulumi.Output[builtins.str]:
|
891
892
|
"""
|
892
893
|
The unique entity identifier of the condition in New Relic.
|
893
894
|
"""
|
@@ -895,7 +896,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
895
896
|
|
896
897
|
@property
|
897
898
|
@pulumi.getter(name="gcMetric")
|
898
|
-
def gc_metric(self) -> pulumi.Output[Optional[str]]:
|
899
|
+
def gc_metric(self) -> pulumi.Output[Optional[builtins.str]]:
|
899
900
|
"""
|
900
901
|
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
901
902
|
"""
|
@@ -903,7 +904,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
903
904
|
|
904
905
|
@property
|
905
906
|
@pulumi.getter
|
906
|
-
def metric(self) -> pulumi.Output[str]:
|
907
|
+
def metric(self) -> pulumi.Output[builtins.str]:
|
907
908
|
"""
|
908
909
|
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
909
910
|
"""
|
@@ -911,7 +912,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
911
912
|
|
912
913
|
@property
|
913
914
|
@pulumi.getter
|
914
|
-
def name(self) -> pulumi.Output[str]:
|
915
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
915
916
|
"""
|
916
917
|
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
917
918
|
"""
|
@@ -919,7 +920,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
919
920
|
|
920
921
|
@property
|
921
922
|
@pulumi.getter(name="policyId")
|
922
|
-
def policy_id(self) -> pulumi.Output[str]:
|
923
|
+
def policy_id(self) -> pulumi.Output[builtins.str]:
|
923
924
|
"""
|
924
925
|
The ID of the policy where this condition should be used.
|
925
926
|
"""
|
@@ -927,7 +928,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
927
928
|
|
928
929
|
@property
|
929
930
|
@pulumi.getter(name="runbookUrl")
|
930
|
-
def runbook_url(self) -> pulumi.Output[Optional[str]]:
|
931
|
+
def runbook_url(self) -> pulumi.Output[Optional[builtins.str]]:
|
931
932
|
"""
|
932
933
|
Runbook URL to display in notifications.
|
933
934
|
"""
|
@@ -943,7 +944,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
943
944
|
|
944
945
|
@property
|
945
946
|
@pulumi.getter
|
946
|
-
def type(self) -> pulumi.Output[str]:
|
947
|
+
def type(self) -> pulumi.Output[builtins.str]:
|
947
948
|
"""
|
948
949
|
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
949
950
|
"""
|
@@ -951,7 +952,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
951
952
|
|
952
953
|
@property
|
953
954
|
@pulumi.getter(name="userDefinedMetric")
|
954
|
-
def user_defined_metric(self) -> pulumi.Output[Optional[str]]:
|
955
|
+
def user_defined_metric(self) -> pulumi.Output[Optional[builtins.str]]:
|
955
956
|
"""
|
956
957
|
A custom metric to be evaluated.
|
957
958
|
"""
|
@@ -959,7 +960,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
959
960
|
|
960
961
|
@property
|
961
962
|
@pulumi.getter(name="userDefinedValueFunction")
|
962
|
-
def user_defined_value_function(self) -> pulumi.Output[Optional[str]]:
|
963
|
+
def user_defined_value_function(self) -> pulumi.Output[Optional[builtins.str]]:
|
963
964
|
"""
|
964
965
|
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
965
966
|
|
@@ -973,7 +974,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
973
974
|
|
974
975
|
@property
|
975
976
|
@pulumi.getter(name="violationCloseTimer")
|
976
|
-
def violation_close_timer(self) -> pulumi.Output[Optional[int]]:
|
977
|
+
def violation_close_timer(self) -> pulumi.Output[Optional[builtins.int]]:
|
977
978
|
"""
|
978
979
|
Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
|
979
980
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|