pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. pulumi_newrelic/__init__.py +9 -0
  2. pulumi_newrelic/_inputs.py +7153 -461
  3. pulumi_newrelic/_utilities.py +41 -5
  4. pulumi_newrelic/account_management.py +13 -4
  5. pulumi_newrelic/alert_channel.py +122 -101
  6. pulumi_newrelic/alert_condition.py +120 -109
  7. pulumi_newrelic/alert_muting_rule.py +130 -74
  8. pulumi_newrelic/alert_policy.py +88 -67
  9. pulumi_newrelic/alert_policy_channel.py +81 -68
  10. pulumi_newrelic/api_access_key.py +49 -52
  11. pulumi_newrelic/browser_application.py +79 -76
  12. pulumi_newrelic/cloud/_inputs.py +2527 -1082
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
  15. pulumi_newrelic/cloud/aws_integrations.py +300 -1324
  16. pulumi_newrelic/cloud/aws_link_account.py +25 -18
  17. pulumi_newrelic/cloud/azure_integrations.py +523 -481
  18. pulumi_newrelic/cloud/azure_link_account.py +36 -29
  19. pulumi_newrelic/cloud/gcp_integrations.py +343 -320
  20. pulumi_newrelic/cloud/gcp_link_account.py +25 -18
  21. pulumi_newrelic/cloud/outputs.py +327 -1072
  22. pulumi_newrelic/config/__init__.pyi +6 -1
  23. pulumi_newrelic/config/vars.py +7 -2
  24. pulumi_newrelic/data_partition_rule.py +23 -16
  25. pulumi_newrelic/entity_tags.py +36 -31
  26. pulumi_newrelic/events_to_metrics_rule.py +27 -20
  27. pulumi_newrelic/get_account.py +24 -12
  28. pulumi_newrelic/get_alert_channel.py +26 -13
  29. pulumi_newrelic/get_alert_policy.py +35 -12
  30. pulumi_newrelic/get_application.py +39 -27
  31. pulumi_newrelic/get_authentication_domain.py +17 -9
  32. pulumi_newrelic/get_cloud_account.py +26 -14
  33. pulumi_newrelic/get_entity.py +90 -85
  34. pulumi_newrelic/get_group.py +58 -9
  35. pulumi_newrelic/get_key_transaction.py +109 -30
  36. pulumi_newrelic/get_notification_destination.py +64 -14
  37. pulumi_newrelic/get_obfuscation_expression.py +36 -24
  38. pulumi_newrelic/get_service_level_alert_helper.py +135 -105
  39. pulumi_newrelic/get_test_grok_pattern.py +29 -14
  40. pulumi_newrelic/get_user.py +17 -5
  41. pulumi_newrelic/group.py +5 -132
  42. pulumi_newrelic/infra_alert_condition.py +157 -140
  43. pulumi_newrelic/insights/_inputs.py +43 -0
  44. pulumi_newrelic/insights/event.py +50 -43
  45. pulumi_newrelic/insights/outputs.py +5 -0
  46. pulumi_newrelic/key_transaction.py +464 -0
  47. pulumi_newrelic/log_parsing_rule.py +29 -18
  48. pulumi_newrelic/monitor_downtime.py +215 -203
  49. pulumi_newrelic/notification_channel.py +387 -326
  50. pulumi_newrelic/notification_destination.py +248 -118
  51. pulumi_newrelic/nrql_alert_condition.py +353 -246
  52. pulumi_newrelic/nrql_drop_rule.py +57 -30
  53. pulumi_newrelic/obfuscation_expression.py +25 -18
  54. pulumi_newrelic/obfuscation_rule.py +40 -31
  55. pulumi_newrelic/one_dashboard.py +31 -26
  56. pulumi_newrelic/one_dashboard_json.py +21 -16
  57. pulumi_newrelic/one_dashboard_raw.py +112 -101
  58. pulumi_newrelic/outputs.py +2446 -245
  59. pulumi_newrelic/plugins/_inputs.py +145 -10
  60. pulumi_newrelic/plugins/application_settings.py +29 -20
  61. pulumi_newrelic/plugins/outputs.py +15 -10
  62. pulumi_newrelic/plugins/workload.py +285 -54
  63. pulumi_newrelic/provider.py +27 -33
  64. pulumi_newrelic/pulumi-plugin.json +2 -1
  65. pulumi_newrelic/service_level.py +193 -180
  66. pulumi_newrelic/synthetics/_inputs.py +159 -2
  67. pulumi_newrelic/synthetics/alert_condition.py +91 -78
  68. pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
  69. pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
  70. pulumi_newrelic/synthetics/get_private_location.py +34 -22
  71. pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
  72. pulumi_newrelic/synthetics/monitor.py +352 -179
  73. pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
  74. pulumi_newrelic/synthetics/outputs.py +7 -2
  75. pulumi_newrelic/synthetics/private_location.py +27 -18
  76. pulumi_newrelic/synthetics/script_monitor.py +321 -168
  77. pulumi_newrelic/synthetics/secure_credential.py +25 -20
  78. pulumi_newrelic/synthetics/step_monitor.py +409 -98
  79. pulumi_newrelic/user.py +13 -6
  80. pulumi_newrelic/workflow.py +215 -184
  81. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
  82. pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
  83. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
  84. pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
  85. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,464 @@
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 sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['KeyTransactionArgs', 'KeyTransaction']
18
+
19
+ @pulumi.input_type
20
+ class KeyTransactionArgs:
21
+ def __init__(__self__, *,
22
+ apdex_index: pulumi.Input[float],
23
+ application_guid: pulumi.Input[str],
24
+ browser_apdex_target: pulumi.Input[float],
25
+ metric_name: pulumi.Input[str],
26
+ name: Optional[pulumi.Input[str]] = None):
27
+ """
28
+ The set of arguments for constructing a KeyTransaction resource.
29
+ :param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
30
+ :param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
31
+ :param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
32
+
33
+ > **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.
34
+ :param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
35
+ :param pulumi.Input[str] name: The name of the key transaction.
36
+ """
37
+ pulumi.set(__self__, "apdex_index", apdex_index)
38
+ pulumi.set(__self__, "application_guid", application_guid)
39
+ pulumi.set(__self__, "browser_apdex_target", browser_apdex_target)
40
+ pulumi.set(__self__, "metric_name", metric_name)
41
+ if name is not None:
42
+ pulumi.set(__self__, "name", name)
43
+
44
+ @property
45
+ @pulumi.getter(name="apdexIndex")
46
+ def apdex_index(self) -> pulumi.Input[float]:
47
+ """
48
+ A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
49
+ """
50
+ return pulumi.get(self, "apdex_index")
51
+
52
+ @apdex_index.setter
53
+ def apdex_index(self, value: pulumi.Input[float]):
54
+ pulumi.set(self, "apdex_index", value)
55
+
56
+ @property
57
+ @pulumi.getter(name="applicationGuid")
58
+ def application_guid(self) -> pulumi.Input[str]:
59
+ """
60
+ The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
61
+ """
62
+ return pulumi.get(self, "application_guid")
63
+
64
+ @application_guid.setter
65
+ def application_guid(self, value: pulumi.Input[str]):
66
+ pulumi.set(self, "application_guid", value)
67
+
68
+ @property
69
+ @pulumi.getter(name="browserApdexTarget")
70
+ def browser_apdex_target(self) -> pulumi.Input[float]:
71
+ """
72
+ A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
73
+
74
+ > **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.
75
+ """
76
+ return pulumi.get(self, "browser_apdex_target")
77
+
78
+ @browser_apdex_target.setter
79
+ def browser_apdex_target(self, value: pulumi.Input[float]):
80
+ pulumi.set(self, "browser_apdex_target", value)
81
+
82
+ @property
83
+ @pulumi.getter(name="metricName")
84
+ def metric_name(self) -> pulumi.Input[str]:
85
+ """
86
+ The name of the underlying metric monitored by the key transaction to be created.
87
+ """
88
+ return pulumi.get(self, "metric_name")
89
+
90
+ @metric_name.setter
91
+ def metric_name(self, value: pulumi.Input[str]):
92
+ pulumi.set(self, "metric_name", value)
93
+
94
+ @property
95
+ @pulumi.getter
96
+ def name(self) -> Optional[pulumi.Input[str]]:
97
+ """
98
+ The name of the key transaction.
99
+ """
100
+ return pulumi.get(self, "name")
101
+
102
+ @name.setter
103
+ def name(self, value: Optional[pulumi.Input[str]]):
104
+ pulumi.set(self, "name", value)
105
+
106
+
107
+ @pulumi.input_type
108
+ class _KeyTransactionState:
109
+ def __init__(__self__, *,
110
+ apdex_index: Optional[pulumi.Input[float]] = None,
111
+ application_guid: Optional[pulumi.Input[str]] = None,
112
+ browser_apdex_target: Optional[pulumi.Input[float]] = None,
113
+ domain: Optional[pulumi.Input[str]] = None,
114
+ metric_name: Optional[pulumi.Input[str]] = None,
115
+ name: Optional[pulumi.Input[str]] = None,
116
+ type: Optional[pulumi.Input[str]] = None):
117
+ """
118
+ Input properties used for looking up and filtering KeyTransaction resources.
119
+ :param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
120
+ :param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
121
+ :param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
122
+
123
+ > **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.
124
+ :param pulumi.Input[str] domain: The domain of the entity monitored by the key transaction.
125
+ :param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
126
+ :param pulumi.Input[str] name: The name of the key transaction.
127
+ :param pulumi.Input[str] type: The type of the entity monitored by the key transaction.
128
+ """
129
+ if apdex_index is not None:
130
+ pulumi.set(__self__, "apdex_index", apdex_index)
131
+ if application_guid is not None:
132
+ pulumi.set(__self__, "application_guid", application_guid)
133
+ if browser_apdex_target is not None:
134
+ pulumi.set(__self__, "browser_apdex_target", browser_apdex_target)
135
+ if domain is not None:
136
+ pulumi.set(__self__, "domain", domain)
137
+ if metric_name is not None:
138
+ pulumi.set(__self__, "metric_name", metric_name)
139
+ if name is not None:
140
+ pulumi.set(__self__, "name", name)
141
+ if type is not None:
142
+ pulumi.set(__self__, "type", type)
143
+
144
+ @property
145
+ @pulumi.getter(name="apdexIndex")
146
+ def apdex_index(self) -> Optional[pulumi.Input[float]]:
147
+ """
148
+ A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
149
+ """
150
+ return pulumi.get(self, "apdex_index")
151
+
152
+ @apdex_index.setter
153
+ def apdex_index(self, value: Optional[pulumi.Input[float]]):
154
+ pulumi.set(self, "apdex_index", value)
155
+
156
+ @property
157
+ @pulumi.getter(name="applicationGuid")
158
+ def application_guid(self) -> Optional[pulumi.Input[str]]:
159
+ """
160
+ The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
161
+ """
162
+ return pulumi.get(self, "application_guid")
163
+
164
+ @application_guid.setter
165
+ def application_guid(self, value: Optional[pulumi.Input[str]]):
166
+ pulumi.set(self, "application_guid", value)
167
+
168
+ @property
169
+ @pulumi.getter(name="browserApdexTarget")
170
+ def browser_apdex_target(self) -> Optional[pulumi.Input[float]]:
171
+ """
172
+ A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
173
+
174
+ > **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.
175
+ """
176
+ return pulumi.get(self, "browser_apdex_target")
177
+
178
+ @browser_apdex_target.setter
179
+ def browser_apdex_target(self, value: Optional[pulumi.Input[float]]):
180
+ pulumi.set(self, "browser_apdex_target", value)
181
+
182
+ @property
183
+ @pulumi.getter
184
+ def domain(self) -> Optional[pulumi.Input[str]]:
185
+ """
186
+ The domain of the entity monitored by the key transaction.
187
+ """
188
+ return pulumi.get(self, "domain")
189
+
190
+ @domain.setter
191
+ def domain(self, value: Optional[pulumi.Input[str]]):
192
+ pulumi.set(self, "domain", value)
193
+
194
+ @property
195
+ @pulumi.getter(name="metricName")
196
+ def metric_name(self) -> Optional[pulumi.Input[str]]:
197
+ """
198
+ The name of the underlying metric monitored by the key transaction to be created.
199
+ """
200
+ return pulumi.get(self, "metric_name")
201
+
202
+ @metric_name.setter
203
+ def metric_name(self, value: Optional[pulumi.Input[str]]):
204
+ pulumi.set(self, "metric_name", value)
205
+
206
+ @property
207
+ @pulumi.getter
208
+ def name(self) -> Optional[pulumi.Input[str]]:
209
+ """
210
+ The name of the key transaction.
211
+ """
212
+ return pulumi.get(self, "name")
213
+
214
+ @name.setter
215
+ def name(self, value: Optional[pulumi.Input[str]]):
216
+ pulumi.set(self, "name", value)
217
+
218
+ @property
219
+ @pulumi.getter
220
+ def type(self) -> Optional[pulumi.Input[str]]:
221
+ """
222
+ The type of the entity monitored by the key transaction.
223
+ """
224
+ return pulumi.get(self, "type")
225
+
226
+ @type.setter
227
+ def type(self, value: Optional[pulumi.Input[str]]):
228
+ pulumi.set(self, "type", value)
229
+
230
+
231
+ class KeyTransaction(pulumi.CustomResource):
232
+ @overload
233
+ def __init__(__self__,
234
+ resource_name: str,
235
+ opts: Optional[pulumi.ResourceOptions] = None,
236
+ apdex_index: Optional[pulumi.Input[float]] = None,
237
+ application_guid: Optional[pulumi.Input[str]] = None,
238
+ browser_apdex_target: Optional[pulumi.Input[float]] = None,
239
+ metric_name: Optional[pulumi.Input[str]] = None,
240
+ name: Optional[pulumi.Input[str]] = None,
241
+ __props__=None):
242
+ """
243
+ Use this resource to create a new Key Transaction in New Relic.
244
+
245
+ > **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.
246
+
247
+ ## Example Usage
248
+
249
+ ```python
250
+ import pulumi
251
+ import pulumi_newrelic as newrelic
252
+
253
+ foo = newrelic.KeyTransaction("foo",
254
+ application_guid="MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy",
255
+ apdex_index=0.5,
256
+ browser_apdex_target=0.5,
257
+ metric_name="WebTransaction/Function/__main__:foo_bar",
258
+ name="Sample Key Transaction")
259
+ ```
260
+
261
+ ## Import
262
+
263
+ A Key Transaction in New Relic may be imported into Terraform using its GUID specified in the `<id>` field, in the following command.
264
+
265
+ bash
266
+
267
+ ```sh
268
+ $ pulumi import newrelic:index/keyTransaction:KeyTransaction foo <id>
269
+ ```
270
+
271
+ :param str resource_name: The name of the resource.
272
+ :param pulumi.ResourceOptions opts: Options for the resource.
273
+ :param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
274
+ :param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
275
+ :param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
276
+
277
+ > **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.
278
+ :param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
279
+ :param pulumi.Input[str] name: The name of the key transaction.
280
+ """
281
+ ...
282
+ @overload
283
+ def __init__(__self__,
284
+ resource_name: str,
285
+ args: KeyTransactionArgs,
286
+ opts: Optional[pulumi.ResourceOptions] = None):
287
+ """
288
+ Use this resource to create a new Key Transaction in New Relic.
289
+
290
+ > **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.
291
+
292
+ ## Example Usage
293
+
294
+ ```python
295
+ import pulumi
296
+ import pulumi_newrelic as newrelic
297
+
298
+ foo = newrelic.KeyTransaction("foo",
299
+ application_guid="MzgfNjUyNnxBUE19QVBQTElDQVHJT068NTUfNDT4MjUy",
300
+ apdex_index=0.5,
301
+ browser_apdex_target=0.5,
302
+ metric_name="WebTransaction/Function/__main__:foo_bar",
303
+ name="Sample Key Transaction")
304
+ ```
305
+
306
+ ## Import
307
+
308
+ A Key Transaction in New Relic may be imported into Terraform using its GUID specified in the `<id>` field, in the following command.
309
+
310
+ bash
311
+
312
+ ```sh
313
+ $ pulumi import newrelic:index/keyTransaction:KeyTransaction foo <id>
314
+ ```
315
+
316
+ :param str resource_name: The name of the resource.
317
+ :param KeyTransactionArgs args: The arguments to use to populate this resource's properties.
318
+ :param pulumi.ResourceOptions opts: Options for the resource.
319
+ """
320
+ ...
321
+ def __init__(__self__, resource_name: str, *args, **kwargs):
322
+ resource_args, opts = _utilities.get_resource_args_opts(KeyTransactionArgs, pulumi.ResourceOptions, *args, **kwargs)
323
+ if resource_args is not None:
324
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
325
+ else:
326
+ __self__._internal_init(resource_name, *args, **kwargs)
327
+
328
+ def _internal_init(__self__,
329
+ resource_name: str,
330
+ opts: Optional[pulumi.ResourceOptions] = None,
331
+ apdex_index: Optional[pulumi.Input[float]] = None,
332
+ application_guid: Optional[pulumi.Input[str]] = None,
333
+ browser_apdex_target: Optional[pulumi.Input[float]] = None,
334
+ metric_name: Optional[pulumi.Input[str]] = None,
335
+ name: Optional[pulumi.Input[str]] = None,
336
+ __props__=None):
337
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
338
+ if not isinstance(opts, pulumi.ResourceOptions):
339
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
340
+ if opts.id is None:
341
+ if __props__ is not None:
342
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
343
+ __props__ = KeyTransactionArgs.__new__(KeyTransactionArgs)
344
+
345
+ if apdex_index is None and not opts.urn:
346
+ raise TypeError("Missing required property 'apdex_index'")
347
+ __props__.__dict__["apdex_index"] = apdex_index
348
+ if application_guid is None and not opts.urn:
349
+ raise TypeError("Missing required property 'application_guid'")
350
+ __props__.__dict__["application_guid"] = application_guid
351
+ if browser_apdex_target is None and not opts.urn:
352
+ raise TypeError("Missing required property 'browser_apdex_target'")
353
+ __props__.__dict__["browser_apdex_target"] = browser_apdex_target
354
+ if metric_name is None and not opts.urn:
355
+ raise TypeError("Missing required property 'metric_name'")
356
+ __props__.__dict__["metric_name"] = metric_name
357
+ __props__.__dict__["name"] = name
358
+ __props__.__dict__["domain"] = None
359
+ __props__.__dict__["type"] = None
360
+ super(KeyTransaction, __self__).__init__(
361
+ 'newrelic:index/keyTransaction:KeyTransaction',
362
+ resource_name,
363
+ __props__,
364
+ opts)
365
+
366
+ @staticmethod
367
+ def get(resource_name: str,
368
+ id: pulumi.Input[str],
369
+ opts: Optional[pulumi.ResourceOptions] = None,
370
+ apdex_index: Optional[pulumi.Input[float]] = None,
371
+ application_guid: Optional[pulumi.Input[str]] = None,
372
+ browser_apdex_target: Optional[pulumi.Input[float]] = None,
373
+ domain: Optional[pulumi.Input[str]] = None,
374
+ metric_name: Optional[pulumi.Input[str]] = None,
375
+ name: Optional[pulumi.Input[str]] = None,
376
+ type: Optional[pulumi.Input[str]] = None) -> 'KeyTransaction':
377
+ """
378
+ Get an existing KeyTransaction resource's state with the given name, id, and optional extra
379
+ properties used to qualify the lookup.
380
+
381
+ :param str resource_name: The unique name of the resulting resource.
382
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
383
+ :param pulumi.ResourceOptions opts: Options for the resource.
384
+ :param pulumi.Input[float] apdex_index: A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
385
+ :param pulumi.Input[str] application_guid: The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
386
+ :param pulumi.Input[float] browser_apdex_target: A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
387
+
388
+ > **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.
389
+ :param pulumi.Input[str] domain: The domain of the entity monitored by the key transaction.
390
+ :param pulumi.Input[str] metric_name: The name of the underlying metric monitored by the key transaction to be created.
391
+ :param pulumi.Input[str] name: The name of the key transaction.
392
+ :param pulumi.Input[str] type: The type of the entity monitored by the key transaction.
393
+ """
394
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
395
+
396
+ __props__ = _KeyTransactionState.__new__(_KeyTransactionState)
397
+
398
+ __props__.__dict__["apdex_index"] = apdex_index
399
+ __props__.__dict__["application_guid"] = application_guid
400
+ __props__.__dict__["browser_apdex_target"] = browser_apdex_target
401
+ __props__.__dict__["domain"] = domain
402
+ __props__.__dict__["metric_name"] = metric_name
403
+ __props__.__dict__["name"] = name
404
+ __props__.__dict__["type"] = type
405
+ return KeyTransaction(resource_name, opts=opts, __props__=__props__)
406
+
407
+ @property
408
+ @pulumi.getter(name="apdexIndex")
409
+ def apdex_index(self) -> pulumi.Output[float]:
410
+ """
411
+ A decimal value, measuring user satisfaction with response times, ranging from 0 (frustrated) to 1 (satisfied).
412
+ """
413
+ return pulumi.get(self, "apdex_index")
414
+
415
+ @property
416
+ @pulumi.getter(name="applicationGuid")
417
+ def application_guid(self) -> pulumi.Output[str]:
418
+ """
419
+ The GUID of the APM Application comprising transactions, of which one would be made a key transaction.
420
+ """
421
+ return pulumi.get(self, "application_guid")
422
+
423
+ @property
424
+ @pulumi.getter(name="browserApdexTarget")
425
+ def browser_apdex_target(self) -> pulumi.Output[float]:
426
+ """
427
+ A decimal value representing the response time threshold for satisfactory experience (e.g., 0.5 seconds).
428
+
429
+ > **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.
430
+ """
431
+ return pulumi.get(self, "browser_apdex_target")
432
+
433
+ @property
434
+ @pulumi.getter
435
+ def domain(self) -> pulumi.Output[str]:
436
+ """
437
+ The domain of the entity monitored by the key transaction.
438
+ """
439
+ return pulumi.get(self, "domain")
440
+
441
+ @property
442
+ @pulumi.getter(name="metricName")
443
+ def metric_name(self) -> pulumi.Output[str]:
444
+ """
445
+ The name of the underlying metric monitored by the key transaction to be created.
446
+ """
447
+ return pulumi.get(self, "metric_name")
448
+
449
+ @property
450
+ @pulumi.getter
451
+ def name(self) -> pulumi.Output[str]:
452
+ """
453
+ The name of the key transaction.
454
+ """
455
+ return pulumi.get(self, "name")
456
+
457
+ @property
458
+ @pulumi.getter
459
+ def type(self) -> pulumi.Output[str]:
460
+ """
461
+ The type of the entity monitored by the key transaction.
462
+ """
463
+ return pulumi.get(self, "type")
464
+
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['LogParsingRuleArgs', 'LogParsingRule']
@@ -18,7 +23,7 @@ class LogParsingRuleArgs:
18
23
  grok: pulumi.Input[str],
19
24
  lucene: pulumi.Input[str],
20
25
  nrql: pulumi.Input[str],
21
- account_id: Optional[pulumi.Input[int]] = None,
26
+ account_id: Optional[pulumi.Input[str]] = None,
22
27
  attribute: Optional[pulumi.Input[str]] = None,
23
28
  matched: Optional[pulumi.Input[bool]] = None,
24
29
  name: Optional[pulumi.Input[str]] = None):
@@ -28,7 +33,7 @@ class LogParsingRuleArgs:
28
33
  :param pulumi.Input[str] grok: The Grok of what to parse.
29
34
  :param pulumi.Input[str] lucene: The Lucene to match events to the parsing rule.
30
35
  :param pulumi.Input[str] nrql: The NRQL to match events to the parsing rule.
31
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
36
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
32
37
  :param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
33
38
  :param pulumi.Input[bool] matched: Whether the Grok pattern matched.
34
39
  :param pulumi.Input[str] name: Name of rule.
@@ -96,14 +101,14 @@ class LogParsingRuleArgs:
96
101
 
97
102
  @property
98
103
  @pulumi.getter(name="accountId")
99
- def account_id(self) -> Optional[pulumi.Input[int]]:
104
+ def account_id(self) -> Optional[pulumi.Input[str]]:
100
105
  """
101
106
  The account id associated with the obfuscation rule.
102
107
  """
103
108
  return pulumi.get(self, "account_id")
104
109
 
105
110
  @account_id.setter
106
- def account_id(self, value: Optional[pulumi.Input[int]]):
111
+ def account_id(self, value: Optional[pulumi.Input[str]]):
107
112
  pulumi.set(self, "account_id", value)
108
113
 
109
114
  @property
@@ -146,7 +151,7 @@ class LogParsingRuleArgs:
146
151
  @pulumi.input_type
147
152
  class _LogParsingRuleState:
148
153
  def __init__(__self__, *,
149
- account_id: Optional[pulumi.Input[int]] = None,
154
+ account_id: Optional[pulumi.Input[str]] = None,
150
155
  attribute: Optional[pulumi.Input[str]] = None,
151
156
  deleted: Optional[pulumi.Input[bool]] = None,
152
157
  enabled: Optional[pulumi.Input[bool]] = None,
@@ -157,7 +162,7 @@ class _LogParsingRuleState:
157
162
  nrql: Optional[pulumi.Input[str]] = None):
158
163
  """
159
164
  Input properties used for looking up and filtering LogParsingRule resources.
160
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
165
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
161
166
  :param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
162
167
  :param pulumi.Input[bool] deleted: Whether or not this rule is deleted.
163
168
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
@@ -188,14 +193,14 @@ class _LogParsingRuleState:
188
193
 
189
194
  @property
190
195
  @pulumi.getter(name="accountId")
191
- def account_id(self) -> Optional[pulumi.Input[int]]:
196
+ def account_id(self) -> Optional[pulumi.Input[str]]:
192
197
  """
193
198
  The account id associated with the obfuscation rule.
194
199
  """
195
200
  return pulumi.get(self, "account_id")
196
201
 
197
202
  @account_id.setter
198
- def account_id(self, value: Optional[pulumi.Input[int]]):
203
+ def account_id(self, value: Optional[pulumi.Input[str]]):
199
204
  pulumi.set(self, "account_id", value)
200
205
 
201
206
  @property
@@ -300,7 +305,7 @@ class LogParsingRule(pulumi.CustomResource):
300
305
  def __init__(__self__,
301
306
  resource_name: str,
302
307
  opts: Optional[pulumi.ResourceOptions] = None,
303
- account_id: Optional[pulumi.Input[int]] = None,
308
+ account_id: Optional[pulumi.Input[str]] = None,
304
309
  attribute: Optional[pulumi.Input[str]] = None,
305
310
  enabled: Optional[pulumi.Input[bool]] = None,
306
311
  grok: Optional[pulumi.Input[str]] = None,
@@ -320,12 +325,14 @@ class LogParsingRule(pulumi.CustomResource):
320
325
  import pulumi_newrelic as newrelic
321
326
 
322
327
  foo = newrelic.LogParsingRule("foo",
328
+ name="log_parse_rule",
323
329
  attribute="message",
324
330
  enabled=True,
325
- grok="sampleattribute='%%{NUMBER:test:int}'",
331
+ grok="sampleattribute='%{NUMBER:test:int}'",
326
332
  lucene="logtype:linux_messages",
327
333
  nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
328
334
  ```
335
+
329
336
  ## Additional Example
330
337
 
331
338
  Use this example to validate a grok pattern and create the log parse rule. More
@@ -337,6 +344,7 @@ class LogParsingRule(pulumi.CustomResource):
337
344
  grok = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
338
345
  log_lines=["host_ip: 43.3.120.2"])
339
346
  foo = newrelic.LogParsingRule("foo",
347
+ name="log_parse_rule",
340
348
  attribute="message",
341
349
  enabled=True,
342
350
  grok=grok.grok,
@@ -349,7 +357,7 @@ class LogParsingRule(pulumi.CustomResource):
349
357
 
350
358
  New Relic log parsing rule can be imported using the rule ID, e.g.
351
359
 
352
- bash
360
+ bash
353
361
 
354
362
  ```sh
355
363
  $ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
@@ -357,7 +365,7 @@ class LogParsingRule(pulumi.CustomResource):
357
365
 
358
366
  :param str resource_name: The name of the resource.
359
367
  :param pulumi.ResourceOptions opts: Options for the resource.
360
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
368
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
361
369
  :param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
362
370
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
363
371
  :param pulumi.Input[str] grok: The Grok of what to parse.
@@ -383,12 +391,14 @@ class LogParsingRule(pulumi.CustomResource):
383
391
  import pulumi_newrelic as newrelic
384
392
 
385
393
  foo = newrelic.LogParsingRule("foo",
394
+ name="log_parse_rule",
386
395
  attribute="message",
387
396
  enabled=True,
388
- grok="sampleattribute='%%{NUMBER:test:int}'",
397
+ grok="sampleattribute='%{NUMBER:test:int}'",
389
398
  lucene="logtype:linux_messages",
390
399
  nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
391
400
  ```
401
+
392
402
  ## Additional Example
393
403
 
394
404
  Use this example to validate a grok pattern and create the log parse rule. More
@@ -400,6 +410,7 @@ class LogParsingRule(pulumi.CustomResource):
400
410
  grok = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
401
411
  log_lines=["host_ip: 43.3.120.2"])
402
412
  foo = newrelic.LogParsingRule("foo",
413
+ name="log_parse_rule",
403
414
  attribute="message",
404
415
  enabled=True,
405
416
  grok=grok.grok,
@@ -412,7 +423,7 @@ class LogParsingRule(pulumi.CustomResource):
412
423
 
413
424
  New Relic log parsing rule can be imported using the rule ID, e.g.
414
425
 
415
- bash
426
+ bash
416
427
 
417
428
  ```sh
418
429
  $ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
@@ -433,7 +444,7 @@ class LogParsingRule(pulumi.CustomResource):
433
444
  def _internal_init(__self__,
434
445
  resource_name: str,
435
446
  opts: Optional[pulumi.ResourceOptions] = None,
436
- account_id: Optional[pulumi.Input[int]] = None,
447
+ account_id: Optional[pulumi.Input[str]] = None,
437
448
  attribute: Optional[pulumi.Input[str]] = None,
438
449
  enabled: Optional[pulumi.Input[bool]] = None,
439
450
  grok: Optional[pulumi.Input[str]] = None,
@@ -477,7 +488,7 @@ class LogParsingRule(pulumi.CustomResource):
477
488
  def get(resource_name: str,
478
489
  id: pulumi.Input[str],
479
490
  opts: Optional[pulumi.ResourceOptions] = None,
480
- account_id: Optional[pulumi.Input[int]] = None,
491
+ account_id: Optional[pulumi.Input[str]] = None,
481
492
  attribute: Optional[pulumi.Input[str]] = None,
482
493
  deleted: Optional[pulumi.Input[bool]] = None,
483
494
  enabled: Optional[pulumi.Input[bool]] = None,
@@ -493,7 +504,7 @@ class LogParsingRule(pulumi.CustomResource):
493
504
  :param str resource_name: The unique name of the resulting resource.
494
505
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
495
506
  :param pulumi.ResourceOptions opts: Options for the resource.
496
- :param pulumi.Input[int] account_id: The account id associated with the obfuscation rule.
507
+ :param pulumi.Input[str] account_id: The account id associated with the obfuscation rule.
497
508
  :param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
498
509
  :param pulumi.Input[bool] deleted: Whether or not this rule is deleted.
499
510
  :param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
@@ -520,7 +531,7 @@ class LogParsingRule(pulumi.CustomResource):
520
531
 
521
532
  @property
522
533
  @pulumi.getter(name="accountId")
523
- def account_id(self) -> pulumi.Output[int]:
534
+ def account_id(self) -> pulumi.Output[str]:
524
535
  """
525
536
  The account id associated with the obfuscation rule.
526
537
  """