pulumi-newrelic 5.16.0a1698964311__py3-none-any.whl → 5.58.0a1763707205__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.
Potentially problematic release.
This version of pulumi-newrelic might be problematic. Click here for more details.
- pulumi_newrelic/__init__.py +58 -1
- pulumi_newrelic/_inputs.py +10772 -2775
- pulumi_newrelic/_utilities.py +92 -11
- pulumi_newrelic/account_management.py +56 -42
- pulumi_newrelic/alert_channel.py +177 -151
- pulumi_newrelic/alert_condition.py +313 -301
- pulumi_newrelic/alert_muting_rule.py +195 -138
- pulumi_newrelic/alert_policy.py +157 -109
- pulumi_newrelic/alert_policy_channel.py +95 -81
- pulumi_newrelic/api_access_key.py +191 -209
- pulumi_newrelic/browser_application.py +161 -153
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2710
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
- pulumi_newrelic/cloud/aws_integrations.py +518 -1490
- pulumi_newrelic/cloud/aws_link_account.py +88 -76
- pulumi_newrelic/cloud/azure_integrations.py +681 -587
- pulumi_newrelic/cloud/azure_link_account.py +129 -117
- pulumi_newrelic/cloud/gcp_integrations.py +436 -408
- pulumi_newrelic/cloud/gcp_link_account.py +71 -59
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2317
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +45 -0
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +129 -117
- pulumi_newrelic/entity_tags.py +153 -31
- pulumi_newrelic/events_to_metrics_rule.py +114 -102
- pulumi_newrelic/get_account.py +41 -29
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +83 -34
- pulumi_newrelic/get_application.py +51 -39
- pulumi_newrelic/get_authentication_domain.py +111 -0
- pulumi_newrelic/get_cloud_account.py +43 -31
- pulumi_newrelic/get_entity.py +126 -121
- pulumi_newrelic/get_group.py +190 -0
- pulumi_newrelic/get_key_transaction.py +117 -38
- pulumi_newrelic/get_notification_destination.py +86 -36
- pulumi_newrelic/get_obfuscation_expression.py +47 -35
- pulumi_newrelic/get_service_level_alert_helper.py +237 -137
- pulumi_newrelic/get_test_grok_pattern.py +47 -32
- pulumi_newrelic/get_user.py +165 -0
- pulumi_newrelic/group.py +286 -0
- pulumi_newrelic/infra_alert_condition.py +400 -382
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +94 -23
- pulumi_newrelic/insights/event.py +56 -48
- pulumi_newrelic/insights/outputs.py +51 -18
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +169 -153
- pulumi_newrelic/monitor_downtime.py +914 -0
- pulumi_newrelic/notification_channel.py +560 -418
- pulumi_newrelic/notification_destination.py +379 -124
- pulumi_newrelic/nrql_alert_condition.py +945 -513
- pulumi_newrelic/nrql_drop_rule.py +121 -129
- pulumi_newrelic/obfuscation_expression.py +88 -76
- pulumi_newrelic/obfuscation_rule.py +123 -109
- pulumi_newrelic/one_dashboard.py +118 -108
- pulumi_newrelic/one_dashboard_json.py +77 -67
- pulumi_newrelic/one_dashboard_raw.py +214 -202
- pulumi_newrelic/outputs.py +5491 -2141
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +520 -90
- pulumi_newrelic/plugins/application_settings.py +463 -167
- pulumi_newrelic/plugins/outputs.py +337 -75
- pulumi_newrelic/plugins/workload.py +387 -151
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +277 -255
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +275 -106
- pulumi_newrelic/synthetics/alert_condition.py +174 -160
- pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
- pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
- pulumi_newrelic/synthetics/get_private_location.py +51 -39
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
- pulumi_newrelic/synthetics/monitor.py +668 -462
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
- pulumi_newrelic/synthetics/outputs.py +102 -85
- pulumi_newrelic/synthetics/private_location.py +120 -110
- pulumi_newrelic/synthetics/script_monitor.py +623 -375
- pulumi_newrelic/synthetics/secure_credential.py +99 -93
- pulumi_newrelic/synthetics/step_monitor.py +545 -201
- pulumi_newrelic/user.py +366 -0
- pulumi_newrelic/workflow.py +348 -312
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
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
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['NrqlDropRuleArgs', 'NrqlDropRule']
|
|
@@ -14,16 +19,16 @@ __all__ = ['NrqlDropRuleArgs', 'NrqlDropRule']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class NrqlDropRuleArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
action: pulumi.Input[str],
|
|
18
|
-
nrql: pulumi.Input[str],
|
|
19
|
-
account_id: Optional[pulumi.Input[
|
|
20
|
-
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):
|
|
21
26
|
"""
|
|
22
27
|
The set of arguments for constructing a NrqlDropRule resource.
|
|
23
|
-
: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`).
|
|
24
|
-
:param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
|
|
25
|
-
:param pulumi.Input[
|
|
26
|
-
: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.
|
|
27
32
|
"""
|
|
28
33
|
pulumi.set(__self__, "action", action)
|
|
29
34
|
pulumi.set(__self__, "nrql", nrql)
|
|
@@ -32,70 +37,72 @@ class NrqlDropRuleArgs:
|
|
|
32
37
|
if description is not None:
|
|
33
38
|
pulumi.set(__self__, "description", description)
|
|
34
39
|
|
|
35
|
-
@property
|
|
40
|
+
@_builtins.property
|
|
36
41
|
@pulumi.getter
|
|
37
|
-
def action(self) -> pulumi.Input[str]:
|
|
42
|
+
def action(self) -> pulumi.Input[_builtins.str]:
|
|
38
43
|
"""
|
|
39
44
|
An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
40
45
|
"""
|
|
41
46
|
return pulumi.get(self, "action")
|
|
42
47
|
|
|
43
48
|
@action.setter
|
|
44
|
-
def action(self, value: pulumi.Input[str]):
|
|
49
|
+
def action(self, value: pulumi.Input[_builtins.str]):
|
|
45
50
|
pulumi.set(self, "action", value)
|
|
46
51
|
|
|
47
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
48
53
|
@pulumi.getter
|
|
49
|
-
def nrql(self) -> pulumi.Input[str]:
|
|
54
|
+
def nrql(self) -> pulumi.Input[_builtins.str]:
|
|
50
55
|
"""
|
|
51
56
|
A NRQL string that specifies what data types to drop.
|
|
52
57
|
"""
|
|
53
58
|
return pulumi.get(self, "nrql")
|
|
54
59
|
|
|
55
60
|
@nrql.setter
|
|
56
|
-
def nrql(self, value: pulumi.Input[str]):
|
|
61
|
+
def nrql(self, value: pulumi.Input[_builtins.str]):
|
|
57
62
|
pulumi.set(self, "nrql", value)
|
|
58
63
|
|
|
59
|
-
@property
|
|
64
|
+
@_builtins.property
|
|
60
65
|
@pulumi.getter(name="accountId")
|
|
61
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
66
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
62
67
|
"""
|
|
63
68
|
Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
64
69
|
"""
|
|
65
70
|
return pulumi.get(self, "account_id")
|
|
66
71
|
|
|
67
72
|
@account_id.setter
|
|
68
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
73
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
69
74
|
pulumi.set(self, "account_id", value)
|
|
70
75
|
|
|
71
|
-
@property
|
|
76
|
+
@_builtins.property
|
|
72
77
|
@pulumi.getter
|
|
73
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
78
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
74
79
|
"""
|
|
75
80
|
The description of the drop rule.
|
|
76
81
|
"""
|
|
77
82
|
return pulumi.get(self, "description")
|
|
78
83
|
|
|
79
84
|
@description.setter
|
|
80
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
85
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
81
86
|
pulumi.set(self, "description", value)
|
|
82
87
|
|
|
83
88
|
|
|
84
89
|
@pulumi.input_type
|
|
85
90
|
class _NrqlDropRuleState:
|
|
86
91
|
def __init__(__self__, *,
|
|
87
|
-
account_id: Optional[pulumi.Input[
|
|
88
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
89
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
90
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
91
|
-
|
|
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):
|
|
92
98
|
"""
|
|
93
99
|
Input properties used for looking up and filtering NrqlDropRule resources.
|
|
94
|
-
:param pulumi.Input[
|
|
95
|
-
: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`).
|
|
96
|
-
:param pulumi.Input[str] description: The description of the drop rule.
|
|
97
|
-
:param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
|
|
98
|
-
: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.
|
|
99
106
|
"""
|
|
100
107
|
if account_id is not None:
|
|
101
108
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -105,120 +112,114 @@ class _NrqlDropRuleState:
|
|
|
105
112
|
pulumi.set(__self__, "description", description)
|
|
106
113
|
if nrql is not None:
|
|
107
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)
|
|
108
117
|
if rule_id is not None:
|
|
109
118
|
pulumi.set(__self__, "rule_id", rule_id)
|
|
110
119
|
|
|
111
|
-
@property
|
|
120
|
+
@_builtins.property
|
|
112
121
|
@pulumi.getter(name="accountId")
|
|
113
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
122
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
114
123
|
"""
|
|
115
124
|
Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
116
125
|
"""
|
|
117
126
|
return pulumi.get(self, "account_id")
|
|
118
127
|
|
|
119
128
|
@account_id.setter
|
|
120
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
129
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
121
130
|
pulumi.set(self, "account_id", value)
|
|
122
131
|
|
|
123
|
-
@property
|
|
132
|
+
@_builtins.property
|
|
124
133
|
@pulumi.getter
|
|
125
|
-
def action(self) -> Optional[pulumi.Input[str]]:
|
|
134
|
+
def action(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
126
135
|
"""
|
|
127
136
|
An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
128
137
|
"""
|
|
129
138
|
return pulumi.get(self, "action")
|
|
130
139
|
|
|
131
140
|
@action.setter
|
|
132
|
-
def action(self, value: Optional[pulumi.Input[str]]):
|
|
141
|
+
def action(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
133
142
|
pulumi.set(self, "action", value)
|
|
134
143
|
|
|
135
|
-
@property
|
|
144
|
+
@_builtins.property
|
|
136
145
|
@pulumi.getter
|
|
137
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
146
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
138
147
|
"""
|
|
139
148
|
The description of the drop rule.
|
|
140
149
|
"""
|
|
141
150
|
return pulumi.get(self, "description")
|
|
142
151
|
|
|
143
152
|
@description.setter
|
|
144
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
153
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
145
154
|
pulumi.set(self, "description", value)
|
|
146
155
|
|
|
147
|
-
@property
|
|
156
|
+
@_builtins.property
|
|
148
157
|
@pulumi.getter
|
|
149
|
-
def nrql(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
def nrql(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
150
159
|
"""
|
|
151
160
|
A NRQL string that specifies what data types to drop.
|
|
152
161
|
"""
|
|
153
162
|
return pulumi.get(self, "nrql")
|
|
154
163
|
|
|
155
164
|
@nrql.setter
|
|
156
|
-
def nrql(self, value: Optional[pulumi.Input[str]]):
|
|
165
|
+
def nrql(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
157
166
|
pulumi.set(self, "nrql", value)
|
|
158
167
|
|
|
159
|
-
@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
|
|
160
181
|
@pulumi.getter(name="ruleId")
|
|
161
|
-
def rule_id(self) -> Optional[pulumi.Input[str]]:
|
|
182
|
+
def rule_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
162
183
|
"""
|
|
163
184
|
The id, uniquely identifying the rule.
|
|
164
185
|
"""
|
|
165
186
|
return pulumi.get(self, "rule_id")
|
|
166
187
|
|
|
167
188
|
@rule_id.setter
|
|
168
|
-
def rule_id(self, value: Optional[pulumi.Input[str]]):
|
|
189
|
+
def rule_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
169
190
|
pulumi.set(self, "rule_id", value)
|
|
170
191
|
|
|
171
192
|
|
|
193
|
+
@pulumi.type_token("newrelic:index/nrqlDropRule:NrqlDropRule")
|
|
172
194
|
class NrqlDropRule(pulumi.CustomResource):
|
|
173
195
|
@overload
|
|
174
196
|
def __init__(__self__,
|
|
175
197
|
resource_name: str,
|
|
176
198
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
177
|
-
account_id: Optional[pulumi.Input[
|
|
178
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
179
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
180
|
-
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,
|
|
181
203
|
__props__=None):
|
|
182
204
|
"""
|
|
183
|
-
## Example Usage
|
|
184
|
-
|
|
185
|
-
```python
|
|
186
|
-
import pulumi
|
|
187
|
-
import pulumi_newrelic as newrelic
|
|
188
|
-
|
|
189
|
-
foo = newrelic.NrqlDropRule("foo",
|
|
190
|
-
account_id=12345,
|
|
191
|
-
action="drop_data",
|
|
192
|
-
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.",
|
|
193
|
-
nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
|
|
194
|
-
bar = newrelic.NrqlDropRule("bar",
|
|
195
|
-
account_id=12345,
|
|
196
|
-
action="drop_attributes",
|
|
197
|
-
description="Removes the user name and email fields from MyCustomEvent",
|
|
198
|
-
nrql="SELECT userEmail, userName FROM MyCustomEvent")
|
|
199
|
-
baz = newrelic.NrqlDropRule("baz",
|
|
200
|
-
account_id=12345,
|
|
201
|
-
action="drop_attributes_from_metric_aggregates",
|
|
202
|
-
description="Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
203
|
-
nrql="SELECT containerId FROM Metric")
|
|
204
|
-
```
|
|
205
|
-
|
|
206
205
|
## Import
|
|
207
206
|
|
|
208
207
|
New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
209
208
|
|
|
210
|
-
|
|
209
|
+
`<account_id>:<rule_id>`, e.g.
|
|
210
|
+
|
|
211
|
+
bash
|
|
211
212
|
|
|
212
213
|
```sh
|
|
213
|
-
|
|
214
|
+
$ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
|
|
214
215
|
```
|
|
215
216
|
|
|
216
217
|
:param str resource_name: The name of the resource.
|
|
217
218
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
218
|
-
:param pulumi.Input[
|
|
219
|
-
: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`).
|
|
220
|
-
:param pulumi.Input[str] description: The description of the drop rule.
|
|
221
|
-
: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.
|
|
222
223
|
"""
|
|
223
224
|
...
|
|
224
225
|
@overload
|
|
@@ -227,37 +228,16 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
227
228
|
args: NrqlDropRuleArgs,
|
|
228
229
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
229
230
|
"""
|
|
230
|
-
## Example Usage
|
|
231
|
-
|
|
232
|
-
```python
|
|
233
|
-
import pulumi
|
|
234
|
-
import pulumi_newrelic as newrelic
|
|
235
|
-
|
|
236
|
-
foo = newrelic.NrqlDropRule("foo",
|
|
237
|
-
account_id=12345,
|
|
238
|
-
action="drop_data",
|
|
239
|
-
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.",
|
|
240
|
-
nrql="SELECT * FROM MyCustomEvent WHERE appName='LoadGeneratingApp' AND environment='development'")
|
|
241
|
-
bar = newrelic.NrqlDropRule("bar",
|
|
242
|
-
account_id=12345,
|
|
243
|
-
action="drop_attributes",
|
|
244
|
-
description="Removes the user name and email fields from MyCustomEvent",
|
|
245
|
-
nrql="SELECT userEmail, userName FROM MyCustomEvent")
|
|
246
|
-
baz = newrelic.NrqlDropRule("baz",
|
|
247
|
-
account_id=12345,
|
|
248
|
-
action="drop_attributes_from_metric_aggregates",
|
|
249
|
-
description="Removes containerId from metric aggregates to reduce metric cardinality.",
|
|
250
|
-
nrql="SELECT containerId FROM Metric")
|
|
251
|
-
```
|
|
252
|
-
|
|
253
231
|
## Import
|
|
254
232
|
|
|
255
233
|
New Relic NRQL drop rules can be imported using a concatenated string of the format
|
|
256
234
|
|
|
257
|
-
|
|
235
|
+
`<account_id>:<rule_id>`, e.g.
|
|
236
|
+
|
|
237
|
+
bash
|
|
258
238
|
|
|
259
239
|
```sh
|
|
260
|
-
|
|
240
|
+
$ pulumi import newrelic:index/nrqlDropRule:NrqlDropRule foo 12345:34567
|
|
261
241
|
```
|
|
262
242
|
|
|
263
243
|
:param str resource_name: The name of the resource.
|
|
@@ -275,10 +255,10 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
275
255
|
def _internal_init(__self__,
|
|
276
256
|
resource_name: str,
|
|
277
257
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
278
|
-
account_id: Optional[pulumi.Input[
|
|
279
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
280
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
281
|
-
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,
|
|
282
262
|
__props__=None):
|
|
283
263
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
284
264
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -296,6 +276,7 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
296
276
|
if nrql is None and not opts.urn:
|
|
297
277
|
raise TypeError("Missing required property 'nrql'")
|
|
298
278
|
__props__.__dict__["nrql"] = nrql
|
|
279
|
+
__props__.__dict__["pipeline_cloud_rule_entity_id"] = None
|
|
299
280
|
__props__.__dict__["rule_id"] = None
|
|
300
281
|
super(NrqlDropRule, __self__).__init__(
|
|
301
282
|
'newrelic:index/nrqlDropRule:NrqlDropRule',
|
|
@@ -307,11 +288,12 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
307
288
|
def get(resource_name: str,
|
|
308
289
|
id: pulumi.Input[str],
|
|
309
290
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
310
|
-
account_id: Optional[pulumi.Input[
|
|
311
|
-
action: Optional[pulumi.Input[str]] = None,
|
|
312
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
313
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
314
|
-
|
|
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':
|
|
315
297
|
"""
|
|
316
298
|
Get an existing NrqlDropRule resource's state with the given name, id, and optional extra
|
|
317
299
|
properties used to qualify the lookup.
|
|
@@ -319,11 +301,12 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
319
301
|
:param str resource_name: The unique name of the resulting resource.
|
|
320
302
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
321
303
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
322
|
-
:param pulumi.Input[
|
|
323
|
-
: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`).
|
|
324
|
-
:param pulumi.Input[str] description: The description of the drop rule.
|
|
325
|
-
:param pulumi.Input[str] nrql: A NRQL string that specifies what data types to drop.
|
|
326
|
-
: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.
|
|
327
310
|
"""
|
|
328
311
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
329
312
|
|
|
@@ -333,44 +316,53 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
|
333
316
|
__props__.__dict__["action"] = action
|
|
334
317
|
__props__.__dict__["description"] = description
|
|
335
318
|
__props__.__dict__["nrql"] = nrql
|
|
319
|
+
__props__.__dict__["pipeline_cloud_rule_entity_id"] = pipeline_cloud_rule_entity_id
|
|
336
320
|
__props__.__dict__["rule_id"] = rule_id
|
|
337
321
|
return NrqlDropRule(resource_name, opts=opts, __props__=__props__)
|
|
338
322
|
|
|
339
|
-
@property
|
|
323
|
+
@_builtins.property
|
|
340
324
|
@pulumi.getter(name="accountId")
|
|
341
|
-
def account_id(self) -> pulumi.Output[
|
|
325
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
342
326
|
"""
|
|
343
327
|
Account where the drop rule will be put. Defaults to the account associated with the API key used.
|
|
344
328
|
"""
|
|
345
329
|
return pulumi.get(self, "account_id")
|
|
346
330
|
|
|
347
|
-
@property
|
|
331
|
+
@_builtins.property
|
|
348
332
|
@pulumi.getter
|
|
349
|
-
def action(self) -> pulumi.Output[str]:
|
|
333
|
+
def action(self) -> pulumi.Output[_builtins.str]:
|
|
350
334
|
"""
|
|
351
335
|
An action type specifying how to apply the NRQL string (either `drop_data`, `drop_attributes`, or ` drop_attributes_from_metric_aggregates`).
|
|
352
336
|
"""
|
|
353
337
|
return pulumi.get(self, "action")
|
|
354
338
|
|
|
355
|
-
@property
|
|
339
|
+
@_builtins.property
|
|
356
340
|
@pulumi.getter
|
|
357
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
341
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
358
342
|
"""
|
|
359
343
|
The description of the drop rule.
|
|
360
344
|
"""
|
|
361
345
|
return pulumi.get(self, "description")
|
|
362
346
|
|
|
363
|
-
@property
|
|
347
|
+
@_builtins.property
|
|
364
348
|
@pulumi.getter
|
|
365
|
-
def nrql(self) -> pulumi.Output[str]:
|
|
349
|
+
def nrql(self) -> pulumi.Output[_builtins.str]:
|
|
366
350
|
"""
|
|
367
351
|
A NRQL string that specifies what data types to drop.
|
|
368
352
|
"""
|
|
369
353
|
return pulumi.get(self, "nrql")
|
|
370
354
|
|
|
371
|
-
@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
|
|
372
364
|
@pulumi.getter(name="ruleId")
|
|
373
|
-
def rule_id(self) -> pulumi.Output[str]:
|
|
365
|
+
def rule_id(self) -> pulumi.Output[_builtins.str]:
|
|
374
366
|
"""
|
|
375
367
|
The id, uniquely identifying the rule.
|
|
376
368
|
"""
|