@pulumiverse/grafana 2.6.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/getIps.d.ts CHANGED
@@ -32,6 +32,10 @@ export interface GetIpsResult {
32
32
  * Set of IP addresses that are used for hosted metrics.
33
33
  */
34
34
  readonly hostedMetrics: string[];
35
+ /**
36
+ * Set of IP addresses that are used for hosted profiles.
37
+ */
38
+ readonly hostedProfiles: string[];
35
39
  /**
36
40
  * Set of IP addresses that are used for hosted traces.
37
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getIps.js","sourceRoot":"","sources":["../../cloud/getIps.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;GAWG;AACH,SAAgB,MAAM,CAAC,IAA2B;IAC9C,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE,EAC3D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wBAIC;AA+BD;;;;;;;;;;;GAWG;AACH,SAAgB,YAAY,CAAC,IAAiC;IAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6BAA6B,EAAE,EACjE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC"}
1
+ {"version":3,"file":"getIps.js","sourceRoot":"","sources":["../../cloud/getIps.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;GAWG;AACH,SAAgB,MAAM,CAAC,IAA2B;IAC9C,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE,EAC3D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wBAIC;AAmCD;;;;;;;;;;;GAWG;AACH,SAAgB,YAAY,CAAC,IAAiC;IAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6BAA6B,EAAE,EACjE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC"}
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.6.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.6.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
@@ -70,10 +70,44 @@ export declare namespace alerting {
70
70
  value: pulumi.Input<string>;
71
71
  }
72
72
  interface AlertEnrichmentSpecStep {
73
+ /**
74
+ * Integrate with Grafana Asserts for enrichment.
75
+ */
76
+ asserts?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAsserts>;
73
77
  /**
74
78
  * Assign annotations to an alert.
75
79
  */
76
80
  assign?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAssign>;
81
+ /**
82
+ * Use AI assistant to investigate alerts and add insights.
83
+ */
84
+ assistantInvestigations?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAssistantInvestigations>;
85
+ /**
86
+ * Conditional step with if/then/else.
87
+ */
88
+ conditional?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepConditional>;
89
+ /**
90
+ * Query Grafana data sources and add results to alerts.
91
+ */
92
+ dataSource?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepDataSource>;
93
+ /**
94
+ * Generate AI explanation and store in an annotation.
95
+ */
96
+ explain?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepExplain>;
97
+ /**
98
+ * Call an external HTTP service for enrichment.
99
+ */
100
+ external?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepExternal>;
101
+ /**
102
+ * Analyze alerts for patterns and insights.
103
+ */
104
+ sift?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepSift>;
105
+ }
106
+ interface AlertEnrichmentSpecStepAsserts {
107
+ /**
108
+ * Maximum execution time (e.g., '30s', '1m')
109
+ */
110
+ timeout?: pulumi.Input<string>;
77
111
  }
78
112
  interface AlertEnrichmentSpecStepAssign {
79
113
  /**
@@ -87,6 +121,378 @@ export declare namespace alerting {
87
121
  */
88
122
  timeout?: pulumi.Input<string>;
89
123
  }
124
+ interface AlertEnrichmentSpecStepAssistantInvestigations {
125
+ /**
126
+ * Maximum execution time (e.g., '30s', '1m')
127
+ */
128
+ timeout?: pulumi.Input<string>;
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
+ }
428
+ interface AlertEnrichmentSpecStepDataSource {
429
+ /**
430
+ * Logs query configuration for querying log data sources.
431
+ */
432
+ logsQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepDataSourceLogsQuery>;
433
+ /**
434
+ * Raw query configuration for advanced data source queries.
435
+ */
436
+ rawQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepDataSourceRawQuery>;
437
+ /**
438
+ * Maximum execution time (e.g., '30s', '1m')
439
+ */
440
+ timeout?: pulumi.Input<string>;
441
+ }
442
+ interface AlertEnrichmentSpecStepDataSourceLogsQuery {
443
+ /**
444
+ * Data source type (e.g., 'loki').
445
+ */
446
+ dataSourceType?: pulumi.Input<string>;
447
+ /**
448
+ * UID of the data source to query.
449
+ */
450
+ dataSourceUid?: pulumi.Input<string>;
451
+ /**
452
+ * Log query expression to execute.
453
+ */
454
+ expr?: pulumi.Input<string>;
455
+ /**
456
+ * Maximum number of log lines to include. Defaults to 3.
457
+ */
458
+ maxLines?: pulumi.Input<number>;
459
+ }
460
+ interface AlertEnrichmentSpecStepDataSourceRawQuery {
461
+ /**
462
+ * Reference ID for correlating queries.
463
+ */
464
+ refId?: pulumi.Input<string>;
465
+ /**
466
+ * Raw request payload for the data source query.
467
+ */
468
+ request?: pulumi.Input<string>;
469
+ }
470
+ interface AlertEnrichmentSpecStepExplain {
471
+ /**
472
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
473
+ */
474
+ annotation?: pulumi.Input<string>;
475
+ /**
476
+ * Maximum execution time (e.g., '30s', '1m')
477
+ */
478
+ timeout?: pulumi.Input<string>;
479
+ }
480
+ interface AlertEnrichmentSpecStepExternal {
481
+ /**
482
+ * Maximum execution time (e.g., '30s', '1m')
483
+ */
484
+ timeout?: pulumi.Input<string>;
485
+ /**
486
+ * HTTP endpoint URL to call for enrichment
487
+ */
488
+ url?: pulumi.Input<string>;
489
+ }
490
+ interface AlertEnrichmentSpecStepSift {
491
+ /**
492
+ * Maximum execution time (e.g., '30s', '1m')
493
+ */
494
+ timeout?: pulumi.Input<string>;
495
+ }
90
496
  interface ContactPointAlertmanager {
91
497
  /**
92
498
  * The password component of the basic auth credentials to use.
package/types/output.d.ts CHANGED
@@ -40,7 +40,7 @@ export declare namespace alerting {
40
40
  /**
41
41
  * Description of the alert enrichment.
42
42
  */
43
- description?: string;
43
+ description: string;
44
44
  /**
45
45
  * Label matchers that an alert must satisfy for this enrichment to apply. Each matcher is an object with: 'type' (string, one of: =, !=, =~, !~), 'name' (string, label key to match), 'value' (string, label value to compare against, supports regex for =~/!~ operators).
46
46
  */
@@ -69,10 +69,44 @@ export declare namespace alerting {
69
69
  value: string;
70
70
  }
71
71
  interface AlertEnrichmentSpecStep {
72
+ /**
73
+ * Integrate with Grafana Asserts for enrichment.
74
+ */
75
+ asserts?: outputs.alerting.AlertEnrichmentSpecStepAsserts;
72
76
  /**
73
77
  * Assign annotations to an alert.
74
78
  */
75
79
  assign?: outputs.alerting.AlertEnrichmentSpecStepAssign;
80
+ /**
81
+ * Use AI assistant to investigate alerts and add insights.
82
+ */
83
+ assistantInvestigations?: outputs.alerting.AlertEnrichmentSpecStepAssistantInvestigations;
84
+ /**
85
+ * Conditional step with if/then/else.
86
+ */
87
+ conditional?: outputs.alerting.AlertEnrichmentSpecStepConditional;
88
+ /**
89
+ * Query Grafana data sources and add results to alerts.
90
+ */
91
+ dataSource?: outputs.alerting.AlertEnrichmentSpecStepDataSource;
92
+ /**
93
+ * Generate AI explanation and store in an annotation.
94
+ */
95
+ explain?: outputs.alerting.AlertEnrichmentSpecStepExplain;
96
+ /**
97
+ * Call an external HTTP service for enrichment.
98
+ */
99
+ external?: outputs.alerting.AlertEnrichmentSpecStepExternal;
100
+ /**
101
+ * Analyze alerts for patterns and insights.
102
+ */
103
+ sift?: outputs.alerting.AlertEnrichmentSpecStepSift;
104
+ }
105
+ interface AlertEnrichmentSpecStepAsserts {
106
+ /**
107
+ * Maximum execution time (e.g., '30s', '1m')
108
+ */
109
+ timeout?: string;
76
110
  }
77
111
  interface AlertEnrichmentSpecStepAssign {
78
112
  /**
@@ -86,6 +120,378 @@ export declare namespace alerting {
86
120
  */
87
121
  timeout?: string;
88
122
  }
123
+ interface AlertEnrichmentSpecStepAssistantInvestigations {
124
+ /**
125
+ * Maximum execution time (e.g., '30s', '1m')
126
+ */
127
+ timeout?: string;
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
+ }
427
+ interface AlertEnrichmentSpecStepDataSource {
428
+ /**
429
+ * Logs query configuration for querying log data sources.
430
+ */
431
+ logsQuery?: outputs.alerting.AlertEnrichmentSpecStepDataSourceLogsQuery;
432
+ /**
433
+ * Raw query configuration for advanced data source queries.
434
+ */
435
+ rawQuery?: outputs.alerting.AlertEnrichmentSpecStepDataSourceRawQuery;
436
+ /**
437
+ * Maximum execution time (e.g., '30s', '1m')
438
+ */
439
+ timeout?: string;
440
+ }
441
+ interface AlertEnrichmentSpecStepDataSourceLogsQuery {
442
+ /**
443
+ * Data source type (e.g., 'loki').
444
+ */
445
+ dataSourceType?: string;
446
+ /**
447
+ * UID of the data source to query.
448
+ */
449
+ dataSourceUid?: string;
450
+ /**
451
+ * Log query expression to execute.
452
+ */
453
+ expr?: string;
454
+ /**
455
+ * Maximum number of log lines to include. Defaults to 3.
456
+ */
457
+ maxLines: number;
458
+ }
459
+ interface AlertEnrichmentSpecStepDataSourceRawQuery {
460
+ /**
461
+ * Reference ID for correlating queries.
462
+ */
463
+ refId: string;
464
+ /**
465
+ * Raw request payload for the data source query.
466
+ */
467
+ request?: string;
468
+ }
469
+ interface AlertEnrichmentSpecStepExplain {
470
+ /**
471
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
472
+ */
473
+ annotation: string;
474
+ /**
475
+ * Maximum execution time (e.g., '30s', '1m')
476
+ */
477
+ timeout?: string;
478
+ }
479
+ interface AlertEnrichmentSpecStepExternal {
480
+ /**
481
+ * Maximum execution time (e.g., '30s', '1m')
482
+ */
483
+ timeout?: string;
484
+ /**
485
+ * HTTP endpoint URL to call for enrichment
486
+ */
487
+ url?: string;
488
+ }
489
+ interface AlertEnrichmentSpecStepSift {
490
+ /**
491
+ * Maximum execution time (e.g., '30s', '1m')
492
+ */
493
+ timeout?: string;
494
+ }
89
495
  interface ContactPointAlertmanager {
90
496
  /**
91
497
  * The password component of the basic auth credentials to use.