pulumi-logtail 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/collector.d.ts +4 -15
- package/bin/collector.d.ts.map +1 -0
- package/bin/collector.js +37 -6
- package/bin/collector.js.map +1 -1
- package/bin/config/index.d.ts +1 -0
- package/bin/config/index.d.ts.map +1 -0
- package/bin/config/vars.d.ts +1 -0
- package/bin/config/vars.d.ts.map +1 -0
- package/bin/config/vars.js +34 -1
- package/bin/config/vars.js.map +1 -1
- package/bin/connection.d.ts +1 -0
- package/bin/connection.d.ts.map +1 -0
- package/bin/connection.js +37 -4
- package/bin/connection.js.map +1 -1
- package/bin/dashboard.d.ts +81 -6
- package/bin/dashboard.d.ts.map +1 -0
- package/bin/dashboard.js +49 -7
- package/bin/dashboard.js.map +1 -1
- package/bin/dashboardAlert.d.ts +405 -0
- package/bin/dashboardAlert.d.ts.map +1 -0
- package/bin/dashboardAlert.js +151 -0
- package/bin/dashboardAlert.js.map +1 -0
- package/bin/dashboardChart.d.ts +175 -0
- package/bin/dashboardChart.d.ts.map +1 -0
- package/bin/dashboardChart.js +113 -0
- package/bin/dashboardChart.js.map +1 -0
- package/bin/dashboardGroup.d.ts +77 -0
- package/bin/dashboardGroup.d.ts.map +1 -0
- package/bin/dashboardGroup.js +88 -0
- package/bin/dashboardGroup.js.map +1 -0
- package/bin/dashboardSection.d.ts +101 -0
- package/bin/dashboardSection.d.ts.map +1 -0
- package/bin/dashboardSection.js +98 -0
- package/bin/dashboardSection.js.map +1 -0
- package/bin/errorsApplication.d.ts +9 -0
- package/bin/errorsApplication.d.ts.map +1 -0
- package/bin/errorsApplication.js +39 -4
- package/bin/errorsApplication.js.map +1 -1
- package/bin/errorsApplicationGroup.d.ts +1 -0
- package/bin/errorsApplicationGroup.d.ts.map +1 -0
- package/bin/errorsApplicationGroup.js +37 -4
- package/bin/errorsApplicationGroup.js.map +1 -1
- package/bin/exploration.d.ts +1 -0
- package/bin/exploration.d.ts.map +1 -0
- package/bin/exploration.js +37 -4
- package/bin/exploration.js.map +1 -1
- package/bin/explorationAlert.d.ts +4 -3
- package/bin/explorationAlert.d.ts.map +1 -0
- package/bin/explorationAlert.js +37 -4
- package/bin/explorationAlert.js.map +1 -1
- package/bin/explorationGroup.d.ts +1 -0
- package/bin/explorationGroup.d.ts.map +1 -0
- package/bin/explorationGroup.js +37 -4
- package/bin/explorationGroup.js.map +1 -1
- package/bin/getCollector.d.ts +1 -1
- package/bin/getCollector.d.ts.map +1 -0
- package/bin/getCollector.js +35 -2
- package/bin/getCollector.js.map +1 -1
- package/bin/getConnection.d.ts +1 -0
- package/bin/getConnection.d.ts.map +1 -0
- package/bin/getConnection.js +35 -2
- package/bin/getConnection.js.map +1 -1
- package/bin/getDashboard.d.ts +1 -0
- package/bin/getDashboard.d.ts.map +1 -0
- package/bin/getDashboard.js +35 -2
- package/bin/getDashboard.js.map +1 -1
- package/bin/getDashboardAlert.d.ts +60 -0
- package/bin/getDashboardAlert.d.ts.map +1 -0
- package/bin/getDashboardAlert.js +58 -0
- package/bin/getDashboardAlert.js.map +1 -0
- package/bin/getDashboardChart.d.ts +37 -0
- package/bin/getDashboardChart.d.ts.map +1 -0
- package/bin/getDashboardChart.js +56 -0
- package/bin/getDashboardChart.js.map +1 -0
- package/bin/getDashboardGroup.d.ts +26 -0
- package/bin/getDashboardGroup.d.ts.map +1 -0
- package/bin/getDashboardGroup.js +54 -0
- package/bin/getDashboardGroup.js.map +1 -0
- package/bin/getDashboardSection.d.ts +30 -0
- package/bin/getDashboardSection.d.ts.map +1 -0
- package/bin/getDashboardSection.js +56 -0
- package/bin/getDashboardSection.js.map +1 -0
- package/bin/getDashboardTemplate.d.ts +1 -0
- package/bin/getDashboardTemplate.d.ts.map +1 -0
- package/bin/getDashboardTemplate.js +35 -2
- package/bin/getDashboardTemplate.js.map +1 -1
- package/bin/getErrorsApplication.d.ts +2 -0
- package/bin/getErrorsApplication.d.ts.map +1 -0
- package/bin/getErrorsApplication.js +35 -2
- package/bin/getErrorsApplication.js.map +1 -1
- package/bin/getErrorsApplicationGroup.d.ts +1 -0
- package/bin/getErrorsApplicationGroup.d.ts.map +1 -0
- package/bin/getErrorsApplicationGroup.js +35 -2
- package/bin/getErrorsApplicationGroup.js.map +1 -1
- package/bin/getExploration.d.ts +1 -0
- package/bin/getExploration.d.ts.map +1 -0
- package/bin/getExploration.js +35 -2
- package/bin/getExploration.js.map +1 -1
- package/bin/getExplorationAlert.d.ts +1 -0
- package/bin/getExplorationAlert.d.ts.map +1 -0
- package/bin/getExplorationAlert.js +35 -2
- package/bin/getExplorationAlert.js.map +1 -1
- package/bin/getExplorationGroup.d.ts +1 -0
- package/bin/getExplorationGroup.d.ts.map +1 -0
- package/bin/getExplorationGroup.js +35 -2
- package/bin/getExplorationGroup.js.map +1 -1
- package/bin/getMetric.d.ts +1 -0
- package/bin/getMetric.d.ts.map +1 -0
- package/bin/getMetric.js +35 -2
- package/bin/getMetric.js.map +1 -1
- package/bin/getSource.d.ts +1 -0
- package/bin/getSource.d.ts.map +1 -0
- package/bin/getSource.js +35 -2
- package/bin/getSource.js.map +1 -1
- package/bin/getSourceGroup.d.ts +1 -0
- package/bin/getSourceGroup.d.ts.map +1 -0
- package/bin/getSourceGroup.js +35 -2
- package/bin/getSourceGroup.js.map +1 -1
- package/bin/getWarehouseEmbedding.d.ts +1 -0
- package/bin/getWarehouseEmbedding.d.ts.map +1 -0
- package/bin/getWarehouseEmbedding.js +35 -2
- package/bin/getWarehouseEmbedding.js.map +1 -1
- package/bin/getWarehouseSource.d.ts +1 -0
- package/bin/getWarehouseSource.d.ts.map +1 -0
- package/bin/getWarehouseSource.js +35 -2
- package/bin/getWarehouseSource.js.map +1 -1
- package/bin/getWarehouseSourceGroup.d.ts +1 -0
- package/bin/getWarehouseSourceGroup.d.ts.map +1 -0
- package/bin/getWarehouseSourceGroup.js +35 -2
- package/bin/getWarehouseSourceGroup.js.map +1 -1
- package/bin/index.d.ts +25 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +60 -5
- package/bin/index.js.map +1 -1
- package/bin/metric.d.ts +1 -0
- package/bin/metric.d.ts.map +1 -0
- package/bin/metric.js +37 -4
- package/bin/metric.js.map +1 -1
- package/bin/package.json +5 -5
- package/bin/provider.d.ts +1 -0
- package/bin/provider.d.ts.map +1 -0
- package/bin/provider.js +37 -4
- package/bin/provider.js.map +1 -1
- package/bin/source.d.ts +4 -0
- package/bin/source.d.ts.map +1 -0
- package/bin/source.js +37 -4
- package/bin/source.js.map +1 -1
- package/bin/sourceGroup.d.ts +1 -0
- package/bin/sourceGroup.d.ts.map +1 -0
- package/bin/sourceGroup.js +37 -4
- package/bin/sourceGroup.js.map +1 -1
- package/bin/types/index.d.ts +1 -0
- package/bin/types/index.d.ts.map +1 -0
- package/bin/types/index.js +35 -2
- package/bin/types/index.js.map +1 -1
- package/bin/types/input.d.ts +64 -23
- package/bin/types/input.d.ts.map +1 -0
- package/bin/types/output.d.ts +79 -32
- package/bin/types/output.d.ts.map +1 -0
- package/bin/utilities.d.ts +1 -0
- package/bin/utilities.d.ts.map +1 -0
- package/bin/utilities.js +38 -5
- package/bin/utilities.js.map +1 -1
- package/bin/warehouseEmbedding.d.ts +1 -0
- package/bin/warehouseEmbedding.d.ts.map +1 -0
- package/bin/warehouseEmbedding.js +37 -4
- package/bin/warehouseEmbedding.js.map +1 -1
- package/bin/warehouseSource.d.ts +1 -0
- package/bin/warehouseSource.d.ts.map +1 -0
- package/bin/warehouseSource.js +37 -4
- package/bin/warehouseSource.js.map +1 -1
- package/bin/warehouseSourceGroup.d.ts +1 -0
- package/bin/warehouseSourceGroup.d.ts.map +1 -0
- package/bin/warehouseSourceGroup.js +37 -4
- package/bin/warehouseSourceGroup.js.map +1 -1
- package/bin/warehouseTimeSeries.d.ts +1 -0
- package/bin/warehouseTimeSeries.d.ts.map +1 -0
- package/bin/warehouseTimeSeries.js +37 -4
- package/bin/warehouseTimeSeries.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class DashboardAlert extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing DashboardAlert resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardAlertState, opts?: pulumi.CustomResourceOptions): DashboardAlert;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of DashboardAlert. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is DashboardAlert;
|
|
20
|
+
/**
|
|
21
|
+
* The data aggregation interval in seconds.
|
|
22
|
+
*/
|
|
23
|
+
readonly aggregationInterval: pulumi.Output<number>;
|
|
24
|
+
/**
|
|
25
|
+
* The type of alert: 'threshold', 'relative', or 'anomaly_rrcf'.
|
|
26
|
+
*/
|
|
27
|
+
readonly alertType: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Anomaly detection sensitivity 0-100 (only for 'anomaly_rrcf' type, lower = more sensitive).
|
|
30
|
+
*/
|
|
31
|
+
readonly anomalySensitivity: pulumi.Output<number>;
|
|
32
|
+
/**
|
|
33
|
+
* Anomaly trigger mode: 'any', 'higher', or 'lower' (only for 'anomaly_rrcf' type).
|
|
34
|
+
*/
|
|
35
|
+
readonly anomalyTrigger: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Enable phone call notifications.
|
|
38
|
+
*/
|
|
39
|
+
readonly call: pulumi.Output<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the chart this alert belongs to. Accepts either a bare chart ID or a composite dashboard_id/chart_id from<span pulumi-lang-nodejs=" logtail.DashboardChart " pulumi-lang-dotnet=" logtail.DashboardChart " pulumi-lang-go=" DashboardChart " pulumi-lang-python=" DashboardChart " pulumi-lang-yaml=" logtail.DashboardChart " pulumi-lang-java=" logtail.DashboardChart "> logtail.DashboardChart </span>resources.
|
|
42
|
+
*/
|
|
43
|
+
readonly chartId: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* How often to check the alert condition in seconds.
|
|
46
|
+
*/
|
|
47
|
+
readonly checkPeriod: pulumi.Output<number>;
|
|
48
|
+
/**
|
|
49
|
+
* The confirmation delay in seconds before triggering (required, >= 0).
|
|
50
|
+
*/
|
|
51
|
+
readonly confirmationPeriod: pulumi.Output<number>;
|
|
52
|
+
/**
|
|
53
|
+
* The time when this alert was created.
|
|
54
|
+
*/
|
|
55
|
+
readonly createdAt: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Mark as critical alert (bypasses quiet hours).
|
|
58
|
+
*/
|
|
59
|
+
readonly criticalAlert: pulumi.Output<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the dashboard this alert belongs to.
|
|
62
|
+
*/
|
|
63
|
+
readonly dashboardId: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Enable email notifications.
|
|
66
|
+
*/
|
|
67
|
+
readonly email: pulumi.Output<boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* The escalation target for this alert. Specify either team_id/team_name OR policy_id/policy_name.
|
|
70
|
+
*/
|
|
71
|
+
readonly escalationTarget: pulumi.Output<outputs.DashboardAlertEscalationTarget | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Incident description template (supports {{variable}} interpolation).
|
|
74
|
+
*/
|
|
75
|
+
readonly incidentCause: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Create separate incidents per series.
|
|
78
|
+
*/
|
|
79
|
+
readonly incidentPerSeries: pulumi.Output<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Custom metadata key-value pairs included in incident notifications.
|
|
82
|
+
*/
|
|
83
|
+
readonly metadata: pulumi.Output<{
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
} | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* The name of this alert.
|
|
88
|
+
*/
|
|
89
|
+
readonly name: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The comparison operator. For threshold: 'equal', 'not_equal', 'higher_than', 'higher_than_or_equal', 'lower_than', 'lower_than_or_equal'. For relative: 'increases_by', 'decreases_by', 'changes_by'. Not required for anomaly alerts.
|
|
92
|
+
*/
|
|
93
|
+
readonly operator: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the alert is paused.
|
|
96
|
+
*/
|
|
97
|
+
readonly paused: pulumi.Output<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Read-only field explaining why the alert is paused (e.g., 'Manually paused', complexity issues, too many failures).
|
|
100
|
+
*/
|
|
101
|
+
readonly pausedReason: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Enable push notifications.
|
|
104
|
+
*/
|
|
105
|
+
readonly push: pulumi.Output<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* The query evaluation window in seconds (default: 60).
|
|
108
|
+
*/
|
|
109
|
+
readonly queryPeriod: pulumi.Output<number>;
|
|
110
|
+
/**
|
|
111
|
+
* The recovery delay in seconds.
|
|
112
|
+
*/
|
|
113
|
+
readonly recoveryPeriod: pulumi.Output<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Specific series to monitor.
|
|
116
|
+
*/
|
|
117
|
+
readonly seriesNames: pulumi.Output<string[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Enable SMS notifications.
|
|
120
|
+
*/
|
|
121
|
+
readonly sms: pulumi.Output<boolean>;
|
|
122
|
+
/**
|
|
123
|
+
* Source selection mode: 'source_variable', 'platforms_single_source', or 'platforms_all_sources'.
|
|
124
|
+
*/
|
|
125
|
+
readonly sourceMode: pulumi.Output<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Platform filters (used when<span pulumi-lang-nodejs=" sourceMode " pulumi-lang-dotnet=" SourceMode " pulumi-lang-go=" sourceMode " pulumi-lang-python=" source_mode " pulumi-lang-yaml=" sourceMode " pulumi-lang-java=" sourceMode "> source_mode </span>is 'platforms_*').
|
|
128
|
+
*/
|
|
129
|
+
readonly sourcePlatforms: pulumi.Output<string[]>;
|
|
130
|
+
/**
|
|
131
|
+
* Source reference (format: 'source:table_name'). If omitted, derived from the parent resource's source variable.
|
|
132
|
+
*/
|
|
133
|
+
readonly sourceVariable: pulumi.Output<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The string threshold value (only for threshold alerts with 'equal' or 'not_equal' operators).
|
|
136
|
+
*/
|
|
137
|
+
readonly stringValue: pulumi.Output<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The time when this alert was updated.
|
|
140
|
+
*/
|
|
141
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The numeric threshold value. Required for threshold and relative alerts.
|
|
144
|
+
*/
|
|
145
|
+
readonly value: pulumi.Output<number>;
|
|
146
|
+
/**
|
|
147
|
+
* Create a DashboardAlert resource with the given unique name, arguments, and options.
|
|
148
|
+
*
|
|
149
|
+
* @param name The _unique_ name of the resource.
|
|
150
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
151
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
152
|
+
*/
|
|
153
|
+
constructor(name: string, args: DashboardAlertArgs, opts?: pulumi.CustomResourceOptions);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Input properties used for looking up and filtering DashboardAlert resources.
|
|
157
|
+
*/
|
|
158
|
+
export interface DashboardAlertState {
|
|
159
|
+
/**
|
|
160
|
+
* The data aggregation interval in seconds.
|
|
161
|
+
*/
|
|
162
|
+
aggregationInterval?: pulumi.Input<number>;
|
|
163
|
+
/**
|
|
164
|
+
* The type of alert: 'threshold', 'relative', or 'anomaly_rrcf'.
|
|
165
|
+
*/
|
|
166
|
+
alertType?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Anomaly detection sensitivity 0-100 (only for 'anomaly_rrcf' type, lower = more sensitive).
|
|
169
|
+
*/
|
|
170
|
+
anomalySensitivity?: pulumi.Input<number>;
|
|
171
|
+
/**
|
|
172
|
+
* Anomaly trigger mode: 'any', 'higher', or 'lower' (only for 'anomaly_rrcf' type).
|
|
173
|
+
*/
|
|
174
|
+
anomalyTrigger?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Enable phone call notifications.
|
|
177
|
+
*/
|
|
178
|
+
call?: pulumi.Input<boolean>;
|
|
179
|
+
/**
|
|
180
|
+
* The ID of the chart this alert belongs to. Accepts either a bare chart ID or a composite dashboard_id/chart_id from<span pulumi-lang-nodejs=" logtail.DashboardChart " pulumi-lang-dotnet=" logtail.DashboardChart " pulumi-lang-go=" DashboardChart " pulumi-lang-python=" DashboardChart " pulumi-lang-yaml=" logtail.DashboardChart " pulumi-lang-java=" logtail.DashboardChart "> logtail.DashboardChart </span>resources.
|
|
181
|
+
*/
|
|
182
|
+
chartId?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* How often to check the alert condition in seconds.
|
|
185
|
+
*/
|
|
186
|
+
checkPeriod?: pulumi.Input<number>;
|
|
187
|
+
/**
|
|
188
|
+
* The confirmation delay in seconds before triggering (required, >= 0).
|
|
189
|
+
*/
|
|
190
|
+
confirmationPeriod?: pulumi.Input<number>;
|
|
191
|
+
/**
|
|
192
|
+
* The time when this alert was created.
|
|
193
|
+
*/
|
|
194
|
+
createdAt?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* Mark as critical alert (bypasses quiet hours).
|
|
197
|
+
*/
|
|
198
|
+
criticalAlert?: pulumi.Input<boolean>;
|
|
199
|
+
/**
|
|
200
|
+
* The ID of the dashboard this alert belongs to.
|
|
201
|
+
*/
|
|
202
|
+
dashboardId?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Enable email notifications.
|
|
205
|
+
*/
|
|
206
|
+
email?: pulumi.Input<boolean>;
|
|
207
|
+
/**
|
|
208
|
+
* The escalation target for this alert. Specify either team_id/team_name OR policy_id/policy_name.
|
|
209
|
+
*/
|
|
210
|
+
escalationTarget?: pulumi.Input<inputs.DashboardAlertEscalationTarget>;
|
|
211
|
+
/**
|
|
212
|
+
* Incident description template (supports {{variable}} interpolation).
|
|
213
|
+
*/
|
|
214
|
+
incidentCause?: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* Create separate incidents per series.
|
|
217
|
+
*/
|
|
218
|
+
incidentPerSeries?: pulumi.Input<boolean>;
|
|
219
|
+
/**
|
|
220
|
+
* Custom metadata key-value pairs included in incident notifications.
|
|
221
|
+
*/
|
|
222
|
+
metadata?: pulumi.Input<{
|
|
223
|
+
[key: string]: pulumi.Input<string>;
|
|
224
|
+
}>;
|
|
225
|
+
/**
|
|
226
|
+
* The name of this alert.
|
|
227
|
+
*/
|
|
228
|
+
name?: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* The comparison operator. For threshold: 'equal', 'not_equal', 'higher_than', 'higher_than_or_equal', 'lower_than', 'lower_than_or_equal'. For relative: 'increases_by', 'decreases_by', 'changes_by'. Not required for anomaly alerts.
|
|
231
|
+
*/
|
|
232
|
+
operator?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Whether the alert is paused.
|
|
235
|
+
*/
|
|
236
|
+
paused?: pulumi.Input<boolean>;
|
|
237
|
+
/**
|
|
238
|
+
* Read-only field explaining why the alert is paused (e.g., 'Manually paused', complexity issues, too many failures).
|
|
239
|
+
*/
|
|
240
|
+
pausedReason?: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* Enable push notifications.
|
|
243
|
+
*/
|
|
244
|
+
push?: pulumi.Input<boolean>;
|
|
245
|
+
/**
|
|
246
|
+
* The query evaluation window in seconds (default: 60).
|
|
247
|
+
*/
|
|
248
|
+
queryPeriod?: pulumi.Input<number>;
|
|
249
|
+
/**
|
|
250
|
+
* The recovery delay in seconds.
|
|
251
|
+
*/
|
|
252
|
+
recoveryPeriod?: pulumi.Input<number>;
|
|
253
|
+
/**
|
|
254
|
+
* Specific series to monitor.
|
|
255
|
+
*/
|
|
256
|
+
seriesNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
257
|
+
/**
|
|
258
|
+
* Enable SMS notifications.
|
|
259
|
+
*/
|
|
260
|
+
sms?: pulumi.Input<boolean>;
|
|
261
|
+
/**
|
|
262
|
+
* Source selection mode: 'source_variable', 'platforms_single_source', or 'platforms_all_sources'.
|
|
263
|
+
*/
|
|
264
|
+
sourceMode?: pulumi.Input<string>;
|
|
265
|
+
/**
|
|
266
|
+
* Platform filters (used when<span pulumi-lang-nodejs=" sourceMode " pulumi-lang-dotnet=" SourceMode " pulumi-lang-go=" sourceMode " pulumi-lang-python=" source_mode " pulumi-lang-yaml=" sourceMode " pulumi-lang-java=" sourceMode "> source_mode </span>is 'platforms_*').
|
|
267
|
+
*/
|
|
268
|
+
sourcePlatforms?: pulumi.Input<pulumi.Input<string>[]>;
|
|
269
|
+
/**
|
|
270
|
+
* Source reference (format: 'source:table_name'). If omitted, derived from the parent resource's source variable.
|
|
271
|
+
*/
|
|
272
|
+
sourceVariable?: pulumi.Input<string>;
|
|
273
|
+
/**
|
|
274
|
+
* The string threshold value (only for threshold alerts with 'equal' or 'not_equal' operators).
|
|
275
|
+
*/
|
|
276
|
+
stringValue?: pulumi.Input<string>;
|
|
277
|
+
/**
|
|
278
|
+
* The time when this alert was updated.
|
|
279
|
+
*/
|
|
280
|
+
updatedAt?: pulumi.Input<string>;
|
|
281
|
+
/**
|
|
282
|
+
* The numeric threshold value. Required for threshold and relative alerts.
|
|
283
|
+
*/
|
|
284
|
+
value?: pulumi.Input<number>;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* The set of arguments for constructing a DashboardAlert resource.
|
|
288
|
+
*/
|
|
289
|
+
export interface DashboardAlertArgs {
|
|
290
|
+
/**
|
|
291
|
+
* The data aggregation interval in seconds.
|
|
292
|
+
*/
|
|
293
|
+
aggregationInterval?: pulumi.Input<number>;
|
|
294
|
+
/**
|
|
295
|
+
* The type of alert: 'threshold', 'relative', or 'anomaly_rrcf'.
|
|
296
|
+
*/
|
|
297
|
+
alertType: pulumi.Input<string>;
|
|
298
|
+
/**
|
|
299
|
+
* Anomaly detection sensitivity 0-100 (only for 'anomaly_rrcf' type, lower = more sensitive).
|
|
300
|
+
*/
|
|
301
|
+
anomalySensitivity?: pulumi.Input<number>;
|
|
302
|
+
/**
|
|
303
|
+
* Anomaly trigger mode: 'any', 'higher', or 'lower' (only for 'anomaly_rrcf' type).
|
|
304
|
+
*/
|
|
305
|
+
anomalyTrigger?: pulumi.Input<string>;
|
|
306
|
+
/**
|
|
307
|
+
* Enable phone call notifications.
|
|
308
|
+
*/
|
|
309
|
+
call?: pulumi.Input<boolean>;
|
|
310
|
+
/**
|
|
311
|
+
* The ID of the chart this alert belongs to. Accepts either a bare chart ID or a composite dashboard_id/chart_id from<span pulumi-lang-nodejs=" logtail.DashboardChart " pulumi-lang-dotnet=" logtail.DashboardChart " pulumi-lang-go=" DashboardChart " pulumi-lang-python=" DashboardChart " pulumi-lang-yaml=" logtail.DashboardChart " pulumi-lang-java=" logtail.DashboardChart "> logtail.DashboardChart </span>resources.
|
|
312
|
+
*/
|
|
313
|
+
chartId: pulumi.Input<string>;
|
|
314
|
+
/**
|
|
315
|
+
* How often to check the alert condition in seconds.
|
|
316
|
+
*/
|
|
317
|
+
checkPeriod?: pulumi.Input<number>;
|
|
318
|
+
/**
|
|
319
|
+
* The confirmation delay in seconds before triggering (required, >= 0).
|
|
320
|
+
*/
|
|
321
|
+
confirmationPeriod?: pulumi.Input<number>;
|
|
322
|
+
/**
|
|
323
|
+
* Mark as critical alert (bypasses quiet hours).
|
|
324
|
+
*/
|
|
325
|
+
criticalAlert?: pulumi.Input<boolean>;
|
|
326
|
+
/**
|
|
327
|
+
* The ID of the dashboard this alert belongs to.
|
|
328
|
+
*/
|
|
329
|
+
dashboardId: pulumi.Input<string>;
|
|
330
|
+
/**
|
|
331
|
+
* Enable email notifications.
|
|
332
|
+
*/
|
|
333
|
+
email?: pulumi.Input<boolean>;
|
|
334
|
+
/**
|
|
335
|
+
* The escalation target for this alert. Specify either team_id/team_name OR policy_id/policy_name.
|
|
336
|
+
*/
|
|
337
|
+
escalationTarget?: pulumi.Input<inputs.DashboardAlertEscalationTarget>;
|
|
338
|
+
/**
|
|
339
|
+
* Incident description template (supports {{variable}} interpolation).
|
|
340
|
+
*/
|
|
341
|
+
incidentCause?: pulumi.Input<string>;
|
|
342
|
+
/**
|
|
343
|
+
* Create separate incidents per series.
|
|
344
|
+
*/
|
|
345
|
+
incidentPerSeries?: pulumi.Input<boolean>;
|
|
346
|
+
/**
|
|
347
|
+
* Custom metadata key-value pairs included in incident notifications.
|
|
348
|
+
*/
|
|
349
|
+
metadata?: pulumi.Input<{
|
|
350
|
+
[key: string]: pulumi.Input<string>;
|
|
351
|
+
}>;
|
|
352
|
+
/**
|
|
353
|
+
* The name of this alert.
|
|
354
|
+
*/
|
|
355
|
+
name?: pulumi.Input<string>;
|
|
356
|
+
/**
|
|
357
|
+
* The comparison operator. For threshold: 'equal', 'not_equal', 'higher_than', 'higher_than_or_equal', 'lower_than', 'lower_than_or_equal'. For relative: 'increases_by', 'decreases_by', 'changes_by'. Not required for anomaly alerts.
|
|
358
|
+
*/
|
|
359
|
+
operator?: pulumi.Input<string>;
|
|
360
|
+
/**
|
|
361
|
+
* Whether the alert is paused.
|
|
362
|
+
*/
|
|
363
|
+
paused?: pulumi.Input<boolean>;
|
|
364
|
+
/**
|
|
365
|
+
* Enable push notifications.
|
|
366
|
+
*/
|
|
367
|
+
push?: pulumi.Input<boolean>;
|
|
368
|
+
/**
|
|
369
|
+
* The query evaluation window in seconds (default: 60).
|
|
370
|
+
*/
|
|
371
|
+
queryPeriod?: pulumi.Input<number>;
|
|
372
|
+
/**
|
|
373
|
+
* The recovery delay in seconds.
|
|
374
|
+
*/
|
|
375
|
+
recoveryPeriod?: pulumi.Input<number>;
|
|
376
|
+
/**
|
|
377
|
+
* Specific series to monitor.
|
|
378
|
+
*/
|
|
379
|
+
seriesNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
380
|
+
/**
|
|
381
|
+
* Enable SMS notifications.
|
|
382
|
+
*/
|
|
383
|
+
sms?: pulumi.Input<boolean>;
|
|
384
|
+
/**
|
|
385
|
+
* Source selection mode: 'source_variable', 'platforms_single_source', or 'platforms_all_sources'.
|
|
386
|
+
*/
|
|
387
|
+
sourceMode?: pulumi.Input<string>;
|
|
388
|
+
/**
|
|
389
|
+
* Platform filters (used when<span pulumi-lang-nodejs=" sourceMode " pulumi-lang-dotnet=" SourceMode " pulumi-lang-go=" sourceMode " pulumi-lang-python=" source_mode " pulumi-lang-yaml=" sourceMode " pulumi-lang-java=" sourceMode "> source_mode </span>is 'platforms_*').
|
|
390
|
+
*/
|
|
391
|
+
sourcePlatforms?: pulumi.Input<pulumi.Input<string>[]>;
|
|
392
|
+
/**
|
|
393
|
+
* Source reference (format: 'source:table_name'). If omitted, derived from the parent resource's source variable.
|
|
394
|
+
*/
|
|
395
|
+
sourceVariable?: pulumi.Input<string>;
|
|
396
|
+
/**
|
|
397
|
+
* The string threshold value (only for threshold alerts with 'equal' or 'not_equal' operators).
|
|
398
|
+
*/
|
|
399
|
+
stringValue?: pulumi.Input<string>;
|
|
400
|
+
/**
|
|
401
|
+
* The numeric threshold value. Required for threshold and relative alerts.
|
|
402
|
+
*/
|
|
403
|
+
value?: pulumi.Input<number>;
|
|
404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AEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnD;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
21
|
+
var ownKeys = function(o) {
|
|
22
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
23
|
+
var ar = [];
|
|
24
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
25
|
+
return ar;
|
|
26
|
+
};
|
|
27
|
+
return ownKeys(o);
|
|
28
|
+
};
|
|
29
|
+
return function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
})();
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.DashboardAlert = void 0;
|
|
39
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
40
|
+
const utilities = __importStar(require("./utilities"));
|
|
41
|
+
class DashboardAlert extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing DashboardAlert resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name, id, state, opts) {
|
|
52
|
+
return new DashboardAlert(name, state, { ...opts, id: id });
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
static __pulumiType = 'logtail:index/dashboardAlert:DashboardAlert';
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of DashboardAlert. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === DashboardAlert.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["aggregationInterval"] = state?.aggregationInterval;
|
|
72
|
+
resourceInputs["alertType"] = state?.alertType;
|
|
73
|
+
resourceInputs["anomalySensitivity"] = state?.anomalySensitivity;
|
|
74
|
+
resourceInputs["anomalyTrigger"] = state?.anomalyTrigger;
|
|
75
|
+
resourceInputs["call"] = state?.call;
|
|
76
|
+
resourceInputs["chartId"] = state?.chartId;
|
|
77
|
+
resourceInputs["checkPeriod"] = state?.checkPeriod;
|
|
78
|
+
resourceInputs["confirmationPeriod"] = state?.confirmationPeriod;
|
|
79
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
80
|
+
resourceInputs["criticalAlert"] = state?.criticalAlert;
|
|
81
|
+
resourceInputs["dashboardId"] = state?.dashboardId;
|
|
82
|
+
resourceInputs["email"] = state?.email;
|
|
83
|
+
resourceInputs["escalationTarget"] = state?.escalationTarget;
|
|
84
|
+
resourceInputs["incidentCause"] = state?.incidentCause;
|
|
85
|
+
resourceInputs["incidentPerSeries"] = state?.incidentPerSeries;
|
|
86
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
87
|
+
resourceInputs["name"] = state?.name;
|
|
88
|
+
resourceInputs["operator"] = state?.operator;
|
|
89
|
+
resourceInputs["paused"] = state?.paused;
|
|
90
|
+
resourceInputs["pausedReason"] = state?.pausedReason;
|
|
91
|
+
resourceInputs["push"] = state?.push;
|
|
92
|
+
resourceInputs["queryPeriod"] = state?.queryPeriod;
|
|
93
|
+
resourceInputs["recoveryPeriod"] = state?.recoveryPeriod;
|
|
94
|
+
resourceInputs["seriesNames"] = state?.seriesNames;
|
|
95
|
+
resourceInputs["sms"] = state?.sms;
|
|
96
|
+
resourceInputs["sourceMode"] = state?.sourceMode;
|
|
97
|
+
resourceInputs["sourcePlatforms"] = state?.sourcePlatforms;
|
|
98
|
+
resourceInputs["sourceVariable"] = state?.sourceVariable;
|
|
99
|
+
resourceInputs["stringValue"] = state?.stringValue;
|
|
100
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
101
|
+
resourceInputs["value"] = state?.value;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
const args = argsOrState;
|
|
105
|
+
if (args?.alertType === undefined && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'alertType'");
|
|
107
|
+
}
|
|
108
|
+
if (args?.chartId === undefined && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'chartId'");
|
|
110
|
+
}
|
|
111
|
+
if (args?.dashboardId === undefined && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'dashboardId'");
|
|
113
|
+
}
|
|
114
|
+
resourceInputs["aggregationInterval"] = args?.aggregationInterval;
|
|
115
|
+
resourceInputs["alertType"] = args?.alertType;
|
|
116
|
+
resourceInputs["anomalySensitivity"] = args?.anomalySensitivity;
|
|
117
|
+
resourceInputs["anomalyTrigger"] = args?.anomalyTrigger;
|
|
118
|
+
resourceInputs["call"] = args?.call;
|
|
119
|
+
resourceInputs["chartId"] = args?.chartId;
|
|
120
|
+
resourceInputs["checkPeriod"] = args?.checkPeriod;
|
|
121
|
+
resourceInputs["confirmationPeriod"] = args?.confirmationPeriod;
|
|
122
|
+
resourceInputs["criticalAlert"] = args?.criticalAlert;
|
|
123
|
+
resourceInputs["dashboardId"] = args?.dashboardId;
|
|
124
|
+
resourceInputs["email"] = args?.email;
|
|
125
|
+
resourceInputs["escalationTarget"] = args?.escalationTarget;
|
|
126
|
+
resourceInputs["incidentCause"] = args?.incidentCause;
|
|
127
|
+
resourceInputs["incidentPerSeries"] = args?.incidentPerSeries;
|
|
128
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
129
|
+
resourceInputs["name"] = args?.name;
|
|
130
|
+
resourceInputs["operator"] = args?.operator;
|
|
131
|
+
resourceInputs["paused"] = args?.paused;
|
|
132
|
+
resourceInputs["push"] = args?.push;
|
|
133
|
+
resourceInputs["queryPeriod"] = args?.queryPeriod;
|
|
134
|
+
resourceInputs["recoveryPeriod"] = args?.recoveryPeriod;
|
|
135
|
+
resourceInputs["seriesNames"] = args?.seriesNames;
|
|
136
|
+
resourceInputs["sms"] = args?.sms;
|
|
137
|
+
resourceInputs["sourceMode"] = args?.sourceMode;
|
|
138
|
+
resourceInputs["sourcePlatforms"] = args?.sourcePlatforms;
|
|
139
|
+
resourceInputs["sourceVariable"] = args?.sourceVariable;
|
|
140
|
+
resourceInputs["stringValue"] = args?.stringValue;
|
|
141
|
+
resourceInputs["value"] = args?.value;
|
|
142
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
143
|
+
resourceInputs["pausedReason"] = undefined /*out*/;
|
|
144
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
145
|
+
}
|
|
146
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
147
|
+
super(DashboardAlert.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.DashboardAlert = DashboardAlert;
|
|
151
|
+
//# sourceMappingURL=dashboardAlert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardAlert.js","sourceRoot":"","sources":["../dashboardAlert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6CAA6C,CAAC;IAEpF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAuID,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACV,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,EAAE,mBAAmB,CA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