@pulumiverse/grafana 2.25.2 → 2.26.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/types/input.d.ts CHANGED
@@ -4091,6 +4091,50 @@ export declare namespace cloud {
4091
4091
  */
4092
4092
  enabled: pulumi.Input<boolean>;
4093
4093
  }
4094
+ interface ProductActivationDbO11yConfigMetadata {
4095
+ /**
4096
+ * Annotations of the resource.
4097
+ */
4098
+ annotations?: pulumi.Input<{
4099
+ [key: string]: pulumi.Input<string>;
4100
+ }>;
4101
+ /**
4102
+ * The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
4103
+ */
4104
+ folderUid?: pulumi.Input<string>;
4105
+ /**
4106
+ * The unique identifier of the resource.
4107
+ */
4108
+ uid: pulumi.Input<string>;
4109
+ /**
4110
+ * The full URL of the resource.
4111
+ */
4112
+ url?: pulumi.Input<string>;
4113
+ /**
4114
+ * The globally unique identifier of a resource, used by the API for tracking.
4115
+ */
4116
+ uuid?: pulumi.Input<string>;
4117
+ /**
4118
+ * The version of the resource.
4119
+ */
4120
+ version?: pulumi.Input<string>;
4121
+ }
4122
+ interface ProductActivationDbO11yConfigOptions {
4123
+ /**
4124
+ * Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
4125
+ */
4126
+ managerIdentity?: pulumi.Input<string>;
4127
+ /**
4128
+ * Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
4129
+ */
4130
+ overwrite?: pulumi.Input<boolean>;
4131
+ }
4132
+ interface ProductActivationDbO11yConfigSpec {
4133
+ /**
4134
+ * Whether database observability is enabled.
4135
+ */
4136
+ enabled: pulumi.Input<boolean>;
4137
+ }
4094
4138
  interface ProductActivationK8sO11yConfigMetadata {
4095
4139
  /**
4096
4140
  * Annotations of the resource.
@@ -5993,6 +6037,478 @@ export declare namespace oss {
5993
6037
  }
5994
6038
  }
5995
6039
  export declare namespace slo {
6040
+ interface GetSlosSlo {
6041
+ /**
6042
+ * Alerting configuration for the SLO.
6043
+ */
6044
+ alertings?: inputs.slo.GetSlosSloAlerting[];
6045
+ /**
6046
+ * Description of the SLO.
6047
+ */
6048
+ description?: string;
6049
+ /**
6050
+ * Destination datasource configuration.
6051
+ */
6052
+ destinationDatasources?: inputs.slo.GetSlosSloDestinationDatasource[];
6053
+ /**
6054
+ * Labels attached to the SLO.
6055
+ */
6056
+ labels?: inputs.slo.GetSlosSloLabel[];
6057
+ /**
6058
+ * Name of the SLO.
6059
+ */
6060
+ name?: string;
6061
+ /**
6062
+ * Objectives for the SLO.
6063
+ */
6064
+ objectives?: inputs.slo.GetSlosSloObjective[];
6065
+ /**
6066
+ * Query configuration for the SLO.
6067
+ */
6068
+ queries?: inputs.slo.GetSlosSloQuery[];
6069
+ /**
6070
+ * The search expression associated with this SLO.
6071
+ */
6072
+ searchExpression?: string;
6073
+ /**
6074
+ * A unique, random identifier. This value is read-only.
6075
+ */
6076
+ uuid?: string;
6077
+ }
6078
+ interface GetSlosSloArgs {
6079
+ /**
6080
+ * Alerting configuration for the SLO.
6081
+ */
6082
+ alertings?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingArgs>[]>;
6083
+ /**
6084
+ * Description of the SLO.
6085
+ */
6086
+ description?: pulumi.Input<string>;
6087
+ /**
6088
+ * Destination datasource configuration.
6089
+ */
6090
+ destinationDatasources?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloDestinationDatasourceArgs>[]>;
6091
+ /**
6092
+ * Labels attached to the SLO.
6093
+ */
6094
+ labels?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloLabelArgs>[]>;
6095
+ /**
6096
+ * Name of the SLO.
6097
+ */
6098
+ name?: pulumi.Input<string>;
6099
+ /**
6100
+ * Objectives for the SLO.
6101
+ */
6102
+ objectives?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloObjectiveArgs>[]>;
6103
+ /**
6104
+ * Query configuration for the SLO.
6105
+ */
6106
+ queries?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloQueryArgs>[]>;
6107
+ /**
6108
+ * The search expression associated with this SLO.
6109
+ */
6110
+ searchExpression?: pulumi.Input<string>;
6111
+ /**
6112
+ * A unique, random identifier. This value is read-only.
6113
+ */
6114
+ uuid?: pulumi.Input<string>;
6115
+ }
6116
+ interface GetSlosSloAlerting {
6117
+ /**
6118
+ * Advanced alerting options.
6119
+ */
6120
+ advancedOptions?: inputs.slo.GetSlosSloAlertingAdvancedOptions;
6121
+ /**
6122
+ * Annotations attached to alerts.
6123
+ */
6124
+ annotations?: inputs.slo.GetSlosSloAlertingAnnotation[];
6125
+ /**
6126
+ * Fast burn alert configuration.
6127
+ */
6128
+ fastburn?: inputs.slo.GetSlosSloAlertingFastburn;
6129
+ /**
6130
+ * Labels attached to alerts.
6131
+ */
6132
+ labels?: inputs.slo.GetSlosSloAlertingLabel[];
6133
+ /**
6134
+ * Slow burn alert configuration.
6135
+ */
6136
+ slowburn?: inputs.slo.GetSlosSloAlertingSlowburn;
6137
+ }
6138
+ interface GetSlosSloAlertingArgs {
6139
+ /**
6140
+ * Advanced alerting options.
6141
+ */
6142
+ advancedOptions?: pulumi.Input<inputs.slo.GetSlosSloAlertingAdvancedOptionsArgs>;
6143
+ /**
6144
+ * Annotations attached to alerts.
6145
+ */
6146
+ annotations?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingAnnotationArgs>[]>;
6147
+ /**
6148
+ * Fast burn alert configuration.
6149
+ */
6150
+ fastburn?: pulumi.Input<inputs.slo.GetSlosSloAlertingFastburnArgs>;
6151
+ /**
6152
+ * Labels attached to alerts.
6153
+ */
6154
+ labels?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingLabelArgs>[]>;
6155
+ /**
6156
+ * Slow burn alert configuration.
6157
+ */
6158
+ slowburn?: pulumi.Input<inputs.slo.GetSlosSloAlertingSlowburnArgs>;
6159
+ }
6160
+ interface GetSlosSloAlertingAdvancedOptions {
6161
+ /**
6162
+ * Minimum number of failures before alerting.
6163
+ */
6164
+ minFailures?: number;
6165
+ }
6166
+ interface GetSlosSloAlertingAdvancedOptionsArgs {
6167
+ /**
6168
+ * Minimum number of failures before alerting.
6169
+ */
6170
+ minFailures?: pulumi.Input<number>;
6171
+ }
6172
+ interface GetSlosSloAlertingAnnotation {
6173
+ /**
6174
+ * Key for filtering and identification.
6175
+ */
6176
+ key?: string;
6177
+ /**
6178
+ * Templatable value.
6179
+ */
6180
+ value?: string;
6181
+ }
6182
+ interface GetSlosSloAlertingAnnotationArgs {
6183
+ /**
6184
+ * Key for filtering and identification.
6185
+ */
6186
+ key?: pulumi.Input<string>;
6187
+ /**
6188
+ * Templatable value.
6189
+ */
6190
+ value?: pulumi.Input<string>;
6191
+ }
6192
+ interface GetSlosSloAlertingFastburn {
6193
+ /**
6194
+ * Annotations for fast burn alerts.
6195
+ */
6196
+ annotations?: inputs.slo.GetSlosSloAlertingFastburnAnnotation[];
6197
+ /**
6198
+ * Enrichments for fast burn alerts.
6199
+ */
6200
+ enrichments?: inputs.slo.GetSlosSloAlertingFastburnEnrichment[];
6201
+ /**
6202
+ * Labels for fast burn alerts.
6203
+ */
6204
+ labels?: inputs.slo.GetSlosSloAlertingFastburnLabel[];
6205
+ }
6206
+ interface GetSlosSloAlertingFastburnArgs {
6207
+ /**
6208
+ * Annotations for fast burn alerts.
6209
+ */
6210
+ annotations?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingFastburnAnnotationArgs>[]>;
6211
+ /**
6212
+ * Enrichments for fast burn alerts.
6213
+ */
6214
+ enrichments?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingFastburnEnrichmentArgs>[]>;
6215
+ /**
6216
+ * Labels for fast burn alerts.
6217
+ */
6218
+ labels?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingFastburnLabelArgs>[]>;
6219
+ }
6220
+ interface GetSlosSloAlertingFastburnAnnotation {
6221
+ /**
6222
+ * Key for filtering and identification.
6223
+ */
6224
+ key?: string;
6225
+ /**
6226
+ * Templatable value.
6227
+ */
6228
+ value?: string;
6229
+ }
6230
+ interface GetSlosSloAlertingFastburnAnnotationArgs {
6231
+ /**
6232
+ * Key for filtering and identification.
6233
+ */
6234
+ key?: pulumi.Input<string>;
6235
+ /**
6236
+ * Templatable value.
6237
+ */
6238
+ value?: pulumi.Input<string>;
6239
+ }
6240
+ interface GetSlosSloAlertingFastburnEnrichment {
6241
+ /**
6242
+ * Type of the alert enrichment.
6243
+ */
6244
+ type?: string;
6245
+ }
6246
+ interface GetSlosSloAlertingFastburnEnrichmentArgs {
6247
+ /**
6248
+ * Type of the alert enrichment.
6249
+ */
6250
+ type?: pulumi.Input<string>;
6251
+ }
6252
+ interface GetSlosSloAlertingFastburnLabel {
6253
+ /**
6254
+ * Key for filtering and identification.
6255
+ */
6256
+ key?: string;
6257
+ /**
6258
+ * Templatable value.
6259
+ */
6260
+ value?: string;
6261
+ }
6262
+ interface GetSlosSloAlertingFastburnLabelArgs {
6263
+ /**
6264
+ * Key for filtering and identification.
6265
+ */
6266
+ key?: pulumi.Input<string>;
6267
+ /**
6268
+ * Templatable value.
6269
+ */
6270
+ value?: pulumi.Input<string>;
6271
+ }
6272
+ interface GetSlosSloAlertingLabel {
6273
+ /**
6274
+ * Key for filtering and identification.
6275
+ */
6276
+ key?: string;
6277
+ /**
6278
+ * Templatable value.
6279
+ */
6280
+ value?: string;
6281
+ }
6282
+ interface GetSlosSloAlertingLabelArgs {
6283
+ /**
6284
+ * Key for filtering and identification.
6285
+ */
6286
+ key?: pulumi.Input<string>;
6287
+ /**
6288
+ * Templatable value.
6289
+ */
6290
+ value?: pulumi.Input<string>;
6291
+ }
6292
+ interface GetSlosSloAlertingSlowburn {
6293
+ /**
6294
+ * Annotations for slow burn alerts.
6295
+ */
6296
+ annotations?: inputs.slo.GetSlosSloAlertingSlowburnAnnotation[];
6297
+ /**
6298
+ * Enrichments for slow burn alerts.
6299
+ */
6300
+ enrichments?: inputs.slo.GetSlosSloAlertingSlowburnEnrichment[];
6301
+ /**
6302
+ * Labels for slow burn alerts.
6303
+ */
6304
+ labels?: inputs.slo.GetSlosSloAlertingSlowburnLabel[];
6305
+ }
6306
+ interface GetSlosSloAlertingSlowburnArgs {
6307
+ /**
6308
+ * Annotations for slow burn alerts.
6309
+ */
6310
+ annotations?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingSlowburnAnnotationArgs>[]>;
6311
+ /**
6312
+ * Enrichments for slow burn alerts.
6313
+ */
6314
+ enrichments?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingSlowburnEnrichmentArgs>[]>;
6315
+ /**
6316
+ * Labels for slow burn alerts.
6317
+ */
6318
+ labels?: pulumi.Input<pulumi.Input<inputs.slo.GetSlosSloAlertingSlowburnLabelArgs>[]>;
6319
+ }
6320
+ interface GetSlosSloAlertingSlowburnAnnotation {
6321
+ /**
6322
+ * Key for filtering and identification.
6323
+ */
6324
+ key?: string;
6325
+ /**
6326
+ * Templatable value.
6327
+ */
6328
+ value?: string;
6329
+ }
6330
+ interface GetSlosSloAlertingSlowburnAnnotationArgs {
6331
+ /**
6332
+ * Key for filtering and identification.
6333
+ */
6334
+ key?: pulumi.Input<string>;
6335
+ /**
6336
+ * Templatable value.
6337
+ */
6338
+ value?: pulumi.Input<string>;
6339
+ }
6340
+ interface GetSlosSloAlertingSlowburnEnrichment {
6341
+ /**
6342
+ * Type of the alert enrichment.
6343
+ */
6344
+ type?: string;
6345
+ }
6346
+ interface GetSlosSloAlertingSlowburnEnrichmentArgs {
6347
+ /**
6348
+ * Type of the alert enrichment.
6349
+ */
6350
+ type?: pulumi.Input<string>;
6351
+ }
6352
+ interface GetSlosSloAlertingSlowburnLabel {
6353
+ /**
6354
+ * Key for filtering and identification.
6355
+ */
6356
+ key?: string;
6357
+ /**
6358
+ * Templatable value.
6359
+ */
6360
+ value?: string;
6361
+ }
6362
+ interface GetSlosSloAlertingSlowburnLabelArgs {
6363
+ /**
6364
+ * Key for filtering and identification.
6365
+ */
6366
+ key?: pulumi.Input<string>;
6367
+ /**
6368
+ * Templatable value.
6369
+ */
6370
+ value?: pulumi.Input<string>;
6371
+ }
6372
+ interface GetSlosSloDestinationDatasource {
6373
+ /**
6374
+ * UID of the destination datasource.
6375
+ */
6376
+ uid?: string;
6377
+ }
6378
+ interface GetSlosSloDestinationDatasourceArgs {
6379
+ /**
6380
+ * UID of the destination datasource.
6381
+ */
6382
+ uid?: pulumi.Input<string>;
6383
+ }
6384
+ interface GetSlosSloLabel {
6385
+ /**
6386
+ * Key for filtering and identification.
6387
+ */
6388
+ key?: string;
6389
+ /**
6390
+ * Templatable value.
6391
+ */
6392
+ value?: string;
6393
+ }
6394
+ interface GetSlosSloLabelArgs {
6395
+ /**
6396
+ * Key for filtering and identification.
6397
+ */
6398
+ key?: pulumi.Input<string>;
6399
+ /**
6400
+ * Templatable value.
6401
+ */
6402
+ value?: pulumi.Input<string>;
6403
+ }
6404
+ interface GetSlosSloObjective {
6405
+ /**
6406
+ * Objective value (between 0 and 1).
6407
+ */
6408
+ value?: number;
6409
+ /**
6410
+ * Time window for the objective.
6411
+ */
6412
+ window?: string;
6413
+ }
6414
+ interface GetSlosSloObjectiveArgs {
6415
+ /**
6416
+ * Objective value (between 0 and 1).
6417
+ */
6418
+ value?: pulumi.Input<number>;
6419
+ /**
6420
+ * Time window for the objective.
6421
+ */
6422
+ window?: pulumi.Input<string>;
6423
+ }
6424
+ interface GetSlosSloQuery {
6425
+ /**
6426
+ * Freeform query configuration.
6427
+ */
6428
+ freeform?: inputs.slo.GetSlosSloQueryFreeform;
6429
+ /**
6430
+ * Grafana queries configuration.
6431
+ */
6432
+ grafanaQueries?: inputs.slo.GetSlosSloQueryGrafanaQueries;
6433
+ /**
6434
+ * Ratio query configuration.
6435
+ */
6436
+ ratio?: inputs.slo.GetSlosSloQueryRatio;
6437
+ /**
6438
+ * Type of query (freeform, ratio, grafana_queries, etc.).
6439
+ */
6440
+ type?: string;
6441
+ }
6442
+ interface GetSlosSloQueryArgs {
6443
+ /**
6444
+ * Freeform query configuration.
6445
+ */
6446
+ freeform?: pulumi.Input<inputs.slo.GetSlosSloQueryFreeformArgs>;
6447
+ /**
6448
+ * Grafana queries configuration.
6449
+ */
6450
+ grafanaQueries?: pulumi.Input<inputs.slo.GetSlosSloQueryGrafanaQueriesArgs>;
6451
+ /**
6452
+ * Ratio query configuration.
6453
+ */
6454
+ ratio?: pulumi.Input<inputs.slo.GetSlosSloQueryRatioArgs>;
6455
+ /**
6456
+ * Type of query (freeform, ratio, grafana_queries, etc.).
6457
+ */
6458
+ type?: pulumi.Input<string>;
6459
+ }
6460
+ interface GetSlosSloQueryFreeform {
6461
+ /**
6462
+ * The PromQL query string.
6463
+ */
6464
+ query?: string;
6465
+ }
6466
+ interface GetSlosSloQueryFreeformArgs {
6467
+ /**
6468
+ * The PromQL query string.
6469
+ */
6470
+ query?: pulumi.Input<string>;
6471
+ }
6472
+ interface GetSlosSloQueryGrafanaQueries {
6473
+ /**
6474
+ * JSON string containing the Grafana queries.
6475
+ */
6476
+ grafanaQueries?: string;
6477
+ }
6478
+ interface GetSlosSloQueryGrafanaQueriesArgs {
6479
+ /**
6480
+ * JSON string containing the Grafana queries.
6481
+ */
6482
+ grafanaQueries?: pulumi.Input<string>;
6483
+ }
6484
+ interface GetSlosSloQueryRatio {
6485
+ /**
6486
+ * Labels used for grouping.
6487
+ */
6488
+ groupByLabels?: string[];
6489
+ /**
6490
+ * Counter metric for success events (numerator).
6491
+ */
6492
+ successMetric?: string;
6493
+ /**
6494
+ * Metric for total events (denominator).
6495
+ */
6496
+ totalMetric?: string;
6497
+ }
6498
+ interface GetSlosSloQueryRatioArgs {
6499
+ /**
6500
+ * Labels used for grouping.
6501
+ */
6502
+ groupByLabels?: pulumi.Input<pulumi.Input<string>[]>;
6503
+ /**
6504
+ * Counter metric for success events (numerator).
6505
+ */
6506
+ successMetric?: pulumi.Input<string>;
6507
+ /**
6508
+ * Metric for total events (denominator).
6509
+ */
6510
+ totalMetric?: pulumi.Input<string>;
6511
+ }
5996
6512
  interface SLOAlerting {
5997
6513
  /**
5998
6514
  * Advanced Options for Alert Rules
@@ -6148,11 +6664,17 @@ export declare namespace slo {
6148
6664
  window: pulumi.Input<string>;
6149
6665
  }
6150
6666
  interface SLOQuery {
6667
+ /**
6668
+ * Freeform query configuration.
6669
+ */
6151
6670
  freeform?: pulumi.Input<inputs.slo.SLOQueryFreeform>;
6152
6671
  /**
6153
6672
  * Array for holding a set of grafana queries
6154
6673
  */
6155
6674
  grafanaQueries?: pulumi.Input<inputs.slo.SLOQueryGrafanaQueries>;
6675
+ /**
6676
+ * Ratio query configuration.
6677
+ */
6156
6678
  ratio?: pulumi.Input<inputs.slo.SLOQueryRatio>;
6157
6679
  /**
6158
6680
  * Query type must be one of: "freeform", "query", "ratio", "grafanaQueries" or "threshold"