pulumi-newrelic 5.23.0a1713561620__py3-none-any.whl → 5.23.0a1713975814__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.
Files changed (66) hide show
  1. pulumi_newrelic/_inputs.py +110 -270
  2. pulumi_newrelic/account_management.py +14 -18
  3. pulumi_newrelic/alert_channel.py +28 -56
  4. pulumi_newrelic/alert_condition.py +84 -133
  5. pulumi_newrelic/alert_muting_rule.py +21 -25
  6. pulumi_newrelic/alert_policy.py +42 -33
  7. pulumi_newrelic/alert_policy_channel.py +0 -4
  8. pulumi_newrelic/cloud/_inputs.py +322 -1072
  9. pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -4
  10. pulumi_newrelic/cloud/aws_integrations.py +7 -11
  11. pulumi_newrelic/cloud/aws_link_account.py +0 -4
  12. pulumi_newrelic/cloud/azure_integrations.py +0 -4
  13. pulumi_newrelic/cloud/azure_link_account.py +0 -4
  14. pulumi_newrelic/cloud/gcp_integrations.py +0 -4
  15. pulumi_newrelic/cloud/gcp_link_account.py +0 -4
  16. pulumi_newrelic/cloud/outputs.py +322 -1072
  17. pulumi_newrelic/data_partition_rule.py +0 -4
  18. pulumi_newrelic/entity_tags.py +7 -11
  19. pulumi_newrelic/events_to_metrics_rule.py +0 -4
  20. pulumi_newrelic/get_account.py +0 -4
  21. pulumi_newrelic/get_application.py +0 -4
  22. pulumi_newrelic/get_authentication_domain.py +0 -4
  23. pulumi_newrelic/get_cloud_account.py +0 -4
  24. pulumi_newrelic/get_entity.py +0 -16
  25. pulumi_newrelic/get_group.py +0 -8
  26. pulumi_newrelic/get_key_transaction.py +0 -4
  27. pulumi_newrelic/get_obfuscation_expression.py +0 -4
  28. pulumi_newrelic/get_service_level_alert_helper.py +0 -30
  29. pulumi_newrelic/get_test_grok_pattern.py +0 -4
  30. pulumi_newrelic/get_user.py +0 -4
  31. pulumi_newrelic/group.py +0 -12
  32. pulumi_newrelic/infra_alert_condition.py +126 -113
  33. pulumi_newrelic/insights/event.py +0 -17
  34. pulumi_newrelic/log_parsing_rule.py +0 -8
  35. pulumi_newrelic/monitor_downtime.py +70 -101
  36. pulumi_newrelic/notification_channel.py +0 -44
  37. pulumi_newrelic/nrql_alert_condition.py +0 -20
  38. pulumi_newrelic/nrql_drop_rule.py +28 -32
  39. pulumi_newrelic/obfuscation_expression.py +0 -4
  40. pulumi_newrelic/obfuscation_rule.py +0 -4
  41. pulumi_newrelic/one_dashboard.py +42 -48
  42. pulumi_newrelic/one_dashboard_raw.py +0 -4
  43. pulumi_newrelic/outputs.py +110 -270
  44. pulumi_newrelic/plugins/_inputs.py +16 -16
  45. pulumi_newrelic/plugins/application_settings.py +0 -4
  46. pulumi_newrelic/plugins/outputs.py +16 -16
  47. pulumi_newrelic/plugins/workload.py +28 -48
  48. pulumi_newrelic/service_level.py +0 -91
  49. pulumi_newrelic/synthetics/alert_condition.py +14 -50
  50. pulumi_newrelic/synthetics/broken_links_monitor.py +0 -8
  51. pulumi_newrelic/synthetics/cert_check_monitor.py +0 -8
  52. pulumi_newrelic/synthetics/get_private_location.py +0 -8
  53. pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
  54. pulumi_newrelic/synthetics/monitor.py +0 -16
  55. pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -71
  56. pulumi_newrelic/synthetics/private_location.py +0 -4
  57. pulumi_newrelic/synthetics/script_monitor.py +4 -20
  58. pulumi_newrelic/synthetics/secure_credential.py +21 -18
  59. pulumi_newrelic/synthetics/step_monitor.py +4 -12
  60. pulumi_newrelic/user.py +0 -4
  61. pulumi_newrelic/workflow.py +0 -16
  62. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/METADATA +1 -1
  63. pulumi_newrelic-5.23.0a1713975814.dist-info/RECORD +89 -0
  64. pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +0 -89
  65. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/WHEEL +0 -0
  66. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/top_level.txt +0 -0
@@ -248,7 +248,6 @@ class DataPartitionRule(pulumi.CustomResource):
248
248
 
249
249
  ## Example Usage
250
250
 
251
- <!--Start PulumiCodeChooser -->
252
251
  ```python
253
252
  import pulumi
254
253
  import pulumi_newrelic as newrelic
@@ -260,7 +259,6 @@ class DataPartitionRule(pulumi.CustomResource):
260
259
  retention_policy="STANDARD",
261
260
  target_data_partition="Log_name")
262
261
  ```
263
- <!--End PulumiCodeChooser -->
264
262
 
265
263
  ## Additional Information
266
264
 
@@ -296,7 +294,6 @@ class DataPartitionRule(pulumi.CustomResource):
296
294
 
297
295
  ## Example Usage
298
296
 
299
- <!--Start PulumiCodeChooser -->
300
297
  ```python
301
298
  import pulumi
302
299
  import pulumi_newrelic as newrelic
@@ -308,7 +305,6 @@ class DataPartitionRule(pulumi.CustomResource):
308
305
  retention_policy="STANDARD",
309
306
  target_data_partition="Log_name")
310
307
  ```
311
- <!--End PulumiCodeChooser -->
312
308
 
313
309
  ## Additional Information
314
310
 
@@ -21,7 +21,7 @@ class EntityTagsArgs:
21
21
  """
22
22
  The set of arguments for constructing a EntityTags resource.
23
23
  :param pulumi.Input[str] guid: The guid of the entity to tag.
24
- :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
24
+ :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
25
25
  """
26
26
  pulumi.set(__self__, "guid", guid)
27
27
  pulumi.set(__self__, "tags", tags)
@@ -42,7 +42,7 @@ class EntityTagsArgs:
42
42
  @pulumi.getter
43
43
  def tags(self) -> pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]:
44
44
  """
45
- A nested block that describes an entity tag. See Nested tag blocks below for details.
45
+ A set of key-value pairs to represent a tag. For example: Team:TeamName
46
46
  """
47
47
  return pulumi.get(self, "tags")
48
48
 
@@ -59,7 +59,7 @@ class _EntityTagsState:
59
59
  """
60
60
  Input properties used for looking up and filtering EntityTags resources.
61
61
  :param pulumi.Input[str] guid: The guid of the entity to tag.
62
- :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
62
+ :param pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
63
63
  """
64
64
  if guid is not None:
65
65
  pulumi.set(__self__, "guid", guid)
@@ -82,7 +82,7 @@ class _EntityTagsState:
82
82
  @pulumi.getter
83
83
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityTagsTagArgs']]]]:
84
84
  """
85
- A nested block that describes an entity tag. See Nested tag blocks below for details.
85
+ A set of key-value pairs to represent a tag. For example: Team:TeamName
86
86
  """
87
87
  return pulumi.get(self, "tags")
88
88
 
@@ -104,7 +104,6 @@ class EntityTags(pulumi.CustomResource):
104
104
 
105
105
  ## Example Usage
106
106
 
107
- <!--Start PulumiCodeChooser -->
108
107
  ```python
109
108
  import pulumi
110
109
  import pulumi_newrelic as newrelic
@@ -128,7 +127,6 @@ class EntityTags(pulumi.CustomResource):
128
127
  ),
129
128
  ])
130
129
  ```
131
- <!--End PulumiCodeChooser -->
132
130
 
133
131
  ## Import
134
132
 
@@ -145,7 +143,7 @@ class EntityTags(pulumi.CustomResource):
145
143
  :param str resource_name: The name of the resource.
146
144
  :param pulumi.ResourceOptions opts: Options for the resource.
147
145
  :param pulumi.Input[str] guid: The guid of the entity to tag.
148
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
146
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
149
147
  """
150
148
  ...
151
149
  @overload
@@ -158,7 +156,6 @@ class EntityTags(pulumi.CustomResource):
158
156
 
159
157
  ## Example Usage
160
158
 
161
- <!--Start PulumiCodeChooser -->
162
159
  ```python
163
160
  import pulumi
164
161
  import pulumi_newrelic as newrelic
@@ -182,7 +179,6 @@ class EntityTags(pulumi.CustomResource):
182
179
  ),
183
180
  ])
184
181
  ```
185
- <!--End PulumiCodeChooser -->
186
182
 
187
183
  ## Import
188
184
 
@@ -248,7 +244,7 @@ class EntityTags(pulumi.CustomResource):
248
244
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
249
245
  :param pulumi.ResourceOptions opts: Options for the resource.
250
246
  :param pulumi.Input[str] guid: The guid of the entity to tag.
251
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A nested block that describes an entity tag. See Nested tag blocks below for details.
247
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityTagsTagArgs']]]] tags: A set of key-value pairs to represent a tag. For example: Team:TeamName
252
248
  """
253
249
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
254
250
 
@@ -270,7 +266,7 @@ class EntityTags(pulumi.CustomResource):
270
266
  @pulumi.getter
271
267
  def tags(self) -> pulumi.Output[Sequence['outputs.EntityTagsTag']]:
272
268
  """
273
- A nested block that describes an entity tag. See Nested tag blocks below for details.
269
+ A set of key-value pairs to represent a tag. For example: Team:TeamName
274
270
  """
275
271
  return pulumi.get(self, "tags")
276
272
 
@@ -218,7 +218,6 @@ class EventsToMetricsRule(pulumi.CustomResource):
218
218
 
219
219
  ## Example Usage
220
220
 
221
- <!--Start PulumiCodeChooser -->
222
221
  ```python
223
222
  import pulumi
224
223
  import pulumi_newrelic as newrelic
@@ -229,7 +228,6 @@ class EventsToMetricsRule(pulumi.CustomResource):
229
228
  description="Example description",
230
229
  nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
231
230
  ```
232
- <!--End PulumiCodeChooser -->
233
231
 
234
232
  ## Import
235
233
 
@@ -262,7 +260,6 @@ class EventsToMetricsRule(pulumi.CustomResource):
262
260
 
263
261
  ## Example Usage
264
262
 
265
- <!--Start PulumiCodeChooser -->
266
263
  ```python
267
264
  import pulumi
268
265
  import pulumi_newrelic as newrelic
@@ -273,7 +270,6 @@ class EventsToMetricsRule(pulumi.CustomResource):
273
270
  description="Example description",
274
271
  nrql="SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name")
275
272
  ```
276
- <!--End PulumiCodeChooser -->
277
273
 
278
274
  ## Import
279
275
 
@@ -82,14 +82,12 @@ def get_account(account_id: Optional[int] = None,
82
82
 
83
83
  ## Example Usage
84
84
 
85
- <!--Start PulumiCodeChooser -->
86
85
  ```python
87
86
  import pulumi
88
87
  import pulumi_newrelic as newrelic
89
88
 
90
89
  acc = newrelic.get_account(scope="global")
91
90
  ```
92
- <!--End PulumiCodeChooser -->
93
91
 
94
92
 
95
93
  :param int account_id: The account ID in New Relic.
@@ -122,14 +120,12 @@ def get_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
122
120
 
123
121
  ## Example Usage
124
122
 
125
- <!--Start PulumiCodeChooser -->
126
123
  ```python
127
124
  import pulumi
128
125
  import pulumi_newrelic as newrelic
129
126
 
130
127
  acc = newrelic.get_account(scope="global")
131
128
  ```
132
- <!--End PulumiCodeChooser -->
133
129
 
134
130
 
135
131
  :param int account_id: The account ID in New Relic.
@@ -86,7 +86,6 @@ def get_application(name: Optional[str] = None,
86
86
 
87
87
  ## Example Usage
88
88
 
89
- <!--Start PulumiCodeChooser -->
90
89
  ```python
91
90
  import pulumi
92
91
  import pulumi_newrelic as newrelic
@@ -108,7 +107,6 @@ def get_application(name: Optional[str] = None,
108
107
  time_function="all",
109
108
  )])
110
109
  ```
111
- <!--End PulumiCodeChooser -->
112
110
 
113
111
 
114
112
  :param str name: The name of the application in New Relic.
@@ -135,7 +133,6 @@ def get_application_output(name: Optional[pulumi.Input[str]] = None,
135
133
 
136
134
  ## Example Usage
137
135
 
138
- <!--Start PulumiCodeChooser -->
139
136
  ```python
140
137
  import pulumi
141
138
  import pulumi_newrelic as newrelic
@@ -157,7 +154,6 @@ def get_application_output(name: Optional[pulumi.Input[str]] = None,
157
154
  time_function="all",
158
155
  )])
159
156
  ```
160
- <!--End PulumiCodeChooser -->
161
157
 
162
158
 
163
159
  :param str name: The name of the application in New Relic.
@@ -60,7 +60,6 @@ def get_authentication_domain(name: Optional[str] = None,
60
60
 
61
61
  ## Example Usage
62
62
 
63
- <!--Start PulumiCodeChooser -->
64
63
  ```python
65
64
  import pulumi
66
65
  import pulumi_newrelic as newrelic
@@ -68,7 +67,6 @@ def get_authentication_domain(name: Optional[str] = None,
68
67
  foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
69
68
  pulumi.export("foo", foo.id)
70
69
  ```
71
- <!--End PulumiCodeChooser -->
72
70
 
73
71
 
74
72
  :param str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
@@ -91,7 +89,6 @@ def get_authentication_domain_output(name: Optional[pulumi.Input[str]] = None,
91
89
 
92
90
  ## Example Usage
93
91
 
94
- <!--Start PulumiCodeChooser -->
95
92
  ```python
96
93
  import pulumi
97
94
  import pulumi_newrelic as newrelic
@@ -99,7 +96,6 @@ def get_authentication_domain_output(name: Optional[pulumi.Input[str]] = None,
99
96
  foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
100
97
  pulumi.export("foo", foo.id)
101
98
  ```
102
- <!--End PulumiCodeChooser -->
103
99
 
104
100
 
105
101
  :param str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
@@ -81,7 +81,6 @@ def get_cloud_account(account_id: Optional[int] = None,
81
81
 
82
82
  ## Example Usage
83
83
 
84
- <!--Start PulumiCodeChooser -->
85
84
  ```python
86
85
  import pulumi
87
86
  import pulumi_newrelic as newrelic
@@ -90,7 +89,6 @@ def get_cloud_account(account_id: Optional[int] = None,
90
89
  cloud_provider="aws",
91
90
  name="my aws account")
92
91
  ```
93
- <!--End PulumiCodeChooser -->
94
92
 
95
93
 
96
94
  :param int account_id: The account ID in New Relic.
@@ -122,7 +120,6 @@ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[int]]] =
122
120
 
123
121
  ## Example Usage
124
122
 
125
- <!--Start PulumiCodeChooser -->
126
123
  ```python
127
124
  import pulumi
128
125
  import pulumi_newrelic as newrelic
@@ -131,7 +128,6 @@ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[int]]] =
131
128
  cloud_provider="aws",
132
129
  name="my aws account")
133
130
  ```
134
- <!--End PulumiCodeChooser -->
135
131
 
136
132
 
137
133
  :param int account_id: The account ID in New Relic.
@@ -162,7 +162,6 @@ def get_entity(account_id: Optional[int] = None,
162
162
 
163
163
  This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
164
164
 
165
- <!--Start PulumiCodeChooser -->
166
165
  ```python
167
166
  import pulumi
168
167
  import pulumi_newrelic as newrelic
@@ -174,9 +173,7 @@ def get_entity(account_id: Optional[int] = None,
174
173
  domain="APM",
175
174
  type="APPLICATION")
176
175
  ```
177
- <!--End PulumiCodeChooser -->
178
176
  However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
179
- <!--Start PulumiCodeChooser -->
180
177
  ```python
181
178
  import pulumi
182
179
  import pulumi_newrelic as newrelic
@@ -189,13 +186,11 @@ def get_entity(account_id: Optional[int] = None,
189
186
  domain="APM",
190
187
  type="APPLICATION")
191
188
  ```
192
- <!--End PulumiCodeChooser -->
193
189
  The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
194
190
 
195
191
  In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
196
192
  ### Query for an OTEL entity
197
193
 
198
- <!--Start PulumiCodeChooser -->
199
194
  ```python
200
195
  import pulumi
201
196
  import pulumi_newrelic as newrelic
@@ -208,11 +203,9 @@ def get_entity(account_id: Optional[int] = None,
208
203
  value="12345",
209
204
  )])
210
205
  ```
211
- <!--End PulumiCodeChooser -->
212
206
 
213
207
  ### Query for an entity by type (AWS Lambda entity in this example)
214
208
 
215
- <!--Start PulumiCodeChooser -->
216
209
  ```python
217
210
  import pulumi
218
211
  import pulumi_newrelic as newrelic
@@ -220,7 +213,6 @@ def get_entity(account_id: Optional[int] = None,
220
213
  app = newrelic.get_entity(name="my_lambda_trace",
221
214
  type="AWSLAMBDAFUNCTION")
222
215
  ```
223
- <!--End PulumiCodeChooser -->
224
216
 
225
217
 
226
218
  :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
@@ -276,7 +268,6 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
276
268
 
277
269
  This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
278
270
 
279
- <!--Start PulumiCodeChooser -->
280
271
  ```python
281
272
  import pulumi
282
273
  import pulumi_newrelic as newrelic
@@ -288,9 +279,7 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
288
279
  domain="APM",
289
280
  type="APPLICATION")
290
281
  ```
291
- <!--End PulumiCodeChooser -->
292
282
  However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
293
- <!--Start PulumiCodeChooser -->
294
283
  ```python
295
284
  import pulumi
296
285
  import pulumi_newrelic as newrelic
@@ -303,13 +292,11 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
303
292
  domain="APM",
304
293
  type="APPLICATION")
305
294
  ```
306
- <!--End PulumiCodeChooser -->
307
295
  The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
308
296
 
309
297
  In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
310
298
  ### Query for an OTEL entity
311
299
 
312
- <!--Start PulumiCodeChooser -->
313
300
  ```python
314
301
  import pulumi
315
302
  import pulumi_newrelic as newrelic
@@ -322,11 +309,9 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
322
309
  value="12345",
323
310
  )])
324
311
  ```
325
- <!--End PulumiCodeChooser -->
326
312
 
327
313
  ### Query for an entity by type (AWS Lambda entity in this example)
328
314
 
329
- <!--Start PulumiCodeChooser -->
330
315
  ```python
331
316
  import pulumi
332
317
  import pulumi_newrelic as newrelic
@@ -334,7 +319,6 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
334
319
  app = newrelic.get_entity(name="my_lambda_trace",
335
320
  type="AWSLAMBDAFUNCTION")
336
321
  ```
337
- <!--End PulumiCodeChooser -->
338
322
 
339
323
 
340
324
  :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
@@ -84,7 +84,6 @@ def get_group(authentication_domain_id: Optional[str] = None,
84
84
 
85
85
  The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
86
86
 
87
- <!--Start PulumiCodeChooser -->
88
87
  ```python
89
88
  import pulumi
90
89
  import pulumi_newrelic as newrelic
@@ -93,7 +92,6 @@ def get_group(authentication_domain_id: Optional[str] = None,
93
92
  foo_get_group = newrelic.get_group(authentication_domain_id=foo.id,
94
93
  name="Test Group")
95
94
  ```
96
- <!--End PulumiCodeChooser -->
97
95
 
98
96
  ## Additional Examples
99
97
 
@@ -101,7 +99,6 @@ def get_group(authentication_domain_id: Optional[str] = None,
101
99
 
102
100
  In order to directly reference the attributes `id` and `user_ids` from this data source, you can use the syntax `data.newrelic_group.foo.id` and `data.newrelic_group.foo.user_ids`, respectively. However, if you need to assign these values to local variables and perform further processing (such as conditionally formatting the `user_ids` attribute as shown in the example below), consider using the provided configuration. These variables can then be accessed elsewhere using the syntax `local.id` and `local.user_id`, respectively.
103
101
 
104
- <!--Start PulumiCodeChooser -->
105
102
  ```python
106
103
  import pulumi
107
104
  import pulumi_newrelic as newrelic
@@ -114,7 +111,6 @@ def get_group(authentication_domain_id: Optional[str] = None,
114
111
  user_ids = std.join(separator=", ",
115
112
  input=foo_get_group.user_ids).result if len(foo_get_group.user_ids) > 0 else ""
116
113
  ```
117
- <!--End PulumiCodeChooser -->
118
114
 
119
115
 
120
116
  :param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
@@ -146,7 +142,6 @@ def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = Non
146
142
 
147
143
  The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
148
144
 
149
- <!--Start PulumiCodeChooser -->
150
145
  ```python
151
146
  import pulumi
152
147
  import pulumi_newrelic as newrelic
@@ -155,7 +150,6 @@ def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = Non
155
150
  foo_get_group = newrelic.get_group(authentication_domain_id=foo.id,
156
151
  name="Test Group")
157
152
  ```
158
- <!--End PulumiCodeChooser -->
159
153
 
160
154
  ## Additional Examples
161
155
 
@@ -163,7 +157,6 @@ def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = Non
163
157
 
164
158
  In order to directly reference the attributes `id` and `user_ids` from this data source, you can use the syntax `data.newrelic_group.foo.id` and `data.newrelic_group.foo.user_ids`, respectively. However, if you need to assign these values to local variables and perform further processing (such as conditionally formatting the `user_ids` attribute as shown in the example below), consider using the provided configuration. These variables can then be accessed elsewhere using the syntax `local.id` and `local.user_id`, respectively.
165
159
 
166
- <!--Start PulumiCodeChooser -->
167
160
  ```python
168
161
  import pulumi
169
162
  import pulumi_newrelic as newrelic
@@ -176,7 +169,6 @@ def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = Non
176
169
  user_ids = std.join(separator=", ",
177
170
  input=foo_get_group.user_ids).result if len(foo_get_group.user_ids) > 0 else ""
178
171
  ```
179
- <!--End PulumiCodeChooser -->
180
172
 
181
173
 
182
174
  :param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
@@ -60,7 +60,6 @@ def get_key_transaction(name: Optional[str] = None,
60
60
 
61
61
  ## Example Usage
62
62
 
63
- <!--Start PulumiCodeChooser -->
64
63
  ```python
65
64
  import pulumi
66
65
  import pulumi_newrelic as newrelic
@@ -82,7 +81,6 @@ def get_key_transaction(name: Optional[str] = None,
82
81
  time_function="all",
83
82
  )])
84
83
  ```
85
- <!--End PulumiCodeChooser -->
86
84
 
87
85
 
88
86
  :param str name: The name of the key transaction in New Relic.
@@ -105,7 +103,6 @@ def get_key_transaction_output(name: Optional[pulumi.Input[str]] = None,
105
103
 
106
104
  ## Example Usage
107
105
 
108
- <!--Start PulumiCodeChooser -->
109
106
  ```python
110
107
  import pulumi
111
108
  import pulumi_newrelic as newrelic
@@ -127,7 +124,6 @@ def get_key_transaction_output(name: Optional[pulumi.Input[str]] = None,
127
124
  time_function="all",
128
125
  )])
129
126
  ```
130
- <!--End PulumiCodeChooser -->
131
127
 
132
128
 
133
129
  :param str name: The name of the key transaction in New Relic.
@@ -70,7 +70,6 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
70
70
 
71
71
  ## Example Usage
72
72
 
73
- <!--Start PulumiCodeChooser -->
74
73
  ```python
75
74
  import pulumi
76
75
  import pulumi_newrelic as newrelic
@@ -88,7 +87,6 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
88
87
  method="MASK",
89
88
  )])
90
89
  ```
91
- <!--End PulumiCodeChooser -->
92
90
 
93
91
 
94
92
  :param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
@@ -115,7 +113,6 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
115
113
 
116
114
  ## Example Usage
117
115
 
118
- <!--Start PulumiCodeChooser -->
119
116
  ```python
120
117
  import pulumi
121
118
  import pulumi_newrelic as newrelic
@@ -133,7 +130,6 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
133
130
  method="MASK",
134
131
  )])
135
132
  ```
136
- <!--End PulumiCodeChooser -->
137
133
 
138
134
 
139
135
  :param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
@@ -170,7 +170,6 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
170
170
 
171
171
  Firstly set up your service level objective, we recommend using local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
172
172
 
173
- <!--Start PulumiCodeChooser -->
174
173
  ```python
175
174
  import pulumi
176
175
  import pulumi_newrelic as newrelic
@@ -202,14 +201,12 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
202
201
  ),
203
202
  ))
204
203
  ```
205
- <!--End PulumiCodeChooser -->
206
204
  Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
207
205
  Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
208
206
  If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
209
207
 
210
208
  Here is an example of a `slow_burn` alert.
211
209
 
212
- <!--Start PulumiCodeChooser -->
213
210
  ```python
214
211
  import pulumi
215
212
  import pulumi_newrelic as newrelic
@@ -241,11 +238,9 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
241
238
  aggregation_delay="120",
242
239
  slide_by=900)
243
240
  ```
244
- <!--End PulumiCodeChooser -->
245
241
 
246
242
  Here is an example of a custom alert:
247
243
 
248
- <!--Start PulumiCodeChooser -->
249
244
  ```python
250
245
  import pulumi
251
246
  import pulumi_newrelic as newrelic
@@ -279,16 +274,6 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
279
274
  aggregation_delay="120",
280
275
  slide_by=60)
281
276
  ```
282
- <!--End PulumiCodeChooser -->
283
-
284
-
285
- :param str alert_type: The type of alert we want to set. Valid values are:
286
- :param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
287
- :param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
288
- :param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
289
- :param str sli_guid: The guid of the sli we want to set the alert on.
290
- :param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
291
- :param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
292
277
  """
293
278
  __args__ = dict()
294
279
  __args__['alertType'] = alert_type
@@ -332,7 +317,6 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
332
317
 
333
318
  Firstly set up your service level objective, we recommend using local variables for the `target` and `time_window.rolling.count`, as they are also necessary for the helper.
334
319
 
335
- <!--Start PulumiCodeChooser -->
336
320
  ```python
337
321
  import pulumi
338
322
  import pulumi_newrelic as newrelic
@@ -364,14 +348,12 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
364
348
  ),
365
349
  ))
366
350
  ```
367
- <!--End PulumiCodeChooser -->
368
351
  Then use the helper to obtain the necessary fields to set up an alert on that Service Level.
369
352
  Note that the Service Level was set up using bad events, that's why `is_bad_events` is set to `true`.
370
353
  If the Service Level was configured with good events that would be unnecessary as the field defaults to `false`.
371
354
 
372
355
  Here is an example of a `slow_burn` alert.
373
356
 
374
- <!--Start PulumiCodeChooser -->
375
357
  ```python
376
358
  import pulumi
377
359
  import pulumi_newrelic as newrelic
@@ -403,11 +385,9 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
403
385
  aggregation_delay="120",
404
386
  slide_by=900)
405
387
  ```
406
- <!--End PulumiCodeChooser -->
407
388
 
408
389
  Here is an example of a custom alert:
409
390
 
410
- <!--Start PulumiCodeChooser -->
411
391
  ```python
412
392
  import pulumi
413
393
  import pulumi_newrelic as newrelic
@@ -441,15 +421,5 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
441
421
  aggregation_delay="120",
442
422
  slide_by=60)
443
423
  ```
444
- <!--End PulumiCodeChooser -->
445
-
446
-
447
- :param str alert_type: The type of alert we want to set. Valid values are:
448
- :param int custom_evaluation_period: Aggregation window taken into consideration in seconds. Mandatory if `alert_type` is `custom`.
449
- :param float custom_tolerated_budget_consumption: How much budget you tolerate to consume during the custom evaluation period, valid values between `0` and `100`. Mandatory if `alert_type` is `custom`.
450
- :param bool is_bad_events: If the SLI is defined using bad events. Defaults to `false`
451
- :param str sli_guid: The guid of the sli we want to set the alert on.
452
- :param int slo_period: The time window of the Service Level Objective in days. Valid values are `1`, `7` and `28`.
453
- :param float slo_target: The target of the Service Level Objective, valid values between `0` and `100`.
454
424
  """
455
425
  ...
@@ -91,7 +91,6 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
91
91
  """
92
92
  ## Example Usage
93
93
 
94
- <!--Start PulumiCodeChooser -->
95
94
  ```python
96
95
  import pulumi
97
96
  import pulumi_newrelic as newrelic
@@ -103,7 +102,6 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
103
102
  "bytes_received: 2048",
104
103
  ])
105
104
  ```
106
- <!--End PulumiCodeChooser -->
107
105
 
108
106
 
109
107
  :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
@@ -133,7 +131,6 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
133
131
  """
134
132
  ## Example Usage
135
133
 
136
- <!--Start PulumiCodeChooser -->
137
134
  ```python
138
135
  import pulumi
139
136
  import pulumi_newrelic as newrelic
@@ -145,7 +142,6 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
145
142
  "bytes_received: 2048",
146
143
  ])
147
144
  ```
148
- <!--End PulumiCodeChooser -->
149
145
 
150
146
 
151
147
  :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.