pulumi-newrelic 5.33.0__py3-none-any.whl → 5.33.0a1726293016__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 +0 -9
- pulumi_newrelic/_inputs.py +69 -1273
- pulumi_newrelic/outputs.py +1 -953
- pulumi_newrelic/pulumi-plugin.json +1 -1
- {pulumi_newrelic-5.33.0.dist-info → pulumi_newrelic-5.33.0a1726293016.dist-info}/METADATA +1 -1
- {pulumi_newrelic-5.33.0.dist-info → pulumi_newrelic-5.33.0a1726293016.dist-info}/RECORD +8 -9
- {pulumi_newrelic-5.33.0.dist-info → pulumi_newrelic-5.33.0a1726293016.dist-info}/WHEEL +1 -1
- pulumi_newrelic/key_transaction.py +0 -459
- {pulumi_newrelic-5.33.0.dist-info → pulumi_newrelic-5.33.0a1726293016.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
pulumi_newrelic/__init__.py,sha256=
|
2
|
-
pulumi_newrelic/_inputs.py,sha256=
|
1
|
+
pulumi_newrelic/__init__.py,sha256=Ekxa_c_Z6YcPWbvb7FFvd3lBPGRctMTA9rQGGzd13Ts,11328
|
2
|
+
pulumi_newrelic/_inputs.py,sha256=luicxeYNxDmIsa2-nMVrwOSsVDM2OlfNvTtAJJHnqIY,547954
|
3
3
|
pulumi_newrelic/_utilities.py,sha256=aNnnaO6zRha3FhNHonuabR4fJLWGXANtK5dlh1Mz95k,10506
|
4
4
|
pulumi_newrelic/account_management.py,sha256=IKzAnKd0TqvKr4TkBUSDhxUyhMyWaTI6Ux4OJ5GMNn0,8789
|
5
5
|
pulumi_newrelic/alert_channel.py,sha256=K8eeh3NMFMeExKdxMC1kmOHQQKn-qdL2m_tgYn_FRwk,21651
|
@@ -28,7 +28,6 @@ pulumi_newrelic/get_test_grok_pattern.py,sha256=mCiJXbpiQLg2oeEa5_rQTI38ZsXkWml4
|
|
28
28
|
pulumi_newrelic/get_user.py,sha256=QxI7LiKvkiBOc-Ovj3ySFzD1l2SrGO1Y7-xnrGhfP3A,7284
|
29
29
|
pulumi_newrelic/group.py,sha256=ifVMSVvNIQ4YtoRXIBCpzu7jy3AsEt0iQAFC4M3Rb8g,20907
|
30
30
|
pulumi_newrelic/infra_alert_condition.py,sha256=FfV_20bsOQxdc-f6asr3aZr3zfSZoJ-wHCa778B59wE,58014
|
31
|
-
pulumi_newrelic/key_transaction.py,sha256=uUpqDYlbJ1qdYA8Sf6ItV19sfhjOkDepZ5Prf1amgbg,22701
|
32
31
|
pulumi_newrelic/log_parsing_rule.py,sha256=1NgUsL1PQNd5-5eMUiOA5fL0vT91DNQ6KqmcWSyn5l0,22408
|
33
32
|
pulumi_newrelic/monitor_downtime.py,sha256=xykQl049eRPdC65CMoJ8f2tDziQ_iz16zcGX79Wg1Tg,40688
|
34
33
|
pulumi_newrelic/notification_channel.py,sha256=i2k-H-297X5BUbwS9lqCyO68Y91DC0GgvR1Tsxjb24Q,47005
|
@@ -40,9 +39,9 @@ pulumi_newrelic/obfuscation_rule.py,sha256=Cz6dmdXb6JNf2_jiFjAEk4Nd0RSOwF9D9A1vW
|
|
40
39
|
pulumi_newrelic/one_dashboard.py,sha256=bDsY4sEBzjnz2iZb_JmWptApai3Blpzo25vHIRQsjDw,20680
|
41
40
|
pulumi_newrelic/one_dashboard_json.py,sha256=u-JceUUU1oHvQ_QT5rSy5kWw17dGR4hk_X0qg-NVT-s,12622
|
42
41
|
pulumi_newrelic/one_dashboard_raw.py,sha256=_5CWA6p6_tCfI135mTysVo0qjQf1xnYBNEZBDNmKqsw,23502
|
43
|
-
pulumi_newrelic/outputs.py,sha256=
|
42
|
+
pulumi_newrelic/outputs.py,sha256=TdO-CuVJTKhSmIRRYYtL6L6i55OPM2XfwiamJrddutA,532114
|
44
43
|
pulumi_newrelic/provider.py,sha256=Bsa8btfylF9MK4dh4DF7RFTc8PaDI7qMeaFipQxwATw,18319
|
45
|
-
pulumi_newrelic/pulumi-plugin.json,sha256=
|
44
|
+
pulumi_newrelic/pulumi-plugin.json,sha256=5E5p9C0o4uHo7wZq9bbtLrc942EcKIipfFXMkEE2cM8,85
|
46
45
|
pulumi_newrelic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
46
|
pulumi_newrelic/service_level.py,sha256=1MA3qQw6Y6d-HA6TIckt0B7FLZIhNCH8GuWhn0f246M,28806
|
48
47
|
pulumi_newrelic/user.py,sha256=kmrrs7yU396-mOZwigKQVS4iAyJHGZgevWJJkjU_CdI,18942
|
@@ -84,7 +83,7 @@ pulumi_newrelic/synthetics/private_location.py,sha256=Z6Pj1vjDif95ep7w4QhWu3jsQQ
|
|
84
83
|
pulumi_newrelic/synthetics/script_monitor.py,sha256=qEsYg8-LF79kW4CTsYfisgghvPSKNwqqU5Vtcp44_Ws,65934
|
85
84
|
pulumi_newrelic/synthetics/secure_credential.py,sha256=VhiFz5VYzSoyndMhYJk-aoIIoVjechXClltZUThei_8,15602
|
86
85
|
pulumi_newrelic/synthetics/step_monitor.py,sha256=LfGNfqgZyQBRaA92a-kID9UNEsyFmuJxPgSWnk_Z5nQ,48788
|
87
|
-
pulumi_newrelic-5.33.
|
88
|
-
pulumi_newrelic-5.33.
|
89
|
-
pulumi_newrelic-5.33.
|
90
|
-
pulumi_newrelic-5.33.
|
86
|
+
pulumi_newrelic-5.33.0a1726293016.dist-info/METADATA,sha256=DxBXZRc1-vvM56JrNzjAE3tG-2KertMjp-FBjK3T27U,3900
|
87
|
+
pulumi_newrelic-5.33.0a1726293016.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
88
|
+
pulumi_newrelic-5.33.0a1726293016.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
|
89
|
+
pulumi_newrelic-5.33.0a1726293016.dist-info/RECORD,,
|
@@ -1,459 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import copy
|
6
|
-
import warnings
|
7
|
-
import pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from . import _utilities
|
11
|
-
|
12
|
-
__all__ = ['KeyTransactionArgs', 'KeyTransaction']
|
13
|
-
|
14
|
-
@pulumi.input_type
|
15
|
-
class KeyTransactionArgs:
|
16
|
-
def __init__(__self__, *,
|
17
|
-
apdex_index: pulumi.Input[float],
|
18
|
-
application_guid: pulumi.Input[str],
|
19
|
-
browser_apdex_target: pulumi.Input[float],
|
20
|
-
metric_name: pulumi.Input[str],
|
21
|
-
name: Optional[pulumi.Input[str]] = None):
|
22
|
-
"""
|
23
|
-
The set of arguments for constructing a KeyTransaction resource.
|
24
|
-
:param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
|
25
|
-
:param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
|
26
|
-
:param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
|
27
|
-
|
28
|
-
> **NOTE:** It may be noted that the `metric_name` and `application_guid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `application_guid` and/or `metric_name` of a `KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource.
|
29
|
-
:param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
|
30
|
-
:param pulumi.Input[str] name: The name of the key transaction.
|
31
|
-
"""
|
32
|
-
pulumi.set(__self__, "apdex_index", apdex_index)
|
33
|
-
pulumi.set(__self__, "application_guid", application_guid)
|
34
|
-
pulumi.set(__self__, "browser_apdex_target", browser_apdex_target)
|
35
|
-
pulumi.set(__self__, "metric_name", metric_name)
|
36
|
-
if name is not None:
|
37
|
-
pulumi.set(__self__, "name", name)
|
38
|
-
|
39
|
-
@property
|
40
|
-
@pulumi.getter(name="apdexIndex")
|
41
|
-
def apdex_index(self) -> pulumi.Input[float]:
|
42
|
-
"""
|
43
|
-
A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
|
44
|
-
"""
|
45
|
-
return pulumi.get(self, "apdex_index")
|
46
|
-
|
47
|
-
@apdex_index.setter
|
48
|
-
def apdex_index(self, value: pulumi.Input[float]):
|
49
|
-
pulumi.set(self, "apdex_index", value)
|
50
|
-
|
51
|
-
@property
|
52
|
-
@pulumi.getter(name="applicationGuid")
|
53
|
-
def application_guid(self) -> pulumi.Input[str]:
|
54
|
-
"""
|
55
|
-
The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
|
56
|
-
"""
|
57
|
-
return pulumi.get(self, "application_guid")
|
58
|
-
|
59
|
-
@application_guid.setter
|
60
|
-
def application_guid(self, value: pulumi.Input[str]):
|
61
|
-
pulumi.set(self, "application_guid", value)
|
62
|
-
|
63
|
-
@property
|
64
|
-
@pulumi.getter(name="browserApdexTarget")
|
65
|
-
def browser_apdex_target(self) -> pulumi.Input[float]:
|
66
|
-
"""
|
67
|
-
A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
|
68
|
-
|
69
|
-
> **NOTE:** It may be noted that the `metric_name` and `application_guid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `application_guid` and/or `metric_name` of a `KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource.
|
70
|
-
"""
|
71
|
-
return pulumi.get(self, "browser_apdex_target")
|
72
|
-
|
73
|
-
@browser_apdex_target.setter
|
74
|
-
def browser_apdex_target(self, value: pulumi.Input[float]):
|
75
|
-
pulumi.set(self, "browser_apdex_target", value)
|
76
|
-
|
77
|
-
@property
|
78
|
-
@pulumi.getter(name="metricName")
|
79
|
-
def metric_name(self) -> pulumi.Input[str]:
|
80
|
-
"""
|
81
|
-
The name of the underlying metric monitored by the key transaction to be created.
|
82
|
-
"""
|
83
|
-
return pulumi.get(self, "metric_name")
|
84
|
-
|
85
|
-
@metric_name.setter
|
86
|
-
def metric_name(self, value: pulumi.Input[str]):
|
87
|
-
pulumi.set(self, "metric_name", value)
|
88
|
-
|
89
|
-
@property
|
90
|
-
@pulumi.getter
|
91
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
92
|
-
"""
|
93
|
-
The name of the key transaction.
|
94
|
-
"""
|
95
|
-
return pulumi.get(self, "name")
|
96
|
-
|
97
|
-
@name.setter
|
98
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
99
|
-
pulumi.set(self, "name", value)
|
100
|
-
|
101
|
-
|
102
|
-
@pulumi.input_type
|
103
|
-
class _KeyTransactionState:
|
104
|
-
def __init__(__self__, *,
|
105
|
-
apdex_index: Optional[pulumi.Input[float]] = None,
|
106
|
-
application_guid: Optional[pulumi.Input[str]] = None,
|
107
|
-
browser_apdex_target: Optional[pulumi.Input[float]] = None,
|
108
|
-
domain: Optional[pulumi.Input[str]] = None,
|
109
|
-
metric_name: Optional[pulumi.Input[str]] = None,
|
110
|
-
name: Optional[pulumi.Input[str]] = None,
|
111
|
-
type: Optional[pulumi.Input[str]] = None):
|
112
|
-
"""
|
113
|
-
Input properties used for looking up and filtering KeyTransaction resources.
|
114
|
-
:param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
|
115
|
-
:param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
|
116
|
-
:param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
|
117
|
-
|
118
|
-
> **NOTE:** It may be noted that the `metric_name` and `application_guid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `application_guid` and/or `metric_name` of a `KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource.
|
119
|
-
:param pulumi.Input[str] domain: The domain of the entity monitored by the key transaction.
|
120
|
-
:param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
|
121
|
-
:param pulumi.Input[str] name: The name of the key transaction.
|
122
|
-
:param pulumi.Input[str] type: The type of the entity monitored by the key transaction.
|
123
|
-
"""
|
124
|
-
if apdex_index is not None:
|
125
|
-
pulumi.set(__self__, "apdex_index", apdex_index)
|
126
|
-
if application_guid is not None:
|
127
|
-
pulumi.set(__self__, "application_guid", application_guid)
|
128
|
-
if browser_apdex_target is not None:
|
129
|
-
pulumi.set(__self__, "browser_apdex_target", browser_apdex_target)
|
130
|
-
if domain is not None:
|
131
|
-
pulumi.set(__self__, "domain", domain)
|
132
|
-
if metric_name is not None:
|
133
|
-
pulumi.set(__self__, "metric_name", metric_name)
|
134
|
-
if name is not None:
|
135
|
-
pulumi.set(__self__, "name", name)
|
136
|
-
if type is not None:
|
137
|
-
pulumi.set(__self__, "type", type)
|
138
|
-
|
139
|
-
@property
|
140
|
-
@pulumi.getter(name="apdexIndex")
|
141
|
-
def apdex_index(self) -> Optional[pulumi.Input[float]]:
|
142
|
-
"""
|
143
|
-
A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
|
144
|
-
"""
|
145
|
-
return pulumi.get(self, "apdex_index")
|
146
|
-
|
147
|
-
@apdex_index.setter
|
148
|
-
def apdex_index(self, value: Optional[pulumi.Input[float]]):
|
149
|
-
pulumi.set(self, "apdex_index", value)
|
150
|
-
|
151
|
-
@property
|
152
|
-
@pulumi.getter(name="applicationGuid")
|
153
|
-
def application_guid(self) -> Optional[pulumi.Input[str]]:
|
154
|
-
"""
|
155
|
-
The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
|
156
|
-
"""
|
157
|
-
return pulumi.get(self, "application_guid")
|
158
|
-
|
159
|
-
@application_guid.setter
|
160
|
-
def application_guid(self, value: Optional[pulumi.Input[str]]):
|
161
|
-
pulumi.set(self, "application_guid", value)
|
162
|
-
|
163
|
-
@property
|
164
|
-
@pulumi.getter(name="browserApdexTarget")
|
165
|
-
def browser_apdex_target(self) -> Optional[pulumi.Input[float]]:
|
166
|
-
"""
|
167
|
-
A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
|
168
|
-
|
169
|
-
> **NOTE:** It may be noted that the `metric_name` and `application_guid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `application_guid` and/or `metric_name` of a `KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource.
|
170
|
-
"""
|
171
|
-
return pulumi.get(self, "browser_apdex_target")
|
172
|
-
|
173
|
-
@browser_apdex_target.setter
|
174
|
-
def browser_apdex_target(self, value: Optional[pulumi.Input[float]]):
|
175
|
-
pulumi.set(self, "browser_apdex_target", value)
|
176
|
-
|
177
|
-
@property
|
178
|
-
@pulumi.getter
|
179
|
-
def domain(self) -> Optional[pulumi.Input[str]]:
|
180
|
-
"""
|
181
|
-
The domain of the entity monitored by the key transaction.
|
182
|
-
"""
|
183
|
-
return pulumi.get(self, "domain")
|
184
|
-
|
185
|
-
@domain.setter
|
186
|
-
def domain(self, value: Optional[pulumi.Input[str]]):
|
187
|
-
pulumi.set(self, "domain", value)
|
188
|
-
|
189
|
-
@property
|
190
|
-
@pulumi.getter(name="metricName")
|
191
|
-
def metric_name(self) -> Optional[pulumi.Input[str]]:
|
192
|
-
"""
|
193
|
-
The name of the underlying metric monitored by the key transaction to be created.
|
194
|
-
"""
|
195
|
-
return pulumi.get(self, "metric_name")
|
196
|
-
|
197
|
-
@metric_name.setter
|
198
|
-
def metric_name(self, value: Optional[pulumi.Input[str]]):
|
199
|
-
pulumi.set(self, "metric_name", value)
|
200
|
-
|
201
|
-
@property
|
202
|
-
@pulumi.getter
|
203
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
204
|
-
"""
|
205
|
-
The name of the key transaction.
|
206
|
-
"""
|
207
|
-
return pulumi.get(self, "name")
|
208
|
-
|
209
|
-
@name.setter
|
210
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
211
|
-
pulumi.set(self, "name", value)
|
212
|
-
|
213
|
-
@property
|
214
|
-
@pulumi.getter
|
215
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
216
|
-
"""
|
217
|
-
The type of the entity monitored by the key transaction.
|
218
|
-
"""
|
219
|
-
return pulumi.get(self, "type")
|
220
|
-
|
221
|
-
@type.setter
|
222
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
223
|
-
pulumi.set(self, "type", value)
|
224
|
-
|
225
|
-
|
226
|
-
class KeyTransaction(pulumi.CustomResource):
|
227
|
-
@overload
|
228
|
-
def __init__(__self__,
|
229
|
-
resource_name: str,
|
230
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
231
|
-
apdex_index: Optional[pulumi.Input[float]] = None,
|
232
|
-
application_guid: Optional[pulumi.Input[str]] = None,
|
233
|
-
browser_apdex_target: Optional[pulumi.Input[float]] = None,
|
234
|
-
metric_name: Optional[pulumi.Input[str]] = None,
|
235
|
-
name: Optional[pulumi.Input[str]] = None,
|
236
|
-
__props__=None):
|
237
|
-
"""
|
238
|
-
Use this resource to create a new Key Transaction in New Relic.
|
239
|
-
|
240
|
-
> **NOTE:** For more information on Key Transactions, head over to [this page](https://docs.newrelic.com/docs/apm/transactions/key-transactions/introduction-key-transactions/) in New Relic's docs.
|
241
|
-
|
242
|
-
## Example Usage
|
243
|
-
|
244
|
-
```python
|
245
|
-
import pulumi
|
246
|
-
import pulumi_newrelic as newrelic
|
247
|
-
|
248
|
-
foo = newrelic.KeyTransaction("foo",
|
249
|
-
application_guid="MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy",
|
250
|
-
apdex_index=0.5,
|
251
|
-
browser_apdex_target=0.5,
|
252
|
-
metric_name="WebTransaction/Function/__main__:foo_bar",
|
253
|
-
name="Sample Key Transaction")
|
254
|
-
```
|
255
|
-
|
256
|
-
## Import
|
257
|
-
|
258
|
-
A Key Transaction in New Relic may be imported into Terraform using its GUID specified in the `<id>` field, in the following command.
|
259
|
-
|
260
|
-
bash
|
261
|
-
|
262
|
-
```sh
|
263
|
-
$ pulumi import newrelic:index/keyTransaction:KeyTransaction foo <id>
|
264
|
-
```
|
265
|
-
|
266
|
-
:param str resource_name: The name of the resource.
|
267
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
268
|
-
:param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
|
269
|
-
:param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
|
270
|
-
:param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
|
271
|
-
|
272
|
-
> **NOTE:** It may be noted that the `metric_name` and `application_guid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `application_guid` and/or `metric_name` of a `KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource.
|
273
|
-
:param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
|
274
|
-
:param pulumi.Input[str] name: The name of the key transaction.
|
275
|
-
"""
|
276
|
-
...
|
277
|
-
@overload
|
278
|
-
def __init__(__self__,
|
279
|
-
resource_name: str,
|
280
|
-
args: KeyTransactionArgs,
|
281
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
282
|
-
"""
|
283
|
-
Use this resource to create a new Key Transaction in New Relic.
|
284
|
-
|
285
|
-
> **NOTE:** For more information on Key Transactions, head over to [this page](https://docs.newrelic.com/docs/apm/transactions/key-transactions/introduction-key-transactions/) in New Relic's docs.
|
286
|
-
|
287
|
-
## Example Usage
|
288
|
-
|
289
|
-
```python
|
290
|
-
import pulumi
|
291
|
-
import pulumi_newrelic as newrelic
|
292
|
-
|
293
|
-
foo = newrelic.KeyTransaction("foo",
|
294
|
-
application_guid="MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy",
|
295
|
-
apdex_index=0.5,
|
296
|
-
browser_apdex_target=0.5,
|
297
|
-
metric_name="WebTransaction/Function/__main__:foo_bar",
|
298
|
-
name="Sample Key Transaction")
|
299
|
-
```
|
300
|
-
|
301
|
-
## Import
|
302
|
-
|
303
|
-
A Key Transaction in New Relic may be imported into Terraform using its GUID specified in the `<id>` field, in the following command.
|
304
|
-
|
305
|
-
bash
|
306
|
-
|
307
|
-
```sh
|
308
|
-
$ pulumi import newrelic:index/keyTransaction:KeyTransaction foo <id>
|
309
|
-
```
|
310
|
-
|
311
|
-
:param str resource_name: The name of the resource.
|
312
|
-
:param KeyTransactionArgs args: The arguments to use to populate this resource's properties.
|
313
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
314
|
-
"""
|
315
|
-
...
|
316
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
317
|
-
resource_args, opts = _utilities.get_resource_args_opts(KeyTransactionArgs, pulumi.ResourceOptions, *args, **kwargs)
|
318
|
-
if resource_args is not None:
|
319
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
320
|
-
else:
|
321
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
322
|
-
|
323
|
-
def _internal_init(__self__,
|
324
|
-
resource_name: str,
|
325
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
326
|
-
apdex_index: Optional[pulumi.Input[float]] = None,
|
327
|
-
application_guid: Optional[pulumi.Input[str]] = None,
|
328
|
-
browser_apdex_target: Optional[pulumi.Input[float]] = None,
|
329
|
-
metric_name: Optional[pulumi.Input[str]] = None,
|
330
|
-
name: Optional[pulumi.Input[str]] = None,
|
331
|
-
__props__=None):
|
332
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
333
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
334
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
335
|
-
if opts.id is None:
|
336
|
-
if __props__ is not None:
|
337
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
338
|
-
__props__ = KeyTransactionArgs.__new__(KeyTransactionArgs)
|
339
|
-
|
340
|
-
if apdex_index is None and not opts.urn:
|
341
|
-
raise TypeError("Missing required property 'apdex_index'")
|
342
|
-
__props__.__dict__["apdex_index"] = apdex_index
|
343
|
-
if application_guid is None and not opts.urn:
|
344
|
-
raise TypeError("Missing required property 'application_guid'")
|
345
|
-
__props__.__dict__["application_guid"] = application_guid
|
346
|
-
if browser_apdex_target is None and not opts.urn:
|
347
|
-
raise TypeError("Missing required property 'browser_apdex_target'")
|
348
|
-
__props__.__dict__["browser_apdex_target"] = browser_apdex_target
|
349
|
-
if metric_name is None and not opts.urn:
|
350
|
-
raise TypeError("Missing required property 'metric_name'")
|
351
|
-
__props__.__dict__["metric_name"] = metric_name
|
352
|
-
__props__.__dict__["name"] = name
|
353
|
-
__props__.__dict__["domain"] = None
|
354
|
-
__props__.__dict__["type"] = None
|
355
|
-
super(KeyTransaction, __self__).__init__(
|
356
|
-
'newrelic:index/keyTransaction:KeyTransaction',
|
357
|
-
resource_name,
|
358
|
-
__props__,
|
359
|
-
opts)
|
360
|
-
|
361
|
-
@staticmethod
|
362
|
-
def get(resource_name: str,
|
363
|
-
id: pulumi.Input[str],
|
364
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
365
|
-
apdex_index: Optional[pulumi.Input[float]] = None,
|
366
|
-
application_guid: Optional[pulumi.Input[str]] = None,
|
367
|
-
browser_apdex_target: Optional[pulumi.Input[float]] = None,
|
368
|
-
domain: Optional[pulumi.Input[str]] = None,
|
369
|
-
metric_name: Optional[pulumi.Input[str]] = None,
|
370
|
-
name: Optional[pulumi.Input[str]] = None,
|
371
|
-
type: Optional[pulumi.Input[str]] = None) -> 'KeyTransaction':
|
372
|
-
"""
|
373
|
-
Get an existing KeyTransaction resource's state with the given name, id, and optional extra
|
374
|
-
properties used to qualify the lookup.
|
375
|
-
|
376
|
-
:param str resource_name: The unique name of the resulting resource.
|
377
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
378
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
379
|
-
:param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
|
380
|
-
:param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
|
381
|
-
:param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
|
382
|
-
|
383
|
-
> **NOTE:** It may be noted that the `metric_name` and `application_guid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `application_guid` and/or `metric_name` of a `KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource.
|
384
|
-
:param pulumi.Input[str] domain: The domain of the entity monitored by the key transaction.
|
385
|
-
:param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
|
386
|
-
:param pulumi.Input[str] name: The name of the key transaction.
|
387
|
-
:param pulumi.Input[str] type: The type of the entity monitored by the key transaction.
|
388
|
-
"""
|
389
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
390
|
-
|
391
|
-
__props__ = _KeyTransactionState.__new__(_KeyTransactionState)
|
392
|
-
|
393
|
-
__props__.__dict__["apdex_index"] = apdex_index
|
394
|
-
__props__.__dict__["application_guid"] = application_guid
|
395
|
-
__props__.__dict__["browser_apdex_target"] = browser_apdex_target
|
396
|
-
__props__.__dict__["domain"] = domain
|
397
|
-
__props__.__dict__["metric_name"] = metric_name
|
398
|
-
__props__.__dict__["name"] = name
|
399
|
-
__props__.__dict__["type"] = type
|
400
|
-
return KeyTransaction(resource_name, opts=opts, __props__=__props__)
|
401
|
-
|
402
|
-
@property
|
403
|
-
@pulumi.getter(name="apdexIndex")
|
404
|
-
def apdex_index(self) -> pulumi.Output[float]:
|
405
|
-
"""
|
406
|
-
A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
|
407
|
-
"""
|
408
|
-
return pulumi.get(self, "apdex_index")
|
409
|
-
|
410
|
-
@property
|
411
|
-
@pulumi.getter(name="applicationGuid")
|
412
|
-
def application_guid(self) -> pulumi.Output[str]:
|
413
|
-
"""
|
414
|
-
The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
|
415
|
-
"""
|
416
|
-
return pulumi.get(self, "application_guid")
|
417
|
-
|
418
|
-
@property
|
419
|
-
@pulumi.getter(name="browserApdexTarget")
|
420
|
-
def browser_apdex_target(self) -> pulumi.Output[float]:
|
421
|
-
"""
|
422
|
-
A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
|
423
|
-
|
424
|
-
> **NOTE:** It may be noted that the `metric_name` and `application_guid` of a Key Transaction _cannot_ be updated in a key transaction that has already been created; since this is not supported. As a consequence, altering the values of `application_guid` and/or `metric_name` of a `KeyTransaction` resource created (to try updating these values) would result in `pulumi preview` prompting a forced destruction and re-creation of the resource.
|
425
|
-
"""
|
426
|
-
return pulumi.get(self, "browser_apdex_target")
|
427
|
-
|
428
|
-
@property
|
429
|
-
@pulumi.getter
|
430
|
-
def domain(self) -> pulumi.Output[str]:
|
431
|
-
"""
|
432
|
-
The domain of the entity monitored by the key transaction.
|
433
|
-
"""
|
434
|
-
return pulumi.get(self, "domain")
|
435
|
-
|
436
|
-
@property
|
437
|
-
@pulumi.getter(name="metricName")
|
438
|
-
def metric_name(self) -> pulumi.Output[str]:
|
439
|
-
"""
|
440
|
-
The name of the underlying metric monitored by the key transaction to be created.
|
441
|
-
"""
|
442
|
-
return pulumi.get(self, "metric_name")
|
443
|
-
|
444
|
-
@property
|
445
|
-
@pulumi.getter
|
446
|
-
def name(self) -> pulumi.Output[str]:
|
447
|
-
"""
|
448
|
-
The name of the key transaction.
|
449
|
-
"""
|
450
|
-
return pulumi.get(self, "name")
|
451
|
-
|
452
|
-
@property
|
453
|
-
@pulumi.getter
|
454
|
-
def type(self) -> pulumi.Output[str]:
|
455
|
-
"""
|
456
|
-
The type of the entity monitored by the key transaction.
|
457
|
-
"""
|
458
|
-
return pulumi.get(self, "type")
|
459
|
-
|
{pulumi_newrelic-5.33.0.dist-info → pulumi_newrelic-5.33.0a1726293016.dist-info}/top_level.txt
RENAMED
File without changes
|