pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__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.

Potentially problematic release.


This version of pulumi-newrelic might be problematic. Click here for more details.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
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
  from . import outputs
12
17
  from ._inputs import *
@@ -17,17 +22,17 @@ __all__ = ['OneDashboardRawArgs', 'OneDashboardRaw']
17
22
  class OneDashboardRawArgs:
18
23
  def __init__(__self__, *,
19
24
  pages: pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]],
20
- account_id: Optional[pulumi.Input[int]] = None,
21
- description: Optional[pulumi.Input[str]] = None,
22
- name: Optional[pulumi.Input[str]] = None,
23
- permissions: Optional[pulumi.Input[str]] = None):
25
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
26
+ description: Optional[pulumi.Input[_builtins.str]] = None,
27
+ name: Optional[pulumi.Input[_builtins.str]] = None,
28
+ permissions: Optional[pulumi.Input[_builtins.str]] = None):
24
29
  """
25
30
  The set of arguments for constructing a OneDashboardRaw resource.
26
31
  :param pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]] pages: A nested block that describes a page. See Nested page blocks below for details.
27
- :param pulumi.Input[int] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
28
- :param pulumi.Input[str] description: Brief text describing the dashboard.
29
- :param pulumi.Input[str] name: The title of the dashboard.
30
- :param pulumi.Input[str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
32
+ :param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
33
+ :param pulumi.Input[_builtins.str] description: Brief text describing the dashboard.
34
+ :param pulumi.Input[_builtins.str] name: The title of the dashboard.
35
+ :param pulumi.Input[_builtins.str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
31
36
  """
32
37
  pulumi.set(__self__, "pages", pages)
33
38
  if account_id is not None:
@@ -39,7 +44,7 @@ class OneDashboardRawArgs:
39
44
  if permissions is not None:
40
45
  pulumi.set(__self__, "permissions", permissions)
41
46
 
42
- @property
47
+ @_builtins.property
43
48
  @pulumi.getter
44
49
  def pages(self) -> pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]]:
45
50
  """
@@ -51,74 +56,74 @@ class OneDashboardRawArgs:
51
56
  def pages(self, value: pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]]):
52
57
  pulumi.set(self, "pages", value)
53
58
 
54
- @property
59
+ @_builtins.property
55
60
  @pulumi.getter(name="accountId")
56
- def account_id(self) -> Optional[pulumi.Input[int]]:
61
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
57
62
  """
58
63
  Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
59
64
  """
60
65
  return pulumi.get(self, "account_id")
61
66
 
62
67
  @account_id.setter
63
- def account_id(self, value: Optional[pulumi.Input[int]]):
68
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
64
69
  pulumi.set(self, "account_id", value)
65
70
 
66
- @property
71
+ @_builtins.property
67
72
  @pulumi.getter
68
- def description(self) -> Optional[pulumi.Input[str]]:
73
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
69
74
  """
70
75
  Brief text describing the dashboard.
71
76
  """
72
77
  return pulumi.get(self, "description")
73
78
 
74
79
  @description.setter
75
- def description(self, value: Optional[pulumi.Input[str]]):
80
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
76
81
  pulumi.set(self, "description", value)
77
82
 
78
- @property
83
+ @_builtins.property
79
84
  @pulumi.getter
80
- def name(self) -> Optional[pulumi.Input[str]]:
85
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
81
86
  """
82
87
  The title of the dashboard.
83
88
  """
84
89
  return pulumi.get(self, "name")
85
90
 
86
91
  @name.setter
87
- def name(self, value: Optional[pulumi.Input[str]]):
92
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
88
93
  pulumi.set(self, "name", value)
89
94
 
90
- @property
95
+ @_builtins.property
91
96
  @pulumi.getter
92
- def permissions(self) -> Optional[pulumi.Input[str]]:
97
+ def permissions(self) -> Optional[pulumi.Input[_builtins.str]]:
93
98
  """
94
99
  Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
95
100
  """
96
101
  return pulumi.get(self, "permissions")
97
102
 
98
103
  @permissions.setter
99
- def permissions(self, value: Optional[pulumi.Input[str]]):
104
+ def permissions(self, value: Optional[pulumi.Input[_builtins.str]]):
100
105
  pulumi.set(self, "permissions", value)
101
106
 
102
107
 
103
108
  @pulumi.input_type
104
109
  class _OneDashboardRawState:
105
110
  def __init__(__self__, *,
106
- account_id: Optional[pulumi.Input[int]] = None,
107
- description: Optional[pulumi.Input[str]] = None,
108
- guid: Optional[pulumi.Input[str]] = None,
109
- name: Optional[pulumi.Input[str]] = None,
111
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
112
+ description: Optional[pulumi.Input[_builtins.str]] = None,
113
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
114
+ name: Optional[pulumi.Input[_builtins.str]] = None,
110
115
  pages: Optional[pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]]] = None,
111
- permalink: Optional[pulumi.Input[str]] = None,
112
- permissions: Optional[pulumi.Input[str]] = None):
116
+ permalink: Optional[pulumi.Input[_builtins.str]] = None,
117
+ permissions: Optional[pulumi.Input[_builtins.str]] = None):
113
118
  """
114
119
  Input properties used for looking up and filtering OneDashboardRaw resources.
115
- :param pulumi.Input[int] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
116
- :param pulumi.Input[str] description: Brief text describing the dashboard.
117
- :param pulumi.Input[str] guid: The unique entity identifier of the dashboard page in New Relic.
118
- :param pulumi.Input[str] name: The title of the dashboard.
120
+ :param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
121
+ :param pulumi.Input[_builtins.str] description: Brief text describing the dashboard.
122
+ :param pulumi.Input[_builtins.str] guid: The unique entity identifier of the dashboard page in New Relic.
123
+ :param pulumi.Input[_builtins.str] name: The title of the dashboard.
119
124
  :param pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]] pages: A nested block that describes a page. See Nested page blocks below for details.
120
- :param pulumi.Input[str] permalink: The URL for viewing the dashboard.
121
- :param pulumi.Input[str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
125
+ :param pulumi.Input[_builtins.str] permalink: The URL for viewing the dashboard.
126
+ :param pulumi.Input[_builtins.str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
122
127
  """
123
128
  if account_id is not None:
124
129
  pulumi.set(__self__, "account_id", account_id)
@@ -135,55 +140,55 @@ class _OneDashboardRawState:
135
140
  if permissions is not None:
136
141
  pulumi.set(__self__, "permissions", permissions)
137
142
 
138
- @property
143
+ @_builtins.property
139
144
  @pulumi.getter(name="accountId")
140
- def account_id(self) -> Optional[pulumi.Input[int]]:
145
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
141
146
  """
142
147
  Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
143
148
  """
144
149
  return pulumi.get(self, "account_id")
145
150
 
146
151
  @account_id.setter
147
- def account_id(self, value: Optional[pulumi.Input[int]]):
152
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
148
153
  pulumi.set(self, "account_id", value)
149
154
 
150
- @property
155
+ @_builtins.property
151
156
  @pulumi.getter
152
- def description(self) -> Optional[pulumi.Input[str]]:
157
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
153
158
  """
154
159
  Brief text describing the dashboard.
155
160
  """
156
161
  return pulumi.get(self, "description")
157
162
 
158
163
  @description.setter
159
- def description(self, value: Optional[pulumi.Input[str]]):
164
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
160
165
  pulumi.set(self, "description", value)
161
166
 
162
- @property
167
+ @_builtins.property
163
168
  @pulumi.getter
164
- def guid(self) -> Optional[pulumi.Input[str]]:
169
+ def guid(self) -> Optional[pulumi.Input[_builtins.str]]:
165
170
  """
166
171
  The unique entity identifier of the dashboard page in New Relic.
167
172
  """
168
173
  return pulumi.get(self, "guid")
169
174
 
170
175
  @guid.setter
171
- def guid(self, value: Optional[pulumi.Input[str]]):
176
+ def guid(self, value: Optional[pulumi.Input[_builtins.str]]):
172
177
  pulumi.set(self, "guid", value)
173
178
 
174
- @property
179
+ @_builtins.property
175
180
  @pulumi.getter
176
- def name(self) -> Optional[pulumi.Input[str]]:
181
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
177
182
  """
178
183
  The title of the dashboard.
179
184
  """
180
185
  return pulumi.get(self, "name")
181
186
 
182
187
  @name.setter
183
- def name(self, value: Optional[pulumi.Input[str]]):
188
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
184
189
  pulumi.set(self, "name", value)
185
190
 
186
- @property
191
+ @_builtins.property
187
192
  @pulumi.getter
188
193
  def pages(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]]]:
189
194
  """
@@ -195,41 +200,42 @@ class _OneDashboardRawState:
195
200
  def pages(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OneDashboardRawPageArgs']]]]):
196
201
  pulumi.set(self, "pages", value)
197
202
 
198
- @property
203
+ @_builtins.property
199
204
  @pulumi.getter
200
- def permalink(self) -> Optional[pulumi.Input[str]]:
205
+ def permalink(self) -> Optional[pulumi.Input[_builtins.str]]:
201
206
  """
202
207
  The URL for viewing the dashboard.
203
208
  """
204
209
  return pulumi.get(self, "permalink")
205
210
 
206
211
  @permalink.setter
207
- def permalink(self, value: Optional[pulumi.Input[str]]):
212
+ def permalink(self, value: Optional[pulumi.Input[_builtins.str]]):
208
213
  pulumi.set(self, "permalink", value)
209
214
 
210
- @property
215
+ @_builtins.property
211
216
  @pulumi.getter
212
- def permissions(self) -> Optional[pulumi.Input[str]]:
217
+ def permissions(self) -> Optional[pulumi.Input[_builtins.str]]:
213
218
  """
214
219
  Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
215
220
  """
216
221
  return pulumi.get(self, "permissions")
217
222
 
218
223
  @permissions.setter
219
- def permissions(self, value: Optional[pulumi.Input[str]]):
224
+ def permissions(self, value: Optional[pulumi.Input[_builtins.str]]):
220
225
  pulumi.set(self, "permissions", value)
221
226
 
222
227
 
228
+ @pulumi.type_token("newrelic:index/oneDashboardRaw:OneDashboardRaw")
223
229
  class OneDashboardRaw(pulumi.CustomResource):
224
230
  @overload
225
231
  def __init__(__self__,
226
232
  resource_name: str,
227
233
  opts: Optional[pulumi.ResourceOptions] = None,
228
- account_id: Optional[pulumi.Input[int]] = None,
229
- description: Optional[pulumi.Input[str]] = None,
230
- name: Optional[pulumi.Input[str]] = None,
231
- pages: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]]] = None,
232
- permissions: Optional[pulumi.Input[str]] = None,
234
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
235
+ description: Optional[pulumi.Input[_builtins.str]] = None,
236
+ name: Optional[pulumi.Input[_builtins.str]] = None,
237
+ pages: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardRawPageArgs', 'OneDashboardRawPageArgsDict']]]]] = None,
238
+ permissions: Optional[pulumi.Input[_builtins.str]] = None,
233
239
  __props__=None):
234
240
  """
235
241
  > **NOTE:** The OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will receive less investment compared to newrelic_one_dashboard_json.
@@ -238,87 +244,87 @@ class OneDashboardRaw(pulumi.CustomResource):
238
244
 
239
245
  ### Create A New Relic One Dashboard With RawConfiguration
240
246
 
241
- <!--Start PulumiCodeChooser -->
242
247
  ```python
243
248
  import pulumi
244
249
  import json
245
250
  import pulumi_newrelic as newrelic
246
251
 
247
- exampledash = newrelic.OneDashboardRaw("exampledash", pages=[newrelic.OneDashboardRawPageArgs(
248
- name="Page Name",
249
- widgets=[
250
- newrelic.OneDashboardRawPageWidgetArgs(
251
- title="Custom widget",
252
- row=1,
253
- column=1,
254
- width=1,
255
- height=1,
256
- visualization_id="viz.custom",
257
- configuration=\"\"\" {
258
- "legend": {
259
- "enabled": false
252
+ exampledash = newrelic.OneDashboardRaw("exampledash",
253
+ name="New Relic Terraform Example",
254
+ pages=[{
255
+ "name": "Page Name",
256
+ "widgets": [
257
+ {
258
+ "title": "Custom widget",
259
+ "row": 1,
260
+ "column": 1,
261
+ "width": 1,
262
+ "height": 1,
263
+ "visualization_id": "viz.custom",
264
+ "configuration": \"\"\" {
265
+ \\"legend\\": {
266
+ \\"enabled\\": false
260
267
  },
261
- "nrqlQueries": [
268
+ \\"nrqlQueries\\": [
262
269
  {
263
- "accountId": ` + accountID + `,
264
- "query": "SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago TIMESERIES"
270
+ \\"accountId\\": ` + accountID + `,
271
+ \\"query\\": \\"SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago TIMESERIES\\"
265
272
  }
266
273
  ],
267
- "yAxisLeft": {
268
- "max": 100,
269
- "min": 50,
270
- "zero": false
274
+ \\"yAxisLeft\\": {
275
+ \\"max\\": 100,
276
+ \\"min\\": 50,
277
+ \\"zero\\": false
271
278
  }
272
279
  }
273
280
  \"\"\",
274
- ),
275
- newrelic.OneDashboardRawPageWidgetArgs(
276
- title="Server CPU",
277
- row=1,
278
- column=2,
279
- width=1,
280
- height=1,
281
- visualization_id="viz.testing",
282
- configuration=\"\"\" {
283
- "nrqlQueries": [
281
+ },
282
+ {
283
+ "title": "Server CPU",
284
+ "row": 1,
285
+ "column": 2,
286
+ "width": 1,
287
+ "height": 1,
288
+ "visualization_id": "viz.testing",
289
+ "configuration": \"\"\" {
290
+ \\"nrqlQueries\\": [
284
291
  {
285
- "accountId": ` + accountID + `,
286
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400"
292
+ \\"accountId\\": ` + accountID + `,
293
+ \\"query\\": \\"SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400\\"
287
294
  }
288
295
  ]
289
296
  }
290
297
  \"\"\",
291
- ),
292
- newrelic.OneDashboardRawPageWidgetArgs(
293
- title="Docker Server CPU",
294
- row=1,
295
- column=3,
296
- height=1,
297
- width=1,
298
- visualization_id="viz.bar",
299
- configuration=json.dumps({
300
- "facet": {
301
- "showOtherSeries": False,
302
- },
303
- "nrqlQueries": [{
304
- "accountId": local["accountID"],
305
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
306
- }],
307
- }),
308
- linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
309
- ),
310
- ],
311
- )])
298
+ },
299
+ {
300
+ "title": "Docker Server CPU",
301
+ "row": 1,
302
+ "column": 3,
303
+ "height": 1,
304
+ "width": 1,
305
+ "visualization_id": "viz.bar",
306
+ "configuration": json.dumps({
307
+ "facet": {
308
+ "showOtherSeries": False,
309
+ },
310
+ "nrqlQueries": [{
311
+ "accountId": account_id,
312
+ "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
313
+ }],
314
+ }),
315
+ "linked_entity_guids": ["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
316
+ },
317
+ ],
318
+ }])
312
319
  ```
313
- <!--End PulumiCodeChooser -->
314
320
 
315
321
  :param str resource_name: The name of the resource.
316
322
  :param pulumi.ResourceOptions opts: Options for the resource.
317
- :param pulumi.Input[int] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
318
- :param pulumi.Input[str] description: Brief text describing the dashboard.
319
- :param pulumi.Input[str] name: The title of the dashboard.
320
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
321
- :param pulumi.Input[str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
323
+ :param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
324
+ :param pulumi.Input[_builtins.str] description: Brief text describing the dashboard.
325
+ :param pulumi.Input[_builtins.str] name: The title of the dashboard.
326
+ :param pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardRawPageArgs', 'OneDashboardRawPageArgsDict']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
327
+ :param pulumi.Input[_builtins.str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
322
328
  """
323
329
  ...
324
330
  @overload
@@ -333,79 +339,79 @@ class OneDashboardRaw(pulumi.CustomResource):
333
339
 
334
340
  ### Create A New Relic One Dashboard With RawConfiguration
335
341
 
336
- <!--Start PulumiCodeChooser -->
337
342
  ```python
338
343
  import pulumi
339
344
  import json
340
345
  import pulumi_newrelic as newrelic
341
346
 
342
- exampledash = newrelic.OneDashboardRaw("exampledash", pages=[newrelic.OneDashboardRawPageArgs(
343
- name="Page Name",
344
- widgets=[
345
- newrelic.OneDashboardRawPageWidgetArgs(
346
- title="Custom widget",
347
- row=1,
348
- column=1,
349
- width=1,
350
- height=1,
351
- visualization_id="viz.custom",
352
- configuration=\"\"\" {
353
- "legend": {
354
- "enabled": false
347
+ exampledash = newrelic.OneDashboardRaw("exampledash",
348
+ name="New Relic Terraform Example",
349
+ pages=[{
350
+ "name": "Page Name",
351
+ "widgets": [
352
+ {
353
+ "title": "Custom widget",
354
+ "row": 1,
355
+ "column": 1,
356
+ "width": 1,
357
+ "height": 1,
358
+ "visualization_id": "viz.custom",
359
+ "configuration": \"\"\" {
360
+ \\"legend\\": {
361
+ \\"enabled\\": false
355
362
  },
356
- "nrqlQueries": [
363
+ \\"nrqlQueries\\": [
357
364
  {
358
- "accountId": ` + accountID + `,
359
- "query": "SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago TIMESERIES"
365
+ \\"accountId\\": ` + accountID + `,
366
+ \\"query\\": \\"SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago TIMESERIES\\"
360
367
  }
361
368
  ],
362
- "yAxisLeft": {
363
- "max": 100,
364
- "min": 50,
365
- "zero": false
369
+ \\"yAxisLeft\\": {
370
+ \\"max\\": 100,
371
+ \\"min\\": 50,
372
+ \\"zero\\": false
366
373
  }
367
374
  }
368
375
  \"\"\",
369
- ),
370
- newrelic.OneDashboardRawPageWidgetArgs(
371
- title="Server CPU",
372
- row=1,
373
- column=2,
374
- width=1,
375
- height=1,
376
- visualization_id="viz.testing",
377
- configuration=\"\"\" {
378
- "nrqlQueries": [
376
+ },
377
+ {
378
+ "title": "Server CPU",
379
+ "row": 1,
380
+ "column": 2,
381
+ "width": 1,
382
+ "height": 1,
383
+ "visualization_id": "viz.testing",
384
+ "configuration": \"\"\" {
385
+ \\"nrqlQueries\\": [
379
386
  {
380
- "accountId": ` + accountID + `,
381
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400"
387
+ \\"accountId\\": ` + accountID + `,
388
+ \\"query\\": \\"SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400\\"
382
389
  }
383
390
  ]
384
391
  }
385
392
  \"\"\",
386
- ),
387
- newrelic.OneDashboardRawPageWidgetArgs(
388
- title="Docker Server CPU",
389
- row=1,
390
- column=3,
391
- height=1,
392
- width=1,
393
- visualization_id="viz.bar",
394
- configuration=json.dumps({
395
- "facet": {
396
- "showOtherSeries": False,
397
- },
398
- "nrqlQueries": [{
399
- "accountId": local["accountID"],
400
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
401
- }],
402
- }),
403
- linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
404
- ),
405
- ],
406
- )])
393
+ },
394
+ {
395
+ "title": "Docker Server CPU",
396
+ "row": 1,
397
+ "column": 3,
398
+ "height": 1,
399
+ "width": 1,
400
+ "visualization_id": "viz.bar",
401
+ "configuration": json.dumps({
402
+ "facet": {
403
+ "showOtherSeries": False,
404
+ },
405
+ "nrqlQueries": [{
406
+ "accountId": account_id,
407
+ "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
408
+ }],
409
+ }),
410
+ "linked_entity_guids": ["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
411
+ },
412
+ ],
413
+ }])
407
414
  ```
408
- <!--End PulumiCodeChooser -->
409
415
 
410
416
  :param str resource_name: The name of the resource.
411
417
  :param OneDashboardRawArgs args: The arguments to use to populate this resource's properties.
@@ -422,11 +428,11 @@ class OneDashboardRaw(pulumi.CustomResource):
422
428
  def _internal_init(__self__,
423
429
  resource_name: str,
424
430
  opts: Optional[pulumi.ResourceOptions] = None,
425
- account_id: Optional[pulumi.Input[int]] = None,
426
- description: Optional[pulumi.Input[str]] = None,
427
- name: Optional[pulumi.Input[str]] = None,
428
- pages: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]]] = None,
429
- permissions: Optional[pulumi.Input[str]] = None,
431
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
432
+ description: Optional[pulumi.Input[_builtins.str]] = None,
433
+ name: Optional[pulumi.Input[_builtins.str]] = None,
434
+ pages: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardRawPageArgs', 'OneDashboardRawPageArgsDict']]]]] = None,
435
+ permissions: Optional[pulumi.Input[_builtins.str]] = None,
430
436
  __props__=None):
431
437
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
432
438
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -455,13 +461,13 @@ class OneDashboardRaw(pulumi.CustomResource):
455
461
  def get(resource_name: str,
456
462
  id: pulumi.Input[str],
457
463
  opts: Optional[pulumi.ResourceOptions] = None,
458
- account_id: Optional[pulumi.Input[int]] = None,
459
- description: Optional[pulumi.Input[str]] = None,
460
- guid: Optional[pulumi.Input[str]] = None,
461
- name: Optional[pulumi.Input[str]] = None,
462
- pages: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]]] = None,
463
- permalink: Optional[pulumi.Input[str]] = None,
464
- permissions: Optional[pulumi.Input[str]] = None) -> 'OneDashboardRaw':
464
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
465
+ description: Optional[pulumi.Input[_builtins.str]] = None,
466
+ guid: Optional[pulumi.Input[_builtins.str]] = None,
467
+ name: Optional[pulumi.Input[_builtins.str]] = None,
468
+ pages: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardRawPageArgs', 'OneDashboardRawPageArgsDict']]]]] = None,
469
+ permalink: Optional[pulumi.Input[_builtins.str]] = None,
470
+ permissions: Optional[pulumi.Input[_builtins.str]] = None) -> 'OneDashboardRaw':
465
471
  """
466
472
  Get an existing OneDashboardRaw resource's state with the given name, id, and optional extra
467
473
  properties used to qualify the lookup.
@@ -469,13 +475,13 @@ class OneDashboardRaw(pulumi.CustomResource):
469
475
  :param str resource_name: The unique name of the resulting resource.
470
476
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
471
477
  :param pulumi.ResourceOptions opts: Options for the resource.
472
- :param pulumi.Input[int] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
473
- :param pulumi.Input[str] description: Brief text describing the dashboard.
474
- :param pulumi.Input[str] guid: The unique entity identifier of the dashboard page in New Relic.
475
- :param pulumi.Input[str] name: The title of the dashboard.
476
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
477
- :param pulumi.Input[str] permalink: The URL for viewing the dashboard.
478
- :param pulumi.Input[str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
478
+ :param pulumi.Input[_builtins.str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
479
+ :param pulumi.Input[_builtins.str] description: Brief text describing the dashboard.
480
+ :param pulumi.Input[_builtins.str] guid: The unique entity identifier of the dashboard page in New Relic.
481
+ :param pulumi.Input[_builtins.str] name: The title of the dashboard.
482
+ :param pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardRawPageArgs', 'OneDashboardRawPageArgsDict']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
483
+ :param pulumi.Input[_builtins.str] permalink: The URL for viewing the dashboard.
484
+ :param pulumi.Input[_builtins.str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
479
485
  """
480
486
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
481
487
 
@@ -490,39 +496,39 @@ class OneDashboardRaw(pulumi.CustomResource):
490
496
  __props__.__dict__["permissions"] = permissions
491
497
  return OneDashboardRaw(resource_name, opts=opts, __props__=__props__)
492
498
 
493
- @property
499
+ @_builtins.property
494
500
  @pulumi.getter(name="accountId")
495
- def account_id(self) -> pulumi.Output[int]:
501
+ def account_id(self) -> pulumi.Output[_builtins.str]:
496
502
  """
497
503
  Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
498
504
  """
499
505
  return pulumi.get(self, "account_id")
500
506
 
501
- @property
507
+ @_builtins.property
502
508
  @pulumi.getter
503
- def description(self) -> pulumi.Output[Optional[str]]:
509
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
504
510
  """
505
511
  Brief text describing the dashboard.
506
512
  """
507
513
  return pulumi.get(self, "description")
508
514
 
509
- @property
515
+ @_builtins.property
510
516
  @pulumi.getter
511
- def guid(self) -> pulumi.Output[str]:
517
+ def guid(self) -> pulumi.Output[_builtins.str]:
512
518
  """
513
519
  The unique entity identifier of the dashboard page in New Relic.
514
520
  """
515
521
  return pulumi.get(self, "guid")
516
522
 
517
- @property
523
+ @_builtins.property
518
524
  @pulumi.getter
519
- def name(self) -> pulumi.Output[str]:
525
+ def name(self) -> pulumi.Output[_builtins.str]:
520
526
  """
521
527
  The title of the dashboard.
522
528
  """
523
529
  return pulumi.get(self, "name")
524
530
 
525
- @property
531
+ @_builtins.property
526
532
  @pulumi.getter
527
533
  def pages(self) -> pulumi.Output[Sequence['outputs.OneDashboardRawPage']]:
528
534
  """
@@ -530,17 +536,17 @@ class OneDashboardRaw(pulumi.CustomResource):
530
536
  """
531
537
  return pulumi.get(self, "pages")
532
538
 
533
- @property
539
+ @_builtins.property
534
540
  @pulumi.getter
535
- def permalink(self) -> pulumi.Output[str]:
541
+ def permalink(self) -> pulumi.Output[_builtins.str]:
536
542
  """
537
543
  The URL for viewing the dashboard.
538
544
  """
539
545
  return pulumi.get(self, "permalink")
540
546
 
541
- @property
547
+ @_builtins.property
542
548
  @pulumi.getter
543
- def permissions(self) -> pulumi.Output[Optional[str]]:
549
+ def permissions(self) -> pulumi.Output[Optional[_builtins.str]]:
544
550
  """
545
551
  Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
546
552
  """