@pulumi/newrelic 4.19.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 +236 -20
- package/notificationChannel.js +199 -0
- package/notificationChannel.js.map +1 -1
- package/notificationDestination.d.ts +204 -26
- package/notificationDestination.js +144 -2
- 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 +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- 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 +217 -130
- 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
package/synthetics/monitor.js
CHANGED
|
@@ -6,85 +6,144 @@ exports.Monitor = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Use this resource to create, update, and delete a
|
|
9
|
+
* Use this resource to create, update, and delete a Simple or Browser Synthetics Monitor in New Relic.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
-
* ##### Type: `SIMPLE`
|
|
14
13
|
* ```typescript
|
|
15
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
15
|
* import * as newrelic from "@pulumi/newrelic";
|
|
17
16
|
*
|
|
18
|
-
* const
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* "
|
|
22
|
-
* "
|
|
23
|
-
* ],
|
|
17
|
+
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
18
|
+
* bypassHeadRequest: true,
|
|
19
|
+
* customHeaders: [{
|
|
20
|
+
* name: "Name",
|
|
21
|
+
* value: "simpleMonitor",
|
|
22
|
+
* }],
|
|
23
|
+
* locationsPublics: ["AP_SOUTH_1"],
|
|
24
|
+
* period: "EVERY_MINUTE",
|
|
24
25
|
* status: "ENABLED",
|
|
26
|
+
* tags: [{
|
|
27
|
+
* key: "some_key",
|
|
28
|
+
* values: ["some_value"],
|
|
29
|
+
* }],
|
|
30
|
+
* treatRedirectAsFailure: true,
|
|
25
31
|
* type: "SIMPLE",
|
|
26
|
-
* uri: "https://
|
|
27
|
-
* validationString: "
|
|
28
|
-
* verifySsl: true,
|
|
32
|
+
* uri: "https://www.one.newrelic.com",
|
|
33
|
+
* validationString: "success",
|
|
34
|
+
* verifySsl: true,
|
|
29
35
|
* });
|
|
30
36
|
* ```
|
|
37
|
+
* ##### Type: `SIMPLE BROWSER`
|
|
31
38
|
*
|
|
32
|
-
*
|
|
33
|
-
* ## Additional Examples
|
|
34
|
-
*
|
|
35
|
-
* Type: `BROWSER`
|
|
39
|
+
* > **NOTE:** The preferred runtime is `CHROME_BROWSER_100` while configuring the `SIMPLE_BROWSER` monitor. Other runtime may be deprecated in the future and receive fewer product updates.
|
|
36
40
|
*
|
|
37
41
|
* ```typescript
|
|
38
42
|
* import * as pulumi from "@pulumi/pulumi";
|
|
39
43
|
* import * as newrelic from "@pulumi/newrelic";
|
|
40
44
|
*
|
|
41
|
-
* const
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
+
* const bar = new newrelic.synthetics.Monitor("bar", {
|
|
46
|
+
* customHeaders: [{
|
|
47
|
+
* name: "name",
|
|
48
|
+
* value: "simple_browser",
|
|
49
|
+
* }],
|
|
50
|
+
* enableScreenshotOnFailureAndScript: true,
|
|
51
|
+
* locationsPublics: ["AP_SOUTH_1"],
|
|
52
|
+
* period: "EVERY_MINUTE",
|
|
53
|
+
* runtimeType: "CHROME_BROWSER",
|
|
54
|
+
* runtimeTypeVersion: "100",
|
|
55
|
+
* scriptLanguage: "JAVASCRIPT",
|
|
45
56
|
* status: "ENABLED",
|
|
46
|
-
*
|
|
57
|
+
* tags: [{
|
|
58
|
+
* key: "name",
|
|
59
|
+
* values: ["SimpleBrowserMonitor"],
|
|
60
|
+
* }],
|
|
47
61
|
* type: "BROWSER",
|
|
48
|
-
* uri: "https://
|
|
49
|
-
* validationString: "
|
|
50
|
-
* verifySsl: true,
|
|
62
|
+
* uri: "https://www.one.newrelic.com",
|
|
63
|
+
* validationString: "success",
|
|
64
|
+
* verifySsl: true,
|
|
51
65
|
* });
|
|
52
66
|
* ```
|
|
67
|
+
* See additional examples.
|
|
68
|
+
* ## Additional Examples
|
|
69
|
+
*
|
|
70
|
+
* ### Create a monitor with a private location
|
|
71
|
+
*
|
|
72
|
+
* The below example shows how you can define a private location and attach it to a monitor.
|
|
73
|
+
*
|
|
74
|
+
* > **NOTE:** It can take up to 10 minutes for a private location to become available.
|
|
53
75
|
*
|
|
54
|
-
* ##### Type: `
|
|
76
|
+
* ##### Type: `SIMPLE`
|
|
55
77
|
*
|
|
56
78
|
* ```typescript
|
|
57
79
|
* import * as pulumi from "@pulumi/pulumi";
|
|
58
80
|
* import * as newrelic from "@pulumi/newrelic";
|
|
59
81
|
*
|
|
60
|
-
* const
|
|
61
|
-
*
|
|
62
|
-
*
|
|
82
|
+
* const privateLocation = new newrelic.synthetics.PrivateLocation("private_location", {
|
|
83
|
+
* description: "Test Description",
|
|
84
|
+
* verifiedScriptExecution: false,
|
|
85
|
+
* });
|
|
86
|
+
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
87
|
+
* bypassHeadRequest: true,
|
|
88
|
+
* customHeaders: [{
|
|
89
|
+
* name: "name",
|
|
90
|
+
* value: "simple_browser",
|
|
91
|
+
* }],
|
|
92
|
+
* locationPrivate: ["newrelic_synthetics_private_location.private_location.id"],
|
|
93
|
+
* period: "EVERY_MINUTE",
|
|
63
94
|
* status: "ENABLED",
|
|
64
|
-
*
|
|
95
|
+
* tags: [{
|
|
96
|
+
* key: "some_key",
|
|
97
|
+
* values: ["some_value"],
|
|
98
|
+
* }],
|
|
99
|
+
* treatRedirectAsFailure: true,
|
|
100
|
+
* type: "SIMPLE",
|
|
101
|
+
* uri: "https://www.one.newrelic.com",
|
|
102
|
+
* validationString: "success",
|
|
103
|
+
* verifySsl: true,
|
|
65
104
|
* });
|
|
66
105
|
* ```
|
|
106
|
+
* ##### Type: `BROWSER`
|
|
67
107
|
*
|
|
68
|
-
*
|
|
108
|
+
* > **NOTE:** Currently, it's only possible to use a private location with a monitor running on a legacy runtime. Leave `runtimeTypeVersion`, `runtimeType` & `scriptLanguage` empty to use legacy runtime. See example below.
|
|
69
109
|
*
|
|
70
110
|
* ```typescript
|
|
71
111
|
* import * as pulumi from "@pulumi/pulumi";
|
|
72
112
|
* import * as newrelic from "@pulumi/newrelic";
|
|
73
113
|
*
|
|
74
|
-
* const
|
|
75
|
-
*
|
|
76
|
-
*
|
|
114
|
+
* const privateLocation = new newrelic.synthetics.PrivateLocation("private_location", {
|
|
115
|
+
* description: "Test Description",
|
|
116
|
+
* verifiedScriptExecution: false,
|
|
117
|
+
* });
|
|
118
|
+
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
119
|
+
* customHeaders: [{
|
|
120
|
+
* name: "name",
|
|
121
|
+
* value: "simple_browser",
|
|
122
|
+
* }],
|
|
123
|
+
* enableScreenshotOnFailureAndScript: true,
|
|
124
|
+
* locationPrivate: ["newrelic_synthetics_private_location.bar1"],
|
|
125
|
+
* period: "EVERY_MINUTE",
|
|
126
|
+
* runtimeType: "",
|
|
127
|
+
* runtimeTypeVersion: "",
|
|
128
|
+
* scriptLanguage: "",
|
|
77
129
|
* status: "ENABLED",
|
|
78
|
-
*
|
|
130
|
+
* tags: [{
|
|
131
|
+
* key: "some_key",
|
|
132
|
+
* values: ["some_value"],
|
|
133
|
+
* }],
|
|
134
|
+
* type: "BROWSER",
|
|
135
|
+
* uri: "https://www.one.newrelic.com",
|
|
136
|
+
* validationString: "success",
|
|
137
|
+
* verifySsl: true,
|
|
79
138
|
* });
|
|
80
139
|
* ```
|
|
81
140
|
*
|
|
82
141
|
* ## Import
|
|
83
142
|
*
|
|
84
|
-
* Synthetics
|
|
143
|
+
* Synthetics monitor can be imported using the `guid`, e.g. bash
|
|
85
144
|
*
|
|
86
145
|
* ```sh
|
|
87
|
-
* $ pulumi import newrelic:synthetics/monitor:Monitor
|
|
146
|
+
* $ pulumi import newrelic:synthetics/monitor:Monitor bar <guid>
|
|
88
147
|
* ```
|
|
89
148
|
*/
|
|
90
149
|
class Monitor extends pulumi.CustomResource {
|
|
@@ -93,12 +152,19 @@ class Monitor extends pulumi.CustomResource {
|
|
|
93
152
|
opts = opts || {};
|
|
94
153
|
if (opts.id) {
|
|
95
154
|
const state = argsOrState;
|
|
155
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
96
156
|
resourceInputs["bypassHeadRequest"] = state ? state.bypassHeadRequest : undefined;
|
|
97
|
-
resourceInputs["
|
|
98
|
-
resourceInputs["
|
|
157
|
+
resourceInputs["customHeaders"] = state ? state.customHeaders : undefined;
|
|
158
|
+
resourceInputs["enableScreenshotOnFailureAndScript"] = state ? state.enableScreenshotOnFailureAndScript : undefined;
|
|
159
|
+
resourceInputs["locationsPrivates"] = state ? state.locationsPrivates : undefined;
|
|
160
|
+
resourceInputs["locationsPublics"] = state ? state.locationsPublics : undefined;
|
|
99
161
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
100
|
-
resourceInputs["
|
|
162
|
+
resourceInputs["period"] = state ? state.period : undefined;
|
|
163
|
+
resourceInputs["runtimeType"] = state ? state.runtimeType : undefined;
|
|
164
|
+
resourceInputs["runtimeTypeVersion"] = state ? state.runtimeTypeVersion : undefined;
|
|
165
|
+
resourceInputs["scriptLanguage"] = state ? state.scriptLanguage : undefined;
|
|
101
166
|
resourceInputs["status"] = state ? state.status : undefined;
|
|
167
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
102
168
|
resourceInputs["treatRedirectAsFailure"] = state ? state.treatRedirectAsFailure : undefined;
|
|
103
169
|
resourceInputs["type"] = state ? state.type : undefined;
|
|
104
170
|
resourceInputs["uri"] = state ? state.uri : undefined;
|
|
@@ -107,24 +173,25 @@ class Monitor extends pulumi.CustomResource {
|
|
|
107
173
|
}
|
|
108
174
|
else {
|
|
109
175
|
const args = argsOrState;
|
|
110
|
-
if ((!args || args.frequency === undefined) && !opts.urn) {
|
|
111
|
-
throw new Error("Missing required property 'frequency'");
|
|
112
|
-
}
|
|
113
|
-
if ((!args || args.locations === undefined) && !opts.urn) {
|
|
114
|
-
throw new Error("Missing required property 'locations'");
|
|
115
|
-
}
|
|
116
176
|
if ((!args || args.status === undefined) && !opts.urn) {
|
|
117
177
|
throw new Error("Missing required property 'status'");
|
|
118
178
|
}
|
|
119
179
|
if ((!args || args.type === undefined) && !opts.urn) {
|
|
120
180
|
throw new Error("Missing required property 'type'");
|
|
121
181
|
}
|
|
182
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
122
183
|
resourceInputs["bypassHeadRequest"] = args ? args.bypassHeadRequest : undefined;
|
|
123
|
-
resourceInputs["
|
|
124
|
-
resourceInputs["
|
|
184
|
+
resourceInputs["customHeaders"] = args ? args.customHeaders : undefined;
|
|
185
|
+
resourceInputs["enableScreenshotOnFailureAndScript"] = args ? args.enableScreenshotOnFailureAndScript : undefined;
|
|
186
|
+
resourceInputs["locationsPrivates"] = args ? args.locationsPrivates : undefined;
|
|
187
|
+
resourceInputs["locationsPublics"] = args ? args.locationsPublics : undefined;
|
|
125
188
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
126
|
-
resourceInputs["
|
|
189
|
+
resourceInputs["period"] = args ? args.period : undefined;
|
|
190
|
+
resourceInputs["runtimeType"] = args ? args.runtimeType : undefined;
|
|
191
|
+
resourceInputs["runtimeTypeVersion"] = args ? args.runtimeTypeVersion : undefined;
|
|
192
|
+
resourceInputs["scriptLanguage"] = args ? args.scriptLanguage : undefined;
|
|
127
193
|
resourceInputs["status"] = args ? args.status : undefined;
|
|
194
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
128
195
|
resourceInputs["treatRedirectAsFailure"] = args ? args.treatRedirectAsFailure : undefined;
|
|
129
196
|
resourceInputs["type"] = args ? args.type : undefined;
|
|
130
197
|
resourceInputs["uri"] = args ? args.uri : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../synthetics/monitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../synthetics/monitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAkKC;AApJG,gBAAgB;AACO,oBAAY,GAAG,qCAAqC,CAAC"}
|
|
@@ -5,6 +5,35 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
5
5
|
*
|
|
6
6
|
* > **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.
|
|
7
7
|
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
13
|
+
*
|
|
14
|
+
* const policy = new newrelic.AlertPolicy("policy", {});
|
|
15
|
+
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
16
|
+
* locationsPublics: ["US_WEST_1"],
|
|
17
|
+
* period: "EVERY_10_MINUTES",
|
|
18
|
+
* status: "DISABLED",
|
|
19
|
+
* type: "SIMPLE",
|
|
20
|
+
* uri: "https://www.one.newrelic.com",
|
|
21
|
+
* });
|
|
22
|
+
* const example = new newrelic.synthetics.MultiLocationAlertCondition("example", {
|
|
23
|
+
* policyId: policy.id,
|
|
24
|
+
* runbookUrl: "https://example.com",
|
|
25
|
+
* enabled: true,
|
|
26
|
+
* violationTimeLimitSeconds: 3600,
|
|
27
|
+
* entities: [monitor.id],
|
|
28
|
+
* critical: {
|
|
29
|
+
* threshold: 2,
|
|
30
|
+
* },
|
|
31
|
+
* warning: {
|
|
32
|
+
* threshold: 1,
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
8
37
|
* ## Import
|
|
9
38
|
*
|
|
10
39
|
* New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format
|
|
@@ -40,7 +69,7 @@ export declare class MultiLocationAlertCondition extends pulumi.CustomResource {
|
|
|
40
69
|
*/
|
|
41
70
|
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
42
71
|
/**
|
|
43
|
-
* The
|
|
72
|
+
* The Monitor GUID's of the Synthetics monitors to alert on.
|
|
44
73
|
*/
|
|
45
74
|
readonly entities: pulumi.Output<string[]>;
|
|
46
75
|
/**
|
|
@@ -85,7 +114,7 @@ export interface MultiLocationAlertConditionState {
|
|
|
85
114
|
*/
|
|
86
115
|
enabled?: pulumi.Input<boolean>;
|
|
87
116
|
/**
|
|
88
|
-
* The
|
|
117
|
+
* The Monitor GUID's of the Synthetics monitors to alert on.
|
|
89
118
|
*/
|
|
90
119
|
entities?: pulumi.Input<pulumi.Input<string>[]>;
|
|
91
120
|
/**
|
|
@@ -122,7 +151,7 @@ export interface MultiLocationAlertConditionArgs {
|
|
|
122
151
|
*/
|
|
123
152
|
enabled?: pulumi.Input<boolean>;
|
|
124
153
|
/**
|
|
125
|
-
* The
|
|
154
|
+
* The Monitor GUID's of the Synthetics monitors to alert on.
|
|
126
155
|
*/
|
|
127
156
|
entities: pulumi.Input<pulumi.Input<string>[]>;
|
|
128
157
|
/**
|
|
@@ -10,6 +10,35 @@ 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 policy = new newrelic.AlertPolicy("policy", {});
|
|
20
|
+
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
21
|
+
* locationsPublics: ["US_WEST_1"],
|
|
22
|
+
* period: "EVERY_10_MINUTES",
|
|
23
|
+
* status: "DISABLED",
|
|
24
|
+
* type: "SIMPLE",
|
|
25
|
+
* uri: "https://www.one.newrelic.com",
|
|
26
|
+
* });
|
|
27
|
+
* const example = new newrelic.synthetics.MultiLocationAlertCondition("example", {
|
|
28
|
+
* policyId: policy.id,
|
|
29
|
+
* runbookUrl: "https://example.com",
|
|
30
|
+
* enabled: true,
|
|
31
|
+
* violationTimeLimitSeconds: 3600,
|
|
32
|
+
* entities: [monitor.id],
|
|
33
|
+
* critical: {
|
|
34
|
+
* threshold: 2,
|
|
35
|
+
* },
|
|
36
|
+
* warning: {
|
|
37
|
+
* threshold: 1,
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
13
42
|
* ## Import
|
|
14
43
|
*
|
|
15
44
|
* New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiLocationAlertCondition.js","sourceRoot":"","sources":["../../synthetics/multiLocationAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"multiLocationAlertCondition.js","sourceRoot":"","sources":["../../synthetics/multiLocationAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,2BAA4B,SAAQ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S,CAAC;YAClE,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;IA1GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,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,2BAA2B,CAAC,YAAY,CAAC;IAC5E,CAAC;;AA1BL,kEA4GC;AA9FG,gBAAgB;AACO,wCAAY,GAAG,6EAA6E,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this resource to create and manage New Relic Synthetic private location.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
10
|
+
*
|
|
11
|
+
* const bar = new newrelic.synthetics.PrivateLocation("bar", {
|
|
12
|
+
* accountId: "NewRelic account ID",
|
|
13
|
+
* description: "The private location description",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* A Synthetics private location can be imported using the `guid`
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation bar GUID
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class PrivateLocation extends pulumi.CustomResource {
|
|
26
|
+
/**
|
|
27
|
+
* Get an existing PrivateLocation resource's state with the given name, ID, and optional extra
|
|
28
|
+
* properties used to qualify the lookup.
|
|
29
|
+
*
|
|
30
|
+
* @param name The _unique_ name of the resulting resource.
|
|
31
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
32
|
+
* @param state Any extra arguments used during the lookup.
|
|
33
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
34
|
+
*/
|
|
35
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PrivateLocationState, opts?: pulumi.CustomResourceOptions): PrivateLocation;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of PrivateLocation. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj: any): obj is PrivateLocation;
|
|
41
|
+
/**
|
|
42
|
+
* Account ID of the New Relic.
|
|
43
|
+
*/
|
|
44
|
+
readonly accountId: pulumi.Output<number>;
|
|
45
|
+
/**
|
|
46
|
+
* The private location description.
|
|
47
|
+
*/
|
|
48
|
+
readonly description: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The private location globally unique identifier.
|
|
51
|
+
*/
|
|
52
|
+
readonly domainId: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The unique client identifier for the Synthetics private location in New Relic.
|
|
55
|
+
*/
|
|
56
|
+
readonly guid: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The private locations key.
|
|
59
|
+
*/
|
|
60
|
+
readonly key: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* An alternate identifier based on name.
|
|
63
|
+
*/
|
|
64
|
+
readonly locationId: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The name of the private location.
|
|
67
|
+
*/
|
|
68
|
+
readonly name: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The private location requires a password to edit if value is true. Defaults to `false`
|
|
71
|
+
*/
|
|
72
|
+
readonly verifiedScriptExecution: pulumi.Output<boolean | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* Create a PrivateLocation resource with the given unique name, arguments, and options.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resource.
|
|
77
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
78
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
79
|
+
*/
|
|
80
|
+
constructor(name: string, args: PrivateLocationArgs, opts?: pulumi.CustomResourceOptions);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Input properties used for looking up and filtering PrivateLocation resources.
|
|
84
|
+
*/
|
|
85
|
+
export interface PrivateLocationState {
|
|
86
|
+
/**
|
|
87
|
+
* Account ID of the New Relic.
|
|
88
|
+
*/
|
|
89
|
+
accountId?: pulumi.Input<number>;
|
|
90
|
+
/**
|
|
91
|
+
* The private location description.
|
|
92
|
+
*/
|
|
93
|
+
description?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The private location globally unique identifier.
|
|
96
|
+
*/
|
|
97
|
+
domainId?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The unique client identifier for the Synthetics private location in New Relic.
|
|
100
|
+
*/
|
|
101
|
+
guid?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The private locations key.
|
|
104
|
+
*/
|
|
105
|
+
key?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* An alternate identifier based on name.
|
|
108
|
+
*/
|
|
109
|
+
locationId?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The name of the private location.
|
|
112
|
+
*/
|
|
113
|
+
name?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The private location requires a password to edit if value is true. Defaults to `false`
|
|
116
|
+
*/
|
|
117
|
+
verifiedScriptExecution?: pulumi.Input<boolean>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The set of arguments for constructing a PrivateLocation resource.
|
|
121
|
+
*/
|
|
122
|
+
export interface PrivateLocationArgs {
|
|
123
|
+
/**
|
|
124
|
+
* Account ID of the New Relic.
|
|
125
|
+
*/
|
|
126
|
+
accountId?: pulumi.Input<number>;
|
|
127
|
+
/**
|
|
128
|
+
* The private location description.
|
|
129
|
+
*/
|
|
130
|
+
description: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The name of the private location.
|
|
133
|
+
*/
|
|
134
|
+
name?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The private location requires a password to edit if value is true. Defaults to `false`
|
|
137
|
+
*/
|
|
138
|
+
verifiedScriptExecution?: pulumi.Input<boolean>;
|
|
139
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PrivateLocation = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this resource to create and manage New Relic Synthetic private location.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
16
|
+
*
|
|
17
|
+
* const bar = new newrelic.synthetics.PrivateLocation("bar", {
|
|
18
|
+
* accountId: "NewRelic account ID",
|
|
19
|
+
* description: "The private location description",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* A Synthetics private location can be imported using the `guid`
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation bar GUID
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class PrivateLocation extends pulumi.CustomResource {
|
|
32
|
+
constructor(name, argsOrState, opts) {
|
|
33
|
+
let resourceInputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
if (opts.id) {
|
|
36
|
+
const state = argsOrState;
|
|
37
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
38
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
39
|
+
resourceInputs["domainId"] = state ? state.domainId : undefined;
|
|
40
|
+
resourceInputs["guid"] = state ? state.guid : undefined;
|
|
41
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
42
|
+
resourceInputs["locationId"] = state ? state.locationId : undefined;
|
|
43
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
44
|
+
resourceInputs["verifiedScriptExecution"] = state ? state.verifiedScriptExecution : undefined;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
const args = argsOrState;
|
|
48
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
49
|
+
throw new Error("Missing required property 'description'");
|
|
50
|
+
}
|
|
51
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
52
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
53
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
54
|
+
resourceInputs["verifiedScriptExecution"] = args ? args.verifiedScriptExecution : undefined;
|
|
55
|
+
resourceInputs["domainId"] = undefined /*out*/;
|
|
56
|
+
resourceInputs["guid"] = undefined /*out*/;
|
|
57
|
+
resourceInputs["key"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["locationId"] = undefined /*out*/;
|
|
59
|
+
}
|
|
60
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
61
|
+
super(PrivateLocation.__pulumiType, name, resourceInputs, opts);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing PrivateLocation resource's state with the given name, ID, and optional extra
|
|
65
|
+
* properties used to qualify the lookup.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resulting resource.
|
|
68
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
+
* @param state Any extra arguments used during the lookup.
|
|
70
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
+
*/
|
|
72
|
+
static get(name, id, state, opts) {
|
|
73
|
+
return new PrivateLocation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the given object is an instance of PrivateLocation. This is designed to work even
|
|
77
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
78
|
+
*/
|
|
79
|
+
static isInstance(obj) {
|
|
80
|
+
if (obj === undefined || obj === null) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
return obj['__pulumiType'] === PrivateLocation.__pulumiType;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.PrivateLocation = PrivateLocation;
|
|
87
|
+
/** @internal */
|
|
88
|
+
PrivateLocation.__pulumiType = 'newrelic:synthetics/privateLocation:PrivateLocation';
|
|
89
|
+
//# sourceMappingURL=privateLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLocation.js","sourceRoot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