@pulumi/newrelic 4.3.0 → 4.5.0

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/dashboard.d.ts CHANGED
@@ -1,15 +1,11 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * ## Import
4
+ * New Relic legacy Dashboards reached end of life Wednesday July 28, 2021.
5
5
  *
6
- * New Relic dashboards can be imported using their ID, e.g.
6
+ * **This resource has been removed.**
7
7
  *
8
- * ```sh
9
- * $ pulumi import newrelic:index/dashboard:Dashboard my_dashboard 8675309
10
- * ```
11
- *
12
- * ~> **NOTE** Due to API restrictions, importing a dashboard resource will set the `grid_column_count` attribute to `3`. If your dashboard is a New Relic One dashboard _and_ uses a 12 column grid, you will need to make sure `grid_column_count` is set to `12` in your configuration, then run `terraform apply` after importing to sync remote state with Terraform state. Also note, cross-account widgets cannot be imported due to API restrictions.
8
+ * For more information, [click here](https://discuss.newrelic.com/t/important-insights-dashboard-api-end-of-life/149357)
13
9
  */
14
10
  export declare class Dashboard extends pulumi.CustomResource {
15
11
  /**
@@ -32,19 +28,20 @@ export declare class Dashboard extends pulumi.CustomResource {
32
28
  */
33
29
  readonly dashboardUrl: pulumi.Output<string>;
34
30
  /**
35
- * Determines who can edit the dashboard in an account. Valid values are `all`, `editableByAll`, `editableByOwner`, or `readOnly`. Defaults to `editableByAll`.
31
+ * Determines who can edit the dashboard in an account. Valid values are all, editable_by_all, editable_by_owner, or
32
+ * read_only. Defaults to editable_by_all.
36
33
  */
37
34
  readonly editable: pulumi.Output<string | undefined>;
38
35
  /**
39
- * A nested block that describes a dashboard filter. Exactly one nested `filter` block is allowed. See Nested filter block below for details.
36
+ * A nested block that describes a dashboard filter. Exactly one nested filter block is allowed.
40
37
  */
41
38
  readonly filter: pulumi.Output<outputs.DashboardFilter | undefined>;
42
39
  /**
43
- * The number of columns to use when organizing and displaying widgets. New Relic One supports a 3 column grid and a 12 column grid. New Relic Insights supports a 3 column grid.
40
+ * New Relic One supports a 3 column grid or a 12 column grid. New Relic Insights supports a 3 column grid.
44
41
  */
45
42
  readonly gridColumnCount: pulumi.Output<number | undefined>;
46
43
  /**
47
- * The icon for the dashboard. Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`. Defaults to `bar-chart`.
44
+ * The icon for the dashboard.
48
45
  */
49
46
  readonly icon: pulumi.Output<string | undefined>;
50
47
  /**
@@ -52,11 +49,11 @@ export declare class Dashboard extends pulumi.CustomResource {
52
49
  */
53
50
  readonly title: pulumi.Output<string>;
54
51
  /**
55
- * Determines who can see the dashboard in an account. Valid values are `all` or `owner`. Defaults to `all`.
52
+ * Determines who can see the dashboard in an account. Valid values are all or owner. Defaults to all.
56
53
  */
57
54
  readonly visibility: pulumi.Output<string | undefined>;
58
55
  /**
59
- * A nested block that describes a visualization. Up to 300 `widget` blocks are allowed in a dashboard definition. See Nested widget blocks below for details.
56
+ * A nested block that describes a visualization. Up to 300 widget blocks are allowed in a dashboard definition.
60
57
  */
61
58
  readonly widgets: pulumi.Output<outputs.DashboardWidget[] | undefined>;
62
59
  /**
@@ -77,19 +74,20 @@ export interface DashboardState {
77
74
  */
78
75
  readonly dashboardUrl?: pulumi.Input<string>;
79
76
  /**
80
- * Determines who can edit the dashboard in an account. Valid values are `all`, `editableByAll`, `editableByOwner`, or `readOnly`. Defaults to `editableByAll`.
77
+ * Determines who can edit the dashboard in an account. Valid values are all, editable_by_all, editable_by_owner, or
78
+ * read_only. Defaults to editable_by_all.
81
79
  */
82
80
  readonly editable?: pulumi.Input<string>;
83
81
  /**
84
- * A nested block that describes a dashboard filter. Exactly one nested `filter` block is allowed. See Nested filter block below for details.
82
+ * A nested block that describes a dashboard filter. Exactly one nested filter block is allowed.
85
83
  */
86
84
  readonly filter?: pulumi.Input<inputs.DashboardFilter>;
87
85
  /**
88
- * The number of columns to use when organizing and displaying widgets. New Relic One supports a 3 column grid and a 12 column grid. New Relic Insights supports a 3 column grid.
86
+ * New Relic One supports a 3 column grid or a 12 column grid. New Relic Insights supports a 3 column grid.
89
87
  */
90
88
  readonly gridColumnCount?: pulumi.Input<number>;
91
89
  /**
92
- * The icon for the dashboard. Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`. Defaults to `bar-chart`.
90
+ * The icon for the dashboard.
93
91
  */
94
92
  readonly icon?: pulumi.Input<string>;
95
93
  /**
@@ -97,11 +95,11 @@ export interface DashboardState {
97
95
  */
98
96
  readonly title?: pulumi.Input<string>;
99
97
  /**
100
- * Determines who can see the dashboard in an account. Valid values are `all` or `owner`. Defaults to `all`.
98
+ * Determines who can see the dashboard in an account. Valid values are all or owner. Defaults to all.
101
99
  */
102
100
  readonly visibility?: pulumi.Input<string>;
103
101
  /**
104
- * A nested block that describes a visualization. Up to 300 `widget` blocks are allowed in a dashboard definition. See Nested widget blocks below for details.
102
+ * A nested block that describes a visualization. Up to 300 widget blocks are allowed in a dashboard definition.
105
103
  */
106
104
  readonly widgets?: pulumi.Input<pulumi.Input<inputs.DashboardWidget>[]>;
107
105
  }
@@ -110,19 +108,20 @@ export interface DashboardState {
110
108
  */
111
109
  export interface DashboardArgs {
112
110
  /**
113
- * Determines who can edit the dashboard in an account. Valid values are `all`, `editableByAll`, `editableByOwner`, or `readOnly`. Defaults to `editableByAll`.
111
+ * Determines who can edit the dashboard in an account. Valid values are all, editable_by_all, editable_by_owner, or
112
+ * read_only. Defaults to editable_by_all.
114
113
  */
115
114
  readonly editable?: pulumi.Input<string>;
116
115
  /**
117
- * A nested block that describes a dashboard filter. Exactly one nested `filter` block is allowed. See Nested filter block below for details.
116
+ * A nested block that describes a dashboard filter. Exactly one nested filter block is allowed.
118
117
  */
119
118
  readonly filter?: pulumi.Input<inputs.DashboardFilter>;
120
119
  /**
121
- * The number of columns to use when organizing and displaying widgets. New Relic One supports a 3 column grid and a 12 column grid. New Relic Insights supports a 3 column grid.
120
+ * New Relic One supports a 3 column grid or a 12 column grid. New Relic Insights supports a 3 column grid.
122
121
  */
123
122
  readonly gridColumnCount?: pulumi.Input<number>;
124
123
  /**
125
- * The icon for the dashboard. Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`. Defaults to `bar-chart`.
124
+ * The icon for the dashboard.
126
125
  */
127
126
  readonly icon?: pulumi.Input<string>;
128
127
  /**
@@ -130,11 +129,11 @@ export interface DashboardArgs {
130
129
  */
131
130
  readonly title: pulumi.Input<string>;
132
131
  /**
133
- * Determines who can see the dashboard in an account. Valid values are `all` or `owner`. Defaults to `all`.
132
+ * Determines who can see the dashboard in an account. Valid values are all or owner. Defaults to all.
134
133
  */
135
134
  readonly visibility?: pulumi.Input<string>;
136
135
  /**
137
- * A nested block that describes a visualization. Up to 300 `widget` blocks are allowed in a dashboard definition. See Nested widget blocks below for details.
136
+ * A nested block that describes a visualization. Up to 300 widget blocks are allowed in a dashboard definition.
138
137
  */
139
138
  readonly widgets?: pulumi.Input<pulumi.Input<inputs.DashboardWidget>[]>;
140
139
  }
package/dashboard.js CHANGED
@@ -5,15 +5,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const pulumi = require("@pulumi/pulumi");
6
6
  const utilities = require("./utilities");
7
7
  /**
8
- * ## Import
8
+ * New Relic legacy Dashboards reached end of life Wednesday July 28, 2021.
9
9
  *
10
- * New Relic dashboards can be imported using their ID, e.g.
10
+ * **This resource has been removed.**
11
11
  *
12
- * ```sh
13
- * $ pulumi import newrelic:index/dashboard:Dashboard my_dashboard 8675309
14
- * ```
15
- *
16
- * ~> **NOTE** Due to API restrictions, importing a dashboard resource will set the `grid_column_count` attribute to `3`. If your dashboard is a New Relic One dashboard _and_ uses a 12 column grid, you will need to make sure `grid_column_count` is set to `12` in your configuration, then run `terraform apply` after importing to sync remote state with Terraform state. Also note, cross-account widgets cannot be imported due to API restrictions.
12
+ * For more information, [click here](https://discuss.newrelic.com/t/important-insights-dashboard-api-end-of-life/149357)
17
13
  */
18
14
  class Dashboard extends pulumi.CustomResource {
19
15
  constructor(name, argsOrState, opts) {
package/dashboard.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../dashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAqEhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAA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AC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IApGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAsGC;AAxFG,gBAAgB;AACO,sBAAY,GAAG,oCAAoC,CAAC"}
package/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export * from "./nrqlDropRule";
19
19
  export * from "./oneDashboard";
20
20
  export * from "./oneDashboardRaw";
21
21
  export * from "./provider";
22
+ export * from "./serviceLevel";
22
23
  import * as config from "./config";
23
24
  import * as insights from "./insights";
24
25
  import * as plugins from "./plugins";
package/index.js CHANGED
@@ -29,6 +29,7 @@ __export(require("./nrqlDropRule"));
29
29
  __export(require("./oneDashboard"));
30
30
  __export(require("./oneDashboardRaw"));
31
31
  __export(require("./provider"));
32
+ __export(require("./serviceLevel"));
32
33
  // Export sub-modules:
33
34
  const config = require("./config");
34
35
  exports.config = config;
@@ -55,6 +56,7 @@ const nrqlAlertCondition_1 = require("./nrqlAlertCondition");
55
56
  const nrqlDropRule_1 = require("./nrqlDropRule");
56
57
  const oneDashboard_1 = require("./oneDashboard");
57
58
  const oneDashboardRaw_1 = require("./oneDashboardRaw");
59
+ const serviceLevel_1 = require("./serviceLevel");
58
60
  const _module = {
59
61
  version: utilities.getVersion(),
60
62
  construct: (name, type, urn) => {
@@ -87,6 +89,8 @@ const _module = {
87
89
  return new oneDashboard_1.OneDashboard(name, undefined, { urn });
88
90
  case "newrelic:index/oneDashboardRaw:OneDashboardRaw":
89
91
  return new oneDashboardRaw_1.OneDashboardRaw(name, undefined, { urn });
92
+ case "newrelic:index/serviceLevel:ServiceLevel":
93
+ return new serviceLevel_1.ServiceLevel(name, undefined, { urn });
90
94
  default:
91
95
  throw new Error(`unknown resource type ${type}`);
92
96
  }
@@ -106,6 +110,7 @@ pulumi.runtime.registerResourceModule("newrelic", "index/nrqlAlertCondition", _m
106
110
  pulumi.runtime.registerResourceModule("newrelic", "index/nrqlDropRule", _module);
107
111
  pulumi.runtime.registerResourceModule("newrelic", "index/oneDashboard", _module);
108
112
  pulumi.runtime.registerResourceModule("newrelic", "index/oneDashboardRaw", _module);
113
+ pulumi.runtime.registerResourceModule("newrelic", "index/serviceLevel", _module);
109
114
  const provider_1 = require("./provider");
110
115
  pulumi.runtime.registerResourcePackage("newrelic", {
111
116
  version: utilities.getVersion(),
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,oCAA+B;AAC/B,sCAAiC;AACjC,uCAAkC;AAClC,mCAA8B;AAC9B,0CAAqC;AACrC,oCAA+B;AAC/B,iCAA4B;AAC5B,kCAA6B;AAC7B,2CAAsC;A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
11
+ *
12
+ * The `nrql` block supports the following arguments:
13
+ *
14
+ * - `query` - (Required) The NRQL query to execute for the condition.
15
+ * - `evaluationOffset` - (Optional) **DEPRECATED:** Use `aggregationMethod` instead. Represented in minutes and must be within 1-20 minutes (inclusive). NRQL queries are evaluated based on their `aggregationWindow` size. The start time depends on this value. It's recommended to set this to 3 windows. An offset of less than 3 windows will trigger violations sooner, but you may see more false positives and negatives due to data latency. With `evaluationOffset` set to 3 windows and an `aggregationWindow` of 60 seconds, the NRQL time window applied to your query will be: `SINCE 3 minutes ago UNTIL 2 minutes ago`. `evaluationOffset` cannot be set with `aggregationMethod`, `aggregationDelay`, or `aggregationTimer`.<br>
16
+ * - `sinceValue` - (Optional) **DEPRECATED:** Use `aggregationMethod` instead. The value to be used in the `SINCE <X> minutes ago` clause for the NRQL query. Must be between 1-20 (inclusive). <br>
17
+ *
18
+ * ## Terms
19
+ *
20
+ * > **NOTE:** The direct use of the `term` has been deprecated, and users should use `critical` and `warning` instead. What follows now applies to the named priority attributes for `critical` and `warning`, but for those attributes the priority is not allowed.
21
+ *
22
+ * NRQL alert conditions support up to two terms. At least one `term` must have `priority` set to `critical` and the second optional `term` must have `priority` set to `warning`.
23
+ *
24
+ * The `term` block supports the following arguments:
25
+ *
26
+ * - `operator` - (Optional) Valid values are `above`, `below`, or `equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier` or `baseline`, the only valid option here is `above`.
27
+ * - `priority` - (Optional) `critical` or `warning`. Defaults to `critical`.
28
+ * - `threshold` - (Required) The value which will trigger a violation. Must be `0` or greater.
29
+ * <br>For _baseline_ NRQL alert conditions, the value must be in the range [1, 1000]. The value is the number of standard deviations from the baseline that the metric must exceed in order to create a violation.
30
+ * - `thresholdDuration` - (Optional) The duration, in seconds, that the threshold must violate in order to create a violation. Value must be a multiple of the `aggregationWindow` (which has a default of 60 seconds).
31
+ * <br>For _baseline_ and _outlier_ NRQL alert conditions, the value must be within 120-3600 seconds (inclusive).
32
+ * <br>For _static_ NRQL alert conditions with the `sum` value function, the value must be within 120-7200 seconds (inclusive).
33
+ * <br>For _static_ NRQL alert conditions with the `singleValue` value function, the value must be within 60-7200 seconds (inclusive).
34
+ *
35
+ * - `thresholdOccurrences` - (Optional) The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `atLeastOnce` (case insensitive).
36
+ * - `duration` - (Optional) **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive).
37
+ * - `timeFunction` - (Optional) **DEPRECATED:** Use `thresholdOccurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
38
+ *
39
+ * ## Upgrade from 1.x to 2.x
40
+ *
41
+ * There have been several deprecations in the `newrelic.NrqlAlertCondition`
42
+ * resource. Users will need to make some updates in order to have a smooth
43
+ * upgrade.
44
+ *
45
+ * An example resource from 1.x might look like the following.
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as newrelic from "@pulumi/newrelic";
50
+ *
51
+ * const nrqlAlertCondition = new newrelic.NrqlAlertCondition("nrqlAlertCondition", {
52
+ * policyId: newrelic_alert_policy.z.id,
53
+ * type: "static",
54
+ * runbookUrl: "https://localhost",
55
+ * enabled: true,
56
+ * valueFunction: "sum",
57
+ * violationTimeLimit: "TWENTY_FOUR_HOURS",
58
+ * critical: {
59
+ * operator: "above",
60
+ * thresholdDuration: 120,
61
+ * threshold: 3,
62
+ * thresholdOccurrences: "AT_LEAST_ONCE",
63
+ * },
64
+ * nrql: {
65
+ * query: `SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName`,
66
+ * },
67
+ * });
68
+ * ```
69
+ *
70
+ * After making the appropriate adjustments mentioned in the deprecation warnings,
71
+ * the resource now looks like the following.
72
+ *
73
+ * ```typescript
74
+ * import * as pulumi from "@pulumi/pulumi";
75
+ * import * as newrelic from "@pulumi/newrelic";
76
+ *
77
+ * const nrqlAlertCondition = new newrelic.NrqlAlertCondition("nrqlAlertCondition", {
78
+ * policyId: newrelic_alert_policy.z.id,
79
+ * type: "static",
80
+ * runbookUrl: "https://localhost",
81
+ * enabled: true,
82
+ * valueFunction: "sum",
83
+ * violationTimeLimitSeconds: 86400,
84
+ * terms: [{
85
+ * priority: "critical",
86
+ * operator: "above",
87
+ * threshold: 3,
88
+ * duration: 5,
89
+ * timeFunction: "any",
90
+ * }],
91
+ * nrql: {
92
+ * query: `SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName`,
93
+ * },
94
+ * });
95
+ * ```
96
+ * > > > > > > > v2.30.0
97
+ *
8
98
  * ## Import
9
99
  *
10
100
  * Alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>:<conditionType>`, e.g. // For `baseline` conditions
@@ -25,7 +115,7 @@ import { input as inputs, output as outputs } from "./types";
25
115
  * $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:outlier
26
116
  * ```
27
117
  *
28
- * The actual values for `policy_id` and `condition_id` can be retrieved from the following New Relic URL when viewing the NRQL alert condition you want to import<small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small>
118
+ * The actual values for `policy_id` and `condition_id` can be retrieved from the following New Relic URL when viewing the NRQL alert condition you want to import<<<<<<< HEAD <small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small> ======= <small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small>
29
119
  */
30
120
  export declare class NrqlAlertCondition extends pulumi.CustomResource {
31
121
  /**
@@ -47,6 +137,18 @@ export declare class NrqlAlertCondition extends pulumi.CustomResource {
47
137
  * The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
48
138
  */
49
139
  readonly accountId: pulumi.Output<number>;
140
+ /**
141
+ * How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregationDelay` with the `eventFlow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `eventFlow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregationDelay` cannot be set with `nrql.evaluation_offset`.
142
+ */
143
+ readonly aggregationDelay: pulumi.Output<number | undefined>;
144
+ /**
145
+ * Determines when we consider an aggregation window to be complete so that we can evaluate the signal for violations. Possible values are `cadence`, `eventFlow` or `eventTimer`. Default is `eventFlow`. `aggregationMethod` cannot be set with `nrql.evaluation_offset`.
146
+ */
147
+ readonly aggregationMethod: pulumi.Output<string | undefined>;
148
+ /**
149
+ * How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregationTimer` with the `eventTimer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregationTimer` cannot be set with `nrql.evaluation_offset`.
150
+ */
151
+ readonly aggregationTimer: pulumi.Output<number | undefined>;
50
152
  /**
51
153
  * 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 15 minutes (900 seconds). Default is 60 seconds.
52
154
  */
@@ -164,6 +266,18 @@ export interface NrqlAlertConditionState {
164
266
  * The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
165
267
  */
166
268
  readonly accountId?: pulumi.Input<number>;
269
+ /**
270
+ * How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregationDelay` with the `eventFlow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `eventFlow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregationDelay` cannot be set with `nrql.evaluation_offset`.
271
+ */
272
+ readonly aggregationDelay?: pulumi.Input<number>;
273
+ /**
274
+ * Determines when we consider an aggregation window to be complete so that we can evaluate the signal for violations. Possible values are `cadence`, `eventFlow` or `eventTimer`. Default is `eventFlow`. `aggregationMethod` cannot be set with `nrql.evaluation_offset`.
275
+ */
276
+ readonly aggregationMethod?: pulumi.Input<string>;
277
+ /**
278
+ * How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregationTimer` with the `eventTimer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregationTimer` cannot be set with `nrql.evaluation_offset`.
279
+ */
280
+ readonly aggregationTimer?: pulumi.Input<number>;
167
281
  /**
168
282
  * 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 15 minutes (900 seconds). Default is 60 seconds.
169
283
  */
@@ -273,6 +387,18 @@ export interface NrqlAlertConditionArgs {
273
387
  * The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`.
274
388
  */
275
389
  readonly accountId?: pulumi.Input<number>;
390
+ /**
391
+ * How long we wait for data that belongs in each aggregation window. Depending on your data, a longer delay may increase accuracy but delay notifications. Use `aggregationDelay` with the `eventFlow` and `cadence` methods. The maximum delay is 1200 seconds (20 minutes) when using `eventFlow` and 3600 seconds (60 minutes) when using `cadence`. In both cases, the minimum delay is 0 seconds and the default is 120 seconds. `aggregationDelay` cannot be set with `nrql.evaluation_offset`.
392
+ */
393
+ readonly aggregationDelay?: pulumi.Input<number>;
394
+ /**
395
+ * Determines when we consider an aggregation window to be complete so that we can evaluate the signal for violations. Possible values are `cadence`, `eventFlow` or `eventTimer`. Default is `eventFlow`. `aggregationMethod` cannot be set with `nrql.evaluation_offset`.
396
+ */
397
+ readonly aggregationMethod?: pulumi.Input<string>;
398
+ /**
399
+ * How long we wait after each data point arrives to make sure we've processed the whole batch. Use `aggregationTimer` with the `eventTimer` method. The timer value can range from 0 seconds to 1200 seconds (20 minutes); the default is 60 seconds. `aggregationTimer` cannot be set with `nrql.evaluation_offset`.
400
+ */
401
+ readonly aggregationTimer?: pulumi.Input<number>;
276
402
  /**
277
403
  * 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 15 minutes (900 seconds). Default is 60 seconds.
278
404
  */
@@ -9,6 +9,96 @@ const utilities = require("./utilities");
9
9
  *
10
10
  * ## Example Usage
11
11
  *
12
+ * ### Type: `baseline`
13
+ * =======
14
+ * ## NRQL
15
+ *
16
+ * The `nrql` block supports the following arguments:
17
+ *
18
+ * - `query` - (Required) The NRQL query to execute for the condition.
19
+ * - `evaluationOffset` - (Optional) **DEPRECATED:** Use `aggregationMethod` instead. Represented in minutes and must be within 1-20 minutes (inclusive). NRQL queries are evaluated based on their `aggregationWindow` size. The start time depends on this value. It's recommended to set this to 3 windows. An offset of less than 3 windows will trigger violations sooner, but you may see more false positives and negatives due to data latency. With `evaluationOffset` set to 3 windows and an `aggregationWindow` of 60 seconds, the NRQL time window applied to your query will be: `SINCE 3 minutes ago UNTIL 2 minutes ago`. `evaluationOffset` cannot be set with `aggregationMethod`, `aggregationDelay`, or `aggregationTimer`.<br>
20
+ * - `sinceValue` - (Optional) **DEPRECATED:** Use `aggregationMethod` instead. The value to be used in the `SINCE <X> minutes ago` clause for the NRQL query. Must be between 1-20 (inclusive). <br>
21
+ *
22
+ * ## Terms
23
+ *
24
+ * > **NOTE:** The direct use of the `term` has been deprecated, and users should use `critical` and `warning` instead. What follows now applies to the named priority attributes for `critical` and `warning`, but for those attributes the priority is not allowed.
25
+ *
26
+ * NRQL alert conditions support up to two terms. At least one `term` must have `priority` set to `critical` and the second optional `term` must have `priority` set to `warning`.
27
+ *
28
+ * The `term` block supports the following arguments:
29
+ *
30
+ * - `operator` - (Optional) Valid values are `above`, `below`, or `equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier` or `baseline`, the only valid option here is `above`.
31
+ * - `priority` - (Optional) `critical` or `warning`. Defaults to `critical`.
32
+ * - `threshold` - (Required) The value which will trigger a violation. Must be `0` or greater.
33
+ * <br>For _baseline_ NRQL alert conditions, the value must be in the range [1, 1000]. The value is the number of standard deviations from the baseline that the metric must exceed in order to create a violation.
34
+ * - `thresholdDuration` - (Optional) The duration, in seconds, that the threshold must violate in order to create a violation. Value must be a multiple of the `aggregationWindow` (which has a default of 60 seconds).
35
+ * <br>For _baseline_ and _outlier_ NRQL alert conditions, the value must be within 120-3600 seconds (inclusive).
36
+ * <br>For _static_ NRQL alert conditions with the `sum` value function, the value must be within 120-7200 seconds (inclusive).
37
+ * <br>For _static_ NRQL alert conditions with the `singleValue` value function, the value must be within 60-7200 seconds (inclusive).
38
+ *
39
+ * - `thresholdOccurrences` - (Optional) The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `atLeastOnce` (case insensitive).
40
+ * - `duration` - (Optional) **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive).
41
+ * - `timeFunction` - (Optional) **DEPRECATED:** Use `thresholdOccurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
42
+ *
43
+ * ## Upgrade from 1.x to 2.x
44
+ *
45
+ * There have been several deprecations in the `newrelic.NrqlAlertCondition`
46
+ * resource. Users will need to make some updates in order to have a smooth
47
+ * upgrade.
48
+ *
49
+ * An example resource from 1.x might look like the following.
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ * import * as newrelic from "@pulumi/newrelic";
54
+ *
55
+ * const nrqlAlertCondition = new newrelic.NrqlAlertCondition("nrqlAlertCondition", {
56
+ * policyId: newrelic_alert_policy.z.id,
57
+ * type: "static",
58
+ * runbookUrl: "https://localhost",
59
+ * enabled: true,
60
+ * valueFunction: "sum",
61
+ * violationTimeLimit: "TWENTY_FOUR_HOURS",
62
+ * critical: {
63
+ * operator: "above",
64
+ * thresholdDuration: 120,
65
+ * threshold: 3,
66
+ * thresholdOccurrences: "AT_LEAST_ONCE",
67
+ * },
68
+ * nrql: {
69
+ * query: `SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName`,
70
+ * },
71
+ * });
72
+ * ```
73
+ *
74
+ * After making the appropriate adjustments mentioned in the deprecation warnings,
75
+ * the resource now looks like the following.
76
+ *
77
+ * ```typescript
78
+ * import * as pulumi from "@pulumi/pulumi";
79
+ * import * as newrelic from "@pulumi/newrelic";
80
+ *
81
+ * const nrqlAlertCondition = new newrelic.NrqlAlertCondition("nrqlAlertCondition", {
82
+ * policyId: newrelic_alert_policy.z.id,
83
+ * type: "static",
84
+ * runbookUrl: "https://localhost",
85
+ * enabled: true,
86
+ * valueFunction: "sum",
87
+ * violationTimeLimitSeconds: 86400,
88
+ * terms: [{
89
+ * priority: "critical",
90
+ * operator: "above",
91
+ * threshold: 3,
92
+ * duration: 5,
93
+ * timeFunction: "any",
94
+ * }],
95
+ * nrql: {
96
+ * query: `SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName`,
97
+ * },
98
+ * });
99
+ * ```
100
+ * > > > > > > > v2.30.0
101
+ *
12
102
  * ## Import
13
103
  *
14
104
  * Alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>:<conditionType>`, e.g. // For `baseline` conditions
@@ -29,7 +119,7 @@ const utilities = require("./utilities");
29
119
  * $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:outlier
30
120
  * ```
31
121
  *
32
- * The actual values for `policy_id` and `condition_id` can be retrieved from the following New Relic URL when viewing the NRQL alert condition you want to import<small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small>
122
+ * The actual values for `policy_id` and `condition_id` can be retrieved from the following New Relic URL when viewing the NRQL alert condition you want to import<<<<<<< HEAD <small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small> ======= <small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small>
33
123
  */
34
124
  class NrqlAlertCondition extends pulumi.CustomResource {
35
125
  constructor(name, argsOrState, opts) {
@@ -38,6 +128,9 @@ class NrqlAlertCondition extends pulumi.CustomResource {
38
128
  if (opts.id) {
39
129
  const state = argsOrState;
40
130
  inputs["accountId"] = state ? state.accountId : undefined;
131
+ inputs["aggregationDelay"] = state ? state.aggregationDelay : undefined;
132
+ inputs["aggregationMethod"] = state ? state.aggregationMethod : undefined;
133
+ inputs["aggregationTimer"] = state ? state.aggregationTimer : undefined;
41
134
  inputs["aggregationWindow"] = state ? state.aggregationWindow : undefined;
42
135
  inputs["baselineDirection"] = state ? state.baselineDirection : undefined;
43
136
  inputs["closeViolationsOnExpiration"] = state ? state.closeViolationsOnExpiration : undefined;
@@ -71,6 +164,9 @@ class NrqlAlertCondition extends pulumi.CustomResource {
71
164
  throw new Error("Missing required property 'policyId'");
72
165
  }
73
166
  inputs["accountId"] = args ? args.accountId : undefined;
167
+ inputs["aggregationDelay"] = args ? args.aggregationDelay : undefined;
168
+ inputs["aggregationMethod"] = args ? args.aggregationMethod : undefined;
169
+ inputs["aggregationTimer"] = args ? args.aggregationTimer : undefined;
74
170
  inputs["aggregationWindow"] = args ? args.aggregationWindow : undefined;
75
171
  inputs["baselineDirection"] = args ? args.baselineDirection : undefined;
76
172
  inputs["closeViolationsOnExpiration"] = args ? args.closeViolationsOnExpiration : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"nrqlAlertCondition.js","sourceRoot":"","sources":["../nrqlAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA6IzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,MAAM,GAAkB,EAA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