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__ = ['LogParsingRuleArgs', 'LogParsingRule']
|
|
@@ -14,24 +19,24 @@ __all__ = ['LogParsingRuleArgs', 'LogParsingRule']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class LogParsingRuleArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
enabled: pulumi.Input[bool],
|
|
18
|
-
grok: pulumi.Input[str],
|
|
19
|
-
lucene: pulumi.Input[str],
|
|
20
|
-
nrql: pulumi.Input[str],
|
|
21
|
-
account_id: Optional[pulumi.Input[
|
|
22
|
-
attribute: Optional[pulumi.Input[str]] = None,
|
|
23
|
-
matched: Optional[pulumi.Input[bool]] = None,
|
|
24
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
enabled: pulumi.Input[_builtins.bool],
|
|
23
|
+
grok: pulumi.Input[_builtins.str],
|
|
24
|
+
lucene: pulumi.Input[_builtins.str],
|
|
25
|
+
nrql: pulumi.Input[_builtins.str],
|
|
26
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
attribute: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
matched: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
29
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
25
30
|
"""
|
|
26
31
|
The set of arguments for constructing a LogParsingRule resource.
|
|
27
|
-
:param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
28
|
-
:param pulumi.Input[str] grok: The Grok of what to parse.
|
|
29
|
-
:param pulumi.Input[str] lucene: The Lucene to match events to the parsing rule.
|
|
30
|
-
:param pulumi.Input[str] nrql: The NRQL to match events to the parsing rule.
|
|
31
|
-
:param pulumi.Input[
|
|
32
|
-
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
33
|
-
:param pulumi.Input[bool] matched: Whether the Grok pattern matched.
|
|
34
|
-
:param pulumi.Input[str] name: Name of rule.
|
|
32
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
33
|
+
:param pulumi.Input[_builtins.str] grok: The Grok of what to parse.
|
|
34
|
+
:param pulumi.Input[_builtins.str] lucene: The Lucene to match events to the parsing rule.
|
|
35
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events to the parsing rule.
|
|
36
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the obfuscation rule.
|
|
37
|
+
:param pulumi.Input[_builtins.str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
38
|
+
:param pulumi.Input[_builtins.bool] matched: Whether the Grok pattern matched.
|
|
39
|
+
:param pulumi.Input[_builtins.str] name: Name of rule.
|
|
35
40
|
"""
|
|
36
41
|
pulumi.set(__self__, "enabled", enabled)
|
|
37
42
|
pulumi.set(__self__, "grok", grok)
|
|
@@ -46,126 +51,126 @@ class LogParsingRuleArgs:
|
|
|
46
51
|
if name is not None:
|
|
47
52
|
pulumi.set(__self__, "name", name)
|
|
48
53
|
|
|
49
|
-
@property
|
|
54
|
+
@_builtins.property
|
|
50
55
|
@pulumi.getter
|
|
51
|
-
def enabled(self) -> pulumi.Input[bool]:
|
|
56
|
+
def enabled(self) -> pulumi.Input[_builtins.bool]:
|
|
52
57
|
"""
|
|
53
58
|
Whether the rule should be applied or not to incoming data.
|
|
54
59
|
"""
|
|
55
60
|
return pulumi.get(self, "enabled")
|
|
56
61
|
|
|
57
62
|
@enabled.setter
|
|
58
|
-
def enabled(self, value: pulumi.Input[bool]):
|
|
63
|
+
def enabled(self, value: pulumi.Input[_builtins.bool]):
|
|
59
64
|
pulumi.set(self, "enabled", value)
|
|
60
65
|
|
|
61
|
-
@property
|
|
66
|
+
@_builtins.property
|
|
62
67
|
@pulumi.getter
|
|
63
|
-
def grok(self) -> pulumi.Input[str]:
|
|
68
|
+
def grok(self) -> pulumi.Input[_builtins.str]:
|
|
64
69
|
"""
|
|
65
70
|
The Grok of what to parse.
|
|
66
71
|
"""
|
|
67
72
|
return pulumi.get(self, "grok")
|
|
68
73
|
|
|
69
74
|
@grok.setter
|
|
70
|
-
def grok(self, value: pulumi.Input[str]):
|
|
75
|
+
def grok(self, value: pulumi.Input[_builtins.str]):
|
|
71
76
|
pulumi.set(self, "grok", value)
|
|
72
77
|
|
|
73
|
-
@property
|
|
78
|
+
@_builtins.property
|
|
74
79
|
@pulumi.getter
|
|
75
|
-
def lucene(self) -> pulumi.Input[str]:
|
|
80
|
+
def lucene(self) -> pulumi.Input[_builtins.str]:
|
|
76
81
|
"""
|
|
77
82
|
The Lucene to match events to the parsing rule.
|
|
78
83
|
"""
|
|
79
84
|
return pulumi.get(self, "lucene")
|
|
80
85
|
|
|
81
86
|
@lucene.setter
|
|
82
|
-
def lucene(self, value: pulumi.Input[str]):
|
|
87
|
+
def lucene(self, value: pulumi.Input[_builtins.str]):
|
|
83
88
|
pulumi.set(self, "lucene", value)
|
|
84
89
|
|
|
85
|
-
@property
|
|
90
|
+
@_builtins.property
|
|
86
91
|
@pulumi.getter
|
|
87
|
-
def nrql(self) -> pulumi.Input[str]:
|
|
92
|
+
def nrql(self) -> pulumi.Input[_builtins.str]:
|
|
88
93
|
"""
|
|
89
94
|
The NRQL to match events to the parsing rule.
|
|
90
95
|
"""
|
|
91
96
|
return pulumi.get(self, "nrql")
|
|
92
97
|
|
|
93
98
|
@nrql.setter
|
|
94
|
-
def nrql(self, value: pulumi.Input[str]):
|
|
99
|
+
def nrql(self, value: pulumi.Input[_builtins.str]):
|
|
95
100
|
pulumi.set(self, "nrql", value)
|
|
96
101
|
|
|
97
|
-
@property
|
|
102
|
+
@_builtins.property
|
|
98
103
|
@pulumi.getter(name="accountId")
|
|
99
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
104
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
100
105
|
"""
|
|
101
106
|
The account id associated with the obfuscation rule.
|
|
102
107
|
"""
|
|
103
108
|
return pulumi.get(self, "account_id")
|
|
104
109
|
|
|
105
110
|
@account_id.setter
|
|
106
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
111
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
107
112
|
pulumi.set(self, "account_id", value)
|
|
108
113
|
|
|
109
|
-
@property
|
|
114
|
+
@_builtins.property
|
|
110
115
|
@pulumi.getter
|
|
111
|
-
def attribute(self) -> Optional[pulumi.Input[str]]:
|
|
116
|
+
def attribute(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
112
117
|
"""
|
|
113
118
|
The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
114
119
|
"""
|
|
115
120
|
return pulumi.get(self, "attribute")
|
|
116
121
|
|
|
117
122
|
@attribute.setter
|
|
118
|
-
def attribute(self, value: Optional[pulumi.Input[str]]):
|
|
123
|
+
def attribute(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
119
124
|
pulumi.set(self, "attribute", value)
|
|
120
125
|
|
|
121
|
-
@property
|
|
126
|
+
@_builtins.property
|
|
122
127
|
@pulumi.getter
|
|
123
|
-
def matched(self) -> Optional[pulumi.Input[bool]]:
|
|
128
|
+
def matched(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
124
129
|
"""
|
|
125
130
|
Whether the Grok pattern matched.
|
|
126
131
|
"""
|
|
127
132
|
return pulumi.get(self, "matched")
|
|
128
133
|
|
|
129
134
|
@matched.setter
|
|
130
|
-
def matched(self, value: Optional[pulumi.Input[bool]]):
|
|
135
|
+
def matched(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
131
136
|
pulumi.set(self, "matched", value)
|
|
132
137
|
|
|
133
|
-
@property
|
|
138
|
+
@_builtins.property
|
|
134
139
|
@pulumi.getter
|
|
135
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
140
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
136
141
|
"""
|
|
137
142
|
Name of rule.
|
|
138
143
|
"""
|
|
139
144
|
return pulumi.get(self, "name")
|
|
140
145
|
|
|
141
146
|
@name.setter
|
|
142
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
147
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
143
148
|
pulumi.set(self, "name", value)
|
|
144
149
|
|
|
145
150
|
|
|
146
151
|
@pulumi.input_type
|
|
147
152
|
class _LogParsingRuleState:
|
|
148
153
|
def __init__(__self__, *,
|
|
149
|
-
account_id: Optional[pulumi.Input[
|
|
150
|
-
attribute: Optional[pulumi.Input[str]] = None,
|
|
151
|
-
deleted: Optional[pulumi.Input[bool]] = None,
|
|
152
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
153
|
-
grok: Optional[pulumi.Input[str]] = None,
|
|
154
|
-
lucene: Optional[pulumi.Input[str]] = None,
|
|
155
|
-
matched: Optional[pulumi.Input[bool]] = None,
|
|
156
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
157
|
-
nrql: Optional[pulumi.Input[str]] = None):
|
|
154
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
155
|
+
attribute: Optional[pulumi.Input[_builtins.str]] = None,
|
|
156
|
+
deleted: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
157
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
158
|
+
grok: Optional[pulumi.Input[_builtins.str]] = None,
|
|
159
|
+
lucene: Optional[pulumi.Input[_builtins.str]] = None,
|
|
160
|
+
matched: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
161
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
162
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None):
|
|
158
163
|
"""
|
|
159
164
|
Input properties used for looking up and filtering LogParsingRule resources.
|
|
160
|
-
:param pulumi.Input[
|
|
161
|
-
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
162
|
-
:param pulumi.Input[bool] deleted: Whether or not this rule is deleted.
|
|
163
|
-
:param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
164
|
-
:param pulumi.Input[str] grok: The Grok of what to parse.
|
|
165
|
-
:param pulumi.Input[str] lucene: The Lucene to match events to the parsing rule.
|
|
166
|
-
:param pulumi.Input[bool] matched: Whether the Grok pattern matched.
|
|
167
|
-
:param pulumi.Input[str] name: Name of rule.
|
|
168
|
-
:param pulumi.Input[str] nrql: The NRQL to match events to the parsing rule.
|
|
165
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the obfuscation rule.
|
|
166
|
+
:param pulumi.Input[_builtins.str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
167
|
+
:param pulumi.Input[_builtins.bool] deleted: Whether or not this rule is deleted.
|
|
168
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
169
|
+
:param pulumi.Input[_builtins.str] grok: The Grok of what to parse.
|
|
170
|
+
:param pulumi.Input[_builtins.str] lucene: The Lucene to match events to the parsing rule.
|
|
171
|
+
:param pulumi.Input[_builtins.bool] matched: Whether the Grok pattern matched.
|
|
172
|
+
:param pulumi.Input[_builtins.str] name: Name of rule.
|
|
173
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events to the parsing rule.
|
|
169
174
|
"""
|
|
170
175
|
if account_id is not None:
|
|
171
176
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -186,128 +191,129 @@ class _LogParsingRuleState:
|
|
|
186
191
|
if nrql is not None:
|
|
187
192
|
pulumi.set(__self__, "nrql", nrql)
|
|
188
193
|
|
|
189
|
-
@property
|
|
194
|
+
@_builtins.property
|
|
190
195
|
@pulumi.getter(name="accountId")
|
|
191
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
196
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
192
197
|
"""
|
|
193
198
|
The account id associated with the obfuscation rule.
|
|
194
199
|
"""
|
|
195
200
|
return pulumi.get(self, "account_id")
|
|
196
201
|
|
|
197
202
|
@account_id.setter
|
|
198
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
203
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
199
204
|
pulumi.set(self, "account_id", value)
|
|
200
205
|
|
|
201
|
-
@property
|
|
206
|
+
@_builtins.property
|
|
202
207
|
@pulumi.getter
|
|
203
|
-
def attribute(self) -> Optional[pulumi.Input[str]]:
|
|
208
|
+
def attribute(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
204
209
|
"""
|
|
205
210
|
The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
206
211
|
"""
|
|
207
212
|
return pulumi.get(self, "attribute")
|
|
208
213
|
|
|
209
214
|
@attribute.setter
|
|
210
|
-
def attribute(self, value: Optional[pulumi.Input[str]]):
|
|
215
|
+
def attribute(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
211
216
|
pulumi.set(self, "attribute", value)
|
|
212
217
|
|
|
213
|
-
@property
|
|
218
|
+
@_builtins.property
|
|
214
219
|
@pulumi.getter
|
|
215
|
-
def deleted(self) -> Optional[pulumi.Input[bool]]:
|
|
220
|
+
def deleted(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
216
221
|
"""
|
|
217
222
|
Whether or not this rule is deleted.
|
|
218
223
|
"""
|
|
219
224
|
return pulumi.get(self, "deleted")
|
|
220
225
|
|
|
221
226
|
@deleted.setter
|
|
222
|
-
def deleted(self, value: Optional[pulumi.Input[bool]]):
|
|
227
|
+
def deleted(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
223
228
|
pulumi.set(self, "deleted", value)
|
|
224
229
|
|
|
225
|
-
@property
|
|
230
|
+
@_builtins.property
|
|
226
231
|
@pulumi.getter
|
|
227
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
232
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
228
233
|
"""
|
|
229
234
|
Whether the rule should be applied or not to incoming data.
|
|
230
235
|
"""
|
|
231
236
|
return pulumi.get(self, "enabled")
|
|
232
237
|
|
|
233
238
|
@enabled.setter
|
|
234
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
239
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
235
240
|
pulumi.set(self, "enabled", value)
|
|
236
241
|
|
|
237
|
-
@property
|
|
242
|
+
@_builtins.property
|
|
238
243
|
@pulumi.getter
|
|
239
|
-
def grok(self) -> Optional[pulumi.Input[str]]:
|
|
244
|
+
def grok(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
240
245
|
"""
|
|
241
246
|
The Grok of what to parse.
|
|
242
247
|
"""
|
|
243
248
|
return pulumi.get(self, "grok")
|
|
244
249
|
|
|
245
250
|
@grok.setter
|
|
246
|
-
def grok(self, value: Optional[pulumi.Input[str]]):
|
|
251
|
+
def grok(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
247
252
|
pulumi.set(self, "grok", value)
|
|
248
253
|
|
|
249
|
-
@property
|
|
254
|
+
@_builtins.property
|
|
250
255
|
@pulumi.getter
|
|
251
|
-
def lucene(self) -> Optional[pulumi.Input[str]]:
|
|
256
|
+
def lucene(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
252
257
|
"""
|
|
253
258
|
The Lucene to match events to the parsing rule.
|
|
254
259
|
"""
|
|
255
260
|
return pulumi.get(self, "lucene")
|
|
256
261
|
|
|
257
262
|
@lucene.setter
|
|
258
|
-
def lucene(self, value: Optional[pulumi.Input[str]]):
|
|
263
|
+
def lucene(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
259
264
|
pulumi.set(self, "lucene", value)
|
|
260
265
|
|
|
261
|
-
@property
|
|
266
|
+
@_builtins.property
|
|
262
267
|
@pulumi.getter
|
|
263
|
-
def matched(self) -> Optional[pulumi.Input[bool]]:
|
|
268
|
+
def matched(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
264
269
|
"""
|
|
265
270
|
Whether the Grok pattern matched.
|
|
266
271
|
"""
|
|
267
272
|
return pulumi.get(self, "matched")
|
|
268
273
|
|
|
269
274
|
@matched.setter
|
|
270
|
-
def matched(self, value: Optional[pulumi.Input[bool]]):
|
|
275
|
+
def matched(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
271
276
|
pulumi.set(self, "matched", value)
|
|
272
277
|
|
|
273
|
-
@property
|
|
278
|
+
@_builtins.property
|
|
274
279
|
@pulumi.getter
|
|
275
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
280
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
276
281
|
"""
|
|
277
282
|
Name of rule.
|
|
278
283
|
"""
|
|
279
284
|
return pulumi.get(self, "name")
|
|
280
285
|
|
|
281
286
|
@name.setter
|
|
282
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
287
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
283
288
|
pulumi.set(self, "name", value)
|
|
284
289
|
|
|
285
|
-
@property
|
|
290
|
+
@_builtins.property
|
|
286
291
|
@pulumi.getter
|
|
287
|
-
def nrql(self) -> Optional[pulumi.Input[str]]:
|
|
292
|
+
def nrql(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
288
293
|
"""
|
|
289
294
|
The NRQL to match events to the parsing rule.
|
|
290
295
|
"""
|
|
291
296
|
return pulumi.get(self, "nrql")
|
|
292
297
|
|
|
293
298
|
@nrql.setter
|
|
294
|
-
def nrql(self, value: Optional[pulumi.Input[str]]):
|
|
299
|
+
def nrql(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
295
300
|
pulumi.set(self, "nrql", value)
|
|
296
301
|
|
|
297
302
|
|
|
303
|
+
@pulumi.type_token("newrelic:index/logParsingRule:LogParsingRule")
|
|
298
304
|
class LogParsingRule(pulumi.CustomResource):
|
|
299
305
|
@overload
|
|
300
306
|
def __init__(__self__,
|
|
301
307
|
resource_name: str,
|
|
302
308
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
303
|
-
account_id: Optional[pulumi.Input[
|
|
304
|
-
attribute: Optional[pulumi.Input[str]] = None,
|
|
305
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
306
|
-
grok: Optional[pulumi.Input[str]] = None,
|
|
307
|
-
lucene: Optional[pulumi.Input[str]] = None,
|
|
308
|
-
matched: Optional[pulumi.Input[bool]] = None,
|
|
309
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
310
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
309
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
310
|
+
attribute: Optional[pulumi.Input[_builtins.str]] = None,
|
|
311
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
312
|
+
grok: Optional[pulumi.Input[_builtins.str]] = None,
|
|
313
|
+
lucene: Optional[pulumi.Input[_builtins.str]] = None,
|
|
314
|
+
matched: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
315
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
316
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
311
317
|
__props__=None):
|
|
312
318
|
"""
|
|
313
319
|
Use this resource to create, update and delete New Relic Log Parsing Rule.
|
|
@@ -320,12 +326,14 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
320
326
|
import pulumi_newrelic as newrelic
|
|
321
327
|
|
|
322
328
|
foo = newrelic.LogParsingRule("foo",
|
|
329
|
+
name="log_parse_rule",
|
|
323
330
|
attribute="message",
|
|
324
331
|
enabled=True,
|
|
325
|
-
grok="sampleattribute='
|
|
332
|
+
grok="sampleattribute='%{NUMBER:test:int}'",
|
|
326
333
|
lucene="logtype:linux_messages",
|
|
327
334
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
|
328
335
|
```
|
|
336
|
+
|
|
329
337
|
## Additional Example
|
|
330
338
|
|
|
331
339
|
Use this example to validate a grok pattern and create the log parse rule. More
|
|
@@ -337,6 +345,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
337
345
|
grok = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
|
|
338
346
|
log_lines=["host_ip: 43.3.120.2"])
|
|
339
347
|
foo = newrelic.LogParsingRule("foo",
|
|
348
|
+
name="log_parse_rule",
|
|
340
349
|
attribute="message",
|
|
341
350
|
enabled=True,
|
|
342
351
|
grok=grok.grok,
|
|
@@ -347,22 +356,24 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
347
356
|
|
|
348
357
|
## Import
|
|
349
358
|
|
|
350
|
-
New Relic log parsing rule can be imported using the rule ID, e.g.
|
|
359
|
+
New Relic log parsing rule can be imported using the rule ID, e.g.
|
|
360
|
+
|
|
361
|
+
bash
|
|
351
362
|
|
|
352
363
|
```sh
|
|
353
|
-
|
|
364
|
+
$ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
|
|
354
365
|
```
|
|
355
366
|
|
|
356
367
|
:param str resource_name: The name of the resource.
|
|
357
368
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
358
|
-
:param pulumi.Input[
|
|
359
|
-
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
360
|
-
:param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
361
|
-
:param pulumi.Input[str] grok: The Grok of what to parse.
|
|
362
|
-
:param pulumi.Input[str] lucene: The Lucene to match events to the parsing rule.
|
|
363
|
-
:param pulumi.Input[bool] matched: Whether the Grok pattern matched.
|
|
364
|
-
:param pulumi.Input[str] name: Name of rule.
|
|
365
|
-
:param pulumi.Input[str] nrql: The NRQL to match events to the parsing rule.
|
|
369
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the obfuscation rule.
|
|
370
|
+
:param pulumi.Input[_builtins.str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
371
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
372
|
+
:param pulumi.Input[_builtins.str] grok: The Grok of what to parse.
|
|
373
|
+
:param pulumi.Input[_builtins.str] lucene: The Lucene to match events to the parsing rule.
|
|
374
|
+
:param pulumi.Input[_builtins.bool] matched: Whether the Grok pattern matched.
|
|
375
|
+
:param pulumi.Input[_builtins.str] name: Name of rule.
|
|
376
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events to the parsing rule.
|
|
366
377
|
"""
|
|
367
378
|
...
|
|
368
379
|
@overload
|
|
@@ -381,12 +392,14 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
381
392
|
import pulumi_newrelic as newrelic
|
|
382
393
|
|
|
383
394
|
foo = newrelic.LogParsingRule("foo",
|
|
395
|
+
name="log_parse_rule",
|
|
384
396
|
attribute="message",
|
|
385
397
|
enabled=True,
|
|
386
|
-
grok="sampleattribute='
|
|
398
|
+
grok="sampleattribute='%{NUMBER:test:int}'",
|
|
387
399
|
lucene="logtype:linux_messages",
|
|
388
400
|
nrql="SELECT * FROM Log WHERE logtype = 'linux_messages'")
|
|
389
401
|
```
|
|
402
|
+
|
|
390
403
|
## Additional Example
|
|
391
404
|
|
|
392
405
|
Use this example to validate a grok pattern and create the log parse rule. More
|
|
@@ -398,6 +411,7 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
398
411
|
grok = newrelic.get_test_grok_pattern(grok="%{IP:host_ip}",
|
|
399
412
|
log_lines=["host_ip: 43.3.120.2"])
|
|
400
413
|
foo = newrelic.LogParsingRule("foo",
|
|
414
|
+
name="log_parse_rule",
|
|
401
415
|
attribute="message",
|
|
402
416
|
enabled=True,
|
|
403
417
|
grok=grok.grok,
|
|
@@ -408,10 +422,12 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
408
422
|
|
|
409
423
|
## Import
|
|
410
424
|
|
|
411
|
-
New Relic log parsing rule can be imported using the rule ID, e.g.
|
|
425
|
+
New Relic log parsing rule can be imported using the rule ID, e.g.
|
|
426
|
+
|
|
427
|
+
bash
|
|
412
428
|
|
|
413
429
|
```sh
|
|
414
|
-
|
|
430
|
+
$ pulumi import newrelic:index/logParsingRule:LogParsingRule foo 3456789
|
|
415
431
|
```
|
|
416
432
|
|
|
417
433
|
:param str resource_name: The name of the resource.
|
|
@@ -429,14 +445,14 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
429
445
|
def _internal_init(__self__,
|
|
430
446
|
resource_name: str,
|
|
431
447
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
432
|
-
account_id: Optional[pulumi.Input[
|
|
433
|
-
attribute: Optional[pulumi.Input[str]] = None,
|
|
434
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
435
|
-
grok: Optional[pulumi.Input[str]] = None,
|
|
436
|
-
lucene: Optional[pulumi.Input[str]] = None,
|
|
437
|
-
matched: Optional[pulumi.Input[bool]] = None,
|
|
438
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
439
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
448
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
449
|
+
attribute: Optional[pulumi.Input[_builtins.str]] = None,
|
|
450
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
451
|
+
grok: Optional[pulumi.Input[_builtins.str]] = None,
|
|
452
|
+
lucene: Optional[pulumi.Input[_builtins.str]] = None,
|
|
453
|
+
matched: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
454
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
455
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
440
456
|
__props__=None):
|
|
441
457
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
442
458
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -473,15 +489,15 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
473
489
|
def get(resource_name: str,
|
|
474
490
|
id: pulumi.Input[str],
|
|
475
491
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
476
|
-
account_id: Optional[pulumi.Input[
|
|
477
|
-
attribute: Optional[pulumi.Input[str]] = None,
|
|
478
|
-
deleted: Optional[pulumi.Input[bool]] = None,
|
|
479
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
480
|
-
grok: Optional[pulumi.Input[str]] = None,
|
|
481
|
-
lucene: Optional[pulumi.Input[str]] = None,
|
|
482
|
-
matched: Optional[pulumi.Input[bool]] = None,
|
|
483
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
484
|
-
nrql: Optional[pulumi.Input[str]] = None) -> 'LogParsingRule':
|
|
492
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
493
|
+
attribute: Optional[pulumi.Input[_builtins.str]] = None,
|
|
494
|
+
deleted: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
495
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
496
|
+
grok: Optional[pulumi.Input[_builtins.str]] = None,
|
|
497
|
+
lucene: Optional[pulumi.Input[_builtins.str]] = None,
|
|
498
|
+
matched: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
499
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
500
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None) -> 'LogParsingRule':
|
|
485
501
|
"""
|
|
486
502
|
Get an existing LogParsingRule resource's state with the given name, id, and optional extra
|
|
487
503
|
properties used to qualify the lookup.
|
|
@@ -489,15 +505,15 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
489
505
|
:param str resource_name: The unique name of the resulting resource.
|
|
490
506
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
491
507
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
492
|
-
:param pulumi.Input[
|
|
493
|
-
:param pulumi.Input[str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
494
|
-
:param pulumi.Input[bool] deleted: Whether or not this rule is deleted.
|
|
495
|
-
:param pulumi.Input[bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
496
|
-
:param pulumi.Input[str] grok: The Grok of what to parse.
|
|
497
|
-
:param pulumi.Input[str] lucene: The Lucene to match events to the parsing rule.
|
|
498
|
-
:param pulumi.Input[bool] matched: Whether the Grok pattern matched.
|
|
499
|
-
:param pulumi.Input[str] name: Name of rule.
|
|
500
|
-
:param pulumi.Input[str] nrql: The NRQL to match events to the parsing rule.
|
|
508
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the obfuscation rule.
|
|
509
|
+
:param pulumi.Input[_builtins.str] attribute: The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
510
|
+
:param pulumi.Input[_builtins.bool] deleted: Whether or not this rule is deleted.
|
|
511
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether the rule should be applied or not to incoming data.
|
|
512
|
+
:param pulumi.Input[_builtins.str] grok: The Grok of what to parse.
|
|
513
|
+
:param pulumi.Input[_builtins.str] lucene: The Lucene to match events to the parsing rule.
|
|
514
|
+
:param pulumi.Input[_builtins.bool] matched: Whether the Grok pattern matched.
|
|
515
|
+
:param pulumi.Input[_builtins.str] name: Name of rule.
|
|
516
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events to the parsing rule.
|
|
501
517
|
"""
|
|
502
518
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
503
519
|
|
|
@@ -514,73 +530,73 @@ class LogParsingRule(pulumi.CustomResource):
|
|
|
514
530
|
__props__.__dict__["nrql"] = nrql
|
|
515
531
|
return LogParsingRule(resource_name, opts=opts, __props__=__props__)
|
|
516
532
|
|
|
517
|
-
@property
|
|
533
|
+
@_builtins.property
|
|
518
534
|
@pulumi.getter(name="accountId")
|
|
519
|
-
def account_id(self) -> pulumi.Output[
|
|
535
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
520
536
|
"""
|
|
521
537
|
The account id associated with the obfuscation rule.
|
|
522
538
|
"""
|
|
523
539
|
return pulumi.get(self, "account_id")
|
|
524
540
|
|
|
525
|
-
@property
|
|
541
|
+
@_builtins.property
|
|
526
542
|
@pulumi.getter
|
|
527
|
-
def attribute(self) -> pulumi.Output[Optional[str]]:
|
|
543
|
+
def attribute(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
528
544
|
"""
|
|
529
545
|
The parsing rule will apply to value of this attribute. If field is not provided, value will default to message.
|
|
530
546
|
"""
|
|
531
547
|
return pulumi.get(self, "attribute")
|
|
532
548
|
|
|
533
|
-
@property
|
|
549
|
+
@_builtins.property
|
|
534
550
|
@pulumi.getter
|
|
535
|
-
def deleted(self) -> pulumi.Output[bool]:
|
|
551
|
+
def deleted(self) -> pulumi.Output[_builtins.bool]:
|
|
536
552
|
"""
|
|
537
553
|
Whether or not this rule is deleted.
|
|
538
554
|
"""
|
|
539
555
|
return pulumi.get(self, "deleted")
|
|
540
556
|
|
|
541
|
-
@property
|
|
557
|
+
@_builtins.property
|
|
542
558
|
@pulumi.getter
|
|
543
|
-
def enabled(self) -> pulumi.Output[bool]:
|
|
559
|
+
def enabled(self) -> pulumi.Output[_builtins.bool]:
|
|
544
560
|
"""
|
|
545
561
|
Whether the rule should be applied or not to incoming data.
|
|
546
562
|
"""
|
|
547
563
|
return pulumi.get(self, "enabled")
|
|
548
564
|
|
|
549
|
-
@property
|
|
565
|
+
@_builtins.property
|
|
550
566
|
@pulumi.getter
|
|
551
|
-
def grok(self) -> pulumi.Output[str]:
|
|
567
|
+
def grok(self) -> pulumi.Output[_builtins.str]:
|
|
552
568
|
"""
|
|
553
569
|
The Grok of what to parse.
|
|
554
570
|
"""
|
|
555
571
|
return pulumi.get(self, "grok")
|
|
556
572
|
|
|
557
|
-
@property
|
|
573
|
+
@_builtins.property
|
|
558
574
|
@pulumi.getter
|
|
559
|
-
def lucene(self) -> pulumi.Output[str]:
|
|
575
|
+
def lucene(self) -> pulumi.Output[_builtins.str]:
|
|
560
576
|
"""
|
|
561
577
|
The Lucene to match events to the parsing rule.
|
|
562
578
|
"""
|
|
563
579
|
return pulumi.get(self, "lucene")
|
|
564
580
|
|
|
565
|
-
@property
|
|
581
|
+
@_builtins.property
|
|
566
582
|
@pulumi.getter
|
|
567
|
-
def matched(self) -> pulumi.Output[bool]:
|
|
583
|
+
def matched(self) -> pulumi.Output[_builtins.bool]:
|
|
568
584
|
"""
|
|
569
585
|
Whether the Grok pattern matched.
|
|
570
586
|
"""
|
|
571
587
|
return pulumi.get(self, "matched")
|
|
572
588
|
|
|
573
|
-
@property
|
|
589
|
+
@_builtins.property
|
|
574
590
|
@pulumi.getter
|
|
575
|
-
def name(self) -> pulumi.Output[str]:
|
|
591
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
576
592
|
"""
|
|
577
593
|
Name of rule.
|
|
578
594
|
"""
|
|
579
595
|
return pulumi.get(self, "name")
|
|
580
596
|
|
|
581
|
-
@property
|
|
597
|
+
@_builtins.property
|
|
582
598
|
@pulumi.getter
|
|
583
|
-
def nrql(self) -> pulumi.Output[str]:
|
|
599
|
+
def nrql(self) -> pulumi.Output[_builtins.str]:
|
|
584
600
|
"""
|
|
585
601
|
The NRQL to match events to the parsing rule.
|
|
586
602
|
"""
|