@pulumi/newrelic 4.20.0 → 5.0.0-alpha.1663005924
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.
- package/README.md +2 -2
- package/alertPolicyChannel.d.ts +1 -1
- package/alertPolicyChannel.js +1 -1
- package/cloud/awsIntegrations.d.ts +24 -0
- package/cloud/awsIntegrations.js +4 -0
- package/cloud/awsIntegrations.js.map +1 -1
- package/getAlertChannel.d.ts +9 -0
- package/getAlertChannel.js +1 -0
- package/getAlertChannel.js.map +1 -1
- package/getAlertPolicy.d.ts +6 -0
- package/getAlertPolicy.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/notificationChannel.d.ts +143 -28
- package/notificationChannel.js +112 -17
- package/notificationChannel.js.map +1 -1
- package/notificationDestination.d.ts +124 -50
- package/notificationDestination.js +67 -32
- package/notificationDestination.js.map +1 -1
- package/nrqlAlertCondition.d.ts +12 -15
- package/nrqlAlertCondition.js +0 -3
- package/nrqlAlertCondition.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/plugins/index.d.ts +0 -3
- package/plugins/index.js +0 -7
- package/plugins/index.js.map +1 -1
- package/synthetics/alertCondition.d.ts +3 -19
- package/synthetics/alertCondition.js +0 -16
- package/synthetics/alertCondition.js.map +1 -1
- package/synthetics/brokenLinksMonitor.d.ts +198 -0
- package/synthetics/brokenLinksMonitor.js +131 -0
- package/synthetics/brokenLinksMonitor.js.map +1 -0
- package/synthetics/certCheckMonitor.d.ts +203 -0
- package/synthetics/certCheckMonitor.js +135 -0
- package/synthetics/certCheckMonitor.js.map +1 -0
- package/synthetics/getPrivateLocation.d.ts +34 -0
- package/synthetics/getPrivateLocation.js +25 -0
- package/synthetics/getPrivateLocation.js.map +1 -0
- package/synthetics/getSecureCredential.d.ts +0 -4
- package/synthetics/getSecureCredential.js.map +1 -1
- package/synthetics/index.d.ts +6 -3
- package/synthetics/index.js +26 -7
- package/synthetics/index.js.map +1 -1
- package/synthetics/monitor.d.ts +221 -77
- package/synthetics/monitor.js +114 -47
- package/synthetics/monitor.js.map +1 -1
- package/synthetics/multiLocationAlertCondition.d.ts +32 -3
- package/synthetics/multiLocationAlertCondition.js +29 -0
- package/synthetics/multiLocationAlertCondition.js.map +1 -1
- package/synthetics/privateLocation.d.ts +139 -0
- package/synthetics/privateLocation.js +89 -0
- package/synthetics/privateLocation.js.map +1 -0
- package/synthetics/scriptMonitor.d.ts +341 -0
- package/synthetics/scriptMonitor.js +224 -0
- package/synthetics/scriptMonitor.js.map +1 -0
- package/synthetics/secureCredential.d.ts +6 -6
- package/synthetics/secureCredential.js +2 -2
- package/synthetics/stepMonitor.d.ts +192 -0
- package/synthetics/stepMonitor.js +115 -0
- package/synthetics/stepMonitor.js.map +1 -0
- package/types/input.d.ts +213 -126
- package/types/output.d.ts +213 -126
- package/workflow.d.ts +291 -0
- package/workflow.js +208 -0
- package/workflow.js.map +1 -0
- package/dashboard.d.ts +0 -139
- package/dashboard.js +0 -73
- package/dashboard.js.map +0 -1
- package/plugins/alertCondition.d.ts +0 -167
- package/plugins/alertCondition.js +0 -100
- package/plugins/alertCondition.js.map +0 -1
- package/plugins/getPlugin.d.ts +0 -29
- package/plugins/getPlugin.js +0 -29
- package/plugins/getPlugin.js.map +0 -1
- package/plugins/getPluginComponent.d.ts +0 -33
- package/plugins/getPluginComponent.js +0 -30
- package/plugins/getPluginComponent.js.map +0 -1
- package/synthetics/getMonitor.d.ts +0 -54
- package/synthetics/getMonitor.js +0 -41
- package/synthetics/getMonitor.js.map +0 -1
- package/synthetics/getMonitorLocation.d.ts +0 -71
- package/synthetics/getMonitorLocation.js +0 -46
- package/synthetics/getMonitorLocation.js.map +0 -1
- package/synthetics/monitorScript.d.ts +0 -107
- package/synthetics/monitorScript.js +0 -93
- package/synthetics/monitorScript.js.map +0 -1
|
@@ -6,20 +6,20 @@ exports.NotificationDestination = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Use this resource to create and manage New Relic notification destinations.
|
|
9
|
+
* Use this resource to create and manage New Relic notification destinations. Details regarding supported products and permissions can be found [here](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/destinations).
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
-
* ##### Webhook
|
|
13
|
+
* ##### [Webhook](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/notification-integrations/#webhook)
|
|
14
14
|
* ```typescript
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as newrelic from "@pulumi/newrelic";
|
|
17
17
|
*
|
|
18
18
|
* const foo = new newrelic.NotificationDestination("foo", {
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* user: "
|
|
19
|
+
* accountId: 12345678,
|
|
20
|
+
* authBasic: {
|
|
21
|
+
* password: "password",
|
|
22
|
+
* user: "username",
|
|
23
23
|
* },
|
|
24
24
|
* properties: [{
|
|
25
25
|
* key: "url",
|
|
@@ -31,17 +31,17 @@ const utilities = require("./utilities");
|
|
|
31
31
|
* See additional examples.
|
|
32
32
|
* ## Additional Examples
|
|
33
33
|
*
|
|
34
|
-
* ##### ServiceNow
|
|
34
|
+
* ##### [ServiceNow](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/notification-integrations/#servicenow)
|
|
35
35
|
*
|
|
36
36
|
* ```typescript
|
|
37
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
38
38
|
* import * as newrelic from "@pulumi/newrelic";
|
|
39
39
|
*
|
|
40
40
|
* const foo = new newrelic.NotificationDestination("foo", {
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* user: "
|
|
41
|
+
* accountId: 12345678,
|
|
42
|
+
* authBasic: {
|
|
43
|
+
* password: "password",
|
|
44
|
+
* user: "username",
|
|
45
45
|
* },
|
|
46
46
|
* properties: [
|
|
47
47
|
* {
|
|
@@ -57,17 +57,13 @@ const utilities = require("./utilities");
|
|
|
57
57
|
* });
|
|
58
58
|
* ```
|
|
59
59
|
*
|
|
60
|
-
* ##### Email
|
|
60
|
+
* ##### [Email](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/notification-integrations/#email)
|
|
61
61
|
* ```typescript
|
|
62
62
|
* import * as pulumi from "@pulumi/pulumi";
|
|
63
63
|
* import * as newrelic from "@pulumi/newrelic";
|
|
64
64
|
*
|
|
65
65
|
* const foo = new newrelic.NotificationDestination("foo", {
|
|
66
|
-
*
|
|
67
|
-
* prefix: "prefix",
|
|
68
|
-
* token: "bearer",
|
|
69
|
-
* type: "TOKEN",
|
|
70
|
-
* },
|
|
66
|
+
* accountId: 12345678,
|
|
71
67
|
* properties: [{
|
|
72
68
|
* key: "email",
|
|
73
69
|
* value: "email@email.com,email2@email.com",
|
|
@@ -76,41 +72,65 @@ const utilities = require("./utilities");
|
|
|
76
72
|
* });
|
|
77
73
|
* ```
|
|
78
74
|
*
|
|
79
|
-
* #####
|
|
75
|
+
* ##### [Jira](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/notification-integrations/#jira)
|
|
80
76
|
* ```typescript
|
|
81
77
|
* import * as pulumi from "@pulumi/pulumi";
|
|
82
78
|
* import * as newrelic from "@pulumi/newrelic";
|
|
83
79
|
*
|
|
84
80
|
* const foo = new newrelic.NotificationDestination("foo", {
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
81
|
+
* accountId: 12345678,
|
|
82
|
+
* authBasic: {
|
|
83
|
+
* password: "password",
|
|
84
|
+
* user: "example@email.com",
|
|
89
85
|
* },
|
|
90
86
|
* properties: [{
|
|
91
|
-
* key: "
|
|
92
|
-
* value: "
|
|
87
|
+
* key: "url",
|
|
88
|
+
* value: "https://example.atlassian.net",
|
|
93
89
|
* }],
|
|
90
|
+
* type: "JIRA",
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* ##### [PagerDuty with service integration](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/notification-integrations/#pagerduty-sli)
|
|
95
|
+
* ```typescript
|
|
96
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
97
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
98
|
+
*
|
|
99
|
+
* const foo = new newrelic.NotificationDestination("foo", {
|
|
100
|
+
* accountId: 12345678,
|
|
101
|
+
* authToken: {
|
|
102
|
+
* prefix: "Token token=",
|
|
103
|
+
* token: "10567a689d984d03c021034b22a789e2",
|
|
104
|
+
* },
|
|
94
105
|
* type: "PAGERDUTY_SERVICE_INTEGRATION",
|
|
95
106
|
* });
|
|
96
107
|
* ```
|
|
97
108
|
*
|
|
98
|
-
* ##### PagerDuty with account integration
|
|
109
|
+
* ##### [PagerDuty with account integration](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/notification-integrations/#pagerduty-ali)
|
|
99
110
|
* ```typescript
|
|
100
111
|
* import * as pulumi from "@pulumi/pulumi";
|
|
101
112
|
* import * as newrelic from "@pulumi/newrelic";
|
|
102
113
|
*
|
|
103
114
|
* const foo = new newrelic.NotificationDestination("foo", {
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
115
|
+
* accountId: 12345678,
|
|
116
|
+
* authToken: {
|
|
117
|
+
* prefix: "Token token=",
|
|
118
|
+
* token: "u+E8EU3MhsZwLfZ1ic1A",
|
|
108
119
|
* },
|
|
120
|
+
* properties: [{
|
|
121
|
+
* key: "two_way_integration",
|
|
122
|
+
* value: "true",
|
|
123
|
+
* }],
|
|
109
124
|
* type: "PAGERDUTY_ACCOUNT_INTEGRATION",
|
|
110
125
|
* });
|
|
111
126
|
* ```
|
|
112
127
|
*
|
|
113
|
-
* > **NOTE:** Sensitive data such as destination API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
|
128
|
+
* > **NOTE:** Sensitive data such as destination API keys, service keys, auth object, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
|
129
|
+
*
|
|
130
|
+
* ## Additional Information
|
|
131
|
+
*
|
|
132
|
+
* More information about destinations integrations can be found in NewRelic [documentation](https://docs.newrelic.com/docs/alerts-applied-intelligence/notifications/notification-integrations/).
|
|
133
|
+
* More details about the destinations API can be found [here](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-destinations).
|
|
114
134
|
*/
|
|
115
135
|
class NotificationDestination extends pulumi.CustomResource {
|
|
116
136
|
constructor(name, argsOrState, opts) {
|
|
@@ -118,20 +138,35 @@ class NotificationDestination extends pulumi.CustomResource {
|
|
|
118
138
|
opts = opts || {};
|
|
119
139
|
if (opts.id) {
|
|
120
140
|
const state = argsOrState;
|
|
121
|
-
resourceInputs["
|
|
141
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
142
|
+
resourceInputs["active"] = state ? state.active : undefined;
|
|
143
|
+
resourceInputs["authBasic"] = state ? state.authBasic : undefined;
|
|
144
|
+
resourceInputs["authToken"] = state ? state.authToken : undefined;
|
|
145
|
+
resourceInputs["isUserAuthenticated"] = state ? state.isUserAuthenticated : undefined;
|
|
146
|
+
resourceInputs["lastSent"] = state ? state.lastSent : undefined;
|
|
122
147
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
123
148
|
resourceInputs["properties"] = state ? state.properties : undefined;
|
|
149
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
124
150
|
resourceInputs["type"] = state ? state.type : undefined;
|
|
125
151
|
}
|
|
126
152
|
else {
|
|
127
153
|
const args = argsOrState;
|
|
154
|
+
if ((!args || args.properties === undefined) && !opts.urn) {
|
|
155
|
+
throw new Error("Missing required property 'properties'");
|
|
156
|
+
}
|
|
128
157
|
if ((!args || args.type === undefined) && !opts.urn) {
|
|
129
158
|
throw new Error("Missing required property 'type'");
|
|
130
159
|
}
|
|
131
|
-
resourceInputs["
|
|
160
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
161
|
+
resourceInputs["active"] = args ? args.active : undefined;
|
|
162
|
+
resourceInputs["authBasic"] = args ? args.authBasic : undefined;
|
|
163
|
+
resourceInputs["authToken"] = args ? args.authToken : undefined;
|
|
132
164
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
133
165
|
resourceInputs["properties"] = args ? args.properties : undefined;
|
|
134
166
|
resourceInputs["type"] = args ? args.type : undefined;
|
|
167
|
+
resourceInputs["isUserAuthenticated"] = undefined /*out*/;
|
|
168
|
+
resourceInputs["lastSent"] = undefined /*out*/;
|
|
169
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
135
170
|
}
|
|
136
171
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
137
172
|
super(NotificationDestination.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationDestination.js","sourceRoot":"","sources":["../notificationDestination.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"notificationDestination.js","sourceRoot":"","sources":["../notificationDestination.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8HG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IA6E9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAA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;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAhHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;;AA1BL,0DAkHC;AApGG,gBAAgB;AACO,oCAAY,GAAG,gEAAgE,CAAC"}
|
package/nrqlAlertCondition.d.ts
CHANGED
|
@@ -80,7 +80,6 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
80
80
|
* });
|
|
81
81
|
* ```
|
|
82
82
|
*
|
|
83
|
-
* <<<<<<< HEAD
|
|
84
83
|
* ## Upgrade from 1.x to 2.x
|
|
85
84
|
*
|
|
86
85
|
* There have been several deprecations in the `newrelic.NrqlAlertCondition`
|
|
@@ -152,8 +151,6 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
152
151
|
* ```sh
|
|
153
152
|
* $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:static
|
|
154
153
|
* ```
|
|
155
|
-
*
|
|
156
|
-
* <<<<<<< HEAD ======= >>>>>>> v2.46.1 Users can find the actual values for `policy_id` and `condition_id` from the New Relic One UI under respective policy and condition.
|
|
157
154
|
*/
|
|
158
155
|
export declare class NrqlAlertCondition extends pulumi.CustomResource {
|
|
159
156
|
/**
|
|
@@ -188,7 +185,7 @@ export declare class NrqlAlertCondition extends pulumi.CustomResource {
|
|
|
188
185
|
*/
|
|
189
186
|
readonly aggregationTimer: pulumi.Output<string | undefined>;
|
|
190
187
|
/**
|
|
191
|
-
* The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than
|
|
188
|
+
* The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 900 seconds (15 minutes). Default is 60 seconds.
|
|
192
189
|
*/
|
|
193
190
|
readonly aggregationWindow: pulumi.Output<number>;
|
|
194
191
|
/**
|
|
@@ -216,7 +213,7 @@ export declare class NrqlAlertCondition extends pulumi.CustomResource {
|
|
|
216
213
|
*/
|
|
217
214
|
readonly entityGuid: pulumi.Output<string>;
|
|
218
215
|
/**
|
|
219
|
-
* The amount of time (in seconds) to wait before considering the signal expired.
|
|
216
|
+
* The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
|
|
220
217
|
*/
|
|
221
218
|
readonly expirationDuration: pulumi.Output<number | undefined>;
|
|
222
219
|
/**
|
|
@@ -258,11 +255,11 @@ export declare class NrqlAlertCondition extends pulumi.CustomResource {
|
|
|
258
255
|
*/
|
|
259
256
|
readonly terms: pulumi.Output<outputs.NrqlAlertConditionTerm[] | undefined>;
|
|
260
257
|
/**
|
|
261
|
-
* The type of the condition. Valid values are `static
|
|
258
|
+
* The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
|
|
262
259
|
*/
|
|
263
260
|
readonly type: pulumi.Output<string | undefined>;
|
|
264
261
|
/**
|
|
265
|
-
*
|
|
262
|
+
* **DEPRECATED** Use `signal.slide_by` instead.
|
|
266
263
|
*
|
|
267
264
|
* @deprecated 'value_function' is deprecated. Remove this field and condition will evaluate as 'single_value' by default. To replicate 'sum' behavior, use 'slide_by'.
|
|
268
265
|
*/
|
|
@@ -313,7 +310,7 @@ export interface NrqlAlertConditionState {
|
|
|
313
310
|
*/
|
|
314
311
|
aggregationTimer?: pulumi.Input<string>;
|
|
315
312
|
/**
|
|
316
|
-
* The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than
|
|
313
|
+
* The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 900 seconds (15 minutes). Default is 60 seconds.
|
|
317
314
|
*/
|
|
318
315
|
aggregationWindow?: pulumi.Input<number>;
|
|
319
316
|
/**
|
|
@@ -341,7 +338,7 @@ export interface NrqlAlertConditionState {
|
|
|
341
338
|
*/
|
|
342
339
|
entityGuid?: pulumi.Input<string>;
|
|
343
340
|
/**
|
|
344
|
-
* The amount of time (in seconds) to wait before considering the signal expired.
|
|
341
|
+
* The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
|
|
345
342
|
*/
|
|
346
343
|
expirationDuration?: pulumi.Input<number>;
|
|
347
344
|
/**
|
|
@@ -383,11 +380,11 @@ export interface NrqlAlertConditionState {
|
|
|
383
380
|
*/
|
|
384
381
|
terms?: pulumi.Input<pulumi.Input<inputs.NrqlAlertConditionTerm>[]>;
|
|
385
382
|
/**
|
|
386
|
-
* The type of the condition. Valid values are `static
|
|
383
|
+
* The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
|
|
387
384
|
*/
|
|
388
385
|
type?: pulumi.Input<string>;
|
|
389
386
|
/**
|
|
390
|
-
*
|
|
387
|
+
* **DEPRECATED** Use `signal.slide_by` instead.
|
|
391
388
|
*
|
|
392
389
|
* @deprecated 'value_function' is deprecated. Remove this field and condition will evaluate as 'single_value' by default. To replicate 'sum' behavior, use 'slide_by'.
|
|
393
390
|
*/
|
|
@@ -430,7 +427,7 @@ export interface NrqlAlertConditionArgs {
|
|
|
430
427
|
*/
|
|
431
428
|
aggregationTimer?: pulumi.Input<string>;
|
|
432
429
|
/**
|
|
433
|
-
* The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than
|
|
430
|
+
* The duration of the time window used to evaluate the NRQL query, in seconds. The value must be at least 30 seconds, and no more than 900 seconds (15 minutes). Default is 60 seconds.
|
|
434
431
|
*/
|
|
435
432
|
aggregationWindow?: pulumi.Input<number>;
|
|
436
433
|
/**
|
|
@@ -454,7 +451,7 @@ export interface NrqlAlertConditionArgs {
|
|
|
454
451
|
*/
|
|
455
452
|
enabled?: pulumi.Input<boolean>;
|
|
456
453
|
/**
|
|
457
|
-
* The amount of time (in seconds) to wait before considering the signal expired.
|
|
454
|
+
* The amount of time (in seconds) to wait before considering the signal expired. The value must be at least 30 seconds, and no more than 172800 seconds (48 hours).
|
|
458
455
|
*/
|
|
459
456
|
expirationDuration?: pulumi.Input<number>;
|
|
460
457
|
/**
|
|
@@ -496,11 +493,11 @@ export interface NrqlAlertConditionArgs {
|
|
|
496
493
|
*/
|
|
497
494
|
terms?: pulumi.Input<pulumi.Input<inputs.NrqlAlertConditionTerm>[]>;
|
|
498
495
|
/**
|
|
499
|
-
* The type of the condition. Valid values are `static
|
|
496
|
+
* The type of the condition. Valid values are `static` or `baseline`. Defaults to `static`.
|
|
500
497
|
*/
|
|
501
498
|
type?: pulumi.Input<string>;
|
|
502
499
|
/**
|
|
503
|
-
*
|
|
500
|
+
* **DEPRECATED** Use `signal.slide_by` instead.
|
|
504
501
|
*
|
|
505
502
|
* @deprecated 'value_function' is deprecated. Remove this field and condition will evaluate as 'single_value' by default. To replicate 'sum' behavior, use 'slide_by'.
|
|
506
503
|
*/
|
package/nrqlAlertCondition.js
CHANGED
|
@@ -85,7 +85,6 @@ const utilities = require("./utilities");
|
|
|
85
85
|
* });
|
|
86
86
|
* ```
|
|
87
87
|
*
|
|
88
|
-
* <<<<<<< HEAD
|
|
89
88
|
* ## Upgrade from 1.x to 2.x
|
|
90
89
|
*
|
|
91
90
|
* There have been several deprecations in the `newrelic.NrqlAlertCondition`
|
|
@@ -157,8 +156,6 @@ const utilities = require("./utilities");
|
|
|
157
156
|
* ```sh
|
|
158
157
|
* $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:static
|
|
159
158
|
* ```
|
|
160
|
-
*
|
|
161
|
-
* <<<<<<< HEAD ======= >>>>>>> v2.46.1 Users can find the actual values for `policy_id` and `condition_id` from the New Relic One UI under respective policy and condition.
|
|
162
159
|
*/
|
|
163
160
|
class NrqlAlertCondition extends pulumi.CustomResource {
|
|
164
161
|
constructor(name, argsOrState, opts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrqlAlertCondition.js","sourceRoot":"","sources":["../nrqlAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"nrqlAlertCondition.js","sourceRoot":"","sources":["../nrqlAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuJG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IAqJzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,kBAAkB,CAAC,GAAG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CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDA0NC;AA5MG,gBAAgB;AACO,+BAAY,GAAG,sDAAsD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/newrelic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v5.0.0-alpha.1663005924+2598081d",
|
|
4
4
|
"description": "A Pulumi package for creating and managing New Relic resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource newrelic
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource newrelic v5.0.0-alpha.1663005924+2598081d"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/newrelic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v5.0.0-alpha.1663005924+2598081d",
|
|
4
4
|
"description": "A Pulumi package for creating and managing New Relic resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource newrelic
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource newrelic v5.0.0-alpha.1663005924+2598081d"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/plugins/index.d.ts
CHANGED
package/plugins/index.js
CHANGED
|
@@ -19,21 +19,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
const pulumi = require("@pulumi/pulumi");
|
|
20
20
|
const utilities = require("../utilities");
|
|
21
21
|
// Export members:
|
|
22
|
-
__exportStar(require("./alertCondition"), exports);
|
|
23
22
|
__exportStar(require("./applicationSettings"), exports);
|
|
24
|
-
__exportStar(require("./getPlugin"), exports);
|
|
25
|
-
__exportStar(require("./getPluginComponent"), exports);
|
|
26
23
|
__exportStar(require("./workload"), exports);
|
|
27
24
|
// Import resources to register:
|
|
28
|
-
const alertCondition_1 = require("./alertCondition");
|
|
29
25
|
const applicationSettings_1 = require("./applicationSettings");
|
|
30
26
|
const workload_1 = require("./workload");
|
|
31
27
|
const _module = {
|
|
32
28
|
version: utilities.getVersion(),
|
|
33
29
|
construct: (name, type, urn) => {
|
|
34
30
|
switch (type) {
|
|
35
|
-
case "newrelic:plugins/alertCondition:AlertCondition":
|
|
36
|
-
return new alertCondition_1.AlertCondition(name, undefined, { urn });
|
|
37
31
|
case "newrelic:plugins/applicationSettings:ApplicationSettings":
|
|
38
32
|
return new applicationSettings_1.ApplicationSettings(name, undefined, { urn });
|
|
39
33
|
case "newrelic:plugins/workload:Workload":
|
|
@@ -43,7 +37,6 @@ const _module = {
|
|
|
43
37
|
}
|
|
44
38
|
},
|
|
45
39
|
};
|
|
46
|
-
pulumi.runtime.registerResourceModule("newrelic", "plugins/alertCondition", _module);
|
|
47
40
|
pulumi.runtime.registerResourceModule("newrelic", "plugins/applicationSettings", _module);
|
|
48
41
|
pulumi.runtime.registerResourceModule("newrelic", "plugins/workload", _module);
|
|
49
42
|
//# sourceMappingURL=index.js.map
|
package/plugins/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../plugins/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../plugins/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,wDAAsC;AACtC,6CAA2B;AAE3B,gCAAgC;AAChC,+DAA4D;AAC5D,yCAAsC;AAEtC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,0DAA0D;gBAC3D,OAAO,IAAI,yCAAmB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE,KAAK,oCAAoC;gBACrC,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -4,22 +4,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* > **NOTE:** The newrelic.NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. Other condition types may be deprecated in the future and receive fewer product updates.
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as newrelic from "@pulumi/newrelic";
|
|
12
|
-
*
|
|
13
|
-
* const fooMonitor = newrelic.synthetics.getMonitor({
|
|
14
|
-
* name: "foo",
|
|
15
|
-
* });
|
|
16
|
-
* const fooAlertCondition = new newrelic.synthetics.AlertCondition("fooAlertCondition", {
|
|
17
|
-
* policyId: newrelic_alert_policy.foo.id,
|
|
18
|
-
* monitorId: fooMonitor.then(fooMonitor => fooMonitor.id),
|
|
19
|
-
* runbookUrl: "https://www.example.com",
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
7
|
* ## Import
|
|
24
8
|
*
|
|
25
9
|
* Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
|
|
@@ -49,7 +33,7 @@ export declare class AlertCondition extends pulumi.CustomResource {
|
|
|
49
33
|
*/
|
|
50
34
|
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
51
35
|
/**
|
|
52
|
-
* The
|
|
36
|
+
* The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
53
37
|
*/
|
|
54
38
|
readonly monitorId: pulumi.Output<string>;
|
|
55
39
|
/**
|
|
@@ -82,7 +66,7 @@ export interface AlertConditionState {
|
|
|
82
66
|
*/
|
|
83
67
|
enabled?: pulumi.Input<boolean>;
|
|
84
68
|
/**
|
|
85
|
-
* The
|
|
69
|
+
* The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
86
70
|
*/
|
|
87
71
|
monitorId?: pulumi.Input<string>;
|
|
88
72
|
/**
|
|
@@ -107,7 +91,7 @@ export interface AlertConditionArgs {
|
|
|
107
91
|
*/
|
|
108
92
|
enabled?: pulumi.Input<boolean>;
|
|
109
93
|
/**
|
|
110
|
-
* The
|
|
94
|
+
* The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
111
95
|
*/
|
|
112
96
|
monitorId: pulumi.Input<string>;
|
|
113
97
|
/**
|
|
@@ -10,22 +10,6 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* > **NOTE:** The newrelic.NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. Other condition types may be deprecated in the future and receive fewer product updates.
|
|
12
12
|
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as newrelic from "@pulumi/newrelic";
|
|
18
|
-
*
|
|
19
|
-
* const fooMonitor = newrelic.synthetics.getMonitor({
|
|
20
|
-
* name: "foo",
|
|
21
|
-
* });
|
|
22
|
-
* const fooAlertCondition = new newrelic.synthetics.AlertCondition("fooAlertCondition", {
|
|
23
|
-
* policyId: newrelic_alert_policy.foo.id,
|
|
24
|
-
* monitorId: fooMonitor.then(fooMonitor => fooMonitor.id),
|
|
25
|
-
* runbookUrl: "https://www.example.com",
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
13
|
* ## Import
|
|
30
14
|
*
|
|
31
15
|
* Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertCondition.js","sourceRoot":"","sources":["../../synthetics/alertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"alertCondition.js","sourceRoot":"","sources":["../../synthetics/alertCondition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