@pulumi/newrelic 5.14.0 → 5.14.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.
- package/package.json +2 -2
- package/serviceLevel.d.ts +42 -0
- package/serviceLevel.js +42 -0
- package/serviceLevel.js.map +1 -1
- package/types/input.d.ts +12 -3
- package/types/output.d.ts +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/newrelic",
|
|
3
|
-
"version": "v5.14.
|
|
3
|
+
"version": "v5.14.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 v5.14.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource newrelic v5.14.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/serviceLevel.d.ts
CHANGED
|
@@ -92,6 +92,48 @@ import * as outputs from "./types/output";
|
|
|
92
92
|
* ],
|
|
93
93
|
* });
|
|
94
94
|
* ```
|
|
95
|
+
*
|
|
96
|
+
* Using `select` for events
|
|
97
|
+
*
|
|
98
|
+
* ```typescript
|
|
99
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
100
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
101
|
+
*
|
|
102
|
+
* const mySyntheticMonitorDurationServiceLevel = new newrelic.ServiceLevel("mySyntheticMonitorDurationServiceLevel", {
|
|
103
|
+
* description: "Monitor created to test concurrent request from terraform",
|
|
104
|
+
* events: {
|
|
105
|
+
* accountId: 313870,
|
|
106
|
+
* goodEvents: {
|
|
107
|
+
* from: "Metric",
|
|
108
|
+
* select: {
|
|
109
|
+
* attribute: "`query.wallClockTime.negative.distribution`",
|
|
110
|
+
* "function": "GET_CDF_COUNT",
|
|
111
|
+
* threshold: 7,
|
|
112
|
+
* },
|
|
113
|
+
* where: "metricName = 'query.wallClockTime.negative.distribution'",
|
|
114
|
+
* },
|
|
115
|
+
* validEvents: {
|
|
116
|
+
* from: "Metric",
|
|
117
|
+
* select: {
|
|
118
|
+
* attribute: "`query.wallClockTime.negative.distribution`",
|
|
119
|
+
* "function": "GET_FIELD",
|
|
120
|
+
* },
|
|
121
|
+
* where: "metricName = 'query.wallClockTime.negative.distribution'",
|
|
122
|
+
* },
|
|
123
|
+
* },
|
|
124
|
+
* guid: "MXxBUE18QVBQTElDQVRJT058MQ",
|
|
125
|
+
* objective: {
|
|
126
|
+
* target: 49,
|
|
127
|
+
* timeWindow: {
|
|
128
|
+
* rolling: {
|
|
129
|
+
* count: 7,
|
|
130
|
+
* unit: "DAY",
|
|
131
|
+
* },
|
|
132
|
+
* },
|
|
133
|
+
* },
|
|
134
|
+
* });
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
95
137
|
* For up-to-date documentation about the tagging resource, please check newrelic.EntityTags
|
|
96
138
|
*
|
|
97
139
|
* ## Import
|
package/serviceLevel.js
CHANGED
|
@@ -96,6 +96,48 @@ const utilities = require("./utilities");
|
|
|
96
96
|
* ],
|
|
97
97
|
* });
|
|
98
98
|
* ```
|
|
99
|
+
*
|
|
100
|
+
* Using `select` for events
|
|
101
|
+
*
|
|
102
|
+
* ```typescript
|
|
103
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
104
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
105
|
+
*
|
|
106
|
+
* const mySyntheticMonitorDurationServiceLevel = new newrelic.ServiceLevel("mySyntheticMonitorDurationServiceLevel", {
|
|
107
|
+
* description: "Monitor created to test concurrent request from terraform",
|
|
108
|
+
* events: {
|
|
109
|
+
* accountId: 313870,
|
|
110
|
+
* goodEvents: {
|
|
111
|
+
* from: "Metric",
|
|
112
|
+
* select: {
|
|
113
|
+
* attribute: "`query.wallClockTime.negative.distribution`",
|
|
114
|
+
* "function": "GET_CDF_COUNT",
|
|
115
|
+
* threshold: 7,
|
|
116
|
+
* },
|
|
117
|
+
* where: "metricName = 'query.wallClockTime.negative.distribution'",
|
|
118
|
+
* },
|
|
119
|
+
* validEvents: {
|
|
120
|
+
* from: "Metric",
|
|
121
|
+
* select: {
|
|
122
|
+
* attribute: "`query.wallClockTime.negative.distribution`",
|
|
123
|
+
* "function": "GET_FIELD",
|
|
124
|
+
* },
|
|
125
|
+
* where: "metricName = 'query.wallClockTime.negative.distribution'",
|
|
126
|
+
* },
|
|
127
|
+
* },
|
|
128
|
+
* guid: "MXxBUE18QVBQTElDQVRJT058MQ",
|
|
129
|
+
* objective: {
|
|
130
|
+
* target: 49,
|
|
131
|
+
* timeWindow: {
|
|
132
|
+
* rolling: {
|
|
133
|
+
* count: 7,
|
|
134
|
+
* unit: "DAY",
|
|
135
|
+
* },
|
|
136
|
+
* },
|
|
137
|
+
* },
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
99
141
|
* For up-to-date documentation about the tagging resource, please check newrelic.EntityTags
|
|
100
142
|
*
|
|
101
143
|
* ## Import
|
package/serviceLevel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceLevel.js","sourceRoot":"","sources":["../serviceLevel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"serviceLevel.js","sourceRoot":"","sources":["../serviceLevel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,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;;AApGL,oCAqGC;AAvFG,gBAAgB;AACO,yBAAY,GAAG,0CAA0C,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -2159,9 +2159,12 @@ export interface ServiceLevelEventsBadEventsSelect {
|
|
|
2159
2159
|
*/
|
|
2160
2160
|
attribute?: pulumi.Input<string>;
|
|
2161
2161
|
/**
|
|
2162
|
-
* The function to use in the SELECT clause. Valid values are `COUNT` and `
|
|
2162
|
+
* The function to use in the SELECT clause. Valid values are `COUNT`, `SUM`, `GET_FIELD`, and `GET_CDF_COUNT`.
|
|
2163
2163
|
*/
|
|
2164
2164
|
function: pulumi.Input<string>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Limit for values to be counter by `GET_CDF_COUNT` function.
|
|
2167
|
+
*/
|
|
2165
2168
|
threshold?: pulumi.Input<number>;
|
|
2166
2169
|
}
|
|
2167
2170
|
export interface ServiceLevelEventsGoodEvents {
|
|
@@ -2186,9 +2189,12 @@ export interface ServiceLevelEventsGoodEventsSelect {
|
|
|
2186
2189
|
*/
|
|
2187
2190
|
attribute?: pulumi.Input<string>;
|
|
2188
2191
|
/**
|
|
2189
|
-
* The function to use in the SELECT clause. Valid values are `COUNT` and `
|
|
2192
|
+
* The function to use in the SELECT clause. Valid values are `COUNT`, `SUM`, `GET_FIELD`, and `GET_CDF_COUNT`.
|
|
2190
2193
|
*/
|
|
2191
2194
|
function: pulumi.Input<string>;
|
|
2195
|
+
/**
|
|
2196
|
+
* Limit for values to be counter by `GET_CDF_COUNT` function.
|
|
2197
|
+
*/
|
|
2192
2198
|
threshold?: pulumi.Input<number>;
|
|
2193
2199
|
}
|
|
2194
2200
|
export interface ServiceLevelEventsValidEvents {
|
|
@@ -2213,9 +2219,12 @@ export interface ServiceLevelEventsValidEventsSelect {
|
|
|
2213
2219
|
*/
|
|
2214
2220
|
attribute?: pulumi.Input<string>;
|
|
2215
2221
|
/**
|
|
2216
|
-
* The function to use in the SELECT clause. Valid values are `COUNT` and `
|
|
2222
|
+
* The function to use in the SELECT clause. Valid values are `COUNT`, `SUM`, `GET_FIELD`, and `GET_CDF_COUNT`.
|
|
2217
2223
|
*/
|
|
2218
2224
|
function: pulumi.Input<string>;
|
|
2225
|
+
/**
|
|
2226
|
+
* Limit for values to be counter by `GET_CDF_COUNT` function.
|
|
2227
|
+
*/
|
|
2219
2228
|
threshold?: pulumi.Input<number>;
|
|
2220
2229
|
}
|
|
2221
2230
|
export interface ServiceLevelObjective {
|
package/types/output.d.ts
CHANGED
|
@@ -2204,9 +2204,12 @@ export interface ServiceLevelEventsBadEventsSelect {
|
|
|
2204
2204
|
*/
|
|
2205
2205
|
attribute?: string;
|
|
2206
2206
|
/**
|
|
2207
|
-
* The function to use in the SELECT clause. Valid values are `COUNT` and `
|
|
2207
|
+
* The function to use in the SELECT clause. Valid values are `COUNT`, `SUM`, `GET_FIELD`, and `GET_CDF_COUNT`.
|
|
2208
2208
|
*/
|
|
2209
2209
|
function: string;
|
|
2210
|
+
/**
|
|
2211
|
+
* Limit for values to be counter by `GET_CDF_COUNT` function.
|
|
2212
|
+
*/
|
|
2210
2213
|
threshold?: number;
|
|
2211
2214
|
}
|
|
2212
2215
|
export interface ServiceLevelEventsGoodEvents {
|
|
@@ -2231,9 +2234,12 @@ export interface ServiceLevelEventsGoodEventsSelect {
|
|
|
2231
2234
|
*/
|
|
2232
2235
|
attribute?: string;
|
|
2233
2236
|
/**
|
|
2234
|
-
* The function to use in the SELECT clause. Valid values are `COUNT` and `
|
|
2237
|
+
* The function to use in the SELECT clause. Valid values are `COUNT`, `SUM`, `GET_FIELD`, and `GET_CDF_COUNT`.
|
|
2235
2238
|
*/
|
|
2236
2239
|
function: string;
|
|
2240
|
+
/**
|
|
2241
|
+
* Limit for values to be counter by `GET_CDF_COUNT` function.
|
|
2242
|
+
*/
|
|
2237
2243
|
threshold?: number;
|
|
2238
2244
|
}
|
|
2239
2245
|
export interface ServiceLevelEventsValidEvents {
|
|
@@ -2258,9 +2264,12 @@ export interface ServiceLevelEventsValidEventsSelect {
|
|
|
2258
2264
|
*/
|
|
2259
2265
|
attribute?: string;
|
|
2260
2266
|
/**
|
|
2261
|
-
* The function to use in the SELECT clause. Valid values are `COUNT` and `
|
|
2267
|
+
* The function to use in the SELECT clause. Valid values are `COUNT`, `SUM`, `GET_FIELD`, and `GET_CDF_COUNT`.
|
|
2262
2268
|
*/
|
|
2263
2269
|
function: string;
|
|
2270
|
+
/**
|
|
2271
|
+
* Limit for values to be counter by `GET_CDF_COUNT` function.
|
|
2272
|
+
*/
|
|
2264
2273
|
threshold?: number;
|
|
2265
2274
|
}
|
|
2266
2275
|
export interface ServiceLevelObjective {
|