pulumi-newrelic 5.16.0a1698964311__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 +58 -1
  2. pulumi_newrelic/_inputs.py +10772 -2775
  3. pulumi_newrelic/_utilities.py +92 -11
  4. pulumi_newrelic/account_management.py +56 -42
  5. pulumi_newrelic/alert_channel.py +177 -151
  6. pulumi_newrelic/alert_condition.py +313 -301
  7. pulumi_newrelic/alert_muting_rule.py +195 -138
  8. pulumi_newrelic/alert_policy.py +157 -109
  9. pulumi_newrelic/alert_policy_channel.py +95 -81
  10. pulumi_newrelic/api_access_key.py +191 -209
  11. pulumi_newrelic/browser_application.py +161 -153
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2710
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
  16. pulumi_newrelic/cloud/aws_integrations.py +518 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +88 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +681 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +129 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +436 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +71 -59
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2317
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +45 -0
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +129 -117
  28. pulumi_newrelic/entity_tags.py +153 -31
  29. pulumi_newrelic/events_to_metrics_rule.py +114 -102
  30. pulumi_newrelic/get_account.py +41 -29
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +83 -34
  33. pulumi_newrelic/get_application.py +51 -39
  34. pulumi_newrelic/get_authentication_domain.py +111 -0
  35. pulumi_newrelic/get_cloud_account.py +43 -31
  36. pulumi_newrelic/get_entity.py +126 -121
  37. pulumi_newrelic/get_group.py +190 -0
  38. pulumi_newrelic/get_key_transaction.py +117 -38
  39. pulumi_newrelic/get_notification_destination.py +86 -36
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -35
  41. pulumi_newrelic/get_service_level_alert_helper.py +237 -137
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -32
  43. pulumi_newrelic/get_user.py +165 -0
  44. pulumi_newrelic/group.py +286 -0
  45. pulumi_newrelic/infra_alert_condition.py +400 -382
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +94 -23
  48. pulumi_newrelic/insights/event.py +56 -48
  49. pulumi_newrelic/insights/outputs.py +51 -18
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +169 -153
  52. pulumi_newrelic/monitor_downtime.py +914 -0
  53. pulumi_newrelic/notification_channel.py +560 -418
  54. pulumi_newrelic/notification_destination.py +379 -124
  55. pulumi_newrelic/nrql_alert_condition.py +945 -513
  56. pulumi_newrelic/nrql_drop_rule.py +121 -129
  57. pulumi_newrelic/obfuscation_expression.py +88 -76
  58. pulumi_newrelic/obfuscation_rule.py +123 -109
  59. pulumi_newrelic/one_dashboard.py +118 -108
  60. pulumi_newrelic/one_dashboard_json.py +77 -67
  61. pulumi_newrelic/one_dashboard_raw.py +214 -202
  62. pulumi_newrelic/outputs.py +5491 -2141
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +520 -90
  66. pulumi_newrelic/plugins/application_settings.py +463 -167
  67. pulumi_newrelic/plugins/outputs.py +337 -75
  68. pulumi_newrelic/plugins/workload.py +387 -151
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +277 -255
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +275 -106
  74. pulumi_newrelic/synthetics/alert_condition.py +174 -160
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -39
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
  79. pulumi_newrelic/synthetics/monitor.py +668 -462
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
  81. pulumi_newrelic/synthetics/outputs.py +102 -85
  82. pulumi_newrelic/synthetics/private_location.py +120 -110
  83. pulumi_newrelic/synthetics/script_monitor.py +623 -375
  84. pulumi_newrelic/synthetics/secure_credential.py +99 -93
  85. pulumi_newrelic/synthetics/step_monitor.py +545 -201
  86. pulumi_newrelic/user.py +366 -0
  87. pulumi_newrelic/workflow.py +348 -312
  88. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
  92. {pulumi_newrelic-5.16.0a1698964311.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,46 +200,48 @@ 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.
236
242
 
237
243
  ## Example Usage
244
+
238
245
  ### Create A New Relic One Dashboard With RawConfiguration
239
246
 
240
247
  ```python
@@ -242,80 +249,82 @@ class OneDashboardRaw(pulumi.CustomResource):
242
249
  import json
243
250
  import pulumi_newrelic as newrelic
244
251
 
245
- exampledash = newrelic.OneDashboardRaw("exampledash", pages=[newrelic.OneDashboardRawPageArgs(
246
- name="Page Name",
247
- widgets=[
248
- newrelic.OneDashboardRawPageWidgetArgs(
249
- title="Custom widget",
250
- row=1,
251
- column=1,
252
- width=1,
253
- height=1,
254
- visualization_id="viz.custom",
255
- configuration=\"\"\" {
256
- "legend": {
257
- "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
258
267
  },
259
- "nrqlQueries": [
268
+ \\"nrqlQueries\\": [
260
269
  {
261
- "accountId": ` + accountID + `,
262
- "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\\"
263
272
  }
264
273
  ],
265
- "yAxisLeft": {
266
- "max": 100,
267
- "min": 50,
268
- "zero": false
274
+ \\"yAxisLeft\\": {
275
+ \\"max\\": 100,
276
+ \\"min\\": 50,
277
+ \\"zero\\": false
269
278
  }
270
279
  }
271
280
  \"\"\",
272
- ),
273
- newrelic.OneDashboardRawPageWidgetArgs(
274
- title="Server CPU",
275
- row=1,
276
- column=2,
277
- width=1,
278
- height=1,
279
- visualization_id="viz.testing",
280
- configuration=\"\"\" {
281
- "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\\": [
282
291
  {
283
- "accountId": ` + accountID + `,
284
- "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\\"
285
294
  }
286
295
  ]
287
296
  }
288
297
  \"\"\",
289
- ),
290
- newrelic.OneDashboardRawPageWidgetArgs(
291
- title="Docker Server CPU",
292
- row=1,
293
- column=3,
294
- height=1,
295
- width=1,
296
- visualization_id="viz.bar",
297
- configuration=json.dumps({
298
- "facet": {
299
- "showOtherSeries": False,
300
- },
301
- "nrqlQueries": [{
302
- "accountId": local["accountID"],
303
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
304
- }],
305
- }),
306
- linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
307
- ),
308
- ],
309
- )])
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
+ }])
310
319
  ```
311
320
 
312
321
  :param str resource_name: The name of the resource.
313
322
  :param pulumi.ResourceOptions opts: Options for the resource.
314
- :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.
315
- :param pulumi.Input[str] description: Brief text describing the dashboard.
316
- :param pulumi.Input[str] name: The title of the dashboard.
317
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
318
- :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`.
319
328
  """
320
329
  ...
321
330
  @overload
@@ -327,6 +336,7 @@ class OneDashboardRaw(pulumi.CustomResource):
327
336
  > **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.
328
337
 
329
338
  ## Example Usage
339
+
330
340
  ### Create A New Relic One Dashboard With RawConfiguration
331
341
 
332
342
  ```python
@@ -334,71 +344,73 @@ class OneDashboardRaw(pulumi.CustomResource):
334
344
  import json
335
345
  import pulumi_newrelic as newrelic
336
346
 
337
- exampledash = newrelic.OneDashboardRaw("exampledash", pages=[newrelic.OneDashboardRawPageArgs(
338
- name="Page Name",
339
- widgets=[
340
- newrelic.OneDashboardRawPageWidgetArgs(
341
- title="Custom widget",
342
- row=1,
343
- column=1,
344
- width=1,
345
- height=1,
346
- visualization_id="viz.custom",
347
- configuration=\"\"\" {
348
- "legend": {
349
- "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
350
362
  },
351
- "nrqlQueries": [
363
+ \\"nrqlQueries\\": [
352
364
  {
353
- "accountId": ` + accountID + `,
354
- "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\\"
355
367
  }
356
368
  ],
357
- "yAxisLeft": {
358
- "max": 100,
359
- "min": 50,
360
- "zero": false
369
+ \\"yAxisLeft\\": {
370
+ \\"max\\": 100,
371
+ \\"min\\": 50,
372
+ \\"zero\\": false
361
373
  }
362
374
  }
363
375
  \"\"\",
364
- ),
365
- newrelic.OneDashboardRawPageWidgetArgs(
366
- title="Server CPU",
367
- row=1,
368
- column=2,
369
- width=1,
370
- height=1,
371
- visualization_id="viz.testing",
372
- configuration=\"\"\" {
373
- "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\\": [
374
386
  {
375
- "accountId": ` + accountID + `,
376
- "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\\"
377
389
  }
378
390
  ]
379
391
  }
380
392
  \"\"\",
381
- ),
382
- newrelic.OneDashboardRawPageWidgetArgs(
383
- title="Docker Server CPU",
384
- row=1,
385
- column=3,
386
- height=1,
387
- width=1,
388
- visualization_id="viz.bar",
389
- configuration=json.dumps({
390
- "facet": {
391
- "showOtherSeries": False,
392
- },
393
- "nrqlQueries": [{
394
- "accountId": local["accountID"],
395
- "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
396
- }],
397
- }),
398
- linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
399
- ),
400
- ],
401
- )])
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
+ }])
402
414
  ```
403
415
 
404
416
  :param str resource_name: The name of the resource.
@@ -416,11 +428,11 @@ class OneDashboardRaw(pulumi.CustomResource):
416
428
  def _internal_init(__self__,
417
429
  resource_name: str,
418
430
  opts: Optional[pulumi.ResourceOptions] = None,
419
- account_id: Optional[pulumi.Input[int]] = None,
420
- description: Optional[pulumi.Input[str]] = None,
421
- name: Optional[pulumi.Input[str]] = None,
422
- pages: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]]] = None,
423
- 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,
424
436
  __props__=None):
425
437
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
426
438
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -449,13 +461,13 @@ class OneDashboardRaw(pulumi.CustomResource):
449
461
  def get(resource_name: str,
450
462
  id: pulumi.Input[str],
451
463
  opts: Optional[pulumi.ResourceOptions] = None,
452
- account_id: Optional[pulumi.Input[int]] = None,
453
- description: Optional[pulumi.Input[str]] = None,
454
- guid: Optional[pulumi.Input[str]] = None,
455
- name: Optional[pulumi.Input[str]] = None,
456
- pages: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]]] = None,
457
- permalink: Optional[pulumi.Input[str]] = None,
458
- 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':
459
471
  """
460
472
  Get an existing OneDashboardRaw resource's state with the given name, id, and optional extra
461
473
  properties used to qualify the lookup.
@@ -463,13 +475,13 @@ class OneDashboardRaw(pulumi.CustomResource):
463
475
  :param str resource_name: The unique name of the resulting resource.
464
476
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
465
477
  :param pulumi.ResourceOptions opts: Options for the resource.
466
- :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.
467
- :param pulumi.Input[str] description: Brief text describing the dashboard.
468
- :param pulumi.Input[str] guid: The unique entity identifier of the dashboard page in New Relic.
469
- :param pulumi.Input[str] name: The title of the dashboard.
470
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OneDashboardRawPageArgs']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
471
- :param pulumi.Input[str] permalink: The URL for viewing the dashboard.
472
- :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`.
473
485
  """
474
486
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
475
487
 
@@ -484,39 +496,39 @@ class OneDashboardRaw(pulumi.CustomResource):
484
496
  __props__.__dict__["permissions"] = permissions
485
497
  return OneDashboardRaw(resource_name, opts=opts, __props__=__props__)
486
498
 
487
- @property
499
+ @_builtins.property
488
500
  @pulumi.getter(name="accountId")
489
- def account_id(self) -> pulumi.Output[int]:
501
+ def account_id(self) -> pulumi.Output[_builtins.str]:
490
502
  """
491
503
  Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
492
504
  """
493
505
  return pulumi.get(self, "account_id")
494
506
 
495
- @property
507
+ @_builtins.property
496
508
  @pulumi.getter
497
- def description(self) -> pulumi.Output[Optional[str]]:
509
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
498
510
  """
499
511
  Brief text describing the dashboard.
500
512
  """
501
513
  return pulumi.get(self, "description")
502
514
 
503
- @property
515
+ @_builtins.property
504
516
  @pulumi.getter
505
- def guid(self) -> pulumi.Output[str]:
517
+ def guid(self) -> pulumi.Output[_builtins.str]:
506
518
  """
507
519
  The unique entity identifier of the dashboard page in New Relic.
508
520
  """
509
521
  return pulumi.get(self, "guid")
510
522
 
511
- @property
523
+ @_builtins.property
512
524
  @pulumi.getter
513
- def name(self) -> pulumi.Output[str]:
525
+ def name(self) -> pulumi.Output[_builtins.str]:
514
526
  """
515
527
  The title of the dashboard.
516
528
  """
517
529
  return pulumi.get(self, "name")
518
530
 
519
- @property
531
+ @_builtins.property
520
532
  @pulumi.getter
521
533
  def pages(self) -> pulumi.Output[Sequence['outputs.OneDashboardRawPage']]:
522
534
  """
@@ -524,17 +536,17 @@ class OneDashboardRaw(pulumi.CustomResource):
524
536
  """
525
537
  return pulumi.get(self, "pages")
526
538
 
527
- @property
539
+ @_builtins.property
528
540
  @pulumi.getter
529
- def permalink(self) -> pulumi.Output[str]:
541
+ def permalink(self) -> pulumi.Output[_builtins.str]:
530
542
  """
531
543
  The URL for viewing the dashboard.
532
544
  """
533
545
  return pulumi.get(self, "permalink")
534
546
 
535
- @property
547
+ @_builtins.property
536
548
  @pulumi.getter
537
- def permissions(self) -> pulumi.Output[Optional[str]]:
549
+ def permissions(self) -> pulumi.Output[Optional[_builtins.str]]:
538
550
  """
539
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`.
540
552
  """