1. Packages
  2. Grafana Cloud
  3. API Docs
  4. SLO
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.SLO

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
    Deprecated: grafana.index/slo.SLO has been deprecated in favor of grafana.slo/slo.SLO

    Resource manages Grafana SLOs.

    Example Usage

    Basic

    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: "slo",
            value: "terraform",
        }],
        alertings: [{
            fastburns: [{
                annotations: [
                    {
                        key: "name",
                        value: "SLO Burn Rate Very High",
                    },
                    {
                        key: "description",
                        value: "Error budget is burning too fast",
                    },
                ],
            }],
            slowburns: [{
                annotations: [
                    {
                        key: "name",
                        value: "SLO Burn Rate High",
                    },
                    {
                        key: "description",
                        value: "Error budget is burning too fast",
                    },
                ],
            }],
        }],
    });
    
    import pulumi
    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": "slo",
            "value": "terraform",
        }],
        alertings=[{
            "fastburns": [{
                "annotations": [
                    {
                        "key": "name",
                        "value": "SLO Burn Rate Very High",
                    },
                    {
                        "key": "description",
                        "value": "Error budget is burning too fast",
                    },
                ],
            }],
            "slowburns": [{
                "annotations": [
                    {
                        "key": "name",
                        "value": "SLO Burn Rate High",
                    },
                    {
                        "key": "description",
                        "value": "Error budget is burning too fast",
                    },
                ],
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/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("slo"),
    					Value: pulumi.String("terraform"),
    				},
    			},
    			Alertings: slo.SLOAlertingArray{
    				&slo.SLOAlertingArgs{
    					Fastburns: slo.SLOAlertingFastburnArray{
    						&slo.SLOAlertingFastburnArgs{
    							Annotations: slo.SLOAlertingFastburnAnnotationArray{
    								&slo.SLOAlertingFastburnAnnotationArgs{
    									Key:   pulumi.String("name"),
    									Value: pulumi.String("SLO Burn Rate Very High"),
    								},
    								&slo.SLOAlertingFastburnAnnotationArgs{
    									Key:   pulumi.String("description"),
    									Value: pulumi.String("Error budget is burning too fast"),
    								},
    							},
    						},
    					},
    					Slowburns: slo.SLOAlertingSlowburnArray{
    						&slo.SLOAlertingSlowburnArgs{
    							Annotations: slo.SLOAlertingSlowburnAnnotationArray{
    								&slo.SLOAlertingSlowburnAnnotationArgs{
    									Key:   pulumi.String("name"),
    									Value: pulumi.String("SLO Burn Rate High"),
    								},
    								&slo.SLOAlertingSlowburnAnnotationArgs{
    									Key:   pulumi.String("description"),
    									Value: pulumi.String("Error budget is burning too fast"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		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 = "slo",
                    Value = "terraform",
                },
            },
            Alertings = new[]
            {
                new Grafana.Slo.Inputs.SLOAlertingArgs
                {
                    Fastburns = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingFastburnArgs
                        {
                            Annotations = new[]
                            {
                                new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
                                {
                                    Key = "name",
                                    Value = "SLO Burn Rate Very High",
                                },
                                new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
                                {
                                    Key = "description",
                                    Value = "Error budget is burning too fast",
                                },
                            },
                        },
                    },
                    Slowburns = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingSlowburnArgs
                        {
                            Annotations = new[]
                            {
                                new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
                                {
                                    Key = "name",
                                    Value = "SLO Burn Rate High",
                                },
                                new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
                                {
                                    Key = "description",
                                    Value = "Error budget is burning too fast",
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    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 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("slo")
                    .value("terraform")
                    .build())
                .alertings(SLOAlertingArgs.builder()
                    .fastburns(SLOAlertingFastburnArgs.builder()
                        .annotations(                    
                            SLOAlertingFastburnAnnotationArgs.builder()
                                .key("name")
                                .value("SLO Burn Rate Very High")
                                .build(),
                            SLOAlertingFastburnAnnotationArgs.builder()
                                .key("description")
                                .value("Error budget is burning too fast")
                                .build())
                        .build())
                    .slowburns(SLOAlertingSlowburnArgs.builder()
                        .annotations(                    
                            SLOAlertingSlowburnAnnotationArgs.builder()
                                .key("name")
                                .value("SLO Burn Rate High")
                                .build(),
                            SLOAlertingSlowburnAnnotationArgs.builder()
                                .key("description")
                                .value("Error budget is burning too fast")
                                .build())
                        .build())
                    .build())
                .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: slo
              value: terraform
          alertings:
            - fastburns:
                - annotations:
                    - key: name
                      value: SLO Burn Rate Very High
                    - key: description
                      value: Error budget is burning too fast
              slowburns:
                - annotations:
                    - key: name
                      value: SLO Burn Rate High
                    - key: description
                      value: Error budget is burning too fast
    

    Advanced

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const test = new grafana.slo.SLO("test", {
        name: "Complex Resource - Terraform Ratio Query Example",
        description: "Complex Resource - Terraform Ratio Query Description",
        queries: [{
            ratio: {
                successMetric: "kubelet_http_requests_total{status!~\"5..\"}",
                totalMetric: "kubelet_http_requests_total",
                groupByLabels: [
                    "job",
                    "instance",
                ],
            },
            type: "ratio",
        }],
        objectives: [{
            value: 0.995,
            window: "30d",
        }],
        destinationDatasource: {
            uid: "grafanacloud-prom",
        },
        labels: [{
            key: "slo",
            value: "terraform",
        }],
        alertings: [{
            fastburns: [{
                annotations: [
                    {
                        key: "name",
                        value: "SLO Burn Rate Very High",
                    },
                    {
                        key: "description",
                        value: "Error budget is burning too fast",
                    },
                ],
                labels: [{
                    key: "type",
                    value: "slo",
                }],
            }],
            slowburns: [{
                annotations: [
                    {
                        key: "name",
                        value: "SLO Burn Rate High",
                    },
                    {
                        key: "description",
                        value: "Error budget is burning too fast",
                    },
                ],
                labels: [{
                    key: "type",
                    value: "slo",
                }],
            }],
        }],
    });
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    test = grafana.slo.SLO("test",
        name="Complex Resource - Terraform Ratio Query Example",
        description="Complex Resource - Terraform Ratio Query Description",
        queries=[{
            "ratio": {
                "success_metric": "kubelet_http_requests_total{status!~\"5..\"}",
                "total_metric": "kubelet_http_requests_total",
                "group_by_labels": [
                    "job",
                    "instance",
                ],
            },
            "type": "ratio",
        }],
        objectives=[{
            "value": 0.995,
            "window": "30d",
        }],
        destination_datasource={
            "uid": "grafanacloud-prom",
        },
        labels=[{
            "key": "slo",
            "value": "terraform",
        }],
        alertings=[{
            "fastburns": [{
                "annotations": [
                    {
                        "key": "name",
                        "value": "SLO Burn Rate Very High",
                    },
                    {
                        "key": "description",
                        "value": "Error budget is burning too fast",
                    },
                ],
                "labels": [{
                    "key": "type",
                    "value": "slo",
                }],
            }],
            "slowburns": [{
                "annotations": [
                    {
                        "key": "name",
                        "value": "SLO Burn Rate High",
                    },
                    {
                        "key": "description",
                        "value": "Error budget is burning too fast",
                    },
                ],
                "labels": [{
                    "key": "type",
                    "value": "slo",
                }],
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/slo"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slo.NewSLO(ctx, "test", &slo.SLOArgs{
    			Name:        pulumi.String("Complex Resource - Terraform Ratio Query Example"),
    			Description: pulumi.String("Complex Resource - Terraform Ratio Query Description"),
    			Queries: slo.SLOQueryArray{
    				&slo.SLOQueryArgs{
    					Ratio: &slo.SLOQueryRatioArgs{
    						SuccessMetric: pulumi.String("kubelet_http_requests_total{status!~\"5..\"}"),
    						TotalMetric:   pulumi.String("kubelet_http_requests_total"),
    						GroupByLabels: pulumi.StringArray{
    							pulumi.String("job"),
    							pulumi.String("instance"),
    						},
    					},
    					Type: pulumi.String("ratio"),
    				},
    			},
    			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("slo"),
    					Value: pulumi.String("terraform"),
    				},
    			},
    			Alertings: slo.SLOAlertingArray{
    				&slo.SLOAlertingArgs{
    					Fastburns: slo.SLOAlertingFastburnArray{
    						&slo.SLOAlertingFastburnArgs{
    							Annotations: slo.SLOAlertingFastburnAnnotationArray{
    								&slo.SLOAlertingFastburnAnnotationArgs{
    									Key:   pulumi.String("name"),
    									Value: pulumi.String("SLO Burn Rate Very High"),
    								},
    								&slo.SLOAlertingFastburnAnnotationArgs{
    									Key:   pulumi.String("description"),
    									Value: pulumi.String("Error budget is burning too fast"),
    								},
    							},
    							Labels: slo.SLOAlertingFastburnLabelArray{
    								&slo.SLOAlertingFastburnLabelArgs{
    									Key:   pulumi.String("type"),
    									Value: pulumi.String("slo"),
    								},
    							},
    						},
    					},
    					Slowburns: slo.SLOAlertingSlowburnArray{
    						&slo.SLOAlertingSlowburnArgs{
    							Annotations: slo.SLOAlertingSlowburnAnnotationArray{
    								&slo.SLOAlertingSlowburnAnnotationArgs{
    									Key:   pulumi.String("name"),
    									Value: pulumi.String("SLO Burn Rate High"),
    								},
    								&slo.SLOAlertingSlowburnAnnotationArgs{
    									Key:   pulumi.String("description"),
    									Value: pulumi.String("Error budget is burning too fast"),
    								},
    							},
    							Labels: slo.SLOAlertingSlowburnLabelArray{
    								&slo.SLOAlertingSlowburnLabelArgs{
    									Key:   pulumi.String("type"),
    									Value: pulumi.String("slo"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		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 = "Complex Resource - Terraform Ratio Query Example",
            Description = "Complex Resource - Terraform Ratio Query Description",
            Queries = new[]
            {
                new Grafana.Slo.Inputs.SLOQueryArgs
                {
                    Ratio = new Grafana.Slo.Inputs.SLOQueryRatioArgs
                    {
                        SuccessMetric = "kubelet_http_requests_total{status!~\"5..\"}",
                        TotalMetric = "kubelet_http_requests_total",
                        GroupByLabels = new[]
                        {
                            "job",
                            "instance",
                        },
                    },
                    Type = "ratio",
                },
            },
            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 = "slo",
                    Value = "terraform",
                },
            },
            Alertings = new[]
            {
                new Grafana.Slo.Inputs.SLOAlertingArgs
                {
                    Fastburns = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingFastburnArgs
                        {
                            Annotations = new[]
                            {
                                new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
                                {
                                    Key = "name",
                                    Value = "SLO Burn Rate Very High",
                                },
                                new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
                                {
                                    Key = "description",
                                    Value = "Error budget is burning too fast",
                                },
                            },
                            Labels = new[]
                            {
                                new Grafana.Slo.Inputs.SLOAlertingFastburnLabelArgs
                                {
                                    Key = "type",
                                    Value = "slo",
                                },
                            },
                        },
                    },
                    Slowburns = new[]
                    {
                        new Grafana.Slo.Inputs.SLOAlertingSlowburnArgs
                        {
                            Annotations = new[]
                            {
                                new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
                                {
                                    Key = "name",
                                    Value = "SLO Burn Rate High",
                                },
                                new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
                                {
                                    Key = "description",
                                    Value = "Error budget is burning too fast",
                                },
                            },
                            Labels = new[]
                            {
                                new Grafana.Slo.Inputs.SLOAlertingSlowburnLabelArgs
                                {
                                    Key = "type",
                                    Value = "slo",
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    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.SLOQueryRatioArgs;
    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 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("Complex Resource - Terraform Ratio Query Example")
                .description("Complex Resource - Terraform Ratio Query Description")
                .queries(SLOQueryArgs.builder()
                    .ratio(SLOQueryRatioArgs.builder()
                        .successMetric("kubelet_http_requests_total{status!~\"5..\"}")
                        .totalMetric("kubelet_http_requests_total")
                        .groupByLabels(                    
                            "job",
                            "instance")
                        .build())
                    .type("ratio")
                    .build())
                .objectives(SLOObjectiveArgs.builder()
                    .value(0.995)
                    .window("30d")
                    .build())
                .destinationDatasource(SLODestinationDatasourceArgs.builder()
                    .uid("grafanacloud-prom")
                    .build())
                .labels(SLOLabelArgs.builder()
                    .key("slo")
                    .value("terraform")
                    .build())
                .alertings(SLOAlertingArgs.builder()
                    .fastburns(SLOAlertingFastburnArgs.builder()
                        .annotations(                    
                            SLOAlertingFastburnAnnotationArgs.builder()
                                .key("name")
                                .value("SLO Burn Rate Very High")
                                .build(),
                            SLOAlertingFastburnAnnotationArgs.builder()
                                .key("description")
                                .value("Error budget is burning too fast")
                                .build())
                        .labels(SLOAlertingFastburnLabelArgs.builder()
                            .key("type")
                            .value("slo")
                            .build())
                        .build())
                    .slowburns(SLOAlertingSlowburnArgs.builder()
                        .annotations(                    
                            SLOAlertingSlowburnAnnotationArgs.builder()
                                .key("name")
                                .value("SLO Burn Rate High")
                                .build(),
                            SLOAlertingSlowburnAnnotationArgs.builder()
                                .key("description")
                                .value("Error budget is burning too fast")
                                .build())
                        .labels(SLOAlertingSlowburnLabelArgs.builder()
                            .key("type")
                            .value("slo")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: grafana:slo:SLO
        properties:
          name: Complex Resource - Terraform Ratio Query Example
          description: Complex Resource - Terraform Ratio Query Description
          queries:
            - ratio:
                successMetric: kubelet_http_requests_total{status!~"5.."}
                totalMetric: kubelet_http_requests_total
                groupByLabels:
                  - job
                  - instance
              type: ratio
          objectives:
            - value: 0.995
              window: 30d
          destinationDatasource:
            uid: grafanacloud-prom
          labels:
            - key: slo
              value: terraform
          alertings:
            - fastburns:
                - annotations:
                    - key: name
                      value: SLO Burn Rate Very High
                    - key: description
                      value: Error budget is burning too fast
                  labels:
                    - key: type
                      value: slo
              slowburns:
                - annotations:
                    - key: name
                      value: SLO Burn Rate High
                    - key: description
                      value: Error budget is burning too fast
                  labels:
                    - key: type
                      value: slo
    

    Create SLO Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SLO(name: string, args: SLOArgs, opts?: CustomResourceOptions);
    @overload
    def SLO(resource_name: str,
            args: SLOArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def SLO(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            alertings: Optional[Sequence[SLOAlertingArgs]] = None,
            description: Optional[str] = None,
            destination_datasource: Optional[SLODestinationDatasourceArgs] = None,
            folder_uid: Optional[str] = None,
            labels: Optional[Sequence[SLOLabelArgs]] = None,
            name: Optional[str] = None,
            objectives: Optional[Sequence[SLOObjectiveArgs]] = None,
            queries: Optional[Sequence[SLOQueryArgs]] = None)
    func NewSLO(ctx *Context, name string, args SLOArgs, opts ...ResourceOption) (*SLO, error)
    public SLO(string name, SLOArgs args, CustomResourceOptions? opts = null)
    public SLO(String name, SLOArgs args)
    public SLO(String name, SLOArgs args, CustomResourceOptions options)
    
    type: grafana:SLO
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SLOArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SLOArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SLOArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SLOArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SLOArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SLO Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SLO resource accepts the following input properties:

    Description string
    Description is a free-text field that can provide more context to an SLO.
    Objectives List<Pulumiverse.Grafana.Inputs.SLOObjective>
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    Queries List<Pulumiverse.Grafana.Inputs.SLOQuery>
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    Alertings List<Pulumiverse.Grafana.Inputs.SLOAlerting>
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    DestinationDatasource Pulumiverse.Grafana.Inputs.SLODestinationDatasource
    Destination Datasource sets the datasource defined for an SLO
    FolderUid string
    UID for the SLO folder
    Labels List<Pulumiverse.Grafana.Inputs.SLOLabel>
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    Name string
    Name should be a short description of your indicator. Consider names like "API Availability"
    Description string
    Description is a free-text field that can provide more context to an SLO.
    Objectives []SLOObjectiveArgs
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    Queries []SLOQueryArgs
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    Alertings []SLOAlertingArgs
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    DestinationDatasource SLODestinationDatasourceArgs
    Destination Datasource sets the datasource defined for an SLO
    FolderUid string
    UID for the SLO folder
    Labels []SLOLabelArgs
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    Name string
    Name should be a short description of your indicator. Consider names like "API Availability"
    description String
    Description is a free-text field that can provide more context to an SLO.
    objectives List<SLOObjective>
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries List<SLOQuery>
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings List<SLOAlerting>
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    destinationDatasource SLODestinationDatasource
    Destination Datasource sets the datasource defined for an SLO
    folderUid String
    UID for the SLO folder
    labels List<SLOLabel>
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name String
    Name should be a short description of your indicator. Consider names like "API Availability"
    description string
    Description is a free-text field that can provide more context to an SLO.
    objectives SLOObjective[]
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries SLOQuery[]
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings SLOAlerting[]
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    destinationDatasource SLODestinationDatasource
    Destination Datasource sets the datasource defined for an SLO
    folderUid string
    UID for the SLO folder
    labels SLOLabel[]
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name string
    Name should be a short description of your indicator. Consider names like "API Availability"
    description str
    Description is a free-text field that can provide more context to an SLO.
    objectives Sequence[SLOObjectiveArgs]
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries Sequence[SLOQueryArgs]
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings Sequence[SLOAlertingArgs]
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    destination_datasource SLODestinationDatasourceArgs
    Destination Datasource sets the datasource defined for an SLO
    folder_uid str
    UID for the SLO folder
    labels Sequence[SLOLabelArgs]
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name str
    Name should be a short description of your indicator. Consider names like "API Availability"
    description String
    Description is a free-text field that can provide more context to an SLO.
    objectives List<Property Map>
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries List<Property Map>
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings List<Property Map>
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    destinationDatasource Property Map
    Destination Datasource sets the datasource defined for an SLO
    folderUid String
    UID for the SLO folder
    labels List<Property Map>
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name String
    Name should be a short description of your indicator. Consider names like "API Availability"

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SLO resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SLO Resource

    Get an existing SLO resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SLOState, opts?: CustomResourceOptions): SLO
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alertings: Optional[Sequence[SLOAlertingArgs]] = None,
            description: Optional[str] = None,
            destination_datasource: Optional[SLODestinationDatasourceArgs] = None,
            folder_uid: Optional[str] = None,
            labels: Optional[Sequence[SLOLabelArgs]] = None,
            name: Optional[str] = None,
            objectives: Optional[Sequence[SLOObjectiveArgs]] = None,
            queries: Optional[Sequence[SLOQueryArgs]] = None) -> SLO
    func GetSLO(ctx *Context, name string, id IDInput, state *SLOState, opts ...ResourceOption) (*SLO, error)
    public static SLO Get(string name, Input<string> id, SLOState? state, CustomResourceOptions? opts = null)
    public static SLO get(String name, Output<String> id, SLOState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Alertings List<Pulumiverse.Grafana.Inputs.SLOAlerting>
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    Description string
    Description is a free-text field that can provide more context to an SLO.
    DestinationDatasource Pulumiverse.Grafana.Inputs.SLODestinationDatasource
    Destination Datasource sets the datasource defined for an SLO
    FolderUid string
    UID for the SLO folder
    Labels List<Pulumiverse.Grafana.Inputs.SLOLabel>
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    Name string
    Name should be a short description of your indicator. Consider names like "API Availability"
    Objectives List<Pulumiverse.Grafana.Inputs.SLOObjective>
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    Queries List<Pulumiverse.Grafana.Inputs.SLOQuery>
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    Alertings []SLOAlertingArgs
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    Description string
    Description is a free-text field that can provide more context to an SLO.
    DestinationDatasource SLODestinationDatasourceArgs
    Destination Datasource sets the datasource defined for an SLO
    FolderUid string
    UID for the SLO folder
    Labels []SLOLabelArgs
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    Name string
    Name should be a short description of your indicator. Consider names like "API Availability"
    Objectives []SLOObjectiveArgs
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    Queries []SLOQueryArgs
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings List<SLOAlerting>
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    description String
    Description is a free-text field that can provide more context to an SLO.
    destinationDatasource SLODestinationDatasource
    Destination Datasource sets the datasource defined for an SLO
    folderUid String
    UID for the SLO folder
    labels List<SLOLabel>
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name String
    Name should be a short description of your indicator. Consider names like "API Availability"
    objectives List<SLOObjective>
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries List<SLOQuery>
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings SLOAlerting[]
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    description string
    Description is a free-text field that can provide more context to an SLO.
    destinationDatasource SLODestinationDatasource
    Destination Datasource sets the datasource defined for an SLO
    folderUid string
    UID for the SLO folder
    labels SLOLabel[]
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name string
    Name should be a short description of your indicator. Consider names like "API Availability"
    objectives SLOObjective[]
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries SLOQuery[]
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings Sequence[SLOAlertingArgs]
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    description str
    Description is a free-text field that can provide more context to an SLO.
    destination_datasource SLODestinationDatasourceArgs
    Destination Datasource sets the datasource defined for an SLO
    folder_uid str
    UID for the SLO folder
    labels Sequence[SLOLabelArgs]
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name str
    Name should be a short description of your indicator. Consider names like "API Availability"
    objectives Sequence[SLOObjectiveArgs]
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries Sequence[SLOQueryArgs]
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
    alertings List<Property Map>
    Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
    description String
    Description is a free-text field that can provide more context to an SLO.
    destinationDatasource Property Map
    Destination Datasource sets the datasource defined for an SLO
    folderUid String
    UID for the SLO folder
    labels List<Property Map>
    Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    name String
    Name should be a short description of your indicator. Consider names like "API Availability"
    objectives List<Property Map>
    Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
    queries List<Property Map>
    Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.

    Supporting Types

    SLOAlerting, SLOAlertingArgs

    AdvancedOptions Pulumiverse.Grafana.Inputs.SLOAlertingAdvancedOptions
    Advanced Options for Alert Rules
    Annotations List<Pulumiverse.Grafana.Inputs.SLOAlertingAnnotation>
    Annotations will be attached to all alerts generated by any of these rules.
    Fastburns List<Pulumiverse.Grafana.Inputs.SLOAlertingFastburn>
    Alerting Rules generated for Fast Burn alerts
    Labels List<Pulumiverse.Grafana.Inputs.SLOAlertingLabel>
    Labels will be attached to all alerts generated by any of these rules.
    Slowburns List<Pulumiverse.Grafana.Inputs.SLOAlertingSlowburn>
    Alerting Rules generated for Slow Burn alerts
    AdvancedOptions SLOAlertingAdvancedOptions
    Advanced Options for Alert Rules
    Annotations []SLOAlertingAnnotation
    Annotations will be attached to all alerts generated by any of these rules.
    Fastburns []SLOAlertingFastburn
    Alerting Rules generated for Fast Burn alerts
    Labels []SLOAlertingLabel
    Labels will be attached to all alerts generated by any of these rules.
    Slowburns []SLOAlertingSlowburn
    Alerting Rules generated for Slow Burn alerts
    advancedOptions SLOAlertingAdvancedOptions
    Advanced Options for Alert Rules
    annotations List<SLOAlertingAnnotation>
    Annotations will be attached to all alerts generated by any of these rules.
    fastburns List<SLOAlertingFastburn>
    Alerting Rules generated for Fast Burn alerts
    labels List<SLOAlertingLabel>
    Labels will be attached to all alerts generated by any of these rules.
    slowburns List<SLOAlertingSlowburn>
    Alerting Rules generated for Slow Burn alerts
    advancedOptions SLOAlertingAdvancedOptions
    Advanced Options for Alert Rules
    annotations SLOAlertingAnnotation[]
    Annotations will be attached to all alerts generated by any of these rules.
    fastburns SLOAlertingFastburn[]
    Alerting Rules generated for Fast Burn alerts
    labels SLOAlertingLabel[]
    Labels will be attached to all alerts generated by any of these rules.
    slowburns SLOAlertingSlowburn[]
    Alerting Rules generated for Slow Burn alerts
    advanced_options SLOAlertingAdvancedOptions
    Advanced Options for Alert Rules
    annotations Sequence[SLOAlertingAnnotation]
    Annotations will be attached to all alerts generated by any of these rules.
    fastburns Sequence[SLOAlertingFastburn]
    Alerting Rules generated for Fast Burn alerts
    labels Sequence[SLOAlertingLabel]
    Labels will be attached to all alerts generated by any of these rules.
    slowburns Sequence[SLOAlertingSlowburn]
    Alerting Rules generated for Slow Burn alerts
    advancedOptions Property Map
    Advanced Options for Alert Rules
    annotations List<Property Map>
    Annotations will be attached to all alerts generated by any of these rules.
    fastburns List<Property Map>
    Alerting Rules generated for Fast Burn alerts
    labels List<Property Map>
    Labels will be attached to all alerts generated by any of these rules.
    slowburns List<Property Map>
    Alerting Rules generated for Slow Burn alerts

    SLOAlertingAdvancedOptions, SLOAlertingAdvancedOptionsArgs

    MinFailures int
    Minimum number of failed events to trigger an alert
    MinFailures int
    Minimum number of failed events to trigger an alert
    minFailures Integer
    Minimum number of failed events to trigger an alert
    minFailures number
    Minimum number of failed events to trigger an alert
    min_failures int
    Minimum number of failed events to trigger an alert
    minFailures Number
    Minimum number of failed events to trigger an alert

    SLOAlertingAnnotation, SLOAlertingAnnotationArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    SLOAlertingFastburn, SLOAlertingFastburnArgs

    Annotations List<Pulumiverse.Grafana.Inputs.SLOAlertingFastburnAnnotation>
    Annotations to attach only to Fast Burn alerts.
    Labels List<Pulumiverse.Grafana.Inputs.SLOAlertingFastburnLabel>
    Labels to attach only to Fast Burn alerts.
    Annotations []SLOAlertingFastburnAnnotation
    Annotations to attach only to Fast Burn alerts.
    Labels []SLOAlertingFastburnLabel
    Labels to attach only to Fast Burn alerts.
    annotations List<SLOAlertingFastburnAnnotation>
    Annotations to attach only to Fast Burn alerts.
    labels List<SLOAlertingFastburnLabel>
    Labels to attach only to Fast Burn alerts.
    annotations SLOAlertingFastburnAnnotation[]
    Annotations to attach only to Fast Burn alerts.
    labels SLOAlertingFastburnLabel[]
    Labels to attach only to Fast Burn alerts.
    annotations Sequence[SLOAlertingFastburnAnnotation]
    Annotations to attach only to Fast Burn alerts.
    labels Sequence[SLOAlertingFastburnLabel]
    Labels to attach only to Fast Burn alerts.
    annotations List<Property Map>
    Annotations to attach only to Fast Burn alerts.
    labels List<Property Map>
    Labels to attach only to Fast Burn alerts.

    SLOAlertingFastburnAnnotation, SLOAlertingFastburnAnnotationArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    SLOAlertingFastburnLabel, SLOAlertingFastburnLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    SLOAlertingLabel, SLOAlertingLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    SLOAlertingSlowburn, SLOAlertingSlowburnArgs

    Annotations List<Pulumiverse.Grafana.Inputs.SLOAlertingSlowburnAnnotation>
    Annotations to attach only to Slow Burn alerts.
    Labels List<Pulumiverse.Grafana.Inputs.SLOAlertingSlowburnLabel>
    Labels to attach only to Slow Burn alerts.
    Annotations []SLOAlertingSlowburnAnnotation
    Annotations to attach only to Slow Burn alerts.
    Labels []SLOAlertingSlowburnLabel
    Labels to attach only to Slow Burn alerts.
    annotations List<SLOAlertingSlowburnAnnotation>
    Annotations to attach only to Slow Burn alerts.
    labels List<SLOAlertingSlowburnLabel>
    Labels to attach only to Slow Burn alerts.
    annotations SLOAlertingSlowburnAnnotation[]
    Annotations to attach only to Slow Burn alerts.
    labels SLOAlertingSlowburnLabel[]
    Labels to attach only to Slow Burn alerts.
    annotations Sequence[SLOAlertingSlowburnAnnotation]
    Annotations to attach only to Slow Burn alerts.
    labels Sequence[SLOAlertingSlowburnLabel]
    Labels to attach only to Slow Burn alerts.
    annotations List<Property Map>
    Annotations to attach only to Slow Burn alerts.
    labels List<Property Map>
    Labels to attach only to Slow Burn alerts.

    SLOAlertingSlowburnAnnotation, SLOAlertingSlowburnAnnotationArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    SLOAlertingSlowburnLabel, SLOAlertingSlowburnLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    SLODestinationDatasource, SLODestinationDatasourceArgs

    Uid string
    UID for the Mimir Datasource
    Uid string
    UID for the Mimir Datasource
    uid String
    UID for the Mimir Datasource
    uid string
    UID for the Mimir Datasource
    uid str
    UID for the Mimir Datasource
    uid String
    UID for the Mimir Datasource

    SLOLabel, SLOLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    SLOObjective, SLOObjectiveArgs

    Value double
    Value between 0 and 1. If the value of the query is above the objective, the SLO is met.
    Window string
    A Prometheus-parsable time duration string like 24h, 60m. This is the time window the objective is measured over.
    Value float64
    Value between 0 and 1. If the value of the query is above the objective, the SLO is met.
    Window string
    A Prometheus-parsable time duration string like 24h, 60m. This is the time window the objective is measured over.
    value Double
    Value between 0 and 1. If the value of the query is above the objective, the SLO is met.
    window String
    A Prometheus-parsable time duration string like 24h, 60m. This is the time window the objective is measured over.
    value number
    Value between 0 and 1. If the value of the query is above the objective, the SLO is met.
    window string
    A Prometheus-parsable time duration string like 24h, 60m. This is the time window the objective is measured over.
    value float
    Value between 0 and 1. If the value of the query is above the objective, the SLO is met.
    window str
    A Prometheus-parsable time duration string like 24h, 60m. This is the time window the objective is measured over.
    value Number
    Value between 0 and 1. If the value of the query is above the objective, the SLO is met.
    window String
    A Prometheus-parsable time duration string like 24h, 60m. This is the time window the objective is measured over.

    SLOQuery, SLOQueryArgs

    Type string
    Query type must be one of: "freeform", "query", "ratio", or "threshold"
    Freeform Pulumiverse.Grafana.Inputs.SLOQueryFreeform
    Ratio Pulumiverse.Grafana.Inputs.SLOQueryRatio
    Type string
    Query type must be one of: "freeform", "query", "ratio", or "threshold"
    Freeform SLOQueryFreeform
    Ratio SLOQueryRatio
    type String
    Query type must be one of: "freeform", "query", "ratio", or "threshold"
    freeform SLOQueryFreeform
    ratio SLOQueryRatio
    type string
    Query type must be one of: "freeform", "query", "ratio", or "threshold"
    freeform SLOQueryFreeform
    ratio SLOQueryRatio
    type str
    Query type must be one of: "freeform", "query", "ratio", or "threshold"
    freeform SLOQueryFreeform
    ratio SLOQueryRatio
    type String
    Query type must be one of: "freeform", "query", "ratio", or "threshold"
    freeform Property Map
    ratio Property Map

    SLOQueryFreeform, SLOQueryFreeformArgs

    Query string
    Freeform Query Field
    Query string
    Freeform Query Field
    query String
    Freeform Query Field
    query string
    Freeform Query Field
    query str
    Freeform Query Field
    query String
    Freeform Query Field

    SLOQueryRatio, SLOQueryRatioArgs

    SuccessMetric string
    Counter metric for success events (numerator)
    TotalMetric string
    Metric for total events (denominator)
    GroupByLabels List<string>
    Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    SuccessMetric string
    Counter metric for success events (numerator)
    TotalMetric string
    Metric for total events (denominator)
    GroupByLabels []string
    Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    successMetric String
    Counter metric for success events (numerator)
    totalMetric String
    Metric for total events (denominator)
    groupByLabels List<String>
    Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    successMetric string
    Counter metric for success events (numerator)
    totalMetric string
    Metric for total events (denominator)
    groupByLabels string[]
    Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    success_metric str
    Counter metric for success events (numerator)
    total_metric str
    Metric for total events (denominator)
    group_by_labels Sequence[str]
    Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
    successMetric String
    Counter metric for success events (numerator)
    totalMetric String
    Metric for total events (denominator)
    groupByLabels List<String>
    Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"

    Import

    $ pulumi import grafana:index/sLO:SLO name "{{ uuid }}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse