1. Packages
  2. Packages
  3. Grafana Cloud
  4. API Docs
  5. slo
  6. getSlos
Viewing docs for Grafana v2.29.0
published on Friday, May 1, 2026 by pulumiverse
grafana logo
Viewing docs for Grafana v2.29.0
published on Friday, May 1, 2026 by pulumiverse

    Data source for retrieving all SLOs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const test = new grafana.slo.SLO("test", {
        name: "Terraform Testing",
        description: "Terraform Description",
        queries: [{
            freeform: {
                query: "sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))",
            },
            type: "freeform",
        }],
        objectives: [{
            value: 0.995,
            window: "30d",
        }],
        destinationDatasource: {
            uid: "grafanacloud-prom",
        },
        labels: [{
            key: "custom",
            value: "value",
        }],
        alerting: {
            fastburn: {
                annotations: [{
                    key: "name",
                    value: "Critical - SLO Burn Rate Alert",
                }],
                labels: [{
                    key: "type",
                    value: "slo",
                }],
            },
            slowburn: {
                annotations: [{
                    key: "name",
                    value: "Warning - SLO Burn Rate Alert",
                }],
                labels: [{
                    key: "type",
                    value: "slo",
                }],
            },
        },
    });
    const slos = grafana.slo.getSlos({});
    
    import pulumi
    import pulumi_grafana as grafana
    import pulumiverse_grafana as grafana
    
    test = grafana.slo.SLO("test",
        name="Terraform Testing",
        description="Terraform Description",
        queries=[{
            "freeform": {
                "query": "sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))",
            },
            "type": "freeform",
        }],
        objectives=[{
            "value": 0.995,
            "window": "30d",
        }],
        destination_datasource={
            "uid": "grafanacloud-prom",
        },
        labels=[{
            "key": "custom",
            "value": "value",
        }],
        alerting={
            "fastburn": {
                "annotations": [{
                    "key": "name",
                    "value": "Critical - SLO Burn Rate Alert",
                }],
                "labels": [{
                    "key": "type",
                    "value": "slo",
                }],
            },
            "slowburn": {
                "annotations": [{
                    "key": "name",
                    "value": "Warning - SLO Burn Rate Alert",
                }],
                "labels": [{
                    "key": "type",
                    "value": "slo",
                }],
            },
        })
    slos = grafana.slo.get_slos()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/slo"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slo.NewSLO(ctx, "test", &slo.SLOArgs{
    			Name:        pulumi.String("Terraform Testing"),
    			Description: pulumi.String("Terraform Description"),
    			Queries: slo.SLOQueryArray{
    				&slo.SLOQueryArgs{
    					Freeform: &slo.SLOQueryFreeformArgs{
    						Query: pulumi.String("sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))"),
    					},
    					Type: pulumi.String("freeform"),
    				},
    			},
    			Objectives: slo.SLOObjectiveArray{
    				&slo.SLOObjectiveArgs{
    					Value:  pulumi.Float64(0.995),
    					Window: pulumi.String("30d"),
    				},
    			},
    			DestinationDatasource: &slo.SLODestinationDatasourceArgs{
    				Uid: pulumi.String("grafanacloud-prom"),
    			},
    			Labels: slo.SLOLabelArray{
    				&slo.SLOLabelArgs{
    					Key:   pulumi.String("custom"),
    					Value: pulumi.String("value"),
    				},
    			},
    			Alerting: &slo.SLOAlertingArgs{
    				Fastburn: &slo.SLOAlertingFastburnArgs{
    					Annotations: slo.SLOAlertingFastburnAnnotationArray{
    						&slo.SLOAlertingFastburnAnnotationArgs{
    							Key:   pulumi.String("name"),
    							Value: pulumi.String("Critical - SLO Burn Rate Alert"),
    						},
    					},
    					Labels: slo.SLOAlertingFastburnLabelArray{
    						&slo.SLOAlertingFastburnLabelArgs{
    							Key:   pulumi.String("type"),
    							Value: pulumi.String("slo"),
    						},
    					},
    				},
    				Slowburn: &slo.SLOAlertingSlowburnArgs{
    					Annotations: slo.SLOAlertingSlowburnAnnotationArray{
    						&slo.SLOAlertingSlowburnAnnotationArgs{
    							Key:   pulumi.String("name"),
    							Value: pulumi.String("Warning - SLO Burn Rate Alert"),
    						},
    					},
    					Labels: slo.SLOAlertingSlowburnLabelArray{
    						&slo.SLOAlertingSlowburnLabelArgs{
    							Key:   pulumi.String("type"),
    							Value: pulumi.String("slo"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = slo.GetSlos(ctx, &slo.GetSlosArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Grafana.Slo.SLO("test", new()
        {
            Name = "Terraform Testing",
            Description = "Terraform Description",
            Queries = new[]
            {
                new Grafana.Slo.Inputs.SLOQueryArgs
                {
                    Freeform = new Grafana.Slo.Inputs.SLOQueryFreeformArgs
                    {
                        Query = "sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))",
                    },
                    Type = "freeform",
                },
            },
            Objectives = new[]
            {
                new Grafana.Slo.Inputs.SLOObjectiveArgs
                {
                    Value = 0.995,
                    Window = "30d",
                },
            },
            DestinationDatasource = new Grafana.Slo.Inputs.SLODestinationDatasourceArgs
            {
                Uid = "grafanacloud-prom",
            },
            Labels = new[]
            {
                new Grafana.Slo.Inputs.SLOLabelArgs
                {
                    Key = "custom",
                    Value = "value",
                },
            },
            Alerting = new Grafana.Slo.Inputs.SLOAlertingArgs
            {
                Fastburn = new Grafana.Slo.Inputs.SLOAlertingFastburnArgs
                {
                    Annotations = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
                        {
                            Key = "name",
                            Value = "Critical - SLO Burn Rate Alert",
                        },
                    },
                    Labels = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingFastburnLabelArgs
                        {
                            Key = "type",
                            Value = "slo",
                        },
                    },
                },
                Slowburn = new Grafana.Slo.Inputs.SLOAlertingSlowburnArgs
                {
                    Annotations = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
                        {
                            Key = "name",
                            Value = "Warning - SLO Burn Rate Alert",
                        },
                    },
                    Labels = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingSlowburnLabelArgs
                        {
                            Key = "type",
                            Value = "slo",
                        },
                    },
                },
            },
        });
    
        var slos = Grafana.Slo.GetSlos.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.slo.SLO;
    import com.pulumi.grafana.slo.SLOArgs;
    import com.pulumi.grafana.slo.inputs.SLOQueryArgs;
    import com.pulumi.grafana.slo.inputs.SLOQueryFreeformArgs;
    import com.pulumi.grafana.slo.inputs.SLOObjectiveArgs;
    import com.pulumi.grafana.slo.inputs.SLODestinationDatasourceArgs;
    import com.pulumi.grafana.slo.inputs.SLOLabelArgs;
    import com.pulumi.grafana.slo.inputs.SLOAlertingArgs;
    import com.pulumi.grafana.slo.inputs.SLOAlertingFastburnArgs;
    import com.pulumi.grafana.slo.inputs.SLOAlertingSlowburnArgs;
    import com.pulumi.grafana.slo.SloFunctions;
    import com.pulumi.grafana.slo.inputs.GetSlosArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var test = new SLO("test", SLOArgs.builder()
                .name("Terraform Testing")
                .description("Terraform Description")
                .queries(SLOQueryArgs.builder()
                    .freeform(SLOQueryFreeformArgs.builder()
                        .query("sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))")
                        .build())
                    .type("freeform")
                    .build())
                .objectives(SLOObjectiveArgs.builder()
                    .value(0.995)
                    .window("30d")
                    .build())
                .destinationDatasource(SLODestinationDatasourceArgs.builder()
                    .uid("grafanacloud-prom")
                    .build())
                .labels(SLOLabelArgs.builder()
                    .key("custom")
                    .value("value")
                    .build())
                .alerting(SLOAlertingArgs.builder()
                    .fastburn(SLOAlertingFastburnArgs.builder()
                        .annotations(SLOAlertingFastburnAnnotationArgs.builder()
                            .key("name")
                            .value("Critical - SLO Burn Rate Alert")
                            .build())
                        .labels(SLOAlertingFastburnLabelArgs.builder()
                            .key("type")
                            .value("slo")
                            .build())
                        .build())
                    .slowburn(SLOAlertingSlowburnArgs.builder()
                        .annotations(SLOAlertingSlowburnAnnotationArgs.builder()
                            .key("name")
                            .value("Warning - SLO Burn Rate Alert")
                            .build())
                        .labels(SLOAlertingSlowburnLabelArgs.builder()
                            .key("type")
                            .value("slo")
                            .build())
                        .build())
                    .build())
                .build());
    
            final var slos = SloFunctions.getSlos(GetSlosArgs.builder()
                .build());
    
        }
    }
    
    resources:
      test:
        type: grafana:slo:SLO
        properties:
          name: Terraform Testing
          description: Terraform Description
          queries:
            - freeform:
                query: sum(rate(apiserver_request_total{code!="500"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))
              type: freeform
          objectives:
            - value: 0.995
              window: 30d
          destinationDatasource:
            uid: grafanacloud-prom
          labels:
            - key: custom
              value: value
          alerting:
            fastburn:
              annotations:
                - key: name
                  value: Critical - SLO Burn Rate Alert
              labels:
                - key: type
                  value: slo
            slowburn:
              annotations:
                - key: name
                  value: Warning - SLO Burn Rate Alert
              labels:
                - key: type
                  value: slo
    variables:
      slos:
        fn::invoke:
          function: grafana:slo:getSlos
          arguments: {}
    

    Using getSlos

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSlos(args: GetSlosArgs, opts?: InvokeOptions): Promise<GetSlosResult>
    function getSlosOutput(args: GetSlosOutputArgs, opts?: InvokeOptions): Output<GetSlosResult>
    def get_slos(slos: Optional[Sequence[GetSlosSlo]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetSlosResult
    def get_slos_output(slos: pulumi.Input[Optional[Sequence[pulumi.Input[GetSlosSloArgs]]]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetSlosResult]
    func GetSlos(ctx *Context, args *GetSlosArgs, opts ...InvokeOption) (*GetSlosResult, error)
    func GetSlosOutput(ctx *Context, args *GetSlosOutputArgs, opts ...InvokeOption) GetSlosResultOutput

    > Note: This function is named GetSlos in the Go SDK.

    public static class GetSlos 
    {
        public static Task<GetSlosResult> InvokeAsync(GetSlosArgs args, InvokeOptions? opts = null)
        public static Output<GetSlosResult> Invoke(GetSlosInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSlosResult> getSlos(GetSlosArgs args, InvokeOptions options)
    public static Output<GetSlosResult> getSlos(GetSlosArgs args, InvokeOptions options)
    
    fn::invoke:
      function: grafana:slo/getSlos:getSlos
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Slos []GetSlosSlo
    List of all SLOs.
    slos List<GetSlosSlo>
    List of all SLOs.
    slos GetSlosSlo[]
    List of all SLOs.
    slos Sequence[GetSlosSlo]
    List of all SLOs.
    slos List<Property Map>
    List of all SLOs.

    getSlos Result

    The following output properties are available:

    Id string
    The ID of this datasource. This is a constant value.
    Slos List<Pulumiverse.Grafana.Slo.Outputs.GetSlosSlo>
    List of all SLOs.
    Id string
    The ID of this datasource. This is a constant value.
    Slos []GetSlosSlo
    List of all SLOs.
    id String
    The ID of this datasource. This is a constant value.
    slos List<GetSlosSlo>
    List of all SLOs.
    id string
    The ID of this datasource. This is a constant value.
    slos GetSlosSlo[]
    List of all SLOs.
    id str
    The ID of this datasource. This is a constant value.
    slos Sequence[GetSlosSlo]
    List of all SLOs.
    id String
    The ID of this datasource. This is a constant value.
    slos List<Property Map>
    List of all SLOs.

    Supporting Types

    GetSlosSlo

    Description string
    Description of the SLO.
    Name string
    Name of the SLO.
    SearchExpression string
    The search expression associated with this SLO.
    Uuid string
    A unique, random identifier. This value is read-only.
    Alertings List<Pulumiverse.Grafana.Slo.Inputs.GetSlosSloAlerting>
    Alerting configuration for the SLO.
    DestinationDatasources List<Pulumiverse.Grafana.Slo.Inputs.GetSlosSloDestinationDatasource>
    Destination datasource configuration.
    Labels List<Pulumiverse.Grafana.Slo.Inputs.GetSlosSloLabel>
    Labels attached to the SLO.
    Objectives List<Pulumiverse.Grafana.Slo.Inputs.GetSlosSloObjective>
    Objectives for the SLO.
    Queries List<Pulumiverse.Grafana.Slo.Inputs.GetSlosSloQuery>
    Query configuration for the SLO.
    Description string
    Description of the SLO.
    Name string
    Name of the SLO.
    SearchExpression string
    The search expression associated with this SLO.
    Uuid string
    A unique, random identifier. This value is read-only.
    Alertings []GetSlosSloAlerting
    Alerting configuration for the SLO.
    DestinationDatasources []GetSlosSloDestinationDatasource
    Destination datasource configuration.
    Labels []GetSlosSloLabel
    Labels attached to the SLO.
    Objectives []GetSlosSloObjective
    Objectives for the SLO.
    Queries []GetSlosSloQuery
    Query configuration for the SLO.
    description String
    Description of the SLO.
    name String
    Name of the SLO.
    searchExpression String
    The search expression associated with this SLO.
    uuid String
    A unique, random identifier. This value is read-only.
    alertings List<GetSlosSloAlerting>
    Alerting configuration for the SLO.
    destinationDatasources List<GetSlosSloDestinationDatasource>
    Destination datasource configuration.
    labels List<GetSlosSloLabel>
    Labels attached to the SLO.
    objectives List<GetSlosSloObjective>
    Objectives for the SLO.
    queries List<GetSlosSloQuery>
    Query configuration for the SLO.
    description string
    Description of the SLO.
    name string
    Name of the SLO.
    searchExpression string
    The search expression associated with this SLO.
    uuid string
    A unique, random identifier. This value is read-only.
    alertings GetSlosSloAlerting[]
    Alerting configuration for the SLO.
    destinationDatasources GetSlosSloDestinationDatasource[]
    Destination datasource configuration.
    labels GetSlosSloLabel[]
    Labels attached to the SLO.
    objectives GetSlosSloObjective[]
    Objectives for the SLO.
    queries GetSlosSloQuery[]
    Query configuration for the SLO.
    description str
    Description of the SLO.
    name str
    Name of the SLO.
    search_expression str
    The search expression associated with this SLO.
    uuid str
    A unique, random identifier. This value is read-only.
    alertings Sequence[GetSlosSloAlerting]
    Alerting configuration for the SLO.
    destination_datasources Sequence[GetSlosSloDestinationDatasource]
    Destination datasource configuration.
    labels Sequence[GetSlosSloLabel]
    Labels attached to the SLO.
    objectives Sequence[GetSlosSloObjective]
    Objectives for the SLO.
    queries Sequence[GetSlosSloQuery]
    Query configuration for the SLO.
    description String
    Description of the SLO.
    name String
    Name of the SLO.
    searchExpression String
    The search expression associated with this SLO.
    uuid String
    A unique, random identifier. This value is read-only.
    alertings List<Property Map>
    Alerting configuration for the SLO.
    destinationDatasources List<Property Map>
    Destination datasource configuration.
    labels List<Property Map>
    Labels attached to the SLO.
    objectives List<Property Map>
    Objectives for the SLO.
    queries List<Property Map>
    Query configuration for the SLO.

    GetSlosSloAlerting

    AdvancedOptions GetSlosSloAlertingAdvancedOptions
    Advanced alerting options.
    Annotations []GetSlosSloAlertingAnnotation
    Annotations attached to alerts.
    Fastburn GetSlosSloAlertingFastburn
    Fast burn alert configuration.
    Labels []GetSlosSloAlertingLabel
    Labels attached to alerts.
    Slowburn GetSlosSloAlertingSlowburn
    Slow burn alert configuration.
    advancedOptions GetSlosSloAlertingAdvancedOptions
    Advanced alerting options.
    annotations List<GetSlosSloAlertingAnnotation>
    Annotations attached to alerts.
    fastburn GetSlosSloAlertingFastburn
    Fast burn alert configuration.
    labels List<GetSlosSloAlertingLabel>
    Labels attached to alerts.
    slowburn GetSlosSloAlertingSlowburn
    Slow burn alert configuration.
    advancedOptions GetSlosSloAlertingAdvancedOptions
    Advanced alerting options.
    annotations GetSlosSloAlertingAnnotation[]
    Annotations attached to alerts.
    fastburn GetSlosSloAlertingFastburn
    Fast burn alert configuration.
    labels GetSlosSloAlertingLabel[]
    Labels attached to alerts.
    slowburn GetSlosSloAlertingSlowburn
    Slow burn alert configuration.
    advanced_options GetSlosSloAlertingAdvancedOptions
    Advanced alerting options.
    annotations Sequence[GetSlosSloAlertingAnnotation]
    Annotations attached to alerts.
    fastburn GetSlosSloAlertingFastburn
    Fast burn alert configuration.
    labels Sequence[GetSlosSloAlertingLabel]
    Labels attached to alerts.
    slowburn GetSlosSloAlertingSlowburn
    Slow burn alert configuration.
    advancedOptions Property Map
    Advanced alerting options.
    annotations List<Property Map>
    Annotations attached to alerts.
    fastburn Property Map
    Fast burn alert configuration.
    labels List<Property Map>
    Labels attached to alerts.
    slowburn Property Map
    Slow burn alert configuration.

    GetSlosSloAlertingAdvancedOptions

    MinFailures int
    Minimum number of failures before alerting.
    MinFailures int
    Minimum number of failures before alerting.
    minFailures Integer
    Minimum number of failures before alerting.
    minFailures number
    Minimum number of failures before alerting.
    min_failures int
    Minimum number of failures before alerting.
    minFailures Number
    Minimum number of failures before alerting.

    GetSlosSloAlertingAnnotation

    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.
    key string
    Key for filtering and identification.
    value string
    Templatable value.
    key str
    Key for filtering and identification.
    value str
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.

    GetSlosSloAlertingFastburn

    Annotations []GetSlosSloAlertingFastburnAnnotation
    Annotations for fast burn alerts.
    Enrichments []GetSlosSloAlertingFastburnEnrichment
    Enrichments for fast burn alerts.
    Labels []GetSlosSloAlertingFastburnLabel
    Labels for fast burn alerts.
    annotations GetSlosSloAlertingFastburnAnnotation[]
    Annotations for fast burn alerts.
    enrichments GetSlosSloAlertingFastburnEnrichment[]
    Enrichments for fast burn alerts.
    labels GetSlosSloAlertingFastburnLabel[]
    Labels for fast burn alerts.
    annotations List<Property Map>
    Annotations for fast burn alerts.
    enrichments List<Property Map>
    Enrichments for fast burn alerts.
    labels List<Property Map>
    Labels for fast burn alerts.

    GetSlosSloAlertingFastburnAnnotation

    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.
    key string
    Key for filtering and identification.
    value string
    Templatable value.
    key str
    Key for filtering and identification.
    value str
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.

    GetSlosSloAlertingFastburnEnrichment

    Type string
    Type of the alert enrichment.
    Type string
    Type of the alert enrichment.
    type String
    Type of the alert enrichment.
    type string
    Type of the alert enrichment.
    type str
    Type of the alert enrichment.
    type String
    Type of the alert enrichment.

    GetSlosSloAlertingFastburnLabel

    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.
    key string
    Key for filtering and identification.
    value string
    Templatable value.
    key str
    Key for filtering and identification.
    value str
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.

    GetSlosSloAlertingLabel

    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.
    key string
    Key for filtering and identification.
    value string
    Templatable value.
    key str
    Key for filtering and identification.
    value str
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.

    GetSlosSloAlertingSlowburn

    Annotations []GetSlosSloAlertingSlowburnAnnotation
    Annotations for slow burn alerts.
    Enrichments []GetSlosSloAlertingSlowburnEnrichment
    Enrichments for slow burn alerts.
    Labels []GetSlosSloAlertingSlowburnLabel
    Labels for slow burn alerts.
    annotations GetSlosSloAlertingSlowburnAnnotation[]
    Annotations for slow burn alerts.
    enrichments GetSlosSloAlertingSlowburnEnrichment[]
    Enrichments for slow burn alerts.
    labels GetSlosSloAlertingSlowburnLabel[]
    Labels for slow burn alerts.
    annotations List<Property Map>
    Annotations for slow burn alerts.
    enrichments List<Property Map>
    Enrichments for slow burn alerts.
    labels List<Property Map>
    Labels for slow burn alerts.

    GetSlosSloAlertingSlowburnAnnotation

    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.
    key string
    Key for filtering and identification.
    value string
    Templatable value.
    key str
    Key for filtering and identification.
    value str
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.

    GetSlosSloAlertingSlowburnEnrichment

    Type string
    Type of the alert enrichment.
    Type string
    Type of the alert enrichment.
    type String
    Type of the alert enrichment.
    type string
    Type of the alert enrichment.
    type str
    Type of the alert enrichment.
    type String
    Type of the alert enrichment.

    GetSlosSloAlertingSlowburnLabel

    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.
    key string
    Key for filtering and identification.
    value string
    Templatable value.
    key str
    Key for filtering and identification.
    value str
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.

    GetSlosSloDestinationDatasource

    Uid string
    UID of the destination datasource.
    Uid string
    UID of the destination datasource.
    uid String
    UID of the destination datasource.
    uid string
    UID of the destination datasource.
    uid str
    UID of the destination datasource.
    uid String
    UID of the destination datasource.

    GetSlosSloLabel

    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    Key string
    Key for filtering and identification.
    Value string
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.
    key string
    Key for filtering and identification.
    value string
    Templatable value.
    key str
    Key for filtering and identification.
    value str
    Templatable value.
    key String
    Key for filtering and identification.
    value String
    Templatable value.

    GetSlosSloObjective

    Value double
    Objective value (between 0 and 1).
    Window string
    Time window for the objective.
    Value float64
    Objective value (between 0 and 1).
    Window string
    Time window for the objective.
    value Double
    Objective value (between 0 and 1).
    window String
    Time window for the objective.
    value number
    Objective value (between 0 and 1).
    window string
    Time window for the objective.
    value float
    Objective value (between 0 and 1).
    window str
    Time window for the objective.
    value Number
    Objective value (between 0 and 1).
    window String
    Time window for the objective.

    GetSlosSloQuery

    Type string
    Type of query (freeform, ratio, grafana_queries, etc.).
    Freeform Pulumiverse.Grafana.Slo.Inputs.GetSlosSloQueryFreeform
    Freeform query configuration.
    GrafanaQueries Pulumiverse.Grafana.Slo.Inputs.GetSlosSloQueryGrafanaQueries
    Grafana queries configuration.
    Ratio Pulumiverse.Grafana.Slo.Inputs.GetSlosSloQueryRatio
    Ratio query configuration.
    Type string
    Type of query (freeform, ratio, grafana_queries, etc.).
    Freeform GetSlosSloQueryFreeform
    Freeform query configuration.
    GrafanaQueries GetSlosSloQueryGrafanaQueries
    Grafana queries configuration.
    Ratio GetSlosSloQueryRatio
    Ratio query configuration.
    type String
    Type of query (freeform, ratio, grafana_queries, etc.).
    freeform GetSlosSloQueryFreeform
    Freeform query configuration.
    grafanaQueries GetSlosSloQueryGrafanaQueries
    Grafana queries configuration.
    ratio GetSlosSloQueryRatio
    Ratio query configuration.
    type string
    Type of query (freeform, ratio, grafana_queries, etc.).
    freeform GetSlosSloQueryFreeform
    Freeform query configuration.
    grafanaQueries GetSlosSloQueryGrafanaQueries
    Grafana queries configuration.
    ratio GetSlosSloQueryRatio
    Ratio query configuration.
    type str
    Type of query (freeform, ratio, grafana_queries, etc.).
    freeform GetSlosSloQueryFreeform
    Freeform query configuration.
    grafana_queries GetSlosSloQueryGrafanaQueries
    Grafana queries configuration.
    ratio GetSlosSloQueryRatio
    Ratio query configuration.
    type String
    Type of query (freeform, ratio, grafana_queries, etc.).
    freeform Property Map
    Freeform query configuration.
    grafanaQueries Property Map
    Grafana queries configuration.
    ratio Property Map
    Ratio query configuration.

    GetSlosSloQueryFreeform

    Query string
    The PromQL query string.
    Query string
    The PromQL query string.
    query String
    The PromQL query string.
    query string
    The PromQL query string.
    query str
    The PromQL query string.
    query String
    The PromQL query string.

    GetSlosSloQueryGrafanaQueries

    GrafanaQueries string
    JSON string containing the Grafana queries.
    GrafanaQueries string
    JSON string containing the Grafana queries.
    grafanaQueries String
    JSON string containing the Grafana queries.
    grafanaQueries string
    JSON string containing the Grafana queries.
    grafana_queries str
    JSON string containing the Grafana queries.
    grafanaQueries String
    JSON string containing the Grafana queries.

    GetSlosSloQueryRatio

    GroupByLabels List<string>
    Labels used for grouping.
    SuccessMetric string
    Counter metric for success events (numerator).
    TotalMetric string
    Metric for total events (denominator).
    GroupByLabels []string
    Labels used for grouping.
    SuccessMetric string
    Counter metric for success events (numerator).
    TotalMetric string
    Metric for total events (denominator).
    groupByLabels List<String>
    Labels used for grouping.
    successMetric String
    Counter metric for success events (numerator).
    totalMetric String
    Metric for total events (denominator).
    groupByLabels string[]
    Labels used for grouping.
    successMetric string
    Counter metric for success events (numerator).
    totalMetric string
    Metric for total events (denominator).
    group_by_labels Sequence[str]
    Labels used for grouping.
    success_metric str
    Counter metric for success events (numerator).
    total_metric str
    Metric for total events (denominator).
    groupByLabels List<String>
    Labels used for grouping.
    successMetric String
    Counter metric for success events (numerator).
    totalMetric String
    Metric for total events (denominator).

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Viewing docs for Grafana v2.29.0
    published on Friday, May 1, 2026 by pulumiverse
      Try Pulumi Cloud free. Your team will thank you.