@pulumi/newrelic 5.76.0-alpha.1788070069 → 5.76.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/metricPruningRule.d.ts +3 -1
- package/metricPruningRule.d.ts.map +1 -1
- package/metricPruningRule.js +3 -1
- package/metricPruningRule.js.map +1 -1
- package/nrqlDropRule.d.ts +15 -69
- package/nrqlDropRule.d.ts.map +1 -1
- package/nrqlDropRule.js +1 -55
- package/nrqlDropRule.js.map +1 -1
- package/package.json +2 -2
- package/pipelineCloudRule.d.ts +1 -1
- package/pipelineCloudRule.js +1 -1
package/metricPruningRule.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Use this resource to create and manage metric pruning rules for a New Relic account.
|
|
4
4
|
*
|
|
5
|
-
* A metric pruning rule strips specific high-cardinality attributes from dimensional metric aggregates before they are stored. Unlike dropping a metric entirely, pruning keeps the metric signal intact while removing the nominated attributes
|
|
5
|
+
* A metric pruning rule strips specific high-cardinality attributes from dimensional metric aggregates before they are stored. Unlike dropping a metric entirely, pruning keeps the metric signal intact while removing the nominated attributes, reducing cardinality without any loss of the metric itself.
|
|
6
|
+
*
|
|
7
|
+
* > **Migrating from `newrelic.NrqlDropRule`?** If you are migrating [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resources with `action = "dropAttributesFromMetricAggregates"`, `newrelic.MetricPruningRule` is the recommended replacement. Please refer to the [Drop Rules EOL Migration Guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for more details.
|
|
6
8
|
*
|
|
7
9
|
* ***
|
|
8
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metricPruningRule.d.ts","sourceRoot":"","sources":["../metricPruningRule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MA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,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
|
package/metricPruningRule.js
CHANGED
|
@@ -31,7 +31,9 @@ const utilities = __importStar(require("./utilities"));
|
|
|
31
31
|
/**
|
|
32
32
|
* Use this resource to create and manage metric pruning rules for a New Relic account.
|
|
33
33
|
*
|
|
34
|
-
* A metric pruning rule strips specific high-cardinality attributes from dimensional metric aggregates before they are stored. Unlike dropping a metric entirely, pruning keeps the metric signal intact while removing the nominated attributes
|
|
34
|
+
* A metric pruning rule strips specific high-cardinality attributes from dimensional metric aggregates before they are stored. Unlike dropping a metric entirely, pruning keeps the metric signal intact while removing the nominated attributes, reducing cardinality without any loss of the metric itself.
|
|
35
|
+
*
|
|
36
|
+
* > **Migrating from `newrelic.NrqlDropRule`?** If you are migrating [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resources with `action = "dropAttributesFromMetricAggregates"`, `newrelic.MetricPruningRule` is the recommended replacement. Please refer to the [Drop Rules EOL Migration Guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for more details.
|
|
35
37
|
*
|
|
36
38
|
* ***
|
|
37
39
|
*
|
package/metricPruningRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metricPruningRule.js","sourceRoot":"","sources":["../metricPruningRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"metricPruningRule.js","sourceRoot":"","sources":["../metricPruningRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oDAAoD,CAAC;IAE3F;;;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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IA6BD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,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,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,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,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA5EL,8CA6EC"}
|
package/nrqlDropRule.d.ts
CHANGED
|
@@ -1,60 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* > **
|
|
4
|
-
*
|
|
5
|
-
* Use this resource to create, and delete New Relic NRQL Drop Rules.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as newrelic from "@pulumi/newrelic";
|
|
12
|
-
*
|
|
13
|
-
* const foo = new newrelic.NrqlDropRule("foo", {
|
|
14
|
-
* accountId: "12345",
|
|
15
|
-
* 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.",
|
|
16
|
-
* action: "drop_data",
|
|
17
|
-
* nrql: "SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'",
|
|
18
|
-
* });
|
|
19
|
-
* const bar = new newrelic.NrqlDropRule("bar", {
|
|
20
|
-
* accountId: "12345",
|
|
21
|
-
* description: "Removes the user name and email fields from MyCustomEvent",
|
|
22
|
-
* action: "drop_attributes",
|
|
23
|
-
* nrql: "SELECT userEmail, userName FROM MyCustomEvent",
|
|
24
|
-
* });
|
|
25
|
-
* const baz = new newrelic.NrqlDropRule("baz", {
|
|
26
|
-
* accountId: "12345",
|
|
27
|
-
* description: "Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
28
|
-
* action: "drop_attributes_from_metric_aggregates",
|
|
29
|
-
* nrql: "SELECT containerId FROM Metric",
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* ## ⚠️ Upcoming Drop Rules EOL: Transitioning from NRQL Drop Rules to Pipeline Cloud Rules Managed via Terraform
|
|
34
|
-
*
|
|
35
|
-
* <span style="color:red;">The resource [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) is <b>deprecated</b> and will be removed on <b>June 30, 2026</b></span>. While New Relic has automatically migrated your Drop Rules to Pipeline Cloud Rules upstream, <span style="color:tomato;">you must update your Terraform configuration to continue managing Drop Rules as Pipeline Cloud Rules</span>, using the <b style="color:green;">new</b> [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.<br><br>Please see our [migration guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for instructions on switching to the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.
|
|
36
|
-
*
|
|
37
|
-
* While New Relic has automatically migrated your Drop Rules to Pipeline Cloud Rules upstream, <span style="color:tomato;">you must update your Terraform configuration to continue managing Drop Rules as Pipeline Cloud Rules</span>, using the <b style="color:green;">new</b> [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.<br><br>Please see our [migration guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for instructions on switching to the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.
|
|
38
|
-
*
|
|
39
|
-
* ## Using `newrelic-cli` to List Out Drop Rules (Deprecated)
|
|
40
|
-
*
|
|
41
|
-
* All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
|
|
42
|
-
*
|
|
43
|
-
* This would print all drop rules associated with your New Relic account to the terminal.
|
|
44
|
-
* The number of rules to be printed can be customized using the `limit` argument of this command.
|
|
45
|
-
* For instance, the following command limits the number of drop rules printed to two.
|
|
46
|
-
*
|
|
47
|
-
* 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.
|
|
48
|
-
* 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.
|
|
49
|
-
*
|
|
50
|
-
* ## Import
|
|
51
|
-
*
|
|
52
|
-
* New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
53
|
-
* `<account_id>:<rule_id>`, e.g.
|
|
54
|
-
*
|
|
55
|
-
* ```sh
|
|
56
|
-
* $ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
|
|
57
|
-
* ```
|
|
3
|
+
* > **This resource is no longer supported.** <span style="color:red;"><b>The `newrelic.NrqlDropRule` resource reached its end-of-life on August 31, 2026</b> and is no longer functional.</span> It will be removed from the New Relic Terraform Provider in an upcoming release.<br><br>If you are looking for documentation on the arguments, attributes, or usage examples for this resource, please refer to an older release of the New Relic Terraform Provider (v3.97.0 or earlier) in the Terraform Registry release history.<br><br>New Relic has completed the upstream migration of all existing Drop Rules to **Pipeline Cloud Rules**. To continue managing these rules via Terraform, update your configurations to use the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource. For `newrelic.NrqlDropRule` resources with `action = "dropAttributesFromMetricAggregates"`, the recommended alternative is the [`newrelic.MetricPruningRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/metric_pruning_rule) resource.<br><br>Please refer to the [Drop Rules EOL Migration Guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for detailed migration instructions.
|
|
58
4
|
*/
|
|
59
5
|
export declare class NrqlDropRule extends pulumi.CustomResource {
|
|
60
6
|
/**
|
|
@@ -73,23 +19,23 @@ export declare class NrqlDropRule extends pulumi.CustomResource {
|
|
|
73
19
|
*/
|
|
74
20
|
static isInstance(obj: any): obj is NrqlDropRule;
|
|
75
21
|
/**
|
|
76
|
-
* Account
|
|
22
|
+
* Account with the NRQL drop rule will be put.
|
|
77
23
|
*/
|
|
78
24
|
readonly accountId: pulumi.Output<string>;
|
|
79
25
|
/**
|
|
80
|
-
*
|
|
26
|
+
* The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
|
81
27
|
*/
|
|
82
28
|
readonly action: pulumi.Output<string>;
|
|
83
29
|
/**
|
|
84
|
-
*
|
|
30
|
+
* Provides additional information about the rule.
|
|
85
31
|
*/
|
|
86
32
|
readonly description: pulumi.Output<string | undefined>;
|
|
87
33
|
/**
|
|
88
|
-
*
|
|
34
|
+
* Explains which data to apply the drop rule to.
|
|
89
35
|
*/
|
|
90
36
|
readonly nrql: pulumi.Output<string>;
|
|
91
37
|
/**
|
|
92
|
-
* The
|
|
38
|
+
* The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
|
|
93
39
|
*/
|
|
94
40
|
readonly pipelineCloudRuleEntityId: pulumi.Output<string>;
|
|
95
41
|
/**
|
|
@@ -110,23 +56,23 @@ export declare class NrqlDropRule extends pulumi.CustomResource {
|
|
|
110
56
|
*/
|
|
111
57
|
export interface NrqlDropRuleState {
|
|
112
58
|
/**
|
|
113
|
-
* Account
|
|
59
|
+
* Account with the NRQL drop rule will be put.
|
|
114
60
|
*/
|
|
115
61
|
accountId?: pulumi.Input<string | undefined>;
|
|
116
62
|
/**
|
|
117
|
-
*
|
|
63
|
+
* The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
|
118
64
|
*/
|
|
119
65
|
action?: pulumi.Input<string | undefined>;
|
|
120
66
|
/**
|
|
121
|
-
*
|
|
67
|
+
* Provides additional information about the rule.
|
|
122
68
|
*/
|
|
123
69
|
description?: pulumi.Input<string | undefined>;
|
|
124
70
|
/**
|
|
125
|
-
*
|
|
71
|
+
* Explains which data to apply the drop rule to.
|
|
126
72
|
*/
|
|
127
73
|
nrql?: pulumi.Input<string | undefined>;
|
|
128
74
|
/**
|
|
129
|
-
* The
|
|
75
|
+
* The GUID of the corresponding Pipeline Cloud Rule, migrated upstream by New Relic. Use this to import the rule as a newrelic.PipelineCloudRule resource.
|
|
130
76
|
*/
|
|
131
77
|
pipelineCloudRuleEntityId?: pulumi.Input<string | undefined>;
|
|
132
78
|
/**
|
|
@@ -139,19 +85,19 @@ export interface NrqlDropRuleState {
|
|
|
139
85
|
*/
|
|
140
86
|
export interface NrqlDropRuleArgs {
|
|
141
87
|
/**
|
|
142
|
-
* Account
|
|
88
|
+
* Account with the NRQL drop rule will be put.
|
|
143
89
|
*/
|
|
144
90
|
accountId?: pulumi.Input<string | undefined>;
|
|
145
91
|
/**
|
|
146
|
-
*
|
|
92
|
+
* The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
|
147
93
|
*/
|
|
148
94
|
action: pulumi.Input<string>;
|
|
149
95
|
/**
|
|
150
|
-
*
|
|
96
|
+
* Provides additional information about the rule.
|
|
151
97
|
*/
|
|
152
98
|
description?: pulumi.Input<string | undefined>;
|
|
153
99
|
/**
|
|
154
|
-
*
|
|
100
|
+
* Explains which data to apply the drop rule to.
|
|
155
101
|
*/
|
|
156
102
|
nrql: pulumi.Input<string>;
|
|
157
103
|
}
|
package/nrqlDropRule.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrqlDropRule.d.ts","sourceRoot":"","sources":["../nrqlDropRule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"nrqlDropRule.d.ts","sourceRoot":"","sources":["../nrqlDropRule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,YAAY;IAO1I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,YAAY;IAOvD;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAA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AW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
|
package/nrqlDropRule.js
CHANGED
|
@@ -29,61 +29,7 @@ exports.NrqlDropRule = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* > **
|
|
33
|
-
*
|
|
34
|
-
* Use this resource to create, and delete New Relic NRQL Drop Rules.
|
|
35
|
-
*
|
|
36
|
-
* ## Example Usage
|
|
37
|
-
*
|
|
38
|
-
* ```typescript
|
|
39
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
-
* import * as newrelic from "@pulumi/newrelic";
|
|
41
|
-
*
|
|
42
|
-
* const foo = new newrelic.NrqlDropRule("foo", {
|
|
43
|
-
* accountId: "12345",
|
|
44
|
-
* 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.",
|
|
45
|
-
* action: "drop_data",
|
|
46
|
-
* nrql: "SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'",
|
|
47
|
-
* });
|
|
48
|
-
* const bar = new newrelic.NrqlDropRule("bar", {
|
|
49
|
-
* accountId: "12345",
|
|
50
|
-
* description: "Removes the user name and email fields from MyCustomEvent",
|
|
51
|
-
* action: "drop_attributes",
|
|
52
|
-
* nrql: "SELECT userEmail, userName FROM MyCustomEvent",
|
|
53
|
-
* });
|
|
54
|
-
* const baz = new newrelic.NrqlDropRule("baz", {
|
|
55
|
-
* accountId: "12345",
|
|
56
|
-
* description: "Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
57
|
-
* action: "drop_attributes_from_metric_aggregates",
|
|
58
|
-
* nrql: "SELECT containerId FROM Metric",
|
|
59
|
-
* });
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* ## ⚠️ Upcoming Drop Rules EOL: Transitioning from NRQL Drop Rules to Pipeline Cloud Rules Managed via Terraform
|
|
63
|
-
*
|
|
64
|
-
* <span style="color:red;">The resource [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) is <b>deprecated</b> and will be removed on <b>June 30, 2026</b></span>. While New Relic has automatically migrated your Drop Rules to Pipeline Cloud Rules upstream, <span style="color:tomato;">you must update your Terraform configuration to continue managing Drop Rules as Pipeline Cloud Rules</span>, using the <b style="color:green;">new</b> [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.<br><br>Please see our [migration guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for instructions on switching to the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.
|
|
65
|
-
*
|
|
66
|
-
* While New Relic has automatically migrated your Drop Rules to Pipeline Cloud Rules upstream, <span style="color:tomato;">you must update your Terraform configuration to continue managing Drop Rules as Pipeline Cloud Rules</span>, using the <b style="color:green;">new</b> [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.<br><br>Please see our [migration guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for instructions on switching to the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.
|
|
67
|
-
*
|
|
68
|
-
* ## Using `newrelic-cli` to List Out Drop Rules (Deprecated)
|
|
69
|
-
*
|
|
70
|
-
* All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
|
|
71
|
-
*
|
|
72
|
-
* This would print all drop rules associated with your New Relic account to the terminal.
|
|
73
|
-
* The number of rules to be printed can be customized using the `limit` argument of this command.
|
|
74
|
-
* For instance, the following command limits the number of drop rules printed to two.
|
|
75
|
-
*
|
|
76
|
-
* 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.
|
|
77
|
-
* 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.
|
|
78
|
-
*
|
|
79
|
-
* ## Import
|
|
80
|
-
*
|
|
81
|
-
* New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
82
|
-
* `<account_id>:<rule_id>`, e.g.
|
|
83
|
-
*
|
|
84
|
-
* ```sh
|
|
85
|
-
* $ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
|
|
86
|
-
* ```
|
|
32
|
+
* > **This resource is no longer supported.** <span style="color:red;"><b>The `newrelic.NrqlDropRule` resource reached its end-of-life on August 31, 2026</b> and is no longer functional.</span> It will be removed from the New Relic Terraform Provider in an upcoming release.<br><br>If you are looking for documentation on the arguments, attributes, or usage examples for this resource, please refer to an older release of the New Relic Terraform Provider (v3.97.0 or earlier) in the Terraform Registry release history.<br><br>New Relic has completed the upstream migration of all existing Drop Rules to **Pipeline Cloud Rules**. To continue managing these rules via Terraform, update your configurations to use the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource. For `newrelic.NrqlDropRule` resources with `action = "dropAttributesFromMetricAggregates"`, the recommended alternative is the [`newrelic.MetricPruningRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/metric_pruning_rule) resource.<br><br>Please refer to the [Drop Rules EOL Migration Guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for detailed migration instructions.
|
|
87
33
|
*/
|
|
88
34
|
class NrqlDropRule extends pulumi.CustomResource {
|
|
89
35
|
/**
|
package/nrqlDropRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrqlDropRule.js","sourceRoot":"","sources":["../nrqlDropRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"nrqlDropRule.js","sourceRoot":"","sources":["../nrqlDropRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;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;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0CAA0C,CAAC;IAEjF;;;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,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3
|
-
"version": "5.76.0
|
|
3
|
+
"version": "5.76.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.76.0
|
|
26
|
+
"version": "5.76.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/pipelineCloudRule.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Use this resource to create and manage a New Relic Pipeline Cloud Rule.
|
|
4
4
|
*
|
|
5
|
-
* >
|
|
5
|
+
* > **NOTE:** **Starting v3.68.0 of the New Relic Terraform Provider**, <b style="color:green;">Pipeline Cloud Rules can be managed using the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.</b> This resource is the designated replacement for the <span style="color:red;">now end-of-life [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resource</span>, which reached its end-of-life on <b style="color:red;">August 31, 2026</b> and will be removed from the provider in an upcoming release. <br><br>If you are currently using the [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resource, please migrate to [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) at the earliest. Refer to the [Drop Rules EOL Migration Guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for step-by-step instructions.<br><br>
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
package/pipelineCloudRule.js
CHANGED
|
@@ -31,7 +31,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
31
31
|
/**
|
|
32
32
|
* Use this resource to create and manage a New Relic Pipeline Cloud Rule.
|
|
33
33
|
*
|
|
34
|
-
* >
|
|
34
|
+
* > **NOTE:** **Starting v3.68.0 of the New Relic Terraform Provider**, <b style="color:green;">Pipeline Cloud Rules can be managed using the [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource.</b> This resource is the designated replacement for the <span style="color:red;">now end-of-life [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resource</span>, which reached its end-of-life on <b style="color:red;">August 31, 2026</b> and will be removed from the provider in an upcoming release. <br><br>If you are currently using the [`newrelic.NrqlDropRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/nrql_drop_rule) resource, please migrate to [`newrelic.PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) at the earliest. Refer to the [Drop Rules EOL Migration Guide](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/drop_rules_eol_guide) for step-by-step instructions.<br><br>
|
|
35
35
|
*
|
|
36
36
|
* ## Example Usage
|
|
37
37
|
*
|