@pulumi/newrelic 4.12.0 → 4.13.1

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.
@@ -4,10 +4,6 @@ import { input as inputs, output as outputs } from "./types";
4
4
  * Use this resource to create and manage NRQL alert conditions in New Relic.
5
5
  *
6
6
  * ## Example Usage
7
- *
8
- * ### Type: `baseline`
9
- *
10
- * =======
11
7
  * ## NRQL
12
8
  *
13
9
  * The `nrql` block supports the following arguments:
@@ -37,6 +33,92 @@ import { input as inputs, output as outputs } from "./types";
37
33
  * - `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).
38
34
  * - `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`.
39
35
  *
36
+ * ## Additional Examples
37
+ *
38
+ * ##### Type: `baseline`
39
+ *
40
+ * [Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
41
+ *
42
+ * ```typescript
43
+ * import * as pulumi from "@pulumi/pulumi";
44
+ * import * as newrelic from "@pulumi/newrelic";
45
+ *
46
+ * const fooAlertPolicy = new newrelic.AlertPolicy("fooAlertPolicy", {});
47
+ * const fooIndex_alertPolicyAlertPolicy = new newrelic.AlertPolicy("fooIndex/alertPolicyAlertPolicy", {});
48
+ * const fooNrqlAlertCondition = new newrelic.NrqlAlertCondition("fooNrqlAlertCondition", {
49
+ * accountId: "your_account_id",
50
+ * policyId: fooAlertPolicy.id,
51
+ * type: "static",
52
+ * description: "Alert when transactions are taking too long",
53
+ * runbookUrl: "https://www.example.com",
54
+ * enabled: true,
55
+ * violationTimeLimitSeconds: 3600,
56
+ * fillOption: "static",
57
+ * fillValue: 1,
58
+ * aggregationWindow: 60,
59
+ * aggregationMethod: "event_flow",
60
+ * aggregationDelay: 120,
61
+ * expirationDuration: 120,
62
+ * openViolationOnExpiration: true,
63
+ * closeViolationsOnExpiration: true,
64
+ * slideBy: 30,
65
+ * nrql: {
66
+ * query: "SELECT average(duration) FROM Transaction where appName = 'Your App'",
67
+ * },
68
+ * critical: {
69
+ * operator: "above",
70
+ * threshold: 5.5,
71
+ * thresholdDuration: 300,
72
+ * thresholdOccurrences: "ALL",
73
+ * },
74
+ * warning: {
75
+ * operator: "above",
76
+ * threshold: 3.5,
77
+ * thresholdDuration: 600,
78
+ * thresholdOccurrences: "ALL",
79
+ * },
80
+ * });
81
+ * ```
82
+ *
83
+ * ### Type: `outlier`
84
+ *
85
+ * In software development and operations, it is common to have a group consisting of members you expect to behave approximately the same. [Outlier detection](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/outlier-detection-nrql-alert) facilitates alerting when the behavior of one or more common members falls outside a specified range expectation.
86
+ *
87
+ * ```typescript
88
+ * import * as pulumi from "@pulumi/pulumi";
89
+ * import * as newrelic from "@pulumi/newrelic";
90
+ *
91
+ * const fooAlertPolicy = new newrelic.AlertPolicy("fooAlertPolicy", {});
92
+ * const fooNrqlAlertCondition = new newrelic.NrqlAlertCondition("fooNrqlAlertCondition", {
93
+ * type: "outlier",
94
+ * accountId: "your_account_id",
95
+ * policyId: fooAlertPolicy.id,
96
+ * description: "Alert when outlier conditions occur",
97
+ * enabled: true,
98
+ * runbookUrl: "https://www.example.com",
99
+ * violationTimeLimitSeconds: 3600,
100
+ * aggregationMethod: "event_flow",
101
+ * aggregationDelay: 120,
102
+ * expectedGroups: 2,
103
+ * openViolationOnGroupOverlap: true,
104
+ * nrql: {
105
+ * query: "SELECT percentile(duration, 95) FROM Transaction WHERE appName = 'ExampleAppName' FACET host",
106
+ * },
107
+ * critical: {
108
+ * operator: "above",
109
+ * threshold: 0.002,
110
+ * thresholdDuration: 600,
111
+ * thresholdOccurrences: "all",
112
+ * },
113
+ * warning: {
114
+ * operator: "above",
115
+ * threshold: 0.0015,
116
+ * thresholdDuration: 600,
117
+ * thresholdOccurrences: "all",
118
+ * },
119
+ * });
120
+ * ```
121
+ *
40
122
  * ## Upgrade from 1.x to 2.x
41
123
  *
42
124
  * There have been several deprecations in the `newrelic.NrqlAlertCondition`
@@ -95,8 +177,6 @@ import { input as inputs, output as outputs } from "./types";
95
177
  * });
96
178
  * ```
97
179
  *
98
- * > > > > > > > v2.30.0
99
- *
100
180
  * ## Import
101
181
  *
102
182
  * Alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>:<conditionType>`, e.g. // For `baseline` conditions
@@ -117,7 +197,7 @@ import { input as inputs, output as outputs } from "./types";
117
197
  * $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:outlier
118
198
  * ```
119
199
  *
120
- * 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>
200
+ * Users can find the actual values for `policy_id` and `condition_id` from the New Relic One UI under respective policy and condition. <small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small>
121
201
  */
122
202
  export declare class NrqlAlertCondition extends pulumi.CustomResource {
123
203
  /**
@@ -142,7 +222,7 @@ export declare class NrqlAlertCondition extends pulumi.CustomResource {
142
222
  /**
143
223
  * 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`.
144
224
  */
145
- readonly aggregationDelay: pulumi.Output<number | undefined>;
225
+ readonly aggregationDelay: pulumi.Output<string | undefined>;
146
226
  /**
147
227
  * 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`.
148
228
  */
@@ -150,7 +230,7 @@ export declare class NrqlAlertCondition extends pulumi.CustomResource {
150
230
  /**
151
231
  * 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`.
152
232
  */
153
- readonly aggregationTimer: pulumi.Output<number | undefined>;
233
+ readonly aggregationTimer: pulumi.Output<string | undefined>;
154
234
  /**
155
235
  * 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.
156
236
  */
@@ -277,7 +357,7 @@ export interface NrqlAlertConditionState {
277
357
  /**
278
358
  * 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`.
279
359
  */
280
- aggregationDelay?: pulumi.Input<number>;
360
+ aggregationDelay?: pulumi.Input<string>;
281
361
  /**
282
362
  * 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`.
283
363
  */
@@ -285,7 +365,7 @@ export interface NrqlAlertConditionState {
285
365
  /**
286
366
  * 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`.
287
367
  */
288
- aggregationTimer?: pulumi.Input<number>;
368
+ aggregationTimer?: pulumi.Input<string>;
289
369
  /**
290
370
  * 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.
291
371
  */
@@ -404,7 +484,7 @@ export interface NrqlAlertConditionArgs {
404
484
  /**
405
485
  * 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`.
406
486
  */
407
- aggregationDelay?: pulumi.Input<number>;
487
+ aggregationDelay?: pulumi.Input<string>;
408
488
  /**
409
489
  * 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`.
410
490
  */
@@ -412,7 +492,7 @@ export interface NrqlAlertConditionArgs {
412
492
  /**
413
493
  * 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`.
414
494
  */
415
- aggregationTimer?: pulumi.Input<number>;
495
+ aggregationTimer?: pulumi.Input<string>;
416
496
  /**
417
497
  * 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.
418
498
  */
@@ -9,10 +9,6 @@ const utilities = require("./utilities");
9
9
  * Use this resource to create and manage NRQL alert conditions in New Relic.
10
10
  *
11
11
  * ## Example Usage
12
- *
13
- * ### Type: `baseline`
14
- *
15
- * =======
16
12
  * ## NRQL
17
13
  *
18
14
  * The `nrql` block supports the following arguments:
@@ -42,6 +38,92 @@ const utilities = require("./utilities");
42
38
  * - `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).
43
39
  * - `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`.
44
40
  *
41
+ * ## Additional Examples
42
+ *
43
+ * ##### Type: `baseline`
44
+ *
45
+ * [Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as newrelic from "@pulumi/newrelic";
50
+ *
51
+ * const fooAlertPolicy = new newrelic.AlertPolicy("fooAlertPolicy", {});
52
+ * const fooIndex_alertPolicyAlertPolicy = new newrelic.AlertPolicy("fooIndex/alertPolicyAlertPolicy", {});
53
+ * const fooNrqlAlertCondition = new newrelic.NrqlAlertCondition("fooNrqlAlertCondition", {
54
+ * accountId: "your_account_id",
55
+ * policyId: fooAlertPolicy.id,
56
+ * type: "static",
57
+ * description: "Alert when transactions are taking too long",
58
+ * runbookUrl: "https://www.example.com",
59
+ * enabled: true,
60
+ * violationTimeLimitSeconds: 3600,
61
+ * fillOption: "static",
62
+ * fillValue: 1,
63
+ * aggregationWindow: 60,
64
+ * aggregationMethod: "event_flow",
65
+ * aggregationDelay: 120,
66
+ * expirationDuration: 120,
67
+ * openViolationOnExpiration: true,
68
+ * closeViolationsOnExpiration: true,
69
+ * slideBy: 30,
70
+ * nrql: {
71
+ * query: "SELECT average(duration) FROM Transaction where appName = 'Your App'",
72
+ * },
73
+ * critical: {
74
+ * operator: "above",
75
+ * threshold: 5.5,
76
+ * thresholdDuration: 300,
77
+ * thresholdOccurrences: "ALL",
78
+ * },
79
+ * warning: {
80
+ * operator: "above",
81
+ * threshold: 3.5,
82
+ * thresholdDuration: 600,
83
+ * thresholdOccurrences: "ALL",
84
+ * },
85
+ * });
86
+ * ```
87
+ *
88
+ * ### Type: `outlier`
89
+ *
90
+ * In software development and operations, it is common to have a group consisting of members you expect to behave approximately the same. [Outlier detection](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/outlier-detection-nrql-alert) facilitates alerting when the behavior of one or more common members falls outside a specified range expectation.
91
+ *
92
+ * ```typescript
93
+ * import * as pulumi from "@pulumi/pulumi";
94
+ * import * as newrelic from "@pulumi/newrelic";
95
+ *
96
+ * const fooAlertPolicy = new newrelic.AlertPolicy("fooAlertPolicy", {});
97
+ * const fooNrqlAlertCondition = new newrelic.NrqlAlertCondition("fooNrqlAlertCondition", {
98
+ * type: "outlier",
99
+ * accountId: "your_account_id",
100
+ * policyId: fooAlertPolicy.id,
101
+ * description: "Alert when outlier conditions occur",
102
+ * enabled: true,
103
+ * runbookUrl: "https://www.example.com",
104
+ * violationTimeLimitSeconds: 3600,
105
+ * aggregationMethod: "event_flow",
106
+ * aggregationDelay: 120,
107
+ * expectedGroups: 2,
108
+ * openViolationOnGroupOverlap: true,
109
+ * nrql: {
110
+ * query: "SELECT percentile(duration, 95) FROM Transaction WHERE appName = 'ExampleAppName' FACET host",
111
+ * },
112
+ * critical: {
113
+ * operator: "above",
114
+ * threshold: 0.002,
115
+ * thresholdDuration: 600,
116
+ * thresholdOccurrences: "all",
117
+ * },
118
+ * warning: {
119
+ * operator: "above",
120
+ * threshold: 0.0015,
121
+ * thresholdDuration: 600,
122
+ * thresholdOccurrences: "all",
123
+ * },
124
+ * });
125
+ * ```
126
+ *
45
127
  * ## Upgrade from 1.x to 2.x
46
128
  *
47
129
  * There have been several deprecations in the `newrelic.NrqlAlertCondition`
@@ -100,8 +182,6 @@ const utilities = require("./utilities");
100
182
  * });
101
183
  * ```
102
184
  *
103
- * > > > > > > > v2.30.0
104
- *
105
185
  * ## Import
106
186
  *
107
187
  * Alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>:<conditionType>`, e.g. // For `baseline` conditions
@@ -122,7 +202,7 @@ const utilities = require("./utilities");
122
202
  * $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:outlier
123
203
  * ```
124
204
  *
125
- * 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>
205
+ * Users can find the actual values for `policy_id` and `condition_id` from the New Relic One UI under respective policy and condition. <small>alerts.newrelic.com/accounts/**\<account_id\>**&#47;policies/**\<policy_id\>**&#47;conditions/**\<condition_id\>**&#47;edit</small>
126
206
  */
127
207
  class NrqlAlertCondition extends pulumi.CustomResource {
128
208
  constructor(name, argsOrState, opts) {
@@ -1 +1 @@
1
- {"version":3,"file":"nrqlAlertCondition.js","sourceRoot":"","sources":["../nrqlAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsHG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA+JzD,YAAY,IAAY,EAAE,WAA8D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AAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAtOD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAwOC;AA1NG,gBAAgB;AACO,+BAAY,GAAG,sDAAsD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/newrelic",
3
- "version": "v4.12.0",
3
+ "version": "v4.13.1",
4
4
  "description": "A Pulumi package for creating and managing New Relic resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource newrelic v4.12.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource newrelic v4.13.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/newrelic",
3
- "version": "v4.12.0",
3
+ "version": "v4.13.1",
4
4
  "description": "A Pulumi package for creating and managing New Relic resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource newrelic v4.12.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource newrelic v4.13.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/serviceLevel.d.ts CHANGED
@@ -20,16 +20,16 @@ import { input as inputs, output as outputs } from "./types";
20
20
  * import * as newrelic from "@pulumi/newrelic";
21
21
  *
22
22
  * const foo = new newrelic.ServiceLevel("foo", {
23
- * description: "SLI that measures the availability of the service.",
23
+ * description: "Proportion of requests that are served faster than a threshold.",
24
24
  * events: {
25
25
  * accountId: 12345678,
26
- * badEvents: {
27
- * from: "TransactionError",
28
- * where: "appName = 'Example application' AND error.expected is false",
26
+ * goodEvents: {
27
+ * from: "Transaction",
28
+ * where: "appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
29
29
  * },
30
30
  * validEvents: {
31
31
  * from: "Transaction",
32
- * where: "appName = 'Example application'",
32
+ * where: "appName = 'Example application' AND (transactionType='Web')",
33
33
  * },
34
34
  * },
35
35
  * guid: "MXxBUE18QVBQTElDQVRJT058MQ",
@@ -93,6 +93,10 @@ export declare class ServiceLevel extends pulumi.CustomResource {
93
93
  * See Objective below for details.
94
94
  */
95
95
  readonly objective: pulumi.Output<outputs.ServiceLevelObjective>;
96
+ /**
97
+ * The unique entity identifier of the Service Level Indicator in New Relic.
98
+ */
99
+ readonly sliGuid: pulumi.Output<string>;
96
100
  /**
97
101
  * The unique entity identifier of the Service Level Indicator.
98
102
  */
@@ -132,6 +136,10 @@ export interface ServiceLevelState {
132
136
  * See Objective below for details.
133
137
  */
134
138
  objective?: pulumi.Input<inputs.ServiceLevelObjective>;
139
+ /**
140
+ * The unique entity identifier of the Service Level Indicator in New Relic.
141
+ */
142
+ sliGuid?: pulumi.Input<string>;
135
143
  /**
136
144
  * The unique entity identifier of the Service Level Indicator.
137
145
  */
package/serviceLevel.js CHANGED
@@ -25,16 +25,16 @@ const utilities = require("./utilities");
25
25
  * import * as newrelic from "@pulumi/newrelic";
26
26
  *
27
27
  * const foo = new newrelic.ServiceLevel("foo", {
28
- * description: "SLI that measures the availability of the service.",
28
+ * description: "Proportion of requests that are served faster than a threshold.",
29
29
  * events: {
30
30
  * accountId: 12345678,
31
- * badEvents: {
32
- * from: "TransactionError",
33
- * where: "appName = 'Example application' AND error.expected is false",
31
+ * goodEvents: {
32
+ * from: "Transaction",
33
+ * where: "appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
34
34
  * },
35
35
  * validEvents: {
36
36
  * from: "Transaction",
37
- * where: "appName = 'Example application'",
37
+ * where: "appName = 'Example application' AND (transactionType='Web')",
38
38
  * },
39
39
  * },
40
40
  * guid: "MXxBUE18QVBQTElDQVRJT058MQ",
@@ -71,6 +71,7 @@ class ServiceLevel extends pulumi.CustomResource {
71
71
  resourceInputs["guid"] = state ? state.guid : undefined;
72
72
  resourceInputs["name"] = state ? state.name : undefined;
73
73
  resourceInputs["objective"] = state ? state.objective : undefined;
74
+ resourceInputs["sliGuid"] = state ? state.sliGuid : undefined;
74
75
  resourceInputs["sliId"] = state ? state.sliId : undefined;
75
76
  }
76
77
  else {
@@ -89,6 +90,7 @@ class ServiceLevel extends pulumi.CustomResource {
89
90
  resourceInputs["guid"] = args ? args.guid : undefined;
90
91
  resourceInputs["name"] = args ? args.name : undefined;
91
92
  resourceInputs["objective"] = args ? args.objective : undefined;
93
+ resourceInputs["sliGuid"] = undefined /*out*/;
92
94
  resourceInputs["sliId"] = undefined /*out*/;
93
95
  }
94
96
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"serviceLevel.js","sourceRoot":"","sources":["../serviceLevel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IA+DnD,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AAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IAnGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAqGC;AAvFG,gBAAgB;AACO,yBAAY,GAAG,0CAA0C,CAAC"}
package/types/input.d.ts CHANGED
@@ -498,7 +498,7 @@ export interface OneDashboardPageWidgetBillboard {
498
498
  /**
499
499
  * (Optional) Threshold above which the displayed value will be styled with a red color.
500
500
  */
501
- critical?: pulumi.Input<number>;
501
+ critical?: pulumi.Input<string>;
502
502
  /**
503
503
  * (Optional) Height of the widget. Valid values are `1` to `12` inclusive. Defaults to `3`.
504
504
  */
@@ -522,7 +522,7 @@ export interface OneDashboardPageWidgetBillboard {
522
522
  * (Optional) Threshold above which the displayed value will be styled with a yellow color.
523
523
  * * `widgetBullet`
524
524
  */
525
- warning?: pulumi.Input<number>;
525
+ warning?: pulumi.Input<string>;
526
526
  /**
527
527
  * (Optional) Width of the widget. Valid values are `1` to `12` inclusive. Defaults to `4`.
528
528
  */
@@ -1060,7 +1060,7 @@ export interface ServiceLevelObjectiveTimeWindow {
1060
1060
  }
1061
1061
  export interface ServiceLevelObjectiveTimeWindowRolling {
1062
1062
  /**
1063
- * Valid values are `1`, `7` and `28`.
1063
+ * Valid values are `1`, `7`, `14` and `28`.
1064
1064
  */
1065
1065
  count: pulumi.Input<number>;
1066
1066
  /**
package/types/output.d.ts CHANGED
@@ -518,7 +518,7 @@ export interface OneDashboardPageWidgetBillboard {
518
518
  /**
519
519
  * (Optional) Threshold above which the displayed value will be styled with a red color.
520
520
  */
521
- critical?: number;
521
+ critical?: string;
522
522
  /**
523
523
  * (Optional) Height of the widget. Valid values are `1` to `12` inclusive. Defaults to `3`.
524
524
  */
@@ -542,7 +542,7 @@ export interface OneDashboardPageWidgetBillboard {
542
542
  * (Optional) Threshold above which the displayed value will be styled with a yellow color.
543
543
  * * `widgetBullet`
544
544
  */
545
- warning?: number;
545
+ warning?: string;
546
546
  /**
547
547
  * (Optional) Width of the widget. Valid values are `1` to `12` inclusive. Defaults to `4`.
548
548
  */
@@ -1080,7 +1080,7 @@ export interface ServiceLevelObjectiveTimeWindow {
1080
1080
  }
1081
1081
  export interface ServiceLevelObjectiveTimeWindowRolling {
1082
1082
  /**
1083
- * Valid values are `1`, `7` and `28`.
1083
+ * Valid values are `1`, `7`, `14` and `28`.
1084
1084
  */
1085
1085
  count: number;
1086
1086
  /**