@pulumi/newrelic 5.51.0 → 5.52.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/nrqlDropRule.d.ts +8 -37
- package/nrqlDropRule.js +2 -37
- package/nrqlDropRule.js.map +1 -1
- package/package.json +2 -2
package/nrqlDropRule.d.ts
CHANGED
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* ## Example Usage
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as newrelic from "@pulumi/newrelic";
|
|
8
|
-
*
|
|
9
|
-
* const foo = new newrelic.NrqlDropRule("foo", {
|
|
10
|
-
* accountId: "12345",
|
|
11
|
-
* description: "Drops all data for MyCustomEvent that comes from the LoadGeneratingApp in the dev environment, because there is too much and we don’t look at it.",
|
|
12
|
-
* action: "drop_data",
|
|
13
|
-
* nrql: "SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'",
|
|
14
|
-
* });
|
|
15
|
-
* const bar = new newrelic.NrqlDropRule("bar", {
|
|
16
|
-
* accountId: "12345",
|
|
17
|
-
* description: "Removes the user name and email fields from MyCustomEvent",
|
|
18
|
-
* action: "drop_attributes",
|
|
19
|
-
* nrql: "SELECT userEmail, userName FROM MyCustomEvent",
|
|
20
|
-
* });
|
|
21
|
-
* const baz = new newrelic.NrqlDropRule("baz", {
|
|
22
|
-
* accountId: "12345",
|
|
23
|
-
* description: "Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
24
|
-
* action: "drop_attributes_from_metric_aggregates",
|
|
25
|
-
* nrql: "SELECT containerId FROM Metric",
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* ## Using `newrelic-cli` to List Out Drop Rules
|
|
30
|
-
*
|
|
31
|
-
* All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
|
|
32
|
-
*
|
|
33
|
-
* This would print all drop rules associated with your New Relic account to the terminal.
|
|
34
|
-
* The number of rules to be printed can be customized using the `limit` argument of this command.
|
|
35
|
-
* For instance, the following command limits the number of drop rules printed to two.
|
|
36
|
-
*
|
|
37
|
-
* More details on the command and its arguments (for instance, the format in which the droprules are to be listed in the terminal, which is JSON by default) can be found in the output of the `newrelic nrql droprules --help` command.
|
|
38
|
-
* If you do not have **newrelic-cli** installed on your device already, head over to [this page](https://github.com/newrelic/newrelic-cli#installation--upgrades) for instructions.
|
|
39
|
-
*
|
|
40
3
|
* ## Import
|
|
41
4
|
*
|
|
42
5
|
* New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
@@ -81,6 +44,10 @@ export declare class NrqlDropRule extends pulumi.CustomResource {
|
|
|
81
44
|
* A NRQL string that specifies what data types to drop.
|
|
82
45
|
*/
|
|
83
46
|
readonly nrql: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
|
|
49
|
+
*/
|
|
50
|
+
readonly pipelineCloudRuleEntityId: pulumi.Output<string>;
|
|
84
51
|
/**
|
|
85
52
|
* The id, uniquely identifying the rule.
|
|
86
53
|
*/
|
|
@@ -114,6 +81,10 @@ export interface NrqlDropRuleState {
|
|
|
114
81
|
* A NRQL string that specifies what data types to drop.
|
|
115
82
|
*/
|
|
116
83
|
nrql?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The ID (GUID) of the corresponding Pipeline Cloud Rule, (migrated upstream by New Relic, in light of the upcoming EOL, as stated in the Deprecation Warning above). This can be used to import the corresponding Pipeline Cloud Rule as a [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
|
|
86
|
+
*/
|
|
87
|
+
pipelineCloudRuleEntityId?: pulumi.Input<string>;
|
|
117
88
|
/**
|
|
118
89
|
* The id, uniquely identifying the rule.
|
|
119
90
|
*/
|
package/nrqlDropRule.js
CHANGED
|
@@ -6,43 +6,6 @@ exports.NrqlDropRule = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as newrelic from "@pulumi/newrelic";
|
|
14
|
-
*
|
|
15
|
-
* const foo = new newrelic.NrqlDropRule("foo", {
|
|
16
|
-
* accountId: "12345",
|
|
17
|
-
* description: "Drops all data for MyCustomEvent that comes from the LoadGeneratingApp in the dev environment, because there is too much and we don’t look at it.",
|
|
18
|
-
* action: "drop_data",
|
|
19
|
-
* nrql: "SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'",
|
|
20
|
-
* });
|
|
21
|
-
* const bar = new newrelic.NrqlDropRule("bar", {
|
|
22
|
-
* accountId: "12345",
|
|
23
|
-
* description: "Removes the user name and email fields from MyCustomEvent",
|
|
24
|
-
* action: "drop_attributes",
|
|
25
|
-
* nrql: "SELECT userEmail, userName FROM MyCustomEvent",
|
|
26
|
-
* });
|
|
27
|
-
* const baz = new newrelic.NrqlDropRule("baz", {
|
|
28
|
-
* accountId: "12345",
|
|
29
|
-
* description: "Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
30
|
-
* action: "drop_attributes_from_metric_aggregates",
|
|
31
|
-
* nrql: "SELECT containerId FROM Metric",
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ## Using `newrelic-cli` to List Out Drop Rules
|
|
36
|
-
*
|
|
37
|
-
* All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
|
|
38
|
-
*
|
|
39
|
-
* This would print all drop rules associated with your New Relic account to the terminal.
|
|
40
|
-
* The number of rules to be printed can be customized using the `limit` argument of this command.
|
|
41
|
-
* For instance, the following command limits the number of drop rules printed to two.
|
|
42
|
-
*
|
|
43
|
-
* More details on the command and its arguments (for instance, the format in which the droprules are to be listed in the terminal, which is JSON by default) can be found in the output of the `newrelic nrql droprules --help` command.
|
|
44
|
-
* If you do not have **newrelic-cli** installed on your device already, head over to [this page](https://github.com/newrelic/newrelic-cli#installation--upgrades) for instructions.
|
|
45
|
-
*
|
|
46
9
|
* ## Import
|
|
47
10
|
*
|
|
48
11
|
* New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
@@ -87,6 +50,7 @@ class NrqlDropRule extends pulumi.CustomResource {
|
|
|
87
50
|
resourceInputs["action"] = state?.action;
|
|
88
51
|
resourceInputs["description"] = state?.description;
|
|
89
52
|
resourceInputs["nrql"] = state?.nrql;
|
|
53
|
+
resourceInputs["pipelineCloudRuleEntityId"] = state?.pipelineCloudRuleEntityId;
|
|
90
54
|
resourceInputs["ruleId"] = state?.ruleId;
|
|
91
55
|
}
|
|
92
56
|
else {
|
|
@@ -101,6 +65,7 @@ class NrqlDropRule extends pulumi.CustomResource {
|
|
|
101
65
|
resourceInputs["action"] = args?.action;
|
|
102
66
|
resourceInputs["description"] = args?.description;
|
|
103
67
|
resourceInputs["nrql"] = args?.nrql;
|
|
68
|
+
resourceInputs["pipelineCloudRuleEntityId"] = undefined /*out*/;
|
|
104
69
|
resourceInputs["ruleId"] = undefined /*out*/;
|
|
105
70
|
}
|
|
106
71
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/nrqlDropRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrqlDropRule.js","sourceRoot":"","sources":["../nrqlDropRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"nrqlDropRule.js","sourceRoot":"","sources":["../nrqlDropRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;IAmCD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,2BAA2B,CAAC,GAAG,KAAK,EAAE,yBAAyB,CAAC;YAC/E,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,2BAA2B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;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;;AAzFL,oCA0FC;AA5EG,gBAAgB;AACO,yBAAY,GAAG,0CAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/newrelic",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.52.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing New Relic resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "newrelic",
|
|
26
|
-
"version": "5.
|
|
26
|
+
"version": "5.52.0"
|
|
27
27
|
}
|
|
28
28
|
}
|