@pulumi/newrelic 4.20.0 → 5.1.0-alpha.1663018157

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 (88) hide show
  1. package/README.md +2 -2
  2. package/alertPolicyChannel.d.ts +1 -1
  3. package/alertPolicyChannel.js +1 -1
  4. package/cloud/awsIntegrations.d.ts +24 -0
  5. package/cloud/awsIntegrations.js +4 -0
  6. package/cloud/awsIntegrations.js.map +1 -1
  7. package/getAlertChannel.d.ts +9 -0
  8. package/getAlertChannel.js +1 -0
  9. package/getAlertChannel.js.map +1 -1
  10. package/getAlertPolicy.d.ts +6 -0
  11. package/getAlertPolicy.js.map +1 -1
  12. package/index.d.ts +1 -1
  13. package/index.js +5 -5
  14. package/index.js.map +1 -1
  15. package/notificationChannel.d.ts +143 -28
  16. package/notificationChannel.js +112 -17
  17. package/notificationChannel.js.map +1 -1
  18. package/notificationDestination.d.ts +124 -50
  19. package/notificationDestination.js +67 -32
  20. package/notificationDestination.js.map +1 -1
  21. package/nrqlAlertCondition.d.ts +12 -15
  22. package/nrqlAlertCondition.js +0 -3
  23. package/nrqlAlertCondition.js.map +1 -1
  24. package/package.json +2 -2
  25. package/package.json.dev +2 -2
  26. package/plugins/index.d.ts +0 -3
  27. package/plugins/index.js +0 -7
  28. package/plugins/index.js.map +1 -1
  29. package/synthetics/alertCondition.d.ts +3 -19
  30. package/synthetics/alertCondition.js +0 -16
  31. package/synthetics/alertCondition.js.map +1 -1
  32. package/synthetics/brokenLinksMonitor.d.ts +198 -0
  33. package/synthetics/brokenLinksMonitor.js +131 -0
  34. package/synthetics/brokenLinksMonitor.js.map +1 -0
  35. package/synthetics/certCheckMonitor.d.ts +203 -0
  36. package/synthetics/certCheckMonitor.js +135 -0
  37. package/synthetics/certCheckMonitor.js.map +1 -0
  38. package/synthetics/getPrivateLocation.d.ts +34 -0
  39. package/synthetics/getPrivateLocation.js +25 -0
  40. package/synthetics/getPrivateLocation.js.map +1 -0
  41. package/synthetics/getSecureCredential.d.ts +0 -4
  42. package/synthetics/getSecureCredential.js.map +1 -1
  43. package/synthetics/index.d.ts +6 -3
  44. package/synthetics/index.js +26 -7
  45. package/synthetics/index.js.map +1 -1
  46. package/synthetics/monitor.d.ts +221 -77
  47. package/synthetics/monitor.js +114 -47
  48. package/synthetics/monitor.js.map +1 -1
  49. package/synthetics/multiLocationAlertCondition.d.ts +32 -3
  50. package/synthetics/multiLocationAlertCondition.js +29 -0
  51. package/synthetics/multiLocationAlertCondition.js.map +1 -1
  52. package/synthetics/privateLocation.d.ts +139 -0
  53. package/synthetics/privateLocation.js +89 -0
  54. package/synthetics/privateLocation.js.map +1 -0
  55. package/synthetics/scriptMonitor.d.ts +341 -0
  56. package/synthetics/scriptMonitor.js +224 -0
  57. package/synthetics/scriptMonitor.js.map +1 -0
  58. package/synthetics/secureCredential.d.ts +6 -6
  59. package/synthetics/secureCredential.js +2 -2
  60. package/synthetics/stepMonitor.d.ts +192 -0
  61. package/synthetics/stepMonitor.js +115 -0
  62. package/synthetics/stepMonitor.js.map +1 -0
  63. package/types/input.d.ts +213 -126
  64. package/types/output.d.ts +213 -126
  65. package/workflow.d.ts +291 -0
  66. package/workflow.js +208 -0
  67. package/workflow.js.map +1 -0
  68. package/dashboard.d.ts +0 -139
  69. package/dashboard.js +0 -73
  70. package/dashboard.js.map +0 -1
  71. package/plugins/alertCondition.d.ts +0 -167
  72. package/plugins/alertCondition.js +0 -100
  73. package/plugins/alertCondition.js.map +0 -1
  74. package/plugins/getPlugin.d.ts +0 -29
  75. package/plugins/getPlugin.js +0 -29
  76. package/plugins/getPlugin.js.map +0 -1
  77. package/plugins/getPluginComponent.d.ts +0 -33
  78. package/plugins/getPluginComponent.js +0 -30
  79. package/plugins/getPluginComponent.js.map +0 -1
  80. package/synthetics/getMonitor.d.ts +0 -54
  81. package/synthetics/getMonitor.js +0 -41
  82. package/synthetics/getMonitor.js.map +0 -1
  83. package/synthetics/getMonitorLocation.d.ts +0 -71
  84. package/synthetics/getMonitorLocation.js +0 -46
  85. package/synthetics/getMonitorLocation.js.map +0 -1
  86. package/synthetics/monitorScript.d.ts +0 -107
  87. package/synthetics/monitorScript.js +0 -93
  88. package/synthetics/monitorScript.js.map +0 -1
package/types/output.d.ts CHANGED
@@ -149,49 +149,6 @@ export interface AlertMutingRuleSchedule {
149
149
  */
150
150
  weeklyRepeatDays?: string[];
151
151
  }
152
- export interface DashboardFilter {
153
- attributes?: string[];
154
- eventTypes: string[];
155
- }
156
- export interface DashboardWidget {
157
- accountId?: number;
158
- column: number;
159
- compareWiths?: outputs.DashboardWidgetCompareWith[];
160
- drilldownDashboardId?: number;
161
- duration?: number;
162
- endTime?: number;
163
- entityIds?: number[];
164
- facet?: string;
165
- height?: number;
166
- limit?: number;
167
- metrics?: outputs.DashboardWidgetMetric[];
168
- notes?: string;
169
- nrql?: string;
170
- orderBy?: string;
171
- rawMetricName: string;
172
- row: number;
173
- source?: string;
174
- thresholdRed?: number;
175
- thresholdYellow?: number;
176
- title: string;
177
- visualization: string;
178
- widgetId: number;
179
- width?: number;
180
- }
181
- export interface DashboardWidgetCompareWith {
182
- offsetDuration: string;
183
- presentation: outputs.DashboardWidgetCompareWithPresentation;
184
- }
185
- export interface DashboardWidgetCompareWithPresentation {
186
- color: string;
187
- name: string;
188
- }
189
- export interface DashboardWidgetMetric {
190
- name: string;
191
- scope?: string;
192
- units?: string;
193
- values?: string[];
194
- }
195
152
  export interface EntityTagsTag {
196
153
  /**
197
154
  * The tag key.
@@ -243,136 +200,113 @@ export interface InfraAlertConditionWarning {
243
200
  value?: number;
244
201
  }
245
202
  export interface NotificationChannelProperty {
203
+ /**
204
+ * The notification property display value.
205
+ * *
206
+ * Each notification channel type supports a specific set of arguments for the `property` block:
207
+ */
246
208
  displayValue?: string;
209
+ /**
210
+ * The notification property key.
211
+ */
247
212
  key: string;
213
+ /**
214
+ * The notification property label.
215
+ */
248
216
  label?: string;
217
+ /**
218
+ * The notification property value.
219
+ */
249
220
  value: string;
250
221
  }
222
+ export interface NotificationDestinationAuthBasic {
223
+ /**
224
+ * Specifies an authentication password for use with a destination.
225
+ */
226
+ password: string;
227
+ /**
228
+ * The username of the basic auth.
229
+ */
230
+ user: string;
231
+ }
232
+ export interface NotificationDestinationAuthToken {
233
+ /**
234
+ * The prefix of the token auth.
235
+ */
236
+ prefix?: string;
237
+ /**
238
+ * Specifies the token for integrating.
239
+ */
240
+ token: string;
241
+ }
251
242
  export interface NotificationDestinationProperty {
243
+ /**
244
+ * The notification property display value.
245
+ */
252
246
  displayValue?: string;
247
+ /**
248
+ * The notification property key.
249
+ */
253
250
  key: string;
251
+ /**
252
+ * The notification property label.
253
+ */
254
254
  label?: string;
255
+ /**
256
+ * The notification property value.
257
+ */
255
258
  value: string;
256
259
  }
257
260
  export interface NrqlAlertConditionCritical {
258
261
  /**
259
- * **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive).
260
- *
261
262
  * @deprecated use `threshold_duration` attribute instead
262
263
  */
263
264
  duration?: number;
264
- /**
265
- * Valid values are `above`, `below`, or `equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier` or `baseline`, the only valid option here is `above`.
266
- */
267
265
  operator?: string;
268
- /**
269
- * The value which will trigger a violation. Must be `0` or greater.
270
- */
271
266
  threshold: number;
272
- /**
273
- * The duration, in seconds, that the threshold must violate in order to create a violation. Value must be a multiple of the `aggregationWindow` (which has a default of 60 seconds).
274
- * <br>For _baseline_ and _outlier_ NRQL alert conditions, the value must be within 120-3600 seconds (inclusive).
275
- * <br>For _static_ NRQL alert conditions with the `sum` value function, the value must be within 120-7200 seconds (inclusive).
276
- * <br>For _static_ NRQL alert conditions with the `singleValue` value function, the value must be within 60-7200 seconds (inclusive).
277
- */
278
267
  thresholdDuration?: number;
279
- /**
280
- * The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `atLeastOnce` (case insensitive).
281
- */
282
268
  thresholdOccurrences?: string;
283
269
  /**
284
- * **DEPRECATED:** Use `thresholdOccurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
285
- *
286
270
  * @deprecated use `threshold_occurrences` attribute instead
287
271
  */
288
272
  timeFunction?: string;
289
273
  }
290
274
  export interface NrqlAlertConditionNrql {
291
275
  /**
292
- * Represented in minutes and must be within 1-20 minutes (inclusive). NRQL queries are evaluated in one-minute time windows. The start time depends on this value. It's recommended to set this to 3 minutes. An offset of less than 3 minutes will trigger violations sooner, but you may see more false positives and negatives due to data latency. With `evaluationOffset` set to 3 minutes, the NRQL time window applied to your query will be: `SINCE 3 minutes ago UNTIL 2 minutes ago`.<br>
293
- * <small>\***Note**: One of `evaluationOffset` _or_ `sinceValue` must be set, but not both.</small>
294
- *
295
276
  * @deprecated use `aggregation_method` attribute instead
296
277
  */
297
278
  evaluationOffset?: number;
298
- /**
299
- * The NRQL query to execute for the condition.
300
- */
301
279
  query: string;
302
280
  /**
303
- * **DEPRECATED:** Use `evaluationOffset` instead. The value to be used in the `SINCE <X> minutes ago` clause for the NRQL query. Must be between 1-20 (inclusive). <br>
304
- * <small>\***Note**: One of `evaluationOffset` _or_ `sinceValue` must be set, but not both.</small>
305
- *
306
281
  * @deprecated use `aggregation_method` attribute instead
307
282
  */
308
283
  sinceValue?: string;
309
284
  }
310
285
  export interface NrqlAlertConditionTerm {
311
286
  /**
312
- * **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive).
313
- *
314
287
  * @deprecated use `threshold_duration` attribute instead
315
288
  */
316
289
  duration?: number;
317
- /**
318
- * Valid values are `above`, `below`, or `equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier` or `baseline`, the only valid option here is `above`.
319
- */
320
290
  operator?: string;
321
- /**
322
- * `critical` or `warning`. Defaults to `critical`.
323
- */
324
291
  priority?: string;
325
- /**
326
- * The value which will trigger a violation. Must be `0` or greater.
327
- */
328
292
  threshold: number;
329
- /**
330
- * The duration, in seconds, that the threshold must violate in order to create a violation. Value must be a multiple of the `aggregationWindow` (which has a default of 60 seconds).
331
- * <br>For _baseline_ and _outlier_ NRQL alert conditions, the value must be within 120-3600 seconds (inclusive).
332
- * <br>For _static_ NRQL alert conditions with the `sum` value function, the value must be within 120-7200 seconds (inclusive).
333
- * <br>For _static_ NRQL alert conditions with the `singleValue` value function, the value must be within 60-7200 seconds (inclusive).
334
- */
335
293
  thresholdDuration?: number;
336
- /**
337
- * The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `atLeastOnce` (case insensitive).
338
- */
339
294
  thresholdOccurrences?: string;
340
295
  /**
341
- * **DEPRECATED:** Use `thresholdOccurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
342
- *
343
296
  * @deprecated use `threshold_occurrences` attribute instead
344
297
  */
345
298
  timeFunction?: string;
346
299
  }
347
300
  export interface NrqlAlertConditionWarning {
348
301
  /**
349
- * **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive).
350
- *
351
302
  * @deprecated use `threshold_duration` attribute instead
352
303
  */
353
304
  duration?: number;
354
- /**
355
- * Valid values are `above`, `below`, or `equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier` or `baseline`, the only valid option here is `above`.
356
- */
357
305
  operator?: string;
358
- /**
359
- * The value which will trigger a violation. Must be `0` or greater.
360
- */
361
306
  threshold: number;
362
- /**
363
- * The duration, in seconds, that the threshold must violate in order to create a violation. Value must be a multiple of the `aggregationWindow` (which has a default of 60 seconds).
364
- * <br>For _baseline_ and _outlier_ NRQL alert conditions, the value must be within 120-3600 seconds (inclusive).
365
- * <br>For _static_ NRQL alert conditions with the `sum` value function, the value must be within 120-7200 seconds (inclusive).
366
- * <br>For _static_ NRQL alert conditions with the `singleValue` value function, the value must be within 60-7200 seconds (inclusive).
367
- */
368
307
  thresholdDuration?: number;
369
- /**
370
- * The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `atLeastOnce` (case insensitive).
371
- */
372
308
  thresholdOccurrences?: string;
373
309
  /**
374
- * **DEPRECATED:** Use `thresholdOccurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
375
- *
376
310
  * @deprecated use `threshold_occurrences` attribute instead
377
311
  */
378
312
  timeFunction?: string;
@@ -1200,6 +1134,74 @@ export interface ServiceLevelObjectiveTimeWindowRolling {
1200
1134
  */
1201
1135
  unit: string;
1202
1136
  }
1137
+ export interface WorkflowDestinationConfiguration {
1138
+ channelId: string;
1139
+ /**
1140
+ * A nrql enrichment name.
1141
+ */
1142
+ name: string;
1143
+ /**
1144
+ * the filter's type. One of: `FILTER` or `VIEW`.
1145
+ * * `predicates`
1146
+ */
1147
+ type: string;
1148
+ }
1149
+ export interface WorkflowEnrichments {
1150
+ nrqls: outputs.WorkflowEnrichmentsNrql[];
1151
+ }
1152
+ export interface WorkflowEnrichmentsNrql {
1153
+ /**
1154
+ * Determines the New Relic account where the workflow will be created. Defaults to the account associated with the API key used.
1155
+ */
1156
+ accountId: number;
1157
+ /**
1158
+ * A list of nrql enrichments.
1159
+ */
1160
+ configurations: outputs.WorkflowEnrichmentsNrqlConfiguration[];
1161
+ enrichmentId: string;
1162
+ /**
1163
+ * A nrql enrichment name.
1164
+ */
1165
+ name: string;
1166
+ /**
1167
+ * the filter's type. One of: `FILTER` or `VIEW`.
1168
+ * * `predicates`
1169
+ */
1170
+ type: string;
1171
+ }
1172
+ export interface WorkflowEnrichmentsNrqlConfiguration {
1173
+ /**
1174
+ * the nrql query.
1175
+ */
1176
+ query: string;
1177
+ }
1178
+ export interface WorkflowIssuesFilter {
1179
+ filterId: string;
1180
+ /**
1181
+ * A nrql enrichment name.
1182
+ */
1183
+ name: string;
1184
+ predicates?: outputs.WorkflowIssuesFilterPredicate[];
1185
+ /**
1186
+ * the filter's type. One of: `FILTER` or `VIEW`.
1187
+ * * `predicates`
1188
+ */
1189
+ type: string;
1190
+ }
1191
+ export interface WorkflowIssuesFilterPredicate {
1192
+ /**
1193
+ * A predicates attribute.
1194
+ */
1195
+ attribute: string;
1196
+ /**
1197
+ * A predicates operator. One of: `CONTAINS`, `DOES_NOT_CONTAIN`, `DOES_NOT_EQUAL`, `DOES_NOT_EXACTLY_MATCH`, `ENDS_WITH`, `EQUAL`, `EXACTLY_MATCHES`, `GREATER_OR_EQUAL`, `GREATER_THAN`, `IS`, `IS_NOT`, `LESS_OR_EQUAL`, `LESS_THAN` or `STARTS_WITH` (workflows).
1198
+ */
1199
+ operator: string;
1200
+ /**
1201
+ * A list of values.
1202
+ */
1203
+ values: string[];
1204
+ }
1203
1205
  export declare namespace cloud {
1204
1206
  interface AwsGovcloudIntegrationsAlb {
1205
1207
  /**
@@ -1842,12 +1844,24 @@ export declare namespace cloud {
1842
1844
  */
1843
1845
  metricsPollingInterval?: number;
1844
1846
  }
1847
+ interface AwsIntegrationsDocDb {
1848
+ /**
1849
+ * The data polling interval in seconds.
1850
+ */
1851
+ metricsPollingInterval?: number;
1852
+ }
1845
1853
  interface AwsIntegrationsHealth {
1846
1854
  /**
1847
1855
  * The data polling interval in seconds.
1848
1856
  */
1849
1857
  metricsPollingInterval?: number;
1850
1858
  }
1859
+ interface AwsIntegrationsS3 {
1860
+ /**
1861
+ * The data polling interval in seconds.
1862
+ */
1863
+ metricsPollingInterval?: number;
1864
+ }
1851
1865
  interface AwsIntegrationsTrustedAdvisor {
1852
1866
  /**
1853
1867
  * The data polling interval in seconds.
@@ -2363,13 +2377,6 @@ export declare namespace insights {
2363
2377
  }
2364
2378
  }
2365
2379
  export declare namespace plugins {
2366
- interface AlertConditionTerm {
2367
- duration: number;
2368
- operator?: string;
2369
- priority?: string;
2370
- threshold: number;
2371
- timeFunction: string;
2372
- }
2373
2380
  interface WorkloadEntitySearchQuery {
2374
2381
  /**
2375
2382
  * The query.
@@ -2378,19 +2385,45 @@ export declare namespace plugins {
2378
2385
  }
2379
2386
  }
2380
2387
  export declare namespace synthetics {
2381
- interface MonitorScriptLocation {
2388
+ interface BrokenLinksMonitorTag {
2382
2389
  /**
2383
- * The monitor script authentication code for the location. Use one of either `hmac` or `vsePassword`.
2390
+ * Name of the tag key.
2384
2391
  */
2385
- hmac?: string;
2392
+ key: string;
2386
2393
  /**
2387
- * The monitor script location name.
2394
+ * Values associated with the tag key.
2388
2395
  */
2389
- name: string;
2396
+ values: string[];
2397
+ }
2398
+ interface CertCheckMonitorTag {
2390
2399
  /**
2391
- * The password for the location used to calculate the HMAC. Use one of either `hmac` or `vsePassword`.
2400
+ * Name of the tag key.
2392
2401
  */
2393
- vsePassword?: string;
2402
+ key: string;
2403
+ /**
2404
+ * Values associated with the tag key.
2405
+ */
2406
+ values: string[];
2407
+ }
2408
+ interface MonitorCustomHeader {
2409
+ /**
2410
+ * Header name.
2411
+ */
2412
+ name?: string;
2413
+ /**
2414
+ * Header Value.
2415
+ */
2416
+ value?: string;
2417
+ }
2418
+ interface MonitorTag {
2419
+ /**
2420
+ * Name of the tag key.
2421
+ */
2422
+ key: string;
2423
+ /**
2424
+ * Values associated with the tag key.
2425
+ */
2426
+ values: string[];
2394
2427
  }
2395
2428
  interface MultiLocationAlertConditionCritical {
2396
2429
  threshold: number;
@@ -2398,4 +2431,58 @@ export declare namespace synthetics {
2398
2431
  interface MultiLocationAlertConditionWarning {
2399
2432
  threshold: number;
2400
2433
  }
2434
+ interface ScriptMonitorLocationPrivate {
2435
+ /**
2436
+ * The unique identifier for the Synthetics private location in New Relic.
2437
+ */
2438
+ guid: string;
2439
+ /**
2440
+ * The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location.
2441
+ */
2442
+ vsePassword?: string;
2443
+ }
2444
+ interface ScriptMonitorTag {
2445
+ /**
2446
+ * Name of the tag key.
2447
+ */
2448
+ key: string;
2449
+ /**
2450
+ * Values associated with the tag key.
2451
+ */
2452
+ values: string[];
2453
+ }
2454
+ interface StepMonitorLocationPrivate {
2455
+ /**
2456
+ * The unique identifier for the Synthetics private location in New Relic.
2457
+ */
2458
+ guid: string;
2459
+ /**
2460
+ * The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location.
2461
+ */
2462
+ vsePassword?: string;
2463
+ }
2464
+ interface StepMonitorStep {
2465
+ /**
2466
+ * The position of the step within the script ranging from 0-100.
2467
+ */
2468
+ ordinal: number;
2469
+ /**
2470
+ * Name of the tag key.
2471
+ */
2472
+ type: string;
2473
+ /**
2474
+ * The metadata values related to the step. valid values are ASSERT_ELEMENT, ASSERT_MODAL, ASSERT_TEXT, ASSERT_TITLE, CLICK_ELEMENT, DISMISS_MODAL, DOUBLE_CLICK_ELEMENT, HOVER_ELEMENT, NAVIGATE, SECURE_TEXT_ENTRY, SELECT_ELEMENT, TEXT_ENTRY.
2475
+ */
2476
+ values?: string[];
2477
+ }
2478
+ interface StepMonitorTag {
2479
+ /**
2480
+ * Name of the tag key.
2481
+ */
2482
+ key: string;
2483
+ /**
2484
+ * Values associated with the tag key.
2485
+ */
2486
+ values: string[];
2487
+ }
2401
2488
  }