pulumi-newrelic 5.42.1__py3-none-any.whl → 5.58.0a1766556761__py3-none-any.whl
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.
- pulumi_newrelic/__init__.py +19 -1
- pulumi_newrelic/_inputs.py +4314 -3779
- pulumi_newrelic/_utilities.py +1 -1
- pulumi_newrelic/account_management.py +37 -36
- pulumi_newrelic/alert_channel.py +63 -62
- pulumi_newrelic/alert_condition.py +219 -218
- pulumi_newrelic/alert_muting_rule.py +96 -95
- pulumi_newrelic/alert_policy.py +71 -70
- pulumi_newrelic/alert_policy_channel.py +54 -53
- pulumi_newrelic/api_access_key.py +186 -201
- pulumi_newrelic/browser_application.py +115 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +2226 -2118
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +101 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +71 -70
- pulumi_newrelic/cloud/aws_integrations.py +240 -192
- pulumi_newrelic/cloud/aws_link_account.py +71 -70
- pulumi_newrelic/cloud/azure_integrations.py +180 -132
- pulumi_newrelic/cloud/azure_link_account.py +105 -104
- pulumi_newrelic/cloud/gcp_integrations.py +115 -114
- pulumi_newrelic/cloud/gcp_link_account.py +56 -55
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1512 -1410
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +2 -2
- pulumi_newrelic/config/vars.py +15 -15
- pulumi_newrelic/data_partition_rule.py +114 -113
- pulumi_newrelic/entity_tags.py +79 -22
- pulumi_newrelic/events_to_metrics_rule.py +97 -96
- pulumi_newrelic/get_account.py +22 -22
- pulumi_newrelic/get_alert_channel.py +53 -21
- pulumi_newrelic/get_alert_policy.py +52 -26
- pulumi_newrelic/get_application.py +14 -14
- pulumi_newrelic/get_authentication_domain.py +10 -10
- pulumi_newrelic/get_cloud_account.py +22 -22
- pulumi_newrelic/get_entity.py +53 -53
- pulumi_newrelic/get_group.py +22 -22
- pulumi_newrelic/get_key_transaction.py +26 -26
- pulumi_newrelic/get_notification_destination.py +31 -31
- pulumi_newrelic/get_obfuscation_expression.py +16 -16
- pulumi_newrelic/get_service_level_alert_helper.py +54 -54
- pulumi_newrelic/get_test_grok_pattern.py +23 -23
- pulumi_newrelic/get_user.py +22 -22
- pulumi_newrelic/group.py +54 -53
- pulumi_newrelic/infra_alert_condition.py +257 -256
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +33 -33
- pulumi_newrelic/insights/event.py +6 -5
- pulumi_newrelic/insights/outputs.py +23 -23
- pulumi_newrelic/key_transaction.py +106 -105
- pulumi_newrelic/log_parsing_rule.py +148 -147
- pulumi_newrelic/monitor_downtime.py +148 -154
- pulumi_newrelic/notification_channel.py +218 -163
- pulumi_newrelic/notification_destination.py +123 -136
- pulumi_newrelic/nrql_alert_condition.py +513 -414
- pulumi_newrelic/nrql_drop_rule.py +108 -147
- pulumi_newrelic/obfuscation_expression.py +71 -70
- pulumi_newrelic/obfuscation_rule.py +91 -90
- pulumi_newrelic/one_dashboard.py +95 -94
- pulumi_newrelic/one_dashboard_json.py +64 -63
- pulumi_newrelic/one_dashboard_raw.py +116 -115
- pulumi_newrelic/outputs.py +3026 -2665
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +159 -159
- pulumi_newrelic/plugins/application_settings.py +186 -171
- pulumi_newrelic/plugins/outputs.py +109 -109
- pulumi_newrelic/plugins/workload.py +133 -132
- pulumi_newrelic/provider.py +136 -116
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +78 -77
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +128 -128
- pulumi_newrelic/synthetics/alert_condition.py +97 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +218 -189
- pulumi_newrelic/synthetics/cert_check_monitor.py +226 -197
- pulumi_newrelic/synthetics/get_private_location.py +22 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +20 -20
- pulumi_newrelic/synthetics/monitor.py +399 -370
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +120 -119
- pulumi_newrelic/synthetics/outputs.py +86 -86
- pulumi_newrelic/synthetics/private_location.py +107 -106
- pulumi_newrelic/synthetics/script_monitor.py +385 -294
- pulumi_newrelic/synthetics/secure_credential.py +88 -87
- pulumi_newrelic/synthetics/step_monitor.py +241 -212
- pulumi_newrelic/user.py +71 -70
- pulumi_newrelic/workflow.py +141 -140
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/METADATA +4 -4
- pulumi_newrelic-5.58.0a1766556761.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.42.1.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -19,16 +19,16 @@ __all__ = ['NrqlDropRuleArgs', 'NrqlDropRule']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class NrqlDropRuleArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
action: pulumi.Input[str],
|
|
23
|
-
nrql: pulumi.Input[str],
|
|
24
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
25
|
-
description: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
action: pulumi.Input[_builtins.str],
|
|
23
|
+
nrql: pulumi.Input[_builtins.str],
|
|
24
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
description: Optional[pulumi.Input[_builtins.str]] = None):
|
|
26
26
|
"""
|
|
27
27
|
The set of arguments for constructing a NrqlDropRule resource.
|
|
28
|
-
:param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
29
|
-
:param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
|
|
30
|
-
:param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
31
|
-
:param pulumi.Input[str] description: The description of the drop rule.
|
|
28
|
+
:param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
29
|
+
:param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
|
|
30
|
+
:param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
31
|
+
:param pulumi.Input[_builtins.str] description: The description of the drop rule.
|
|
32
32
|
"""
|
|
33
33
|
pulumi.set(__self__, "action", action)
|
|
34
34
|
pulumi.set(__self__, "nrql", nrql)
|
|
@@ -37,70 +37,72 @@ class NrqlDropRuleArgs:
|
|
|
37
37
|
if description is not None:
|
|
38
38
|
pulumi.set(__self__, "description", description)
|
|
39
39
|
|
|
40
|
-
@property
|
|
40
|
+
@_builtins.property
|
|
41
41
|
@pulumi.getter
|
|
42
|
-
def action(self) -> pulumi.Input[str]:
|
|
42
|
+
def action(self) -> pulumi.Input[_builtins.str]:
|
|
43
43
|
"""
|
|
44
44
|
An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
45
45
|
"""
|
|
46
46
|
return pulumi.get(self, "action")
|
|
47
47
|
|
|
48
48
|
@action.setter
|
|
49
|
-
def action(self, value: pulumi.Input[str]):
|
|
49
|
+
def action(self, value: pulumi.Input[_builtins.str]):
|
|
50
50
|
pulumi.set(self, "action", value)
|
|
51
51
|
|
|
52
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
53
53
|
@pulumi.getter
|
|
54
|
-
def nrql(self) -> pulumi.Input[str]:
|
|
54
|
+
def nrql(self) -> pulumi.Input[_builtins.str]:
|
|
55
55
|
"""
|
|
56
56
|
A NRQL string that specifies what data types to drop.
|
|
57
57
|
"""
|
|
58
58
|
return pulumi.get(self, "nrql")
|
|
59
59
|
|
|
60
60
|
@nrql.setter
|
|
61
|
-
def nrql(self, value: pulumi.Input[str]):
|
|
61
|
+
def nrql(self, value: pulumi.Input[_builtins.str]):
|
|
62
62
|
pulumi.set(self, "nrql", value)
|
|
63
63
|
|
|
64
|
-
@property
|
|
64
|
+
@_builtins.property
|
|
65
65
|
@pulumi.getter(name="accountId")
|
|
66
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
66
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
67
67
|
"""
|
|
68
68
|
Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
69
69
|
"""
|
|
70
70
|
return pulumi.get(self, "account_id")
|
|
71
71
|
|
|
72
72
|
@account_id.setter
|
|
73
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
73
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
74
74
|
pulumi.set(self, "account_id", value)
|
|
75
75
|
|
|
76
|
-
@property
|
|
76
|
+
@_builtins.property
|
|
77
77
|
@pulumi.getter
|
|
78
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
78
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
79
79
|
"""
|
|
80
80
|
The description of the drop rule.
|
|
81
81
|
"""
|
|
82
82
|
return pulumi.get(self, "description")
|
|
83
83
|
|
|
84
84
|
@description.setter
|
|
85
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
85
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
86
86
|
pulumi.set(self, "description", value)
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
@pulumi.input_type
|
|
90
90
|
class _NrqlDropRuleState:
|
|
91
91
|
def __init__(__self__, *,
|
|
92
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
93
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
94
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
95
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
96
|
-
|
|
92
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
93
|
+
action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
94
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
95
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
96
|
+
pipeline_cloud_rule_entity_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
97
|
+
rule_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
97
98
|
"""
|
|
98
99
|
Input properties used for looking up and filtering NrqlDropRule resources.
|
|
99
|
-
:param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
100
|
-
:param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
101
|
-
:param pulumi.Input[str] description: The description of the drop rule.
|
|
102
|
-
:param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
|
|
103
|
-
:param pulumi.Input[str]
|
|
100
|
+
:param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
101
|
+
:param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
102
|
+
:param pulumi.Input[_builtins.str] description: The description of the drop rule.
|
|
103
|
+
:param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
|
|
104
|
+
:param pulumi.Input[_builtins.str] pipeline_cloud_rule_entity_id: 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 [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
|
|
105
|
+
:param pulumi.Input[_builtins.str] rule_id: The id, uniquely identifying the rule.
|
|
104
106
|
"""
|
|
105
107
|
if account_id is not None:
|
|
106
108
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -110,115 +112,96 @@ class _NrqlDropRuleState:
|
|
|
110
112
|
pulumi.set(__self__, "description", description)
|
|
111
113
|
if nrql is not None:
|
|
112
114
|
pulumi.set(__self__, "nrql", nrql)
|
|
115
|
+
if pipeline_cloud_rule_entity_id is not None:
|
|
116
|
+
pulumi.set(__self__, "pipeline_cloud_rule_entity_id", pipeline_cloud_rule_entity_id)
|
|
113
117
|
if rule_id is not None:
|
|
114
118
|
pulumi.set(__self__, "rule_id", rule_id)
|
|
115
119
|
|
|
116
|
-
@property
|
|
120
|
+
@_builtins.property
|
|
117
121
|
@pulumi.getter(name="accountId")
|
|
118
|
-
def account_id(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
119
123
|
"""
|
|
120
124
|
Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
121
125
|
"""
|
|
122
126
|
return pulumi.get(self, "account_id")
|
|
123
127
|
|
|
124
128
|
@account_id.setter
|
|
125
|
-
def account_id(self, value: Optional[pulumi.Input[str]]):
|
|
129
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
126
130
|
pulumi.set(self, "account_id", value)
|
|
127
131
|
|
|
128
|
-
@property
|
|
132
|
+
@_builtins.property
|
|
129
133
|
@pulumi.getter
|
|
130
|
-
def action(self) -> Optional[pulumi.Input[str]]:
|
|
134
|
+
def action(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
131
135
|
"""
|
|
132
136
|
An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
133
137
|
"""
|
|
134
138
|
return pulumi.get(self, "action")
|
|
135
139
|
|
|
136
140
|
@action.setter
|
|
137
|
-
def action(self, value: Optional[pulumi.Input[str]]):
|
|
141
|
+
def action(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
138
142
|
pulumi.set(self, "action", value)
|
|
139
143
|
|
|
140
|
-
@property
|
|
144
|
+
@_builtins.property
|
|
141
145
|
@pulumi.getter
|
|
142
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
146
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
143
147
|
"""
|
|
144
148
|
The description of the drop rule.
|
|
145
149
|
"""
|
|
146
150
|
return pulumi.get(self, "description")
|
|
147
151
|
|
|
148
152
|
@description.setter
|
|
149
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
153
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
150
154
|
pulumi.set(self, "description", value)
|
|
151
155
|
|
|
152
|
-
@property
|
|
156
|
+
@_builtins.property
|
|
153
157
|
@pulumi.getter
|
|
154
|
-
def nrql(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
def nrql(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
155
159
|
"""
|
|
156
160
|
A NRQL string that specifies what data types to drop.
|
|
157
161
|
"""
|
|
158
162
|
return pulumi.get(self, "nrql")
|
|
159
163
|
|
|
160
164
|
@nrql.setter
|
|
161
|
-
def nrql(self, value: Optional[pulumi.Input[str]]):
|
|
165
|
+
def nrql(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
162
166
|
pulumi.set(self, "nrql", value)
|
|
163
167
|
|
|
164
|
-
@property
|
|
168
|
+
@_builtins.property
|
|
169
|
+
@pulumi.getter(name="pipelineCloudRuleEntityId")
|
|
170
|
+
def pipeline_cloud_rule_entity_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
171
|
+
"""
|
|
172
|
+
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 [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "pipeline_cloud_rule_entity_id")
|
|
175
|
+
|
|
176
|
+
@pipeline_cloud_rule_entity_id.setter
|
|
177
|
+
def pipeline_cloud_rule_entity_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
178
|
+
pulumi.set(self, "pipeline_cloud_rule_entity_id", value)
|
|
179
|
+
|
|
180
|
+
@_builtins.property
|
|
165
181
|
@pulumi.getter(name="ruleId")
|
|
166
|
-
def rule_id(self) -> Optional[pulumi.Input[str]]:
|
|
182
|
+
def rule_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
167
183
|
"""
|
|
168
184
|
The id, uniquely identifying the rule.
|
|
169
185
|
"""
|
|
170
186
|
return pulumi.get(self, "rule_id")
|
|
171
187
|
|
|
172
188
|
@rule_id.setter
|
|
173
|
-
def rule_id(self, value: Optional[pulumi.Input[str]]):
|
|
189
|
+
def rule_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
174
190
|
pulumi.set(self, "rule_id", value)
|
|
175
191
|
|
|
176
192
|
|
|
193
|
+
@pulumi.type_token("newrelic:index/nrqlDropRule:NrqlDropRule")
|
|
177
194
|
class NrqlDropRule(pulumi.CustomResource):
|
|
178
195
|
@overload
|
|
179
196
|
def __init__(__self__,
|
|
180
197
|
resource_name: str,
|
|
181
198
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
182
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
183
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
184
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
185
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
199
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
200
|
+
action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
201
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
202
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
186
203
|
__props__=None):
|
|
187
204
|
"""
|
|
188
|
-
## Example Usage
|
|
189
|
-
|
|
190
|
-
```python
|
|
191
|
-
import pulumi
|
|
192
|
-
import pulumi_newrelic as newrelic
|
|
193
|
-
|
|
194
|
-
foo = newrelic.NrqlDropRule("foo",
|
|
195
|
-
account_id="12345",
|
|
196
|
-
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.",
|
|
197
|
-
action="drop_data",
|
|
198
|
-
nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
|
|
199
|
-
bar = newrelic.NrqlDropRule("bar",
|
|
200
|
-
account_id="12345",
|
|
201
|
-
description="Removes the user name and email fields from MyCustomEvent",
|
|
202
|
-
action="drop_attributes",
|
|
203
|
-
nrql="SELECT userEmail, userName FROM MyCustomEvent")
|
|
204
|
-
baz = newrelic.NrqlDropRule("baz",
|
|
205
|
-
account_id="12345",
|
|
206
|
-
description="Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
207
|
-
action="drop_attributes_from_metric_aggregates",
|
|
208
|
-
nrql="SELECT containerId FROM Metric")
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
## Using `newrelic-cli` to List Out Drop Rules
|
|
212
|
-
|
|
213
|
-
All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
|
|
214
|
-
|
|
215
|
-
This would print all drop rules associated with your New Relic account to the terminal.
|
|
216
|
-
The number of rules to be printed can be customized using the `limit` argument of this command.
|
|
217
|
-
For instance, the following command limits the number of drop rules printed to two.
|
|
218
|
-
|
|
219
|
-
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.
|
|
220
|
-
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.
|
|
221
|
-
|
|
222
205
|
## Import
|
|
223
206
|
|
|
224
207
|
New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
@@ -233,10 +216,10 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
233
216
|
|
|
234
217
|
:param str resource_name: The name of the resource.
|
|
235
218
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
236
|
-
:param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
237
|
-
:param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
238
|
-
:param pulumi.Input[str] description: The description of the drop rule.
|
|
239
|
-
:param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
|
|
219
|
+
:param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
220
|
+
:param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
221
|
+
:param pulumi.Input[_builtins.str] description: The description of the drop rule.
|
|
222
|
+
:param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
|
|
240
223
|
"""
|
|
241
224
|
...
|
|
242
225
|
@overload
|
|
@@ -245,40 +228,6 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
245
228
|
args: NrqlDropRuleArgs,
|
|
246
229
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
247
230
|
"""
|
|
248
|
-
## Example Usage
|
|
249
|
-
|
|
250
|
-
```python
|
|
251
|
-
import pulumi
|
|
252
|
-
import pulumi_newrelic as newrelic
|
|
253
|
-
|
|
254
|
-
foo = newrelic.NrqlDropRule("foo",
|
|
255
|
-
account_id="12345",
|
|
256
|
-
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.",
|
|
257
|
-
action="drop_data",
|
|
258
|
-
nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
|
|
259
|
-
bar = newrelic.NrqlDropRule("bar",
|
|
260
|
-
account_id="12345",
|
|
261
|
-
description="Removes the user name and email fields from MyCustomEvent",
|
|
262
|
-
action="drop_attributes",
|
|
263
|
-
nrql="SELECT userEmail, userName FROM MyCustomEvent")
|
|
264
|
-
baz = newrelic.NrqlDropRule("baz",
|
|
265
|
-
account_id="12345",
|
|
266
|
-
description="Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
267
|
-
action="drop_attributes_from_metric_aggregates",
|
|
268
|
-
nrql="SELECT containerId FROM Metric")
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
## Using `newrelic-cli` to List Out Drop Rules
|
|
272
|
-
|
|
273
|
-
All NRQL Drop Rules associated with a New Relic account may be listed out using the following newrelic-cli command:
|
|
274
|
-
|
|
275
|
-
This would print all drop rules associated with your New Relic account to the terminal.
|
|
276
|
-
The number of rules to be printed can be customized using the `limit` argument of this command.
|
|
277
|
-
For instance, the following command limits the number of drop rules printed to two.
|
|
278
|
-
|
|
279
|
-
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.
|
|
280
|
-
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.
|
|
281
|
-
|
|
282
231
|
## Import
|
|
283
232
|
|
|
284
233
|
New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
@@ -306,10 +255,10 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
306
255
|
def _internal_init(__self__,
|
|
307
256
|
resource_name: str,
|
|
308
257
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
309
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
310
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
311
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
312
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
258
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
259
|
+
action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
260
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
261
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
313
262
|
__props__=None):
|
|
314
263
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
315
264
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -327,6 +276,7 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
327
276
|
if nrql is None and not opts.urn:
|
|
328
277
|
raise TypeError("Missing required property 'nrql'")
|
|
329
278
|
__props__.__dict__["nrql"] = nrql
|
|
279
|
+
__props__.__dict__["pipeline_cloud_rule_entity_id"] = None
|
|
330
280
|
__props__.__dict__["rule_id"] = None
|
|
331
281
|
super(NrqlDropRule, __self__).__init__(
|
|
332
282
|
'newrelic:index/nrqlDropRule:NrqlDropRule',
|
|
@@ -338,11 +288,12 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
338
288
|
def get(resource_name: str,
|
|
339
289
|
id: pulumi.Input[str],
|
|
340
290
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
341
|
-
account_id: Optional[pulumi.Input[str]] = None,
|
|
342
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
343
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
344
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
345
|
-
|
|
291
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
292
|
+
action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
293
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
294
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
295
|
+
pipeline_cloud_rule_entity_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
296
|
+
rule_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'NrqlDropRule':
|
|
346
297
|
"""
|
|
347
298
|
Get an existing NrqlDropRule resource's state with the given name, id, and optional extra
|
|
348
299
|
properties used to qualify the lookup.
|
|
@@ -350,11 +301,12 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
350
301
|
:param str resource_name: The unique name of the resulting resource.
|
|
351
302
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
352
303
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
353
|
-
:param pulumi.Input[str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
354
|
-
:param pulumi.Input[str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
355
|
-
:param pulumi.Input[str] description: The description of the drop rule.
|
|
356
|
-
:param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
|
|
357
|
-
:param pulumi.Input[str]
|
|
304
|
+
:param pulumi.Input[_builtins.str] account_id: Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
305
|
+
:param pulumi.Input[_builtins.str] action: An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
306
|
+
:param pulumi.Input[_builtins.str] description: The description of the drop rule.
|
|
307
|
+
:param pulumi.Input[_builtins.str] nrql: A NRQL string that specifies what data types to drop.
|
|
308
|
+
:param pulumi.Input[_builtins.str] pipeline_cloud_rule_entity_id: 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 [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
|
|
309
|
+
:param pulumi.Input[_builtins.str] rule_id: The id, uniquely identifying the rule.
|
|
358
310
|
"""
|
|
359
311
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
360
312
|
|
|
@@ -364,44 +316,53 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
364
316
|
__props__.__dict__["action"] = action
|
|
365
317
|
__props__.__dict__["description"] = description
|
|
366
318
|
__props__.__dict__["nrql"] = nrql
|
|
319
|
+
__props__.__dict__["pipeline_cloud_rule_entity_id"] = pipeline_cloud_rule_entity_id
|
|
367
320
|
__props__.__dict__["rule_id"] = rule_id
|
|
368
321
|
return NrqlDropRule(resource_name, opts=opts, __props__=__props__)
|
|
369
322
|
|
|
370
|
-
@property
|
|
323
|
+
@_builtins.property
|
|
371
324
|
@pulumi.getter(name="accountId")
|
|
372
|
-
def account_id(self) -> pulumi.Output[str]:
|
|
325
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
373
326
|
"""
|
|
374
327
|
Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
375
328
|
"""
|
|
376
329
|
return pulumi.get(self, "account_id")
|
|
377
330
|
|
|
378
|
-
@property
|
|
331
|
+
@_builtins.property
|
|
379
332
|
@pulumi.getter
|
|
380
|
-
def action(self) -> pulumi.Output[str]:
|
|
333
|
+
def action(self) -> pulumi.Output[_builtins.str]:
|
|
381
334
|
"""
|
|
382
335
|
An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
383
336
|
"""
|
|
384
337
|
return pulumi.get(self, "action")
|
|
385
338
|
|
|
386
|
-
@property
|
|
339
|
+
@_builtins.property
|
|
387
340
|
@pulumi.getter
|
|
388
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
341
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
389
342
|
"""
|
|
390
343
|
The description of the drop rule.
|
|
391
344
|
"""
|
|
392
345
|
return pulumi.get(self, "description")
|
|
393
346
|
|
|
394
|
-
@property
|
|
347
|
+
@_builtins.property
|
|
395
348
|
@pulumi.getter
|
|
396
|
-
def nrql(self) -> pulumi.Output[str]:
|
|
349
|
+
def nrql(self) -> pulumi.Output[_builtins.str]:
|
|
397
350
|
"""
|
|
398
351
|
A NRQL string that specifies what data types to drop.
|
|
399
352
|
"""
|
|
400
353
|
return pulumi.get(self, "nrql")
|
|
401
354
|
|
|
402
|
-
@property
|
|
355
|
+
@_builtins.property
|
|
356
|
+
@pulumi.getter(name="pipelineCloudRuleEntityId")
|
|
357
|
+
def pipeline_cloud_rule_entity_id(self) -> pulumi.Output[_builtins.str]:
|
|
358
|
+
"""
|
|
359
|
+
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 [`PipelineCloudRule`](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/resources/pipeline_cloud_rule) resource, as explained in our Drop Rules EOL Migration Guide.
|
|
360
|
+
"""
|
|
361
|
+
return pulumi.get(self, "pipeline_cloud_rule_entity_id")
|
|
362
|
+
|
|
363
|
+
@_builtins.property
|
|
403
364
|
@pulumi.getter(name="ruleId")
|
|
404
|
-
def rule_id(self) -> pulumi.Output[str]:
|
|
365
|
+
def rule_id(self) -> pulumi.Output[_builtins.str]:
|
|
405
366
|
"""
|
|
406
367
|
The id, uniquely identifying the rule.
|
|
407
368
|
"""
|