@pulumiverse/grafana 2.7.0 → 2.8.0-alpha.1759506488

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/cloud/stack.d.ts CHANGED
@@ -280,7 +280,7 @@ export declare class Stack extends pulumi.CustomResource {
280
280
  /**
281
281
  * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
282
282
  */
283
- readonly url: pulumi.Output<string | undefined>;
283
+ readonly url: pulumi.Output<string>;
284
284
  /**
285
285
  * Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
286
286
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumiverse/grafana",
3
- "version": "2.7.0",
3
+ "version": "2.8.0-alpha.1759506488",
4
4
  "description": "A Pulumi package for creating and managing grafana.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,7 +24,7 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "grafana",
27
- "version": "2.7.0",
27
+ "version": "2.8.0-alpha.1759506488",
28
28
  "server": "github://api.github.com/pulumiverse"
29
29
  }
30
30
  }
package/types/input.d.ts CHANGED
@@ -82,6 +82,10 @@ export declare namespace alerting {
82
82
  * Use AI assistant to investigate alerts and add insights.
83
83
  */
84
84
  assistantInvestigations?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAssistantInvestigations>;
85
+ /**
86
+ * Conditional step with if/then/else.
87
+ */
88
+ conditional?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditional>;
85
89
  /**
86
90
  * Query Grafana data sources and add results to alerts.
87
91
  */
@@ -123,6 +127,304 @@ export declare namespace alerting {
123
127
  */
124
128
  timeout?: pulumi.Input<string>;
125
129
  }
130
+ interface AlertEnrichmentSpecStepConditional {
131
+ /**
132
+ * Steps when condition is false.
133
+ */
134
+ else?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElse>;
135
+ /**
136
+ * Condition to evaluate.
137
+ */
138
+ if?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalIf>;
139
+ /**
140
+ * Steps when condition is true.
141
+ */
142
+ then?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThen>;
143
+ /**
144
+ * Maximum execution time (e.g., '30s', '1m')
145
+ */
146
+ timeout?: pulumi.Input<string>;
147
+ }
148
+ interface AlertEnrichmentSpecStepConditionalElse {
149
+ steps?: pulumi.Input<pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStep>[]>;
150
+ }
151
+ interface AlertEnrichmentSpecStepConditionalElseStep {
152
+ /**
153
+ * Integrate with Grafana Asserts for enrichment.
154
+ */
155
+ asserts?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepAsserts>;
156
+ /**
157
+ * Assign annotations to an alert.
158
+ */
159
+ assign?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepAssign>;
160
+ /**
161
+ * Use AI assistant to investigate alerts and add insights.
162
+ */
163
+ assistantInvestigations?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepAssistantInvestigations>;
164
+ /**
165
+ * Query Grafana data sources and add results to alerts.
166
+ */
167
+ dataSource?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepDataSource>;
168
+ /**
169
+ * Generate AI explanation and store in an annotation.
170
+ */
171
+ explain?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepExplain>;
172
+ /**
173
+ * Call an external HTTP service for enrichment.
174
+ */
175
+ external?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepExternal>;
176
+ /**
177
+ * Analyze alerts for patterns and insights.
178
+ */
179
+ sift?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepSift>;
180
+ }
181
+ interface AlertEnrichmentSpecStepConditionalElseStepAsserts {
182
+ /**
183
+ * Maximum execution time (e.g., '30s', '1m')
184
+ */
185
+ timeout?: pulumi.Input<string>;
186
+ }
187
+ interface AlertEnrichmentSpecStepConditionalElseStepAssign {
188
+ /**
189
+ * Map of annotation names to values to set on matching alerts.
190
+ */
191
+ annotations?: pulumi.Input<{
192
+ [key: string]: pulumi.Input<string>;
193
+ }>;
194
+ /**
195
+ * Maximum execution time (e.g., '30s', '1m')
196
+ */
197
+ timeout?: pulumi.Input<string>;
198
+ }
199
+ interface AlertEnrichmentSpecStepConditionalElseStepAssistantInvestigations {
200
+ /**
201
+ * Maximum execution time (e.g., '30s', '1m')
202
+ */
203
+ timeout?: pulumi.Input<string>;
204
+ }
205
+ interface AlertEnrichmentSpecStepConditionalElseStepDataSource {
206
+ /**
207
+ * Logs query configuration for querying log data sources.
208
+ */
209
+ logsQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepDataSourceLogsQuery>;
210
+ /**
211
+ * Raw query configuration for advanced data source queries.
212
+ */
213
+ rawQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalElseStepDataSourceRawQuery>;
214
+ /**
215
+ * Maximum execution time (e.g., '30s', '1m')
216
+ */
217
+ timeout?: pulumi.Input<string>;
218
+ }
219
+ interface AlertEnrichmentSpecStepConditionalElseStepDataSourceLogsQuery {
220
+ /**
221
+ * Data source type (e.g., 'loki').
222
+ */
223
+ dataSourceType?: pulumi.Input<string>;
224
+ /**
225
+ * UID of the data source to query.
226
+ */
227
+ dataSourceUid?: pulumi.Input<string>;
228
+ /**
229
+ * Log query expression to execute.
230
+ */
231
+ expr?: pulumi.Input<string>;
232
+ /**
233
+ * Maximum number of log lines to include. Defaults to 3.
234
+ */
235
+ maxLines?: pulumi.Input<number>;
236
+ }
237
+ interface AlertEnrichmentSpecStepConditionalElseStepDataSourceRawQuery {
238
+ /**
239
+ * Reference ID for correlating queries.
240
+ */
241
+ refId?: pulumi.Input<string>;
242
+ /**
243
+ * Raw request payload for the data source query.
244
+ */
245
+ request?: pulumi.Input<string>;
246
+ }
247
+ interface AlertEnrichmentSpecStepConditionalElseStepExplain {
248
+ /**
249
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
250
+ */
251
+ annotation?: pulumi.Input<string>;
252
+ /**
253
+ * Maximum execution time (e.g., '30s', '1m')
254
+ */
255
+ timeout?: pulumi.Input<string>;
256
+ }
257
+ interface AlertEnrichmentSpecStepConditionalElseStepExternal {
258
+ /**
259
+ * Maximum execution time (e.g., '30s', '1m')
260
+ */
261
+ timeout?: pulumi.Input<string>;
262
+ /**
263
+ * HTTP endpoint URL to call for enrichment
264
+ */
265
+ url?: pulumi.Input<string>;
266
+ }
267
+ interface AlertEnrichmentSpecStepConditionalElseStepSift {
268
+ /**
269
+ * Maximum execution time (e.g., '30s', '1m')
270
+ */
271
+ timeout?: pulumi.Input<string>;
272
+ }
273
+ interface AlertEnrichmentSpecStepConditionalIf {
274
+ /**
275
+ * Annotation matchers for the condition.
276
+ */
277
+ annotationMatchers?: pulumi.Input<pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalIfAnnotationMatcher>[]>;
278
+ /**
279
+ * Data source condition.
280
+ */
281
+ dataSourceCondition?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalIfDataSourceCondition>;
282
+ /**
283
+ * Label matchers for the condition.
284
+ */
285
+ labelMatchers?: pulumi.Input<pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalIfLabelMatcher>[]>;
286
+ }
287
+ interface AlertEnrichmentSpecStepConditionalIfAnnotationMatcher {
288
+ name: pulumi.Input<string>;
289
+ type: pulumi.Input<string>;
290
+ value: pulumi.Input<string>;
291
+ }
292
+ interface AlertEnrichmentSpecStepConditionalIfDataSourceCondition {
293
+ /**
294
+ * Data source request payload.
295
+ */
296
+ request?: pulumi.Input<string>;
297
+ }
298
+ interface AlertEnrichmentSpecStepConditionalIfLabelMatcher {
299
+ name: pulumi.Input<string>;
300
+ type: pulumi.Input<string>;
301
+ value: pulumi.Input<string>;
302
+ }
303
+ interface AlertEnrichmentSpecStepConditionalThen {
304
+ steps?: pulumi.Input<pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStep>[]>;
305
+ }
306
+ interface AlertEnrichmentSpecStepConditionalThenStep {
307
+ /**
308
+ * Integrate with Grafana Asserts for enrichment.
309
+ */
310
+ asserts?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepAsserts>;
311
+ /**
312
+ * Assign annotations to an alert.
313
+ */
314
+ assign?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepAssign>;
315
+ /**
316
+ * Use AI assistant to investigate alerts and add insights.
317
+ */
318
+ assistantInvestigations?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepAssistantInvestigations>;
319
+ /**
320
+ * Query Grafana data sources and add results to alerts.
321
+ */
322
+ dataSource?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepDataSource>;
323
+ /**
324
+ * Generate AI explanation and store in an annotation.
325
+ */
326
+ explain?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepExplain>;
327
+ /**
328
+ * Call an external HTTP service for enrichment.
329
+ */
330
+ external?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepExternal>;
331
+ /**
332
+ * Analyze alerts for patterns and insights.
333
+ */
334
+ sift?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepSift>;
335
+ }
336
+ interface AlertEnrichmentSpecStepConditionalThenStepAsserts {
337
+ /**
338
+ * Maximum execution time (e.g., '30s', '1m')
339
+ */
340
+ timeout?: pulumi.Input<string>;
341
+ }
342
+ interface AlertEnrichmentSpecStepConditionalThenStepAssign {
343
+ /**
344
+ * Map of annotation names to values to set on matching alerts.
345
+ */
346
+ annotations?: pulumi.Input<{
347
+ [key: string]: pulumi.Input<string>;
348
+ }>;
349
+ /**
350
+ * Maximum execution time (e.g., '30s', '1m')
351
+ */
352
+ timeout?: pulumi.Input<string>;
353
+ }
354
+ interface AlertEnrichmentSpecStepConditionalThenStepAssistantInvestigations {
355
+ /**
356
+ * Maximum execution time (e.g., '30s', '1m')
357
+ */
358
+ timeout?: pulumi.Input<string>;
359
+ }
360
+ interface AlertEnrichmentSpecStepConditionalThenStepDataSource {
361
+ /**
362
+ * Logs query configuration for querying log data sources.
363
+ */
364
+ logsQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepDataSourceLogsQuery>;
365
+ /**
366
+ * Raw query configuration for advanced data source queries.
367
+ */
368
+ rawQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditionalThenStepDataSourceRawQuery>;
369
+ /**
370
+ * Maximum execution time (e.g., '30s', '1m')
371
+ */
372
+ timeout?: pulumi.Input<string>;
373
+ }
374
+ interface AlertEnrichmentSpecStepConditionalThenStepDataSourceLogsQuery {
375
+ /**
376
+ * Data source type (e.g., 'loki').
377
+ */
378
+ dataSourceType?: pulumi.Input<string>;
379
+ /**
380
+ * UID of the data source to query.
381
+ */
382
+ dataSourceUid?: pulumi.Input<string>;
383
+ /**
384
+ * Log query expression to execute.
385
+ */
386
+ expr?: pulumi.Input<string>;
387
+ /**
388
+ * Maximum number of log lines to include. Defaults to 3.
389
+ */
390
+ maxLines?: pulumi.Input<number>;
391
+ }
392
+ interface AlertEnrichmentSpecStepConditionalThenStepDataSourceRawQuery {
393
+ /**
394
+ * Reference ID for correlating queries.
395
+ */
396
+ refId?: pulumi.Input<string>;
397
+ /**
398
+ * Raw request payload for the data source query.
399
+ */
400
+ request?: pulumi.Input<string>;
401
+ }
402
+ interface AlertEnrichmentSpecStepConditionalThenStepExplain {
403
+ /**
404
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
405
+ */
406
+ annotation?: pulumi.Input<string>;
407
+ /**
408
+ * Maximum execution time (e.g., '30s', '1m')
409
+ */
410
+ timeout?: pulumi.Input<string>;
411
+ }
412
+ interface AlertEnrichmentSpecStepConditionalThenStepExternal {
413
+ /**
414
+ * Maximum execution time (e.g., '30s', '1m')
415
+ */
416
+ timeout?: pulumi.Input<string>;
417
+ /**
418
+ * HTTP endpoint URL to call for enrichment
419
+ */
420
+ url?: pulumi.Input<string>;
421
+ }
422
+ interface AlertEnrichmentSpecStepConditionalThenStepSift {
423
+ /**
424
+ * Maximum execution time (e.g., '30s', '1m')
425
+ */
426
+ timeout?: pulumi.Input<string>;
427
+ }
126
428
  interface AlertEnrichmentSpecStepDataSource {
127
429
  /**
128
430
  * Logs query configuration for querying log data sources.
package/types/output.d.ts CHANGED
@@ -81,6 +81,10 @@ export declare namespace alerting {
81
81
  * Use AI assistant to investigate alerts and add insights.
82
82
  */
83
83
  assistantInvestigations?: outputs.alerting.AlertEnrichmentSpecStepAssistantInvestigations;
84
+ /**
85
+ * Conditional step with if/then/else.
86
+ */
87
+ conditional?: outputs.alerting.AlertEnrichmentSpecStepConditional;
84
88
  /**
85
89
  * Query Grafana data sources and add results to alerts.
86
90
  */
@@ -122,6 +126,304 @@ export declare namespace alerting {
122
126
  */
123
127
  timeout?: string;
124
128
  }
129
+ interface AlertEnrichmentSpecStepConditional {
130
+ /**
131
+ * Steps when condition is false.
132
+ */
133
+ else?: outputs.alerting.AlertEnrichmentSpecStepConditionalElse;
134
+ /**
135
+ * Condition to evaluate.
136
+ */
137
+ if?: outputs.alerting.AlertEnrichmentSpecStepConditionalIf;
138
+ /**
139
+ * Steps when condition is true.
140
+ */
141
+ then?: outputs.alerting.AlertEnrichmentSpecStepConditionalThen;
142
+ /**
143
+ * Maximum execution time (e.g., '30s', '1m')
144
+ */
145
+ timeout?: string;
146
+ }
147
+ interface AlertEnrichmentSpecStepConditionalElse {
148
+ steps?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStep[];
149
+ }
150
+ interface AlertEnrichmentSpecStepConditionalElseStep {
151
+ /**
152
+ * Integrate with Grafana Asserts for enrichment.
153
+ */
154
+ asserts?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepAsserts;
155
+ /**
156
+ * Assign annotations to an alert.
157
+ */
158
+ assign?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepAssign;
159
+ /**
160
+ * Use AI assistant to investigate alerts and add insights.
161
+ */
162
+ assistantInvestigations?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepAssistantInvestigations;
163
+ /**
164
+ * Query Grafana data sources and add results to alerts.
165
+ */
166
+ dataSource?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepDataSource;
167
+ /**
168
+ * Generate AI explanation and store in an annotation.
169
+ */
170
+ explain?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepExplain;
171
+ /**
172
+ * Call an external HTTP service for enrichment.
173
+ */
174
+ external?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepExternal;
175
+ /**
176
+ * Analyze alerts for patterns and insights.
177
+ */
178
+ sift?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepSift;
179
+ }
180
+ interface AlertEnrichmentSpecStepConditionalElseStepAsserts {
181
+ /**
182
+ * Maximum execution time (e.g., '30s', '1m')
183
+ */
184
+ timeout?: string;
185
+ }
186
+ interface AlertEnrichmentSpecStepConditionalElseStepAssign {
187
+ /**
188
+ * Map of annotation names to values to set on matching alerts.
189
+ */
190
+ annotations?: {
191
+ [key: string]: string;
192
+ };
193
+ /**
194
+ * Maximum execution time (e.g., '30s', '1m')
195
+ */
196
+ timeout?: string;
197
+ }
198
+ interface AlertEnrichmentSpecStepConditionalElseStepAssistantInvestigations {
199
+ /**
200
+ * Maximum execution time (e.g., '30s', '1m')
201
+ */
202
+ timeout?: string;
203
+ }
204
+ interface AlertEnrichmentSpecStepConditionalElseStepDataSource {
205
+ /**
206
+ * Logs query configuration for querying log data sources.
207
+ */
208
+ logsQuery?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepDataSourceLogsQuery;
209
+ /**
210
+ * Raw query configuration for advanced data source queries.
211
+ */
212
+ rawQuery?: outputs.alerting.AlertEnrichmentSpecStepConditionalElseStepDataSourceRawQuery;
213
+ /**
214
+ * Maximum execution time (e.g., '30s', '1m')
215
+ */
216
+ timeout?: string;
217
+ }
218
+ interface AlertEnrichmentSpecStepConditionalElseStepDataSourceLogsQuery {
219
+ /**
220
+ * Data source type (e.g., 'loki').
221
+ */
222
+ dataSourceType?: string;
223
+ /**
224
+ * UID of the data source to query.
225
+ */
226
+ dataSourceUid?: string;
227
+ /**
228
+ * Log query expression to execute.
229
+ */
230
+ expr?: string;
231
+ /**
232
+ * Maximum number of log lines to include. Defaults to 3.
233
+ */
234
+ maxLines: number;
235
+ }
236
+ interface AlertEnrichmentSpecStepConditionalElseStepDataSourceRawQuery {
237
+ /**
238
+ * Reference ID for correlating queries.
239
+ */
240
+ refId: string;
241
+ /**
242
+ * Raw request payload for the data source query.
243
+ */
244
+ request?: string;
245
+ }
246
+ interface AlertEnrichmentSpecStepConditionalElseStepExplain {
247
+ /**
248
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
249
+ */
250
+ annotation: string;
251
+ /**
252
+ * Maximum execution time (e.g., '30s', '1m')
253
+ */
254
+ timeout?: string;
255
+ }
256
+ interface AlertEnrichmentSpecStepConditionalElseStepExternal {
257
+ /**
258
+ * Maximum execution time (e.g., '30s', '1m')
259
+ */
260
+ timeout?: string;
261
+ /**
262
+ * HTTP endpoint URL to call for enrichment
263
+ */
264
+ url?: string;
265
+ }
266
+ interface AlertEnrichmentSpecStepConditionalElseStepSift {
267
+ /**
268
+ * Maximum execution time (e.g., '30s', '1m')
269
+ */
270
+ timeout?: string;
271
+ }
272
+ interface AlertEnrichmentSpecStepConditionalIf {
273
+ /**
274
+ * Annotation matchers for the condition.
275
+ */
276
+ annotationMatchers?: outputs.alerting.AlertEnrichmentSpecStepConditionalIfAnnotationMatcher[];
277
+ /**
278
+ * Data source condition.
279
+ */
280
+ dataSourceCondition?: outputs.alerting.AlertEnrichmentSpecStepConditionalIfDataSourceCondition;
281
+ /**
282
+ * Label matchers for the condition.
283
+ */
284
+ labelMatchers?: outputs.alerting.AlertEnrichmentSpecStepConditionalIfLabelMatcher[];
285
+ }
286
+ interface AlertEnrichmentSpecStepConditionalIfAnnotationMatcher {
287
+ name: string;
288
+ type: string;
289
+ value: string;
290
+ }
291
+ interface AlertEnrichmentSpecStepConditionalIfDataSourceCondition {
292
+ /**
293
+ * Data source request payload.
294
+ */
295
+ request?: string;
296
+ }
297
+ interface AlertEnrichmentSpecStepConditionalIfLabelMatcher {
298
+ name: string;
299
+ type: string;
300
+ value: string;
301
+ }
302
+ interface AlertEnrichmentSpecStepConditionalThen {
303
+ steps?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStep[];
304
+ }
305
+ interface AlertEnrichmentSpecStepConditionalThenStep {
306
+ /**
307
+ * Integrate with Grafana Asserts for enrichment.
308
+ */
309
+ asserts?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepAsserts;
310
+ /**
311
+ * Assign annotations to an alert.
312
+ */
313
+ assign?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepAssign;
314
+ /**
315
+ * Use AI assistant to investigate alerts and add insights.
316
+ */
317
+ assistantInvestigations?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepAssistantInvestigations;
318
+ /**
319
+ * Query Grafana data sources and add results to alerts.
320
+ */
321
+ dataSource?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepDataSource;
322
+ /**
323
+ * Generate AI explanation and store in an annotation.
324
+ */
325
+ explain?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepExplain;
326
+ /**
327
+ * Call an external HTTP service for enrichment.
328
+ */
329
+ external?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepExternal;
330
+ /**
331
+ * Analyze alerts for patterns and insights.
332
+ */
333
+ sift?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepSift;
334
+ }
335
+ interface AlertEnrichmentSpecStepConditionalThenStepAsserts {
336
+ /**
337
+ * Maximum execution time (e.g., '30s', '1m')
338
+ */
339
+ timeout?: string;
340
+ }
341
+ interface AlertEnrichmentSpecStepConditionalThenStepAssign {
342
+ /**
343
+ * Map of annotation names to values to set on matching alerts.
344
+ */
345
+ annotations?: {
346
+ [key: string]: string;
347
+ };
348
+ /**
349
+ * Maximum execution time (e.g., '30s', '1m')
350
+ */
351
+ timeout?: string;
352
+ }
353
+ interface AlertEnrichmentSpecStepConditionalThenStepAssistantInvestigations {
354
+ /**
355
+ * Maximum execution time (e.g., '30s', '1m')
356
+ */
357
+ timeout?: string;
358
+ }
359
+ interface AlertEnrichmentSpecStepConditionalThenStepDataSource {
360
+ /**
361
+ * Logs query configuration for querying log data sources.
362
+ */
363
+ logsQuery?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepDataSourceLogsQuery;
364
+ /**
365
+ * Raw query configuration for advanced data source queries.
366
+ */
367
+ rawQuery?: outputs.alerting.AlertEnrichmentSpecStepConditionalThenStepDataSourceRawQuery;
368
+ /**
369
+ * Maximum execution time (e.g., '30s', '1m')
370
+ */
371
+ timeout?: string;
372
+ }
373
+ interface AlertEnrichmentSpecStepConditionalThenStepDataSourceLogsQuery {
374
+ /**
375
+ * Data source type (e.g., 'loki').
376
+ */
377
+ dataSourceType?: string;
378
+ /**
379
+ * UID of the data source to query.
380
+ */
381
+ dataSourceUid?: string;
382
+ /**
383
+ * Log query expression to execute.
384
+ */
385
+ expr?: string;
386
+ /**
387
+ * Maximum number of log lines to include. Defaults to 3.
388
+ */
389
+ maxLines: number;
390
+ }
391
+ interface AlertEnrichmentSpecStepConditionalThenStepDataSourceRawQuery {
392
+ /**
393
+ * Reference ID for correlating queries.
394
+ */
395
+ refId: string;
396
+ /**
397
+ * Raw request payload for the data source query.
398
+ */
399
+ request?: string;
400
+ }
401
+ interface AlertEnrichmentSpecStepConditionalThenStepExplain {
402
+ /**
403
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
404
+ */
405
+ annotation: string;
406
+ /**
407
+ * Maximum execution time (e.g., '30s', '1m')
408
+ */
409
+ timeout?: string;
410
+ }
411
+ interface AlertEnrichmentSpecStepConditionalThenStepExternal {
412
+ /**
413
+ * Maximum execution time (e.g., '30s', '1m')
414
+ */
415
+ timeout?: string;
416
+ /**
417
+ * HTTP endpoint URL to call for enrichment
418
+ */
419
+ url?: string;
420
+ }
421
+ interface AlertEnrichmentSpecStepConditionalThenStepSift {
422
+ /**
423
+ * Maximum execution time (e.g., '30s', '1m')
424
+ */
425
+ timeout?: string;
426
+ }
125
427
  interface AlertEnrichmentSpecStepDataSource {
126
428
  /**
127
429
  * Logs query configuration for querying log data sources.