You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`slo_id` (String) An ID (8 and 36 characters). If omitted, a UUIDv1 will be generated server-side.
217
252
-`space_id` (String) An identifier for the space. If space_id is not provided, the default space is used.
218
253
-`tags` (List of String) The tags for the SLO.
254
+
-`timeslice_metric_indicator` (Block List, Max: 1) Defines a timeslice metric indicator for SLO. (see [below for nested schema](#nestedblock--timeslice_metric_indicator))
### Nested Schema for `timeslice_metric_indicator.metric.metrics`
470
+
471
+
Required:
472
+
473
+
-`aggregation` (String) The aggregation type for this metric. One of: sum, avg, min, max, value_count, percentile, doc_count. Determines which other fields are required:
474
+
-`name` (String) The unique name for this metric. Used as a variable in the equation field.
475
+
476
+
Optional:
477
+
478
+
-`field` (String) Field to aggregate. Required for aggregations: sum, avg, min, max, value_count, percentile. Must NOT be set for doc_count.
479
+
-`filter` (String) Optional KQL filter for this metric. Supported for all aggregations except doc_count.
480
+
-`percentile` (Number) Percentile value (e.g., 99). Required if aggregation is 'percentile'. Must NOT be set for other aggregations.
Description: "Defines a timeslice metric indicator for SLO.",
395
+
Type: schema.TypeList,
396
+
Optional: true,
397
+
MaxItems: 1,
398
+
Elem: &schema.Resource{
399
+
Schema: map[string]*schema.Schema{
400
+
"index": {
401
+
Type: schema.TypeString,
402
+
Required: true,
403
+
},
404
+
"timestamp_field": {
405
+
Type: schema.TypeString,
406
+
Required: true,
407
+
},
408
+
"filter": {
409
+
Type: schema.TypeString,
410
+
Optional: true,
411
+
},
412
+
"metric": {
413
+
Type: schema.TypeList,
414
+
Required: true,
415
+
MaxItems: 1,
416
+
Elem: &schema.Resource{
417
+
Schema: map[string]*schema.Schema{
418
+
"metrics": {
419
+
Type: schema.TypeList,
420
+
Required: true,
421
+
MinItems: 1,
422
+
Elem: &schema.Resource{
423
+
Schema: map[string]*schema.Schema{
424
+
"name": {
425
+
Type: schema.TypeString,
426
+
Required: true,
427
+
Description: "The unique name for this metric. Used as a variable in the equation field.",
428
+
},
429
+
"aggregation": {
430
+
Type: schema.TypeString,
431
+
Required: true,
432
+
Description: "The aggregation type for this metric. One of: sum, avg, min, max, value_count, percentile, doc_count. Determines which other fields are required:",
433
+
},
434
+
"field": {
435
+
Type: schema.TypeString,
436
+
Optional: true,
437
+
Description: "Field to aggregate. Required for aggregations: sum, avg, min, max, value_count, percentile. Must NOT be set for doc_count.",
438
+
},
439
+
"percentile": {
440
+
Type: schema.TypeFloat,
441
+
Optional: true,
442
+
Description: "Percentile value (e.g., 99). Required if aggregation is 'percentile'. Must NOT be set for other aggregations.",
443
+
},
444
+
"filter": {
445
+
Type: schema.TypeString,
446
+
Optional: true,
447
+
Description: "Optional KQL filter for this metric. Supported for all aggregations except doc_count.",
Description: "Currently support `calendarAligned` and `rolling` time windows. Any duration greater than 1 day can be used: days, weeks, months, quarters, years. Rolling time window requires a duration, e.g. `1w` for one week, and type: `rolling`. SLOs defined with such time window, will only consider the SLI data from the last duration period as a moving window. Calendar aligned time window requires a duration, limited to `1M` for monthly or `1w` for weekly, and type: `calendarAligned`.",
0 commit comments