@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.
Files changed (89) 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 +236 -20
  16. package/notificationChannel.js +199 -0
  17. package/notificationChannel.js.map +1 -1
  18. package/notificationDestination.d.ts +204 -26
  19. package/notificationDestination.js +144 -2
  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 +4 -3
  25. package/package.json.bak +2 -1
  26. package/package.json.dev +4 -3
  27. package/plugins/index.d.ts +0 -3
  28. package/plugins/index.js +0 -7
  29. package/plugins/index.js.map +1 -1
  30. package/synthetics/alertCondition.d.ts +3 -19
  31. package/synthetics/alertCondition.js +0 -16
  32. package/synthetics/alertCondition.js.map +1 -1
  33. package/synthetics/brokenLinksMonitor.d.ts +198 -0
  34. package/synthetics/brokenLinksMonitor.js +131 -0
  35. package/synthetics/brokenLinksMonitor.js.map +1 -0
  36. package/synthetics/certCheckMonitor.d.ts +203 -0
  37. package/synthetics/certCheckMonitor.js +135 -0
  38. package/synthetics/certCheckMonitor.js.map +1 -0
  39. package/synthetics/getPrivateLocation.d.ts +34 -0
  40. package/synthetics/getPrivateLocation.js +25 -0
  41. package/synthetics/getPrivateLocation.js.map +1 -0
  42. package/synthetics/getSecureCredential.d.ts +0 -4
  43. package/synthetics/getSecureCredential.js.map +1 -1
  44. package/synthetics/index.d.ts +6 -3
  45. package/synthetics/index.js +26 -7
  46. package/synthetics/index.js.map +1 -1
  47. package/synthetics/monitor.d.ts +221 -77
  48. package/synthetics/monitor.js +114 -47
  49. package/synthetics/monitor.js.map +1 -1
  50. package/synthetics/multiLocationAlertCondition.d.ts +32 -3
  51. package/synthetics/multiLocationAlertCondition.js +29 -0
  52. package/synthetics/multiLocationAlertCondition.js.map +1 -1
  53. package/synthetics/privateLocation.d.ts +139 -0
  54. package/synthetics/privateLocation.js +89 -0
  55. package/synthetics/privateLocation.js.map +1 -0
  56. package/synthetics/scriptMonitor.d.ts +341 -0
  57. package/synthetics/scriptMonitor.js +224 -0
  58. package/synthetics/scriptMonitor.js.map +1 -0
  59. package/synthetics/secureCredential.d.ts +6 -6
  60. package/synthetics/secureCredential.js +2 -2
  61. package/synthetics/stepMonitor.d.ts +192 -0
  62. package/synthetics/stepMonitor.js +115 -0
  63. package/synthetics/stepMonitor.js.map +1 -0
  64. package/types/input.d.ts +217 -130
  65. package/types/output.d.ts +213 -126
  66. package/workflow.d.ts +291 -0
  67. package/workflow.js +208 -0
  68. package/workflow.js.map +1 -0
  69. package/dashboard.d.ts +0 -139
  70. package/dashboard.js +0 -73
  71. package/dashboard.js.map +0 -1
  72. package/plugins/alertCondition.d.ts +0 -167
  73. package/plugins/alertCondition.js +0 -100
  74. package/plugins/alertCondition.js.map +0 -1
  75. package/plugins/getPlugin.d.ts +0 -29
  76. package/plugins/getPlugin.js +0 -29
  77. package/plugins/getPlugin.js.map +0 -1
  78. package/plugins/getPluginComponent.d.ts +0 -33
  79. package/plugins/getPluginComponent.js +0 -30
  80. package/plugins/getPluginComponent.js.map +0 -1
  81. package/synthetics/getMonitor.d.ts +0 -54
  82. package/synthetics/getMonitor.js +0 -41
  83. package/synthetics/getMonitor.js.map +0 -1
  84. package/synthetics/getMonitorLocation.d.ts +0 -71
  85. package/synthetics/getMonitorLocation.js +0 -46
  86. package/synthetics/getMonitorLocation.js.map +0 -1
  87. package/synthetics/monitorScript.d.ts +0 -107
  88. package/synthetics/monitorScript.js +0 -93
  89. package/synthetics/monitorScript.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certCheckMonitor.js","sourceRoot":"","sources":["../../synthetics/certCheckMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAyEvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YA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,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CAkHC;AApGG,gBAAgB;AACO,6BAAY,GAAG,uDAAuD,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to get information about a specific Synthetics monitor private location in New Relic that already exists.
4
+ */
5
+ export declare function getPrivateLocation(args: GetPrivateLocationArgs, opts?: pulumi.InvokeOptions): Promise<GetPrivateLocationResult>;
6
+ /**
7
+ * A collection of arguments for invoking getPrivateLocation.
8
+ */
9
+ export interface GetPrivateLocationArgs {
10
+ /**
11
+ * The name of the Synthetics monitor private location.
12
+ */
13
+ name: string;
14
+ }
15
+ /**
16
+ * A collection of values returned by getPrivateLocation.
17
+ */
18
+ export interface GetPrivateLocationResult {
19
+ /**
20
+ * The provider-assigned unique ID for this managed resource.
21
+ */
22
+ readonly id: string;
23
+ readonly name: string;
24
+ }
25
+ export declare function getPrivateLocationOutput(args: GetPrivateLocationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrivateLocationResult>;
26
+ /**
27
+ * A collection of arguments for invoking getPrivateLocation.
28
+ */
29
+ export interface GetPrivateLocationOutputArgs {
30
+ /**
31
+ * The name of the Synthetics monitor private location.
32
+ */
33
+ name: pulumi.Input<string>;
34
+ }
@@ -0,0 +1,25 @@
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.getPrivateLocationOutput = exports.getPrivateLocation = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to get information about a specific Synthetics monitor private location in New Relic that already exists.
10
+ */
11
+ function getPrivateLocation(args, opts) {
12
+ if (!opts) {
13
+ opts = {};
14
+ }
15
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
16
+ return pulumi.runtime.invoke("newrelic:synthetics/getPrivateLocation:getPrivateLocation", {
17
+ "name": args.name,
18
+ }, opts);
19
+ }
20
+ exports.getPrivateLocation = getPrivateLocation;
21
+ function getPrivateLocationOutput(args, opts) {
22
+ return pulumi.output(args).apply(a => getPrivateLocation(a, opts));
23
+ }
24
+ exports.getPrivateLocationOutput = getPrivateLocationOutput;
25
+ //# sourceMappingURL=getPrivateLocation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrivateLocation.js","sourceRoot":"","sources":["../../synthetics/getPrivateLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gDASC;AAuBD,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,4DAEC"}
@@ -29,10 +29,6 @@ export interface GetSecureCredentialArgs {
29
29
  * A collection of values returned by getSecureCredential.
30
30
  */
31
31
  export interface GetSecureCredentialResult {
32
- /**
33
- * The time the secure credential was created.
34
- */
35
- readonly createdAt: string;
36
32
  /**
37
33
  * The secure credential's description.
38
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getSecureCredential.js","sourceRoot":"","sources":["../../synthetics/getSecureCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE;QACxF,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;AAmCD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
1
+ {"version":3,"file":"getSecureCredential.js","sourceRoot":"","sources":["../../synthetics/getSecureCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE;QACxF,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;AA+BD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
@@ -1,8 +1,11 @@
1
1
  export * from "./alertCondition";
2
- export * from "./getMonitor";
3
- export * from "./getMonitorLocation";
2
+ export * from "./brokenLinksMonitor";
3
+ export * from "./certCheckMonitor";
4
+ export * from "./getPrivateLocation";
4
5
  export * from "./getSecureCredential";
5
6
  export * from "./monitor";
6
- export * from "./monitorScript";
7
7
  export * from "./multiLocationAlertCondition";
8
+ export * from "./privateLocation";
9
+ export * from "./scriptMonitor";
8
10
  export * from "./secureCredential";
11
+ export * from "./stepMonitor";
@@ -20,41 +20,60 @@ const pulumi = require("@pulumi/pulumi");
20
20
  const utilities = require("../utilities");
21
21
  // Export members:
22
22
  __exportStar(require("./alertCondition"), exports);
23
- __exportStar(require("./getMonitor"), exports);
24
- __exportStar(require("./getMonitorLocation"), exports);
23
+ __exportStar(require("./brokenLinksMonitor"), exports);
24
+ __exportStar(require("./certCheckMonitor"), exports);
25
+ __exportStar(require("./getPrivateLocation"), exports);
25
26
  __exportStar(require("./getSecureCredential"), exports);
26
27
  __exportStar(require("./monitor"), exports);
27
- __exportStar(require("./monitorScript"), exports);
28
28
  __exportStar(require("./multiLocationAlertCondition"), exports);
29
+ __exportStar(require("./privateLocation"), exports);
30
+ __exportStar(require("./scriptMonitor"), exports);
29
31
  __exportStar(require("./secureCredential"), exports);
32
+ __exportStar(require("./stepMonitor"), exports);
30
33
  // Import resources to register:
31
34
  const alertCondition_1 = require("./alertCondition");
35
+ const brokenLinksMonitor_1 = require("./brokenLinksMonitor");
36
+ const certCheckMonitor_1 = require("./certCheckMonitor");
32
37
  const monitor_1 = require("./monitor");
33
- const monitorScript_1 = require("./monitorScript");
34
38
  const multiLocationAlertCondition_1 = require("./multiLocationAlertCondition");
39
+ const privateLocation_1 = require("./privateLocation");
40
+ const scriptMonitor_1 = require("./scriptMonitor");
35
41
  const secureCredential_1 = require("./secureCredential");
42
+ const stepMonitor_1 = require("./stepMonitor");
36
43
  const _module = {
37
44
  version: utilities.getVersion(),
38
45
  construct: (name, type, urn) => {
39
46
  switch (type) {
40
47
  case "newrelic:synthetics/alertCondition:AlertCondition":
41
48
  return new alertCondition_1.AlertCondition(name, undefined, { urn });
49
+ case "newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor":
50
+ return new brokenLinksMonitor_1.BrokenLinksMonitor(name, undefined, { urn });
51
+ case "newrelic:synthetics/certCheckMonitor:CertCheckMonitor":
52
+ return new certCheckMonitor_1.CertCheckMonitor(name, undefined, { urn });
42
53
  case "newrelic:synthetics/monitor:Monitor":
43
54
  return new monitor_1.Monitor(name, undefined, { urn });
44
- case "newrelic:synthetics/monitorScript:MonitorScript":
45
- return new monitorScript_1.MonitorScript(name, undefined, { urn });
46
55
  case "newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition":
47
56
  return new multiLocationAlertCondition_1.MultiLocationAlertCondition(name, undefined, { urn });
57
+ case "newrelic:synthetics/privateLocation:PrivateLocation":
58
+ return new privateLocation_1.PrivateLocation(name, undefined, { urn });
59
+ case "newrelic:synthetics/scriptMonitor:ScriptMonitor":
60
+ return new scriptMonitor_1.ScriptMonitor(name, undefined, { urn });
48
61
  case "newrelic:synthetics/secureCredential:SecureCredential":
49
62
  return new secureCredential_1.SecureCredential(name, undefined, { urn });
63
+ case "newrelic:synthetics/stepMonitor:StepMonitor":
64
+ return new stepMonitor_1.StepMonitor(name, undefined, { urn });
50
65
  default:
51
66
  throw new Error(`unknown resource type ${type}`);
52
67
  }
53
68
  },
54
69
  };
55
70
  pulumi.runtime.registerResourceModule("newrelic", "synthetics/alertCondition", _module);
71
+ pulumi.runtime.registerResourceModule("newrelic", "synthetics/brokenLinksMonitor", _module);
72
+ pulumi.runtime.registerResourceModule("newrelic", "synthetics/certCheckMonitor", _module);
56
73
  pulumi.runtime.registerResourceModule("newrelic", "synthetics/monitor", _module);
57
- pulumi.runtime.registerResourceModule("newrelic", "synthetics/monitorScript", _module);
58
74
  pulumi.runtime.registerResourceModule("newrelic", "synthetics/multiLocationAlertCondition", _module);
75
+ pulumi.runtime.registerResourceModule("newrelic", "synthetics/privateLocation", _module);
76
+ pulumi.runtime.registerResourceModule("newrelic", "synthetics/scriptMonitor", _module);
59
77
  pulumi.runtime.registerResourceModule("newrelic", "synthetics/secureCredential", _module);
78
+ pulumi.runtime.registerResourceModule("newrelic", "synthetics/stepMonitor", _module);
60
79
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../synthetics/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,wDAAsC;AACtC,4CAA0B;AAC1B,kDAAgC;AAChC,gEAA8C;AAC9C,qDAAmC;AAEnC,gCAAgC;AAChC,qDAAkD;AAClD,uCAAoC;AACpC,mDAAgD;AAChD,+EAA4E;AAC5E,yDAAsD;AAEtD,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,E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 import { input as inputs, output as outputs } from "../types";
2
3
  /**
3
- * Use this resource to create, update, and delete a synthetics monitor in New Relic.
4
+ * Use this resource to create, update, and delete a Simple or Browser Synthetics Monitor in New Relic.
4
5
  *
5
6
  * ## Example Usage
6
7
  *
7
- * ##### Type: `SIMPLE`
8
8
  * ```typescript
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as newrelic from "@pulumi/newrelic";
11
11
  *
12
- * const foo = new newrelic.synthetics.Monitor("foo", {
13
- * frequency: 5,
14
- * locations: [
15
- * "AWS_US_EAST_1",
16
- * "AWS_US_EAST_2",
17
- * ],
12
+ * const monitor = new newrelic.synthetics.Monitor("monitor", {
13
+ * bypassHeadRequest: true,
14
+ * customHeaders: [{
15
+ * name: "Name",
16
+ * value: "simpleMonitor",
17
+ * }],
18
+ * locationsPublics: ["AP_SOUTH_1"],
19
+ * period: "EVERY_MINUTE",
18
20
  * status: "ENABLED",
21
+ * tags: [{
22
+ * key: "some_key",
23
+ * values: ["some_value"],
24
+ * }],
25
+ * treatRedirectAsFailure: true,
19
26
  * type: "SIMPLE",
20
- * uri: "https://example.com", // Required for type "SIMPLE" and "BROWSER"
21
- * validationString: "add example validation check here", // Optional for type "SIMPLE" and "BROWSER"
22
- * verifySsl: true, // Optional for type "SIMPLE" and "BROWSER"
27
+ * uri: "https://www.one.newrelic.com",
28
+ * validationString: "success",
29
+ * verifySsl: true,
23
30
  * });
24
31
  * ```
32
+ * ##### Type: `SIMPLE BROWSER`
25
33
  *
26
- * ##### Type: `BROWSER`
27
- * ## Additional Examples
28
- *
29
- * Type: `BROWSER`
34
+ * > **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.
30
35
  *
31
36
  * ```typescript
32
37
  * import * as pulumi from "@pulumi/pulumi";
33
38
  * import * as newrelic from "@pulumi/newrelic";
34
39
  *
35
- * const foo = new newrelic.synthetics.Monitor("foo", {
36
- * bypassHeadRequest: true, // Note: optional for type "BROWSER" only
37
- * frequency: 5,
38
- * locations: ["AWS_US_EAST_1"],
40
+ * const bar = new newrelic.synthetics.Monitor("bar", {
41
+ * customHeaders: [{
42
+ * name: "name",
43
+ * value: "simple_browser",
44
+ * }],
45
+ * enableScreenshotOnFailureAndScript: true,
46
+ * locationsPublics: ["AP_SOUTH_1"],
47
+ * period: "EVERY_MINUTE",
48
+ * runtimeType: "CHROME_BROWSER",
49
+ * runtimeTypeVersion: "100",
50
+ * scriptLanguage: "JAVASCRIPT",
39
51
  * status: "ENABLED",
40
- * treatRedirectAsFailure: true, // Note: optional for type "BROWSER" only
52
+ * tags: [{
53
+ * key: "name",
54
+ * values: ["SimpleBrowserMonitor"],
55
+ * }],
41
56
  * type: "BROWSER",
42
- * uri: "https://example.com", // required for type "SIMPLE" and "BROWSER"
43
- * validationString: "add example validation check here", // optional for type "SIMPLE" and "BROWSER"
44
- * verifySsl: true, // optional for type "SIMPLE" and "BROWSER"
57
+ * uri: "https://www.one.newrelic.com",
58
+ * validationString: "success",
59
+ * verifySsl: true,
45
60
  * });
46
61
  * ```
62
+ * See additional examples.
63
+ * ## Additional Examples
64
+ *
65
+ * ### Create a monitor with a private location
66
+ *
67
+ * The below example shows how you can define a private location and attach it to a monitor.
47
68
  *
48
- * ##### Type: `SCRIPT_BROWSER`
69
+ * > **NOTE:** It can take up to 10 minutes for a private location to become available.
70
+ *
71
+ * ##### Type: `SIMPLE`
49
72
  *
50
73
  * ```typescript
51
74
  * import * as pulumi from "@pulumi/pulumi";
52
75
  * import * as newrelic from "@pulumi/newrelic";
53
76
  *
54
- * const foo = new newrelic.synthetics.Monitor("foo", {
55
- * frequency: 5,
56
- * locations: ["AWS_US_EAST_1"],
77
+ * const privateLocation = new newrelic.synthetics.PrivateLocation("private_location", {
78
+ * description: "Test Description",
79
+ * verifiedScriptExecution: false,
80
+ * });
81
+ * const monitor = new newrelic.synthetics.Monitor("monitor", {
82
+ * bypassHeadRequest: true,
83
+ * customHeaders: [{
84
+ * name: "name",
85
+ * value: "simple_browser",
86
+ * }],
87
+ * locationPrivate: ["newrelic_synthetics_private_location.private_location.id"],
88
+ * period: "EVERY_MINUTE",
57
89
  * status: "ENABLED",
58
- * type: "SCRIPT_BROWSER",
90
+ * tags: [{
91
+ * key: "some_key",
92
+ * values: ["some_value"],
93
+ * }],
94
+ * treatRedirectAsFailure: true,
95
+ * type: "SIMPLE",
96
+ * uri: "https://www.one.newrelic.com",
97
+ * validationString: "success",
98
+ * verifySsl: true,
59
99
  * });
60
100
  * ```
101
+ * ##### Type: `BROWSER`
61
102
  *
62
- * ##### Type: `SCRIPT_API`
103
+ * > **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.
63
104
  *
64
105
  * ```typescript
65
106
  * import * as pulumi from "@pulumi/pulumi";
66
107
  * import * as newrelic from "@pulumi/newrelic";
67
108
  *
68
- * const foo = new newrelic.synthetics.Monitor("foo", {
69
- * frequency: 5,
70
- * locations: ["AWS_US_EAST_1"],
109
+ * const privateLocation = new newrelic.synthetics.PrivateLocation("private_location", {
110
+ * description: "Test Description",
111
+ * verifiedScriptExecution: false,
112
+ * });
113
+ * const monitor = new newrelic.synthetics.Monitor("monitor", {
114
+ * customHeaders: [{
115
+ * name: "name",
116
+ * value: "simple_browser",
117
+ * }],
118
+ * enableScreenshotOnFailureAndScript: true,
119
+ * locationPrivate: ["newrelic_synthetics_private_location.bar1"],
120
+ * period: "EVERY_MINUTE",
121
+ * runtimeType: "",
122
+ * runtimeTypeVersion: "",
123
+ * scriptLanguage: "",
71
124
  * status: "ENABLED",
72
- * type: "SCRIPT_API",
125
+ * tags: [{
126
+ * key: "some_key",
127
+ * values: ["some_value"],
128
+ * }],
129
+ * type: "BROWSER",
130
+ * uri: "https://www.one.newrelic.com",
131
+ * validationString: "success",
132
+ * verifySsl: true,
73
133
  * });
74
134
  * ```
75
135
  *
76
136
  * ## Import
77
137
  *
78
- * Synthetics monitors can be imported using the `id`, e.g. bash
138
+ * Synthetics monitor can be imported using the `guid`, e.g. bash
79
139
  *
80
140
  * ```sh
81
- * $ pulumi import newrelic:synthetics/monitor:Monitor main <id>
141
+ * $ pulumi import newrelic:synthetics/monitor:Monitor bar <guid>
82
142
  * ```
83
143
  */
84
144
  export declare class Monitor extends pulumi.CustomResource {
@@ -98,47 +158,75 @@ export declare class Monitor extends pulumi.CustomResource {
98
158
  */
99
159
  static isInstance(obj: any): obj is Monitor;
100
160
  /**
101
- * Bypass HEAD request.
161
+ * The account in which the Synthetics monitor will be created.
162
+ */
163
+ readonly accountId: pulumi.Output<number>;
164
+ /**
165
+ * Monitor should skip default HEAD request and instead use GET verb in check.
102
166
  */
103
167
  readonly bypassHeadRequest: pulumi.Output<boolean | undefined>;
104
168
  /**
105
- * The interval (in minutes) at which this monitor should run.
169
+ * Custom headers to use in monitor job. See Nested customerHeader blocks below for details.
170
+ */
171
+ readonly customHeaders: pulumi.Output<outputs.synthetics.MonitorCustomHeader[] | undefined>;
172
+ /**
173
+ * Capture a screenshot during job execution.
106
174
  */
107
- readonly frequency: pulumi.Output<number>;
175
+ readonly enableScreenshotOnFailureAndScript: pulumi.Output<boolean | undefined>;
108
176
  /**
109
- * The locations in which this monitor should be run.
177
+ * The location the monitor will run from. At least one of either `locationsPublic` or `locationPrivate` is required.
110
178
  */
111
- readonly locations: pulumi.Output<string[]>;
179
+ readonly locationsPrivates: pulumi.Output<string[] | undefined>;
112
180
  /**
113
- * The title of this monitor.
181
+ * The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either `locationsPublic` or `locationPrivate` is required.
182
+ */
183
+ readonly locationsPublics: pulumi.Output<string[] | undefined>;
184
+ /**
185
+ * The human-readable identifier for the monitor.
114
186
  */
115
187
  readonly name: pulumi.Output<string>;
116
188
  /**
117
- * The base threshold for the SLA report.
189
+ * The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
190
+ */
191
+ readonly period: pulumi.Output<string>;
192
+ /**
193
+ * The runtime type that the monitor will run.
194
+ */
195
+ readonly runtimeType: pulumi.Output<string | undefined>;
196
+ /**
197
+ * The runtime type that the monitor will run.
118
198
  */
119
- readonly slaThreshold: pulumi.Output<number | undefined>;
199
+ readonly runtimeTypeVersion: pulumi.Output<string | undefined>;
120
200
  /**
121
- * The monitor status (i.e. `ENABLED`, `MUTED`, `DISABLED`).
201
+ * The programing language that should execute the script.
202
+ */
203
+ readonly scriptLanguage: pulumi.Output<string | undefined>;
204
+ /**
205
+ * The run state of the monitor.
122
206
  */
123
207
  readonly status: pulumi.Output<string>;
124
208
  /**
125
- * Fail the monitor check if redirected.
209
+ * The tags that will be associated with the monitor. See Nested tag blocks below for details.
210
+ */
211
+ readonly tags: pulumi.Output<outputs.synthetics.MonitorTag[] | undefined>;
212
+ /**
213
+ * Categorize redirects during a monitor job as a failure.
126
214
  */
127
215
  readonly treatRedirectAsFailure: pulumi.Output<boolean | undefined>;
128
216
  /**
129
- * The monitor type. Valid values are `SIMPLE`, `BROWSER`, `SCRIPT_BROWSER`, and `SCRIPT_API`.
217
+ * THE monitor type. Valid values are `SIMPLE` and `BROWSER`.
130
218
  */
131
219
  readonly type: pulumi.Output<string>;
132
220
  /**
133
- * The URI for the monitor to hit.
221
+ * The uri the monitor runs against.
134
222
  */
135
223
  readonly uri: pulumi.Output<string | undefined>;
136
224
  /**
137
- * The string to validate against in the response.
225
+ * Validation text for monitor to search for at given URI.
138
226
  */
139
227
  readonly validationString: pulumi.Output<string | undefined>;
140
228
  /**
141
- * Verify SSL.
229
+ * Monitor should validate SSL certificate chain.
142
230
  */
143
231
  readonly verifySsl: pulumi.Output<boolean | undefined>;
144
232
  /**
@@ -155,47 +243,75 @@ export declare class Monitor extends pulumi.CustomResource {
155
243
  */
156
244
  export interface MonitorState {
157
245
  /**
158
- * Bypass HEAD request.
246
+ * The account in which the Synthetics monitor will be created.
247
+ */
248
+ accountId?: pulumi.Input<number>;
249
+ /**
250
+ * Monitor should skip default HEAD request and instead use GET verb in check.
159
251
  */
160
252
  bypassHeadRequest?: pulumi.Input<boolean>;
161
253
  /**
162
- * The interval (in minutes) at which this monitor should run.
254
+ * Custom headers to use in monitor job. See Nested customerHeader blocks below for details.
255
+ */
256
+ customHeaders?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorCustomHeader>[]>;
257
+ /**
258
+ * Capture a screenshot during job execution.
163
259
  */
164
- frequency?: pulumi.Input<number>;
260
+ enableScreenshotOnFailureAndScript?: pulumi.Input<boolean>;
165
261
  /**
166
- * The locations in which this monitor should be run.
262
+ * The location the monitor will run from. At least one of either `locationsPublic` or `locationPrivate` is required.
167
263
  */
168
- locations?: pulumi.Input<pulumi.Input<string>[]>;
264
+ locationsPrivates?: pulumi.Input<pulumi.Input<string>[]>;
169
265
  /**
170
- * The title of this monitor.
266
+ * The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either `locationsPublic` or `locationPrivate` is required.
267
+ */
268
+ locationsPublics?: pulumi.Input<pulumi.Input<string>[]>;
269
+ /**
270
+ * The human-readable identifier for the monitor.
171
271
  */
172
272
  name?: pulumi.Input<string>;
173
273
  /**
174
- * The base threshold for the SLA report.
274
+ * The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
275
+ */
276
+ period?: pulumi.Input<string>;
277
+ /**
278
+ * The runtime type that the monitor will run.
279
+ */
280
+ runtimeType?: pulumi.Input<string>;
281
+ /**
282
+ * The runtime type that the monitor will run.
175
283
  */
176
- slaThreshold?: pulumi.Input<number>;
284
+ runtimeTypeVersion?: pulumi.Input<string>;
177
285
  /**
178
- * The monitor status (i.e. `ENABLED`, `MUTED`, `DISABLED`).
286
+ * The programing language that should execute the script.
287
+ */
288
+ scriptLanguage?: pulumi.Input<string>;
289
+ /**
290
+ * The run state of the monitor.
179
291
  */
180
292
  status?: pulumi.Input<string>;
181
293
  /**
182
- * Fail the monitor check if redirected.
294
+ * The tags that will be associated with the monitor. See Nested tag blocks below for details.
295
+ */
296
+ tags?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorTag>[]>;
297
+ /**
298
+ * Categorize redirects during a monitor job as a failure.
183
299
  */
184
300
  treatRedirectAsFailure?: pulumi.Input<boolean>;
185
301
  /**
186
- * The monitor type. Valid values are `SIMPLE`, `BROWSER`, `SCRIPT_BROWSER`, and `SCRIPT_API`.
302
+ * THE monitor type. Valid values are `SIMPLE` and `BROWSER`.
187
303
  */
188
304
  type?: pulumi.Input<string>;
189
305
  /**
190
- * The URI for the monitor to hit.
306
+ * The uri the monitor runs against.
191
307
  */
192
308
  uri?: pulumi.Input<string>;
193
309
  /**
194
- * The string to validate against in the response.
310
+ * Validation text for monitor to search for at given URI.
195
311
  */
196
312
  validationString?: pulumi.Input<string>;
197
313
  /**
198
- * Verify SSL.
314
+ * Monitor should validate SSL certificate chain.
199
315
  */
200
316
  verifySsl?: pulumi.Input<boolean>;
201
317
  }
@@ -204,47 +320,75 @@ export interface MonitorState {
204
320
  */
205
321
  export interface MonitorArgs {
206
322
  /**
207
- * Bypass HEAD request.
323
+ * The account in which the Synthetics monitor will be created.
324
+ */
325
+ accountId?: pulumi.Input<number>;
326
+ /**
327
+ * Monitor should skip default HEAD request and instead use GET verb in check.
208
328
  */
209
329
  bypassHeadRequest?: pulumi.Input<boolean>;
210
330
  /**
211
- * The interval (in minutes) at which this monitor should run.
331
+ * Custom headers to use in monitor job. See Nested customerHeader blocks below for details.
332
+ */
333
+ customHeaders?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorCustomHeader>[]>;
334
+ /**
335
+ * Capture a screenshot during job execution.
212
336
  */
213
- frequency: pulumi.Input<number>;
337
+ enableScreenshotOnFailureAndScript?: pulumi.Input<boolean>;
214
338
  /**
215
- * The locations in which this monitor should be run.
339
+ * The location the monitor will run from. At least one of either `locationsPublic` or `locationPrivate` is required.
216
340
  */
217
- locations: pulumi.Input<pulumi.Input<string>[]>;
341
+ locationsPrivates?: pulumi.Input<pulumi.Input<string>[]>;
218
342
  /**
219
- * The title of this monitor.
343
+ * The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either `locationsPublic` or `locationPrivate` is required.
344
+ */
345
+ locationsPublics?: pulumi.Input<pulumi.Input<string>[]>;
346
+ /**
347
+ * The human-readable identifier for the monitor.
220
348
  */
221
349
  name?: pulumi.Input<string>;
222
350
  /**
223
- * The base threshold for the SLA report.
351
+ * The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
352
+ */
353
+ period?: pulumi.Input<string>;
354
+ /**
355
+ * The runtime type that the monitor will run.
356
+ */
357
+ runtimeType?: pulumi.Input<string>;
358
+ /**
359
+ * The runtime type that the monitor will run.
224
360
  */
225
- slaThreshold?: pulumi.Input<number>;
361
+ runtimeTypeVersion?: pulumi.Input<string>;
226
362
  /**
227
- * The monitor status (i.e. `ENABLED`, `MUTED`, `DISABLED`).
363
+ * The programing language that should execute the script.
364
+ */
365
+ scriptLanguage?: pulumi.Input<string>;
366
+ /**
367
+ * The run state of the monitor.
228
368
  */
229
369
  status: pulumi.Input<string>;
230
370
  /**
231
- * Fail the monitor check if redirected.
371
+ * The tags that will be associated with the monitor. See Nested tag blocks below for details.
372
+ */
373
+ tags?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorTag>[]>;
374
+ /**
375
+ * Categorize redirects during a monitor job as a failure.
232
376
  */
233
377
  treatRedirectAsFailure?: pulumi.Input<boolean>;
234
378
  /**
235
- * The monitor type. Valid values are `SIMPLE`, `BROWSER`, `SCRIPT_BROWSER`, and `SCRIPT_API`.
379
+ * THE monitor type. Valid values are `SIMPLE` and `BROWSER`.
236
380
  */
237
381
  type: pulumi.Input<string>;
238
382
  /**
239
- * The URI for the monitor to hit.
383
+ * The uri the monitor runs against.
240
384
  */
241
385
  uri?: pulumi.Input<string>;
242
386
  /**
243
- * The string to validate against in the response.
387
+ * Validation text for monitor to search for at given URI.
244
388
  */
245
389
  validationString?: pulumi.Input<string>;
246
390
  /**
247
- * Verify SSL.
391
+ * Monitor should validate SSL certificate chain.
248
392
  */
249
393
  verifySsl?: pulumi.Input<boolean>;
250
394
  }