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
|
|
@@ -21,40 +21,40 @@ __all__ = ['AlertConditionArgs', 'AlertCondition']
|
|
|
21
21
|
@pulumi.input_type
|
|
22
22
|
class AlertConditionArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
|
-
entities: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
25
|
-
metric: pulumi.Input[str],
|
|
26
|
-
policy_id: pulumi.Input[str],
|
|
24
|
+
entities: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
25
|
+
metric: pulumi.Input[_builtins.str],
|
|
26
|
+
policy_id: pulumi.Input[_builtins.str],
|
|
27
27
|
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):
|
|
28
|
+
type: pulumi.Input[_builtins.str],
|
|
29
|
+
condition_scope: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
31
|
+
gc_metric: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
+
user_defined_metric: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
|
+
user_defined_value_function: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
|
+
violation_close_timer: Optional[pulumi.Input[_builtins.int]] = None):
|
|
37
37
|
"""
|
|
38
38
|
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.
|
|
39
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The instance IDs associated with this condition.
|
|
40
|
+
:param pulumi.Input[_builtins.str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
|
41
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
|
|
42
42
|
: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`.
|
|
43
|
+
: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`
|
|
44
|
+
: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).
|
|
45
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
|
46
|
+
:param pulumi.Input[_builtins.str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
|
47
|
+
:param pulumi.Input[_builtins.str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
|
48
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
49
|
+
:param pulumi.Input[_builtins.str] user_defined_metric: A custom metric to be evaluated.
|
|
50
|
+
:param pulumi.Input[_builtins.str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
|
51
51
|
|
|
52
52
|
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
|
53
53
|
|
|
54
54
|
```
|
|
55
55
|
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
56
|
```
|
|
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:
|
|
57
|
+
: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
58
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
|
59
59
|
* when `type` = `apm_jvm_metric`
|
|
60
60
|
"""
|
|
@@ -80,43 +80,43 @@ class AlertConditionArgs:
|
|
|
80
80
|
if violation_close_timer is not None:
|
|
81
81
|
pulumi.set(__self__, "violation_close_timer", violation_close_timer)
|
|
82
82
|
|
|
83
|
-
@property
|
|
83
|
+
@_builtins.property
|
|
84
84
|
@pulumi.getter
|
|
85
|
-
def entities(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
85
|
+
def entities(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
86
86
|
"""
|
|
87
87
|
The instance IDs associated with this condition.
|
|
88
88
|
"""
|
|
89
89
|
return pulumi.get(self, "entities")
|
|
90
90
|
|
|
91
91
|
@entities.setter
|
|
92
|
-
def entities(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
92
|
+
def entities(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
93
93
|
pulumi.set(self, "entities", value)
|
|
94
94
|
|
|
95
|
-
@property
|
|
95
|
+
@_builtins.property
|
|
96
96
|
@pulumi.getter
|
|
97
|
-
def metric(self) -> pulumi.Input[str]:
|
|
97
|
+
def metric(self) -> pulumi.Input[_builtins.str]:
|
|
98
98
|
"""
|
|
99
99
|
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
|
100
100
|
"""
|
|
101
101
|
return pulumi.get(self, "metric")
|
|
102
102
|
|
|
103
103
|
@metric.setter
|
|
104
|
-
def metric(self, value: pulumi.Input[str]):
|
|
104
|
+
def metric(self, value: pulumi.Input[_builtins.str]):
|
|
105
105
|
pulumi.set(self, "metric", value)
|
|
106
106
|
|
|
107
|
-
@property
|
|
107
|
+
@_builtins.property
|
|
108
108
|
@pulumi.getter(name="policyId")
|
|
109
|
-
def policy_id(self) -> pulumi.Input[str]:
|
|
109
|
+
def policy_id(self) -> pulumi.Input[_builtins.str]:
|
|
110
110
|
"""
|
|
111
111
|
The ID of the policy where this condition should be used.
|
|
112
112
|
"""
|
|
113
113
|
return pulumi.get(self, "policy_id")
|
|
114
114
|
|
|
115
115
|
@policy_id.setter
|
|
116
|
-
def policy_id(self, value: pulumi.Input[str]):
|
|
116
|
+
def policy_id(self, value: pulumi.Input[_builtins.str]):
|
|
117
117
|
pulumi.set(self, "policy_id", value)
|
|
118
118
|
|
|
119
|
-
@property
|
|
119
|
+
@_builtins.property
|
|
120
120
|
@pulumi.getter
|
|
121
121
|
def terms(self) -> pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]:
|
|
122
122
|
"""
|
|
@@ -128,93 +128,93 @@ class AlertConditionArgs:
|
|
|
128
128
|
def terms(self, value: pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]):
|
|
129
129
|
pulumi.set(self, "terms", value)
|
|
130
130
|
|
|
131
|
-
@property
|
|
131
|
+
@_builtins.property
|
|
132
132
|
@pulumi.getter
|
|
133
|
-
def type(self) -> pulumi.Input[str]:
|
|
133
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
134
134
|
"""
|
|
135
135
|
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
|
136
136
|
"""
|
|
137
137
|
return pulumi.get(self, "type")
|
|
138
138
|
|
|
139
139
|
@type.setter
|
|
140
|
-
def type(self, value: pulumi.Input[str]):
|
|
140
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
141
141
|
pulumi.set(self, "type", value)
|
|
142
142
|
|
|
143
|
-
@property
|
|
143
|
+
@_builtins.property
|
|
144
144
|
@pulumi.getter(name="conditionScope")
|
|
145
|
-
def condition_scope(self) -> Optional[pulumi.Input[str]]:
|
|
145
|
+
def condition_scope(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
146
146
|
"""
|
|
147
147
|
`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
148
|
"""
|
|
149
149
|
return pulumi.get(self, "condition_scope")
|
|
150
150
|
|
|
151
151
|
@condition_scope.setter
|
|
152
|
-
def condition_scope(self, value: Optional[pulumi.Input[str]]):
|
|
152
|
+
def condition_scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
153
153
|
pulumi.set(self, "condition_scope", value)
|
|
154
154
|
|
|
155
|
-
@property
|
|
155
|
+
@_builtins.property
|
|
156
156
|
@pulumi.getter
|
|
157
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
157
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
158
158
|
"""
|
|
159
159
|
Whether the condition is enabled or not. Defaults to true.
|
|
160
160
|
"""
|
|
161
161
|
return pulumi.get(self, "enabled")
|
|
162
162
|
|
|
163
163
|
@enabled.setter
|
|
164
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
164
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
165
165
|
pulumi.set(self, "enabled", value)
|
|
166
166
|
|
|
167
|
-
@property
|
|
167
|
+
@_builtins.property
|
|
168
168
|
@pulumi.getter(name="gcMetric")
|
|
169
|
-
def gc_metric(self) -> Optional[pulumi.Input[str]]:
|
|
169
|
+
def gc_metric(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
170
170
|
"""
|
|
171
171
|
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
|
172
172
|
"""
|
|
173
173
|
return pulumi.get(self, "gc_metric")
|
|
174
174
|
|
|
175
175
|
@gc_metric.setter
|
|
176
|
-
def gc_metric(self, value: Optional[pulumi.Input[str]]):
|
|
176
|
+
def gc_metric(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
177
177
|
pulumi.set(self, "gc_metric", value)
|
|
178
178
|
|
|
179
|
-
@property
|
|
179
|
+
@_builtins.property
|
|
180
180
|
@pulumi.getter
|
|
181
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
181
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
182
182
|
"""
|
|
183
183
|
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
|
184
184
|
"""
|
|
185
185
|
return pulumi.get(self, "name")
|
|
186
186
|
|
|
187
187
|
@name.setter
|
|
188
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
188
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
189
189
|
pulumi.set(self, "name", value)
|
|
190
190
|
|
|
191
|
-
@property
|
|
191
|
+
@_builtins.property
|
|
192
192
|
@pulumi.getter(name="runbookUrl")
|
|
193
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
|
193
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
194
194
|
"""
|
|
195
195
|
Runbook URL to display in notifications.
|
|
196
196
|
"""
|
|
197
197
|
return pulumi.get(self, "runbook_url")
|
|
198
198
|
|
|
199
199
|
@runbook_url.setter
|
|
200
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
|
200
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
201
201
|
pulumi.set(self, "runbook_url", value)
|
|
202
202
|
|
|
203
|
-
@property
|
|
203
|
+
@_builtins.property
|
|
204
204
|
@pulumi.getter(name="userDefinedMetric")
|
|
205
|
-
def user_defined_metric(self) -> Optional[pulumi.Input[str]]:
|
|
205
|
+
def user_defined_metric(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
206
206
|
"""
|
|
207
207
|
A custom metric to be evaluated.
|
|
208
208
|
"""
|
|
209
209
|
return pulumi.get(self, "user_defined_metric")
|
|
210
210
|
|
|
211
211
|
@user_defined_metric.setter
|
|
212
|
-
def user_defined_metric(self, value: Optional[pulumi.Input[str]]):
|
|
212
|
+
def user_defined_metric(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
213
213
|
pulumi.set(self, "user_defined_metric", value)
|
|
214
214
|
|
|
215
|
-
@property
|
|
215
|
+
@_builtins.property
|
|
216
216
|
@pulumi.getter(name="userDefinedValueFunction")
|
|
217
|
-
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
|
|
217
|
+
def user_defined_value_function(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
218
218
|
"""
|
|
219
219
|
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
|
220
220
|
|
|
@@ -227,12 +227,12 @@ class AlertConditionArgs:
|
|
|
227
227
|
return pulumi.get(self, "user_defined_value_function")
|
|
228
228
|
|
|
229
229
|
@user_defined_value_function.setter
|
|
230
|
-
def user_defined_value_function(self, value: Optional[pulumi.Input[str]]):
|
|
230
|
+
def user_defined_value_function(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
231
231
|
pulumi.set(self, "user_defined_value_function", value)
|
|
232
232
|
|
|
233
|
-
@property
|
|
233
|
+
@_builtins.property
|
|
234
234
|
@pulumi.getter(name="violationCloseTimer")
|
|
235
|
-
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
|
235
|
+
def violation_close_timer(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
236
236
|
"""
|
|
237
237
|
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
238
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
|
@@ -241,49 +241,49 @@ class AlertConditionArgs:
|
|
|
241
241
|
return pulumi.get(self, "violation_close_timer")
|
|
242
242
|
|
|
243
243
|
@violation_close_timer.setter
|
|
244
|
-
def violation_close_timer(self, value: Optional[pulumi.Input[int]]):
|
|
244
|
+
def violation_close_timer(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
245
245
|
pulumi.set(self, "violation_close_timer", value)
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
@pulumi.input_type
|
|
249
249
|
class _AlertConditionState:
|
|
250
250
|
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,
|
|
251
|
+
condition_scope: Optional[pulumi.Input[_builtins.str]] = None,
|
|
252
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
253
|
+
entities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
254
|
+
entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
255
|
+
gc_metric: Optional[pulumi.Input[_builtins.str]] = None,
|
|
256
|
+
metric: Optional[pulumi.Input[_builtins.str]] = None,
|
|
257
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
258
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
259
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
260
260
|
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):
|
|
261
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
262
|
+
user_defined_metric: Optional[pulumi.Input[_builtins.str]] = None,
|
|
263
|
+
user_defined_value_function: Optional[pulumi.Input[_builtins.str]] = None,
|
|
264
|
+
violation_close_timer: Optional[pulumi.Input[_builtins.int]] = None):
|
|
265
265
|
"""
|
|
266
266
|
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.
|
|
267
|
+
: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).
|
|
268
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the condition is enabled or not. Defaults to true.
|
|
269
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] entities: The instance IDs associated with this condition.
|
|
270
|
+
:param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
271
|
+
:param pulumi.Input[_builtins.str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
|
272
|
+
:param pulumi.Input[_builtins.str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
|
273
|
+
:param pulumi.Input[_builtins.str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
|
|
274
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
|
|
275
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
276
276
|
: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`.
|
|
277
|
+
: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`
|
|
278
|
+
:param pulumi.Input[_builtins.str] user_defined_metric: A custom metric to be evaluated.
|
|
279
|
+
:param pulumi.Input[_builtins.str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
|
280
280
|
|
|
281
281
|
> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
|
|
282
282
|
|
|
283
283
|
```
|
|
284
284
|
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
285
|
```
|
|
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:
|
|
286
|
+
: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
287
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
|
288
288
|
* when `type` = `apm_jvm_metric`
|
|
289
289
|
"""
|
|
@@ -316,115 +316,115 @@ class _AlertConditionState:
|
|
|
316
316
|
if violation_close_timer is not None:
|
|
317
317
|
pulumi.set(__self__, "violation_close_timer", violation_close_timer)
|
|
318
318
|
|
|
319
|
-
@property
|
|
319
|
+
@_builtins.property
|
|
320
320
|
@pulumi.getter(name="conditionScope")
|
|
321
|
-
def condition_scope(self) -> Optional[pulumi.Input[str]]:
|
|
321
|
+
def condition_scope(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
322
322
|
"""
|
|
323
323
|
`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
324
|
"""
|
|
325
325
|
return pulumi.get(self, "condition_scope")
|
|
326
326
|
|
|
327
327
|
@condition_scope.setter
|
|
328
|
-
def condition_scope(self, value: Optional[pulumi.Input[str]]):
|
|
328
|
+
def condition_scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
329
329
|
pulumi.set(self, "condition_scope", value)
|
|
330
330
|
|
|
331
|
-
@property
|
|
331
|
+
@_builtins.property
|
|
332
332
|
@pulumi.getter
|
|
333
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
333
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
334
334
|
"""
|
|
335
335
|
Whether the condition is enabled or not. Defaults to true.
|
|
336
336
|
"""
|
|
337
337
|
return pulumi.get(self, "enabled")
|
|
338
338
|
|
|
339
339
|
@enabled.setter
|
|
340
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
340
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
341
341
|
pulumi.set(self, "enabled", value)
|
|
342
342
|
|
|
343
|
-
@property
|
|
343
|
+
@_builtins.property
|
|
344
344
|
@pulumi.getter
|
|
345
|
-
def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
345
|
+
def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
346
346
|
"""
|
|
347
347
|
The instance IDs associated with this condition.
|
|
348
348
|
"""
|
|
349
349
|
return pulumi.get(self, "entities")
|
|
350
350
|
|
|
351
351
|
@entities.setter
|
|
352
|
-
def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
352
|
+
def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
353
353
|
pulumi.set(self, "entities", value)
|
|
354
354
|
|
|
355
|
-
@property
|
|
355
|
+
@_builtins.property
|
|
356
356
|
@pulumi.getter(name="entityGuid")
|
|
357
|
-
def entity_guid(self) -> Optional[pulumi.Input[str]]:
|
|
357
|
+
def entity_guid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
358
358
|
"""
|
|
359
359
|
The unique entity identifier of the condition in New Relic.
|
|
360
360
|
"""
|
|
361
361
|
return pulumi.get(self, "entity_guid")
|
|
362
362
|
|
|
363
363
|
@entity_guid.setter
|
|
364
|
-
def entity_guid(self, value: Optional[pulumi.Input[str]]):
|
|
364
|
+
def entity_guid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
365
365
|
pulumi.set(self, "entity_guid", value)
|
|
366
366
|
|
|
367
|
-
@property
|
|
367
|
+
@_builtins.property
|
|
368
368
|
@pulumi.getter(name="gcMetric")
|
|
369
|
-
def gc_metric(self) -> Optional[pulumi.Input[str]]:
|
|
369
|
+
def gc_metric(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
370
370
|
"""
|
|
371
371
|
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
|
|
372
372
|
"""
|
|
373
373
|
return pulumi.get(self, "gc_metric")
|
|
374
374
|
|
|
375
375
|
@gc_metric.setter
|
|
376
|
-
def gc_metric(self, value: Optional[pulumi.Input[str]]):
|
|
376
|
+
def gc_metric(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
377
377
|
pulumi.set(self, "gc_metric", value)
|
|
378
378
|
|
|
379
|
-
@property
|
|
379
|
+
@_builtins.property
|
|
380
380
|
@pulumi.getter
|
|
381
|
-
def metric(self) -> Optional[pulumi.Input[str]]:
|
|
381
|
+
def metric(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
382
382
|
"""
|
|
383
383
|
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
|
|
384
384
|
"""
|
|
385
385
|
return pulumi.get(self, "metric")
|
|
386
386
|
|
|
387
387
|
@metric.setter
|
|
388
|
-
def metric(self, value: Optional[pulumi.Input[str]]):
|
|
388
|
+
def metric(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
389
389
|
pulumi.set(self, "metric", value)
|
|
390
390
|
|
|
391
|
-
@property
|
|
391
|
+
@_builtins.property
|
|
392
392
|
@pulumi.getter
|
|
393
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
393
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
394
394
|
"""
|
|
395
395
|
The title of the condition. Must be between 1 and 64 characters, inclusive.
|
|
396
396
|
"""
|
|
397
397
|
return pulumi.get(self, "name")
|
|
398
398
|
|
|
399
399
|
@name.setter
|
|
400
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
400
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
401
401
|
pulumi.set(self, "name", value)
|
|
402
402
|
|
|
403
|
-
@property
|
|
403
|
+
@_builtins.property
|
|
404
404
|
@pulumi.getter(name="policyId")
|
|
405
|
-
def policy_id(self) -> Optional[pulumi.Input[str]]:
|
|
405
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
406
406
|
"""
|
|
407
407
|
The ID of the policy where this condition should be used.
|
|
408
408
|
"""
|
|
409
409
|
return pulumi.get(self, "policy_id")
|
|
410
410
|
|
|
411
411
|
@policy_id.setter
|
|
412
|
-
def policy_id(self, value: Optional[pulumi.Input[str]]):
|
|
412
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
413
413
|
pulumi.set(self, "policy_id", value)
|
|
414
414
|
|
|
415
|
-
@property
|
|
415
|
+
@_builtins.property
|
|
416
416
|
@pulumi.getter(name="runbookUrl")
|
|
417
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
|
417
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
418
418
|
"""
|
|
419
419
|
Runbook URL to display in notifications.
|
|
420
420
|
"""
|
|
421
421
|
return pulumi.get(self, "runbook_url")
|
|
422
422
|
|
|
423
423
|
@runbook_url.setter
|
|
424
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
|
424
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
425
425
|
pulumi.set(self, "runbook_url", value)
|
|
426
426
|
|
|
427
|
-
@property
|
|
427
|
+
@_builtins.property
|
|
428
428
|
@pulumi.getter
|
|
429
429
|
def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]]:
|
|
430
430
|
"""
|
|
@@ -436,33 +436,33 @@ class _AlertConditionState:
|
|
|
436
436
|
def terms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]]):
|
|
437
437
|
pulumi.set(self, "terms", value)
|
|
438
438
|
|
|
439
|
-
@property
|
|
439
|
+
@_builtins.property
|
|
440
440
|
@pulumi.getter
|
|
441
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
441
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
442
442
|
"""
|
|
443
443
|
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
|
|
444
444
|
"""
|
|
445
445
|
return pulumi.get(self, "type")
|
|
446
446
|
|
|
447
447
|
@type.setter
|
|
448
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
448
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
449
449
|
pulumi.set(self, "type", value)
|
|
450
450
|
|
|
451
|
-
@property
|
|
451
|
+
@_builtins.property
|
|
452
452
|
@pulumi.getter(name="userDefinedMetric")
|
|
453
|
-
def user_defined_metric(self) -> Optional[pulumi.Input[str]]:
|
|
453
|
+
def user_defined_metric(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
454
454
|
"""
|
|
455
455
|
A custom metric to be evaluated.
|
|
456
456
|
"""
|
|
457
457
|
return pulumi.get(self, "user_defined_metric")
|
|
458
458
|
|
|
459
459
|
@user_defined_metric.setter
|
|
460
|
-
def user_defined_metric(self, value: Optional[pulumi.Input[str]]):
|
|
460
|
+
def user_defined_metric(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
461
461
|
pulumi.set(self, "user_defined_metric", value)
|
|
462
462
|
|
|
463
|
-
@property
|
|
463
|
+
@_builtins.property
|
|
464
464
|
@pulumi.getter(name="userDefinedValueFunction")
|
|
465
|
-
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
|
|
465
|
+
def user_defined_value_function(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
466
466
|
"""
|
|
467
467
|
One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
|
|
468
468
|
|
|
@@ -475,12 +475,12 @@ class _AlertConditionState:
|
|
|
475
475
|
return pulumi.get(self, "user_defined_value_function")
|
|
476
476
|
|
|
477
477
|
@user_defined_value_function.setter
|
|
478
|
-
def user_defined_value_function(self, value: Optional[pulumi.Input[str]]):
|
|
478
|
+
def user_defined_value_function(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
479
479
|
pulumi.set(self, "user_defined_value_function", value)
|
|
480
480
|
|
|
481
|
-
@property
|
|
481
|
+
@_builtins.property
|
|
482
482
|
@pulumi.getter(name="violationCloseTimer")
|
|
483
|
-
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
|
|
483
|
+
def violation_close_timer(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
484
484
|
"""
|
|
485
485
|
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
486
|
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
|
|
@@ -489,28 +489,29 @@ class _AlertConditionState:
|
|
|
489
489
|
return pulumi.get(self, "violation_close_timer")
|
|
490
490
|
|
|
491
491
|
@violation_close_timer.setter
|
|
492
|
-
def violation_close_timer(self, value: Optional[pulumi.Input[int]]):
|
|
492
|
+
def violation_close_timer(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
493
493
|
pulumi.set(self, "violation_close_timer", value)
|
|
494
494
|
|
|
495
495
|
|
|
496
|
+
@pulumi.type_token("newrelic:index/alertCondition:AlertCondition")
|
|
496
497
|
class AlertCondition(pulumi.CustomResource):
|
|
497
498
|
@overload
|
|
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
|
"""
|
|
@@ -861,79 +862,79 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
861
862
|
__props__.__dict__["violation_close_timer"] = violation_close_timer
|
|
862
863
|
return AlertCondition(resource_name, opts=opts, __props__=__props__)
|
|
863
864
|
|
|
864
|
-
@property
|
|
865
|
+
@_builtins.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
|
"""
|
|
870
871
|
return pulumi.get(self, "condition_scope")
|
|
871
872
|
|
|
872
|
-
@property
|
|
873
|
+
@_builtins.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
|
"""
|
|
878
879
|
return pulumi.get(self, "enabled")
|
|
879
880
|
|
|
880
|
-
@property
|
|
881
|
+
@_builtins.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
|
"""
|
|
886
887
|
return pulumi.get(self, "entities")
|
|
887
888
|
|
|
888
|
-
@property
|
|
889
|
+
@_builtins.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
|
"""
|
|
894
895
|
return pulumi.get(self, "entity_guid")
|
|
895
896
|
|
|
896
|
-
@property
|
|
897
|
+
@_builtins.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
|
"""
|
|
902
903
|
return pulumi.get(self, "gc_metric")
|
|
903
904
|
|
|
904
|
-
@property
|
|
905
|
+
@_builtins.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
|
"""
|
|
910
911
|
return pulumi.get(self, "metric")
|
|
911
912
|
|
|
912
|
-
@property
|
|
913
|
+
@_builtins.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
|
"""
|
|
918
919
|
return pulumi.get(self, "name")
|
|
919
920
|
|
|
920
|
-
@property
|
|
921
|
+
@_builtins.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
|
"""
|
|
926
927
|
return pulumi.get(self, "policy_id")
|
|
927
928
|
|
|
928
|
-
@property
|
|
929
|
+
@_builtins.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
|
"""
|
|
934
935
|
return pulumi.get(self, "runbook_url")
|
|
935
936
|
|
|
936
|
-
@property
|
|
937
|
+
@_builtins.property
|
|
937
938
|
@pulumi.getter
|
|
938
939
|
def terms(self) -> pulumi.Output[Sequence['outputs.AlertConditionTerm']]:
|
|
939
940
|
"""
|
|
@@ -941,25 +942,25 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
941
942
|
"""
|
|
942
943
|
return pulumi.get(self, "terms")
|
|
943
944
|
|
|
944
|
-
@property
|
|
945
|
+
@_builtins.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
|
"""
|
|
950
951
|
return pulumi.get(self, "type")
|
|
951
952
|
|
|
952
|
-
@property
|
|
953
|
+
@_builtins.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
|
"""
|
|
958
959
|
return pulumi.get(self, "user_defined_metric")
|
|
959
960
|
|
|
960
|
-
@property
|
|
961
|
+
@_builtins.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
|
|
|
@@ -971,9 +972,9 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
971
972
|
"""
|
|
972
973
|
return pulumi.get(self, "user_defined_value_function")
|
|
973
974
|
|
|
974
|
-
@property
|
|
975
|
+
@_builtins.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`
|