pulumi-newrelic 5.42.0a1741494516__py3-none-any.whl → 5.42.0a1741663624__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.
@@ -13,78 +13,151 @@ if sys.version_info >= (3, 11):
13
13
  else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from .. import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
16
18
 
17
19
  __all__ = ['ApplicationSettingsArgs', 'ApplicationSettings']
18
20
 
19
21
  @pulumi.input_type
20
22
  class ApplicationSettingsArgs:
21
23
  def __init__(__self__, *,
22
- app_apdex_threshold: pulumi.Input[float],
23
- enable_real_user_monitoring: pulumi.Input[bool],
24
- end_user_apdex_threshold: pulumi.Input[float],
25
- name: Optional[pulumi.Input[str]] = None):
24
+ app_apdex_threshold: Optional[pulumi.Input[float]] = None,
25
+ enable_real_user_monitoring: Optional[pulumi.Input[bool]] = None,
26
+ enable_slow_sql: Optional[pulumi.Input[bool]] = None,
27
+ enable_thread_profiler: Optional[pulumi.Input[bool]] = None,
28
+ end_user_apdex_threshold: Optional[pulumi.Input[float]] = None,
29
+ error_collectors: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]]] = None,
30
+ guid: Optional[pulumi.Input[str]] = None,
31
+ name: Optional[pulumi.Input[str]] = None,
32
+ tracer_type: Optional[pulumi.Input[str]] = None,
33
+ transaction_tracers: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]]] = None,
34
+ use_server_side_config: Optional[pulumi.Input[bool]] = None):
26
35
  """
27
36
  The set of arguments for constructing a ApplicationSettings resource.
28
- :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
29
- :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
30
-
31
- ```
32
- 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.
33
- ```
34
- :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
35
- :param pulumi.Input[str] name: The name of the application in New Relic APM.
36
- """
37
- pulumi.set(__self__, "app_apdex_threshold", app_apdex_threshold)
38
- pulumi.set(__self__, "enable_real_user_monitoring", enable_real_user_monitoring)
39
- pulumi.set(__self__, "end_user_apdex_threshold", end_user_apdex_threshold)
37
+ :param pulumi.Input[float] app_apdex_threshold: The acceptable response time limit (Apdex threshold) for the application.
38
+ :param pulumi.Input[bool] enable_real_user_monitoring: Dummy field to support backward compatibility of previous version.should be removed with next major version.
39
+ :param pulumi.Input[bool] enable_slow_sql: Enable or disable the collection of slowest database queries in your traces.
40
+ :param pulumi.Input[bool] enable_thread_profiler: Enable or disable the collection of thread profiling data.
41
+ :param pulumi.Input[float] end_user_apdex_threshold: Dummy field to support backward compatibility of previous version.should be removed with next major version.
42
+ :param pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]] error_collectors: Configuration block for error collection. Including this block enables the error collector. The following arguments are supported:
43
+ :param pulumi.Input[str] guid: The GUID of the application in New Relic APM.
44
+ :param pulumi.Input[str] name: A custom name or alias you can give the application in New Relic APM.
45
+ :param pulumi.Input[str] tracer_type: Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`.
46
+ :param pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]] transaction_tracers: Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported:
47
+ :param pulumi.Input[bool] use_server_side_config: Enable or disable server side monitoring for the New Relic application.
48
+ """
49
+ if app_apdex_threshold is not None:
50
+ pulumi.set(__self__, "app_apdex_threshold", app_apdex_threshold)
51
+ if enable_real_user_monitoring is not None:
52
+ pulumi.set(__self__, "enable_real_user_monitoring", enable_real_user_monitoring)
53
+ if enable_slow_sql is not None:
54
+ pulumi.set(__self__, "enable_slow_sql", enable_slow_sql)
55
+ if enable_thread_profiler is not None:
56
+ pulumi.set(__self__, "enable_thread_profiler", enable_thread_profiler)
57
+ if end_user_apdex_threshold is not None:
58
+ pulumi.set(__self__, "end_user_apdex_threshold", end_user_apdex_threshold)
59
+ if error_collectors is not None:
60
+ pulumi.set(__self__, "error_collectors", error_collectors)
61
+ if guid is not None:
62
+ pulumi.set(__self__, "guid", guid)
40
63
  if name is not None:
41
64
  pulumi.set(__self__, "name", name)
65
+ if tracer_type is not None:
66
+ pulumi.set(__self__, "tracer_type", tracer_type)
67
+ if transaction_tracers is not None:
68
+ pulumi.set(__self__, "transaction_tracers", transaction_tracers)
69
+ if use_server_side_config is not None:
70
+ pulumi.set(__self__, "use_server_side_config", use_server_side_config)
42
71
 
43
72
  @property
44
73
  @pulumi.getter(name="appApdexThreshold")
45
- def app_apdex_threshold(self) -> pulumi.Input[float]:
74
+ def app_apdex_threshold(self) -> Optional[pulumi.Input[float]]:
46
75
  """
47
- The apdex threshold for the New Relic application.
76
+ The acceptable response time limit (Apdex threshold) for the application.
48
77
  """
49
78
  return pulumi.get(self, "app_apdex_threshold")
50
79
 
51
80
  @app_apdex_threshold.setter
52
- def app_apdex_threshold(self, value: pulumi.Input[float]):
81
+ def app_apdex_threshold(self, value: Optional[pulumi.Input[float]]):
53
82
  pulumi.set(self, "app_apdex_threshold", value)
54
83
 
55
84
  @property
56
85
  @pulumi.getter(name="enableRealUserMonitoring")
57
- def enable_real_user_monitoring(self) -> pulumi.Input[bool]:
86
+ def enable_real_user_monitoring(self) -> Optional[pulumi.Input[bool]]:
58
87
  """
59
- Enable or disable real user monitoring for the New Relic application.
60
-
61
- ```
62
- 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.
63
- ```
88
+ Dummy field to support backward compatibility of previous version.should be removed with next major version.
64
89
  """
65
90
  return pulumi.get(self, "enable_real_user_monitoring")
66
91
 
67
92
  @enable_real_user_monitoring.setter
68
- def enable_real_user_monitoring(self, value: pulumi.Input[bool]):
93
+ def enable_real_user_monitoring(self, value: Optional[pulumi.Input[bool]]):
69
94
  pulumi.set(self, "enable_real_user_monitoring", value)
70
95
 
96
+ @property
97
+ @pulumi.getter(name="enableSlowSql")
98
+ def enable_slow_sql(self) -> Optional[pulumi.Input[bool]]:
99
+ """
100
+ Enable or disable the collection of slowest database queries in your traces.
101
+ """
102
+ return pulumi.get(self, "enable_slow_sql")
103
+
104
+ @enable_slow_sql.setter
105
+ def enable_slow_sql(self, value: Optional[pulumi.Input[bool]]):
106
+ pulumi.set(self, "enable_slow_sql", value)
107
+
108
+ @property
109
+ @pulumi.getter(name="enableThreadProfiler")
110
+ def enable_thread_profiler(self) -> Optional[pulumi.Input[bool]]:
111
+ """
112
+ Enable or disable the collection of thread profiling data.
113
+ """
114
+ return pulumi.get(self, "enable_thread_profiler")
115
+
116
+ @enable_thread_profiler.setter
117
+ def enable_thread_profiler(self, value: Optional[pulumi.Input[bool]]):
118
+ pulumi.set(self, "enable_thread_profiler", value)
119
+
71
120
  @property
72
121
  @pulumi.getter(name="endUserApdexThreshold")
73
- def end_user_apdex_threshold(self) -> pulumi.Input[float]:
122
+ def end_user_apdex_threshold(self) -> Optional[pulumi.Input[float]]:
74
123
  """
75
- The user's apdex threshold for the New Relic application.
124
+ Dummy field to support backward compatibility of previous version.should be removed with next major version.
76
125
  """
77
126
  return pulumi.get(self, "end_user_apdex_threshold")
78
127
 
79
128
  @end_user_apdex_threshold.setter
80
- def end_user_apdex_threshold(self, value: pulumi.Input[float]):
129
+ def end_user_apdex_threshold(self, value: Optional[pulumi.Input[float]]):
81
130
  pulumi.set(self, "end_user_apdex_threshold", value)
82
131
 
132
+ @property
133
+ @pulumi.getter(name="errorCollectors")
134
+ def error_collectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]]]:
135
+ """
136
+ Configuration block for error collection. Including this block enables the error collector. The following arguments are supported:
137
+ """
138
+ return pulumi.get(self, "error_collectors")
139
+
140
+ @error_collectors.setter
141
+ def error_collectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]]]):
142
+ pulumi.set(self, "error_collectors", value)
143
+
144
+ @property
145
+ @pulumi.getter
146
+ def guid(self) -> Optional[pulumi.Input[str]]:
147
+ """
148
+ The GUID of the application in New Relic APM.
149
+ """
150
+ return pulumi.get(self, "guid")
151
+
152
+ @guid.setter
153
+ def guid(self, value: Optional[pulumi.Input[str]]):
154
+ pulumi.set(self, "guid", value)
155
+
83
156
  @property
84
157
  @pulumi.getter
85
158
  def name(self) -> Optional[pulumi.Input[str]]:
86
159
  """
87
- The name of the application in New Relic APM.
160
+ A custom name or alias you can give the application in New Relic APM.
88
161
  """
89
162
  return pulumi.get(self, "name")
90
163
 
@@ -92,39 +165,102 @@ class ApplicationSettingsArgs:
92
165
  def name(self, value: Optional[pulumi.Input[str]]):
93
166
  pulumi.set(self, "name", value)
94
167
 
168
+ @property
169
+ @pulumi.getter(name="tracerType")
170
+ def tracer_type(self) -> Optional[pulumi.Input[str]]:
171
+ """
172
+ Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`.
173
+ """
174
+ return pulumi.get(self, "tracer_type")
175
+
176
+ @tracer_type.setter
177
+ def tracer_type(self, value: Optional[pulumi.Input[str]]):
178
+ pulumi.set(self, "tracer_type", value)
179
+
180
+ @property
181
+ @pulumi.getter(name="transactionTracers")
182
+ def transaction_tracers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]]]:
183
+ """
184
+ Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported:
185
+ """
186
+ return pulumi.get(self, "transaction_tracers")
187
+
188
+ @transaction_tracers.setter
189
+ def transaction_tracers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]]]):
190
+ pulumi.set(self, "transaction_tracers", value)
191
+
192
+ @property
193
+ @pulumi.getter(name="useServerSideConfig")
194
+ def use_server_side_config(self) -> Optional[pulumi.Input[bool]]:
195
+ """
196
+ Enable or disable server side monitoring for the New Relic application.
197
+ """
198
+ return pulumi.get(self, "use_server_side_config")
199
+
200
+ @use_server_side_config.setter
201
+ def use_server_side_config(self, value: Optional[pulumi.Input[bool]]):
202
+ pulumi.set(self, "use_server_side_config", value)
203
+
95
204
 
96
205
  @pulumi.input_type
97
206
  class _ApplicationSettingsState:
98
207
  def __init__(__self__, *,
99
208
  app_apdex_threshold: Optional[pulumi.Input[float]] = None,
100
209
  enable_real_user_monitoring: Optional[pulumi.Input[bool]] = None,
210
+ enable_slow_sql: Optional[pulumi.Input[bool]] = None,
211
+ enable_thread_profiler: Optional[pulumi.Input[bool]] = None,
101
212
  end_user_apdex_threshold: Optional[pulumi.Input[float]] = None,
102
- name: Optional[pulumi.Input[str]] = None):
213
+ error_collectors: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]]] = None,
214
+ guid: Optional[pulumi.Input[str]] = None,
215
+ is_imported: Optional[pulumi.Input[bool]] = None,
216
+ name: Optional[pulumi.Input[str]] = None,
217
+ tracer_type: Optional[pulumi.Input[str]] = None,
218
+ transaction_tracers: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]]] = None,
219
+ use_server_side_config: Optional[pulumi.Input[bool]] = None):
103
220
  """
104
221
  Input properties used for looking up and filtering ApplicationSettings resources.
105
- :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
106
- :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
107
-
108
- ```
109
- 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.
110
- ```
111
- :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
112
- :param pulumi.Input[str] name: The name of the application in New Relic APM.
222
+ :param pulumi.Input[float] app_apdex_threshold: The acceptable response time limit (Apdex threshold) for the application.
223
+ :param pulumi.Input[bool] enable_real_user_monitoring: Dummy field to support backward compatibility of previous version.should be removed with next major version.
224
+ :param pulumi.Input[bool] enable_slow_sql: Enable or disable the collection of slowest database queries in your traces.
225
+ :param pulumi.Input[bool] enable_thread_profiler: Enable or disable the collection of thread profiling data.
226
+ :param pulumi.Input[float] end_user_apdex_threshold: Dummy field to support backward compatibility of previous version.should be removed with next major version.
227
+ :param pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]] error_collectors: Configuration block for error collection. Including this block enables the error collector. The following arguments are supported:
228
+ :param pulumi.Input[str] guid: The GUID of the application in New Relic APM.
229
+ :param pulumi.Input[str] name: A custom name or alias you can give the application in New Relic APM.
230
+ :param pulumi.Input[str] tracer_type: Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`.
231
+ :param pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]] transaction_tracers: Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported:
232
+ :param pulumi.Input[bool] use_server_side_config: Enable or disable server side monitoring for the New Relic application.
113
233
  """
114
234
  if app_apdex_threshold is not None:
115
235
  pulumi.set(__self__, "app_apdex_threshold", app_apdex_threshold)
116
236
  if enable_real_user_monitoring is not None:
117
237
  pulumi.set(__self__, "enable_real_user_monitoring", enable_real_user_monitoring)
238
+ if enable_slow_sql is not None:
239
+ pulumi.set(__self__, "enable_slow_sql", enable_slow_sql)
240
+ if enable_thread_profiler is not None:
241
+ pulumi.set(__self__, "enable_thread_profiler", enable_thread_profiler)
118
242
  if end_user_apdex_threshold is not None:
119
243
  pulumi.set(__self__, "end_user_apdex_threshold", end_user_apdex_threshold)
244
+ if error_collectors is not None:
245
+ pulumi.set(__self__, "error_collectors", error_collectors)
246
+ if guid is not None:
247
+ pulumi.set(__self__, "guid", guid)
248
+ if is_imported is not None:
249
+ pulumi.set(__self__, "is_imported", is_imported)
120
250
  if name is not None:
121
251
  pulumi.set(__self__, "name", name)
252
+ if tracer_type is not None:
253
+ pulumi.set(__self__, "tracer_type", tracer_type)
254
+ if transaction_tracers is not None:
255
+ pulumi.set(__self__, "transaction_tracers", transaction_tracers)
256
+ if use_server_side_config is not None:
257
+ pulumi.set(__self__, "use_server_side_config", use_server_side_config)
122
258
 
123
259
  @property
124
260
  @pulumi.getter(name="appApdexThreshold")
125
261
  def app_apdex_threshold(self) -> Optional[pulumi.Input[float]]:
126
262
  """
127
- The apdex threshold for the New Relic application.
263
+ The acceptable response time limit (Apdex threshold) for the application.
128
264
  """
129
265
  return pulumi.get(self, "app_apdex_threshold")
130
266
 
@@ -136,11 +272,7 @@ class _ApplicationSettingsState:
136
272
  @pulumi.getter(name="enableRealUserMonitoring")
137
273
  def enable_real_user_monitoring(self) -> Optional[pulumi.Input[bool]]:
138
274
  """
139
- Enable or disable real user monitoring for the New Relic application.
140
-
141
- ```
142
- 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.
143
- ```
275
+ Dummy field to support backward compatibility of previous version.should be removed with next major version.
144
276
  """
145
277
  return pulumi.get(self, "enable_real_user_monitoring")
146
278
 
@@ -148,11 +280,35 @@ class _ApplicationSettingsState:
148
280
  def enable_real_user_monitoring(self, value: Optional[pulumi.Input[bool]]):
149
281
  pulumi.set(self, "enable_real_user_monitoring", value)
150
282
 
283
+ @property
284
+ @pulumi.getter(name="enableSlowSql")
285
+ def enable_slow_sql(self) -> Optional[pulumi.Input[bool]]:
286
+ """
287
+ Enable or disable the collection of slowest database queries in your traces.
288
+ """
289
+ return pulumi.get(self, "enable_slow_sql")
290
+
291
+ @enable_slow_sql.setter
292
+ def enable_slow_sql(self, value: Optional[pulumi.Input[bool]]):
293
+ pulumi.set(self, "enable_slow_sql", value)
294
+
295
+ @property
296
+ @pulumi.getter(name="enableThreadProfiler")
297
+ def enable_thread_profiler(self) -> Optional[pulumi.Input[bool]]:
298
+ """
299
+ Enable or disable the collection of thread profiling data.
300
+ """
301
+ return pulumi.get(self, "enable_thread_profiler")
302
+
303
+ @enable_thread_profiler.setter
304
+ def enable_thread_profiler(self, value: Optional[pulumi.Input[bool]]):
305
+ pulumi.set(self, "enable_thread_profiler", value)
306
+
151
307
  @property
152
308
  @pulumi.getter(name="endUserApdexThreshold")
153
309
  def end_user_apdex_threshold(self) -> Optional[pulumi.Input[float]]:
154
310
  """
155
- The user's apdex threshold for the New Relic application.
311
+ Dummy field to support backward compatibility of previous version.should be removed with next major version.
156
312
  """
157
313
  return pulumi.get(self, "end_user_apdex_threshold")
158
314
 
@@ -160,11 +316,44 @@ class _ApplicationSettingsState:
160
316
  def end_user_apdex_threshold(self, value: Optional[pulumi.Input[float]]):
161
317
  pulumi.set(self, "end_user_apdex_threshold", value)
162
318
 
319
+ @property
320
+ @pulumi.getter(name="errorCollectors")
321
+ def error_collectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]]]:
322
+ """
323
+ Configuration block for error collection. Including this block enables the error collector. The following arguments are supported:
324
+ """
325
+ return pulumi.get(self, "error_collectors")
326
+
327
+ @error_collectors.setter
328
+ def error_collectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsErrorCollectorArgs']]]]):
329
+ pulumi.set(self, "error_collectors", value)
330
+
331
+ @property
332
+ @pulumi.getter
333
+ def guid(self) -> Optional[pulumi.Input[str]]:
334
+ """
335
+ The GUID of the application in New Relic APM.
336
+ """
337
+ return pulumi.get(self, "guid")
338
+
339
+ @guid.setter
340
+ def guid(self, value: Optional[pulumi.Input[str]]):
341
+ pulumi.set(self, "guid", value)
342
+
343
+ @property
344
+ @pulumi.getter(name="isImported")
345
+ def is_imported(self) -> Optional[pulumi.Input[bool]]:
346
+ return pulumi.get(self, "is_imported")
347
+
348
+ @is_imported.setter
349
+ def is_imported(self, value: Optional[pulumi.Input[bool]]):
350
+ pulumi.set(self, "is_imported", value)
351
+
163
352
  @property
164
353
  @pulumi.getter
165
354
  def name(self) -> Optional[pulumi.Input[str]]:
166
355
  """
167
- The name of the application in New Relic APM.
356
+ A custom name or alias you can give the application in New Relic APM.
168
357
  """
169
358
  return pulumi.get(self, "name")
170
359
 
@@ -172,6 +361,42 @@ class _ApplicationSettingsState:
172
361
  def name(self, value: Optional[pulumi.Input[str]]):
173
362
  pulumi.set(self, "name", value)
174
363
 
364
+ @property
365
+ @pulumi.getter(name="tracerType")
366
+ def tracer_type(self) -> Optional[pulumi.Input[str]]:
367
+ """
368
+ Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`.
369
+ """
370
+ return pulumi.get(self, "tracer_type")
371
+
372
+ @tracer_type.setter
373
+ def tracer_type(self, value: Optional[pulumi.Input[str]]):
374
+ pulumi.set(self, "tracer_type", value)
375
+
376
+ @property
377
+ @pulumi.getter(name="transactionTracers")
378
+ def transaction_tracers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]]]:
379
+ """
380
+ Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported:
381
+ """
382
+ return pulumi.get(self, "transaction_tracers")
383
+
384
+ @transaction_tracers.setter
385
+ def transaction_tracers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSettingsTransactionTracerArgs']]]]):
386
+ pulumi.set(self, "transaction_tracers", value)
387
+
388
+ @property
389
+ @pulumi.getter(name="useServerSideConfig")
390
+ def use_server_side_config(self) -> Optional[pulumi.Input[bool]]:
391
+ """
392
+ Enable or disable server side monitoring for the New Relic application.
393
+ """
394
+ return pulumi.get(self, "use_server_side_config")
395
+
396
+ @use_server_side_config.setter
397
+ def use_server_side_config(self, value: Optional[pulumi.Input[bool]]):
398
+ pulumi.set(self, "use_server_side_config", value)
399
+
175
400
 
176
401
  class ApplicationSettings(pulumi.CustomResource):
177
402
  @overload
@@ -180,90 +405,52 @@ class ApplicationSettings(pulumi.CustomResource):
180
405
  opts: Optional[pulumi.ResourceOptions] = None,
181
406
  app_apdex_threshold: Optional[pulumi.Input[float]] = None,
182
407
  enable_real_user_monitoring: Optional[pulumi.Input[bool]] = None,
408
+ enable_slow_sql: Optional[pulumi.Input[bool]] = None,
409
+ enable_thread_profiler: Optional[pulumi.Input[bool]] = None,
183
410
  end_user_apdex_threshold: Optional[pulumi.Input[float]] = None,
411
+ error_collectors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsErrorCollectorArgs', 'ApplicationSettingsErrorCollectorArgsDict']]]]] = None,
412
+ guid: Optional[pulumi.Input[str]] = None,
184
413
  name: Optional[pulumi.Input[str]] = None,
414
+ tracer_type: Optional[pulumi.Input[str]] = None,
415
+ transaction_tracers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsTransactionTracerArgs', 'ApplicationSettingsTransactionTracerArgsDict']]]]] = None,
416
+ use_server_side_config: Optional[pulumi.Input[bool]] = None,
185
417
  __props__=None):
186
418
  """
187
- > **NOTE:** Applications are not created by this resource, but are created by
188
- a reporting agent.
189
-
190
- Use this resource to manage configuration for an application that already
191
- exists in New Relic.
192
-
193
- ## Example Usage
194
-
195
- ```python
196
- import pulumi
197
- import pulumi_newrelic as newrelic
198
-
199
- app = newrelic.plugins.ApplicationSettings("app",
200
- name="my-app",
201
- app_apdex_threshold=0.7,
202
- end_user_apdex_threshold=0.8,
203
- enable_real_user_monitoring=False)
204
- ```
205
-
206
- ## Notes
207
-
208
- > **NOTE:** Applications that have reported data in the last twelve hours
209
- cannot be deleted.
210
-
211
419
  ## Import
212
420
 
213
- Applications can be imported using notation `application_id`, e.g.
421
+ Applications can be imported using notation `application_guid`, e.g.
214
422
 
215
423
  ```sh
216
- $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main 6789012345
424
+ $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main Mzk1NzUyNHQVRJNTxBUE18QVBQTElDc4ODU1MzYx
217
425
  ```
218
426
 
219
427
  :param str resource_name: The name of the resource.
220
428
  :param pulumi.ResourceOptions opts: Options for the resource.
221
- :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
222
- :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
223
-
224
- ```
225
- 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.
226
- ```
227
- :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
228
- :param pulumi.Input[str] name: The name of the application in New Relic APM.
429
+ :param pulumi.Input[float] app_apdex_threshold: The acceptable response time limit (Apdex threshold) for the application.
430
+ :param pulumi.Input[bool] enable_real_user_monitoring: Dummy field to support backward compatibility of previous version.should be removed with next major version.
431
+ :param pulumi.Input[bool] enable_slow_sql: Enable or disable the collection of slowest database queries in your traces.
432
+ :param pulumi.Input[bool] enable_thread_profiler: Enable or disable the collection of thread profiling data.
433
+ :param pulumi.Input[float] end_user_apdex_threshold: Dummy field to support backward compatibility of previous version.should be removed with next major version.
434
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsErrorCollectorArgs', 'ApplicationSettingsErrorCollectorArgsDict']]]] error_collectors: Configuration block for error collection. Including this block enables the error collector. The following arguments are supported:
435
+ :param pulumi.Input[str] guid: The GUID of the application in New Relic APM.
436
+ :param pulumi.Input[str] name: A custom name or alias you can give the application in New Relic APM.
437
+ :param pulumi.Input[str] tracer_type: Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`.
438
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsTransactionTracerArgs', 'ApplicationSettingsTransactionTracerArgsDict']]]] transaction_tracers: Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported:
439
+ :param pulumi.Input[bool] use_server_side_config: Enable or disable server side monitoring for the New Relic application.
229
440
  """
230
441
  ...
231
442
  @overload
232
443
  def __init__(__self__,
233
444
  resource_name: str,
234
- args: ApplicationSettingsArgs,
445
+ args: Optional[ApplicationSettingsArgs] = None,
235
446
  opts: Optional[pulumi.ResourceOptions] = None):
236
447
  """
237
- > **NOTE:** Applications are not created by this resource, but are created by
238
- a reporting agent.
239
-
240
- Use this resource to manage configuration for an application that already
241
- exists in New Relic.
242
-
243
- ## Example Usage
244
-
245
- ```python
246
- import pulumi
247
- import pulumi_newrelic as newrelic
248
-
249
- app = newrelic.plugins.ApplicationSettings("app",
250
- name="my-app",
251
- app_apdex_threshold=0.7,
252
- end_user_apdex_threshold=0.8,
253
- enable_real_user_monitoring=False)
254
- ```
255
-
256
- ## Notes
257
-
258
- > **NOTE:** Applications that have reported data in the last twelve hours
259
- cannot be deleted.
260
-
261
448
  ## Import
262
449
 
263
- Applications can be imported using notation `application_id`, e.g.
450
+ Applications can be imported using notation `application_guid`, e.g.
264
451
 
265
452
  ```sh
266
- $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main 6789012345
453
+ $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main Mzk1NzUyNHQVRJNTxBUE18QVBQTElDc4ODU1MzYx
267
454
  ```
268
455
 
269
456
  :param str resource_name: The name of the resource.
@@ -283,8 +470,15 @@ class ApplicationSettings(pulumi.CustomResource):
283
470
  opts: Optional[pulumi.ResourceOptions] = None,
284
471
  app_apdex_threshold: Optional[pulumi.Input[float]] = None,
285
472
  enable_real_user_monitoring: Optional[pulumi.Input[bool]] = None,
473
+ enable_slow_sql: Optional[pulumi.Input[bool]] = None,
474
+ enable_thread_profiler: Optional[pulumi.Input[bool]] = None,
286
475
  end_user_apdex_threshold: Optional[pulumi.Input[float]] = None,
476
+ error_collectors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsErrorCollectorArgs', 'ApplicationSettingsErrorCollectorArgsDict']]]]] = None,
477
+ guid: Optional[pulumi.Input[str]] = None,
287
478
  name: Optional[pulumi.Input[str]] = None,
479
+ tracer_type: Optional[pulumi.Input[str]] = None,
480
+ transaction_tracers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsTransactionTracerArgs', 'ApplicationSettingsTransactionTracerArgsDict']]]]] = None,
481
+ use_server_side_config: Optional[pulumi.Input[bool]] = None,
288
482
  __props__=None):
289
483
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
290
484
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -294,16 +488,18 @@ class ApplicationSettings(pulumi.CustomResource):
294
488
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
295
489
  __props__ = ApplicationSettingsArgs.__new__(ApplicationSettingsArgs)
296
490
 
297
- if app_apdex_threshold is None and not opts.urn:
298
- raise TypeError("Missing required property 'app_apdex_threshold'")
299
491
  __props__.__dict__["app_apdex_threshold"] = app_apdex_threshold
300
- if enable_real_user_monitoring is None and not opts.urn:
301
- raise TypeError("Missing required property 'enable_real_user_monitoring'")
302
492
  __props__.__dict__["enable_real_user_monitoring"] = enable_real_user_monitoring
303
- if end_user_apdex_threshold is None and not opts.urn:
304
- raise TypeError("Missing required property 'end_user_apdex_threshold'")
493
+ __props__.__dict__["enable_slow_sql"] = enable_slow_sql
494
+ __props__.__dict__["enable_thread_profiler"] = enable_thread_profiler
305
495
  __props__.__dict__["end_user_apdex_threshold"] = end_user_apdex_threshold
496
+ __props__.__dict__["error_collectors"] = error_collectors
497
+ __props__.__dict__["guid"] = guid
306
498
  __props__.__dict__["name"] = name
499
+ __props__.__dict__["tracer_type"] = tracer_type
500
+ __props__.__dict__["transaction_tracers"] = transaction_tracers
501
+ __props__.__dict__["use_server_side_config"] = use_server_side_config
502
+ __props__.__dict__["is_imported"] = None
307
503
  super(ApplicationSettings, __self__).__init__(
308
504
  'newrelic:plugins/applicationSettings:ApplicationSettings',
309
505
  resource_name,
@@ -316,8 +512,16 @@ class ApplicationSettings(pulumi.CustomResource):
316
512
  opts: Optional[pulumi.ResourceOptions] = None,
317
513
  app_apdex_threshold: Optional[pulumi.Input[float]] = None,
318
514
  enable_real_user_monitoring: Optional[pulumi.Input[bool]] = None,
515
+ enable_slow_sql: Optional[pulumi.Input[bool]] = None,
516
+ enable_thread_profiler: Optional[pulumi.Input[bool]] = None,
319
517
  end_user_apdex_threshold: Optional[pulumi.Input[float]] = None,
320
- name: Optional[pulumi.Input[str]] = None) -> 'ApplicationSettings':
518
+ error_collectors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsErrorCollectorArgs', 'ApplicationSettingsErrorCollectorArgsDict']]]]] = None,
519
+ guid: Optional[pulumi.Input[str]] = None,
520
+ is_imported: Optional[pulumi.Input[bool]] = None,
521
+ name: Optional[pulumi.Input[str]] = None,
522
+ tracer_type: Optional[pulumi.Input[str]] = None,
523
+ transaction_tracers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsTransactionTracerArgs', 'ApplicationSettingsTransactionTracerArgsDict']]]]] = None,
524
+ use_server_side_config: Optional[pulumi.Input[bool]] = None) -> 'ApplicationSettings':
321
525
  """
322
526
  Get an existing ApplicationSettings resource's state with the given name, id, and optional extra
323
527
  properties used to qualify the lookup.
@@ -325,14 +529,17 @@ class ApplicationSettings(pulumi.CustomResource):
325
529
  :param str resource_name: The unique name of the resulting resource.
326
530
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
327
531
  :param pulumi.ResourceOptions opts: Options for the resource.
328
- :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
329
- :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
330
-
331
- ```
332
- 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.
333
- ```
334
- :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
335
- :param pulumi.Input[str] name: The name of the application in New Relic APM.
532
+ :param pulumi.Input[float] app_apdex_threshold: The acceptable response time limit (Apdex threshold) for the application.
533
+ :param pulumi.Input[bool] enable_real_user_monitoring: Dummy field to support backward compatibility of previous version.should be removed with next major version.
534
+ :param pulumi.Input[bool] enable_slow_sql: Enable or disable the collection of slowest database queries in your traces.
535
+ :param pulumi.Input[bool] enable_thread_profiler: Enable or disable the collection of thread profiling data.
536
+ :param pulumi.Input[float] end_user_apdex_threshold: Dummy field to support backward compatibility of previous version.should be removed with next major version.
537
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsErrorCollectorArgs', 'ApplicationSettingsErrorCollectorArgsDict']]]] error_collectors: Configuration block for error collection. Including this block enables the error collector. The following arguments are supported:
538
+ :param pulumi.Input[str] guid: The GUID of the application in New Relic APM.
539
+ :param pulumi.Input[str] name: A custom name or alias you can give the application in New Relic APM.
540
+ :param pulumi.Input[str] tracer_type: Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`.
541
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSettingsTransactionTracerArgs', 'ApplicationSettingsTransactionTracerArgsDict']]]] transaction_tracers: Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported:
542
+ :param pulumi.Input[bool] use_server_side_config: Enable or disable server side monitoring for the New Relic application.
336
543
  """
337
544
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
338
545
 
@@ -340,43 +547,108 @@ class ApplicationSettings(pulumi.CustomResource):
340
547
 
341
548
  __props__.__dict__["app_apdex_threshold"] = app_apdex_threshold
342
549
  __props__.__dict__["enable_real_user_monitoring"] = enable_real_user_monitoring
550
+ __props__.__dict__["enable_slow_sql"] = enable_slow_sql
551
+ __props__.__dict__["enable_thread_profiler"] = enable_thread_profiler
343
552
  __props__.__dict__["end_user_apdex_threshold"] = end_user_apdex_threshold
553
+ __props__.__dict__["error_collectors"] = error_collectors
554
+ __props__.__dict__["guid"] = guid
555
+ __props__.__dict__["is_imported"] = is_imported
344
556
  __props__.__dict__["name"] = name
557
+ __props__.__dict__["tracer_type"] = tracer_type
558
+ __props__.__dict__["transaction_tracers"] = transaction_tracers
559
+ __props__.__dict__["use_server_side_config"] = use_server_side_config
345
560
  return ApplicationSettings(resource_name, opts=opts, __props__=__props__)
346
561
 
347
562
  @property
348
563
  @pulumi.getter(name="appApdexThreshold")
349
- def app_apdex_threshold(self) -> pulumi.Output[float]:
564
+ def app_apdex_threshold(self) -> pulumi.Output[Optional[float]]:
350
565
  """
351
- The apdex threshold for the New Relic application.
566
+ The acceptable response time limit (Apdex threshold) for the application.
352
567
  """
353
568
  return pulumi.get(self, "app_apdex_threshold")
354
569
 
355
570
  @property
356
571
  @pulumi.getter(name="enableRealUserMonitoring")
357
- def enable_real_user_monitoring(self) -> pulumi.Output[bool]:
572
+ def enable_real_user_monitoring(self) -> pulumi.Output[Optional[bool]]:
358
573
  """
359
- Enable or disable real user monitoring for the New Relic application.
360
-
361
- ```
362
- 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.
363
- ```
574
+ Dummy field to support backward compatibility of previous version.should be removed with next major version.
364
575
  """
365
576
  return pulumi.get(self, "enable_real_user_monitoring")
366
577
 
578
+ @property
579
+ @pulumi.getter(name="enableSlowSql")
580
+ def enable_slow_sql(self) -> pulumi.Output[Optional[bool]]:
581
+ """
582
+ Enable or disable the collection of slowest database queries in your traces.
583
+ """
584
+ return pulumi.get(self, "enable_slow_sql")
585
+
586
+ @property
587
+ @pulumi.getter(name="enableThreadProfiler")
588
+ def enable_thread_profiler(self) -> pulumi.Output[Optional[bool]]:
589
+ """
590
+ Enable or disable the collection of thread profiling data.
591
+ """
592
+ return pulumi.get(self, "enable_thread_profiler")
593
+
367
594
  @property
368
595
  @pulumi.getter(name="endUserApdexThreshold")
369
- def end_user_apdex_threshold(self) -> pulumi.Output[float]:
596
+ def end_user_apdex_threshold(self) -> pulumi.Output[Optional[float]]:
370
597
  """
371
- The user's apdex threshold for the New Relic application.
598
+ Dummy field to support backward compatibility of previous version.should be removed with next major version.
372
599
  """
373
600
  return pulumi.get(self, "end_user_apdex_threshold")
374
601
 
602
+ @property
603
+ @pulumi.getter(name="errorCollectors")
604
+ def error_collectors(self) -> pulumi.Output[Optional[Sequence['outputs.ApplicationSettingsErrorCollector']]]:
605
+ """
606
+ Configuration block for error collection. Including this block enables the error collector. The following arguments are supported:
607
+ """
608
+ return pulumi.get(self, "error_collectors")
609
+
610
+ @property
611
+ @pulumi.getter
612
+ def guid(self) -> pulumi.Output[str]:
613
+ """
614
+ The GUID of the application in New Relic APM.
615
+ """
616
+ return pulumi.get(self, "guid")
617
+
618
+ @property
619
+ @pulumi.getter(name="isImported")
620
+ def is_imported(self) -> pulumi.Output[bool]:
621
+ return pulumi.get(self, "is_imported")
622
+
375
623
  @property
376
624
  @pulumi.getter
377
625
  def name(self) -> pulumi.Output[str]:
378
626
  """
379
- The name of the application in New Relic APM.
627
+ A custom name or alias you can give the application in New Relic APM.
380
628
  """
381
629
  return pulumi.get(self, "name")
382
630
 
631
+ @property
632
+ @pulumi.getter(name="tracerType")
633
+ def tracer_type(self) -> pulumi.Output[Optional[str]]:
634
+ """
635
+ Configures the type of tracer used. Valid values are `CROSS_APPLICATION_TRACER`, `DISTRIBUTED_TRACING`, `NONE`, `OPT_OUT`.
636
+ """
637
+ return pulumi.get(self, "tracer_type")
638
+
639
+ @property
640
+ @pulumi.getter(name="transactionTracers")
641
+ def transaction_tracers(self) -> pulumi.Output[Optional[Sequence['outputs.ApplicationSettingsTransactionTracer']]]:
642
+ """
643
+ Configuration block for transaction tracer. Providing this block enables transaction tracing. The following arguments are supported:
644
+ """
645
+ return pulumi.get(self, "transaction_tracers")
646
+
647
+ @property
648
+ @pulumi.getter(name="useServerSideConfig")
649
+ def use_server_side_config(self) -> pulumi.Output[Optional[bool]]:
650
+ """
651
+ Enable or disable server side monitoring for the New Relic application.
652
+ """
653
+ return pulumi.get(self, "use_server_side_config")
654
+