1. Packages
  2. Sumologic Provider
  3. API Docs
  4. Slo
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

sumologic.Slo

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

    Provides the ability to create, read, delete, and update SLOs.

    Example SLO

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const sloTfWindowMetricRatio = new sumologic.Slo("slo_tf_window_metric_ratio", {
        name: "login error rate",
        description: "per minute login error rate over rolling 7 days",
        parentId: "0000000000000001",
        signalType: "Error",
        service: "auth",
        application: "login",
        tags: {
            team: "metrics",
            application: "sumologic",
        },
        compliances: [{
            complianceType: "Rolling",
            size: "7d",
            target: 95,
            timezone: "Asia/Kolkata",
        }],
        indicator: {
            windowBasedEvaluation: {
                op: "LessThan",
                queryType: "Metrics",
                size: "1m",
                threshold: 99,
                queries: [
                    {
                        queryGroupType: "Unsuccessful",
                        queryGroups: [{
                            rowId: "A",
                            query: "service=auth api=login metric=HTTP_5XX_Count",
                            useRowCount: false,
                        }],
                    },
                    {
                        queryGroupType: "Total",
                        queryGroups: [{
                            rowId: "A",
                            query: "service=auth api=login metric=TotalRequests",
                            useRowCount: false,
                        }],
                    },
                ],
            },
        },
    });
    const sloTfWindowBased = new sumologic.Slo("slo_tf_window_based", {
        name: "slo-tf-window-based",
        description: "example SLO created with terraform",
        parentId: "0000000000000001",
        signalType: "Latency",
        service: "auth",
        application: "login",
        tags: {
            team: "metrics",
            application: "sumologic",
        },
        compliances: [{
            complianceType: "Rolling",
            size: "7d",
            target: 99,
            timezone: "Asia/Kolkata",
        }],
        indicator: {
            windowBasedEvaluation: {
                op: "LessThan",
                queryType: "Metrics",
                aggregation: "Avg",
                size: "1m",
                threshold: 200,
                queries: [{
                    queryGroupType: "Threshold",
                    queryGroups: [{
                        rowId: "A",
                        query: "metric=request_time_p90  service=auth api=login",
                        useRowCount: false,
                    }],
                }],
            },
        },
    });
    const sloTfRequestBased = new sumologic.Slo("slo_tf_request_based", {
        name: "slo-tf-request-based",
        description: "example SLO created with terraform for request based SLI",
        parentId: tfSloFolder.id,
        signalType: "Latency",
        service: "auth",
        application: "login",
        tags: {
            team: "metrics",
            application: "sumologic",
        },
        compliances: [{
            complianceType: "Rolling",
            size: "7d",
            target: 99,
            timezone: "Asia/Kolkata",
        }],
        indicator: {
            requestBasedEvaluation: {
                op: "LessThanOrEqual",
                queryType: "Logs",
                threshold: 1,
                queries: [{
                    queryGroupType: "Threshold",
                    queryGroups: [{
                        rowId: "A",
                        query: `          cluster=sedemostaging namespace=warp004*
                  | parse "Coffee preparation request time: * ms" as latency nodrop
                  |  if(isBlank(latency), "false", "true") as hasLatency
                  | where hasLatency = "true"
                  |  if(isBlank(latency), 0.0, latency) as latency
                  | latency/ 1000 as latency_sec
    `,
                        useRowCount: false,
                        field: "latency_sec",
                    }],
                }],
            },
        },
    });
    const sloTfMonitorBased = new sumologic.Slo("slo_tf_monitor_based", {
        name: "slo-tf-monitor-based",
        description: "example of monitor based SLO created with terraform",
        parentId: "0000000000000001",
        signalType: "Error",
        service: "auth",
        application: "login",
        tags: {
            team: "metrics",
            application: "sumologic",
        },
        compliances: [{
            complianceType: "Rolling",
            size: "7d",
            target: 99,
            timezone: "Asia/Kolkata",
        }],
        indicator: {
            monitorBasedEvaluation: {
                monitorTriggers: {
                    monitorId: "0000000000BCB3A4",
                    triggerTypes: "Critical",
                },
            },
        },
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    slo_tf_window_metric_ratio = sumologic.Slo("slo_tf_window_metric_ratio",
        name="login error rate",
        description="per minute login error rate over rolling 7 days",
        parent_id="0000000000000001",
        signal_type="Error",
        service="auth",
        application="login",
        tags={
            "team": "metrics",
            "application": "sumologic",
        },
        compliances=[{
            "compliance_type": "Rolling",
            "size": "7d",
            "target": 95,
            "timezone": "Asia/Kolkata",
        }],
        indicator={
            "window_based_evaluation": {
                "op": "LessThan",
                "query_type": "Metrics",
                "size": "1m",
                "threshold": 99,
                "queries": [
                    {
                        "query_group_type": "Unsuccessful",
                        "query_groups": [{
                            "row_id": "A",
                            "query": "service=auth api=login metric=HTTP_5XX_Count",
                            "use_row_count": False,
                        }],
                    },
                    {
                        "query_group_type": "Total",
                        "query_groups": [{
                            "row_id": "A",
                            "query": "service=auth api=login metric=TotalRequests",
                            "use_row_count": False,
                        }],
                    },
                ],
            },
        })
    slo_tf_window_based = sumologic.Slo("slo_tf_window_based",
        name="slo-tf-window-based",
        description="example SLO created with terraform",
        parent_id="0000000000000001",
        signal_type="Latency",
        service="auth",
        application="login",
        tags={
            "team": "metrics",
            "application": "sumologic",
        },
        compliances=[{
            "compliance_type": "Rolling",
            "size": "7d",
            "target": 99,
            "timezone": "Asia/Kolkata",
        }],
        indicator={
            "window_based_evaluation": {
                "op": "LessThan",
                "query_type": "Metrics",
                "aggregation": "Avg",
                "size": "1m",
                "threshold": 200,
                "queries": [{
                    "query_group_type": "Threshold",
                    "query_groups": [{
                        "row_id": "A",
                        "query": "metric=request_time_p90  service=auth api=login",
                        "use_row_count": False,
                    }],
                }],
            },
        })
    slo_tf_request_based = sumologic.Slo("slo_tf_request_based",
        name="slo-tf-request-based",
        description="example SLO created with terraform for request based SLI",
        parent_id=tf_slo_folder["id"],
        signal_type="Latency",
        service="auth",
        application="login",
        tags={
            "team": "metrics",
            "application": "sumologic",
        },
        compliances=[{
            "compliance_type": "Rolling",
            "size": "7d",
            "target": 99,
            "timezone": "Asia/Kolkata",
        }],
        indicator={
            "request_based_evaluation": {
                "op": "LessThanOrEqual",
                "query_type": "Logs",
                "threshold": 1,
                "queries": [{
                    "query_group_type": "Threshold",
                    "query_groups": [{
                        "row_id": "A",
                        "query": """          cluster=sedemostaging namespace=warp004*
                  | parse "Coffee preparation request time: * ms" as latency nodrop
                  |  if(isBlank(latency), "false", "true") as hasLatency
                  | where hasLatency = "true"
                  |  if(isBlank(latency), 0.0, latency) as latency
                  | latency/ 1000 as latency_sec
    """,
                        "use_row_count": False,
                        "field": "latency_sec",
                    }],
                }],
            },
        })
    slo_tf_monitor_based = sumologic.Slo("slo_tf_monitor_based",
        name="slo-tf-monitor-based",
        description="example of monitor based SLO created with terraform",
        parent_id="0000000000000001",
        signal_type="Error",
        service="auth",
        application="login",
        tags={
            "team": "metrics",
            "application": "sumologic",
        },
        compliances=[{
            "compliance_type": "Rolling",
            "size": "7d",
            "target": 99,
            "timezone": "Asia/Kolkata",
        }],
        indicator={
            "monitor_based_evaluation": {
                "monitor_triggers": {
                    "monitor_id": "0000000000BCB3A4",
                    "trigger_types": "Critical",
                },
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.NewSlo(ctx, "slo_tf_window_metric_ratio", &sumologic.SloArgs{
    			Name:        pulumi.String("login error rate"),
    			Description: pulumi.String("per minute login error rate over rolling 7 days"),
    			ParentId:    pulumi.String("0000000000000001"),
    			SignalType:  pulumi.String("Error"),
    			Service:     pulumi.String("auth"),
    			Application: pulumi.String("login"),
    			Tags: pulumi.StringMap{
    				"team":        pulumi.String("metrics"),
    				"application": pulumi.String("sumologic"),
    			},
    			Compliances: sumologic.SloComplianceArray{
    				&sumologic.SloComplianceArgs{
    					ComplianceType: pulumi.String("Rolling"),
    					Size:           pulumi.String("7d"),
    					Target:         pulumi.Float64(95),
    					Timezone:       pulumi.String("Asia/Kolkata"),
    				},
    			},
    			Indicator: &sumologic.SloIndicatorArgs{
    				WindowBasedEvaluation: &sumologic.SloIndicatorWindowBasedEvaluationArgs{
    					Op:        pulumi.String("LessThan"),
    					QueryType: pulumi.String("Metrics"),
    					Size:      pulumi.String("1m"),
    					Threshold: pulumi.Float64(99),
    					Queries: sumologic.SloIndicatorWindowBasedEvaluationQueryArray{
    						&sumologic.SloIndicatorWindowBasedEvaluationQueryArgs{
    							QueryGroupType: pulumi.String("Unsuccessful"),
    							QueryGroups: sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArray{
    								&sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs{
    									RowId:       pulumi.String("A"),
    									Query:       pulumi.String("service=auth api=login metric=HTTP_5XX_Count"),
    									UseRowCount: pulumi.Bool(false),
    								},
    							},
    						},
    						&sumologic.SloIndicatorWindowBasedEvaluationQueryArgs{
    							QueryGroupType: pulumi.String("Total"),
    							QueryGroups: sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArray{
    								&sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs{
    									RowId:       pulumi.String("A"),
    									Query:       pulumi.String("service=auth api=login metric=TotalRequests"),
    									UseRowCount: pulumi.Bool(false),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewSlo(ctx, "slo_tf_window_based", &sumologic.SloArgs{
    			Name:        pulumi.String("slo-tf-window-based"),
    			Description: pulumi.String("example SLO created with terraform"),
    			ParentId:    pulumi.String("0000000000000001"),
    			SignalType:  pulumi.String("Latency"),
    			Service:     pulumi.String("auth"),
    			Application: pulumi.String("login"),
    			Tags: pulumi.StringMap{
    				"team":        pulumi.String("metrics"),
    				"application": pulumi.String("sumologic"),
    			},
    			Compliances: sumologic.SloComplianceArray{
    				&sumologic.SloComplianceArgs{
    					ComplianceType: pulumi.String("Rolling"),
    					Size:           pulumi.String("7d"),
    					Target:         pulumi.Float64(99),
    					Timezone:       pulumi.String("Asia/Kolkata"),
    				},
    			},
    			Indicator: &sumologic.SloIndicatorArgs{
    				WindowBasedEvaluation: &sumologic.SloIndicatorWindowBasedEvaluationArgs{
    					Op:          pulumi.String("LessThan"),
    					QueryType:   pulumi.String("Metrics"),
    					Aggregation: pulumi.String("Avg"),
    					Size:        pulumi.String("1m"),
    					Threshold:   pulumi.Float64(200),
    					Queries: sumologic.SloIndicatorWindowBasedEvaluationQueryArray{
    						&sumologic.SloIndicatorWindowBasedEvaluationQueryArgs{
    							QueryGroupType: pulumi.String("Threshold"),
    							QueryGroups: sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArray{
    								&sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs{
    									RowId:       pulumi.String("A"),
    									Query:       pulumi.String("metric=request_time_p90  service=auth api=login"),
    									UseRowCount: pulumi.Bool(false),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewSlo(ctx, "slo_tf_request_based", &sumologic.SloArgs{
    			Name:        pulumi.String("slo-tf-request-based"),
    			Description: pulumi.String("example SLO created with terraform for request based SLI"),
    			ParentId:    pulumi.Any(tfSloFolder.Id),
    			SignalType:  pulumi.String("Latency"),
    			Service:     pulumi.String("auth"),
    			Application: pulumi.String("login"),
    			Tags: pulumi.StringMap{
    				"team":        pulumi.String("metrics"),
    				"application": pulumi.String("sumologic"),
    			},
    			Compliances: sumologic.SloComplianceArray{
    				&sumologic.SloComplianceArgs{
    					ComplianceType: pulumi.String("Rolling"),
    					Size:           pulumi.String("7d"),
    					Target:         pulumi.Float64(99),
    					Timezone:       pulumi.String("Asia/Kolkata"),
    				},
    			},
    			Indicator: &sumologic.SloIndicatorArgs{
    				RequestBasedEvaluation: &sumologic.SloIndicatorRequestBasedEvaluationArgs{
    					Op:        pulumi.String("LessThanOrEqual"),
    					QueryType: pulumi.String("Logs"),
    					Threshold: pulumi.Float64(1),
    					Queries: sumologic.SloIndicatorRequestBasedEvaluationQueryArray{
    						&sumologic.SloIndicatorRequestBasedEvaluationQueryArgs{
    							QueryGroupType: pulumi.String("Threshold"),
    							QueryGroups: sumologic.SloIndicatorRequestBasedEvaluationQueryQueryGroupArray{
    								&sumologic.SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs{
    									RowId: pulumi.String("A"),
    									Query: pulumi.String(`          cluster=sedemostaging namespace=warp004*
                  | parse "Coffee preparation request time: * ms" as latency nodrop
                  |  if(isBlank(latency), "false", "true") as hasLatency
                  | where hasLatency = "true"
                  |  if(isBlank(latency), 0.0, latency) as latency
                  | latency/ 1000 as latency_sec
    `),
    									UseRowCount: pulumi.Bool(false),
    									Field:       pulumi.String("latency_sec"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewSlo(ctx, "slo_tf_monitor_based", &sumologic.SloArgs{
    			Name:        pulumi.String("slo-tf-monitor-based"),
    			Description: pulumi.String("example of monitor based SLO created with terraform"),
    			ParentId:    pulumi.String("0000000000000001"),
    			SignalType:  pulumi.String("Error"),
    			Service:     pulumi.String("auth"),
    			Application: pulumi.String("login"),
    			Tags: pulumi.StringMap{
    				"team":        pulumi.String("metrics"),
    				"application": pulumi.String("sumologic"),
    			},
    			Compliances: sumologic.SloComplianceArray{
    				&sumologic.SloComplianceArgs{
    					ComplianceType: pulumi.String("Rolling"),
    					Size:           pulumi.String("7d"),
    					Target:         pulumi.Float64(99),
    					Timezone:       pulumi.String("Asia/Kolkata"),
    				},
    			},
    			Indicator: &sumologic.SloIndicatorArgs{
    				MonitorBasedEvaluation: &sumologic.SloIndicatorMonitorBasedEvaluationArgs{
    					MonitorTriggers: &sumologic.SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs{
    						MonitorId:    pulumi.String("0000000000BCB3A4"),
    						TriggerTypes: pulumi.String("Critical"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var sloTfWindowMetricRatio = new SumoLogic.Slo("slo_tf_window_metric_ratio", new()
        {
            Name = "login error rate",
            Description = "per minute login error rate over rolling 7 days",
            ParentId = "0000000000000001",
            SignalType = "Error",
            Service = "auth",
            Application = "login",
            Tags = 
            {
                { "team", "metrics" },
                { "application", "sumologic" },
            },
            Compliances = new[]
            {
                new SumoLogic.Inputs.SloComplianceArgs
                {
                    ComplianceType = "Rolling",
                    Size = "7d",
                    Target = 95,
                    Timezone = "Asia/Kolkata",
                },
            },
            Indicator = new SumoLogic.Inputs.SloIndicatorArgs
            {
                WindowBasedEvaluation = new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationArgs
                {
                    Op = "LessThan",
                    QueryType = "Metrics",
                    Size = "1m",
                    Threshold = 99,
                    Queries = new[]
                    {
                        new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryArgs
                        {
                            QueryGroupType = "Unsuccessful",
                            QueryGroups = new[]
                            {
                                new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs
                                {
                                    RowId = "A",
                                    Query = "service=auth api=login metric=HTTP_5XX_Count",
                                    UseRowCount = false,
                                },
                            },
                        },
                        new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryArgs
                        {
                            QueryGroupType = "Total",
                            QueryGroups = new[]
                            {
                                new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs
                                {
                                    RowId = "A",
                                    Query = "service=auth api=login metric=TotalRequests",
                                    UseRowCount = false,
                                },
                            },
                        },
                    },
                },
            },
        });
    
        var sloTfWindowBased = new SumoLogic.Slo("slo_tf_window_based", new()
        {
            Name = "slo-tf-window-based",
            Description = "example SLO created with terraform",
            ParentId = "0000000000000001",
            SignalType = "Latency",
            Service = "auth",
            Application = "login",
            Tags = 
            {
                { "team", "metrics" },
                { "application", "sumologic" },
            },
            Compliances = new[]
            {
                new SumoLogic.Inputs.SloComplianceArgs
                {
                    ComplianceType = "Rolling",
                    Size = "7d",
                    Target = 99,
                    Timezone = "Asia/Kolkata",
                },
            },
            Indicator = new SumoLogic.Inputs.SloIndicatorArgs
            {
                WindowBasedEvaluation = new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationArgs
                {
                    Op = "LessThan",
                    QueryType = "Metrics",
                    Aggregation = "Avg",
                    Size = "1m",
                    Threshold = 200,
                    Queries = new[]
                    {
                        new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryArgs
                        {
                            QueryGroupType = "Threshold",
                            QueryGroups = new[]
                            {
                                new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs
                                {
                                    RowId = "A",
                                    Query = "metric=request_time_p90  service=auth api=login",
                                    UseRowCount = false,
                                },
                            },
                        },
                    },
                },
            },
        });
    
        var sloTfRequestBased = new SumoLogic.Slo("slo_tf_request_based", new()
        {
            Name = "slo-tf-request-based",
            Description = "example SLO created with terraform for request based SLI",
            ParentId = tfSloFolder.Id,
            SignalType = "Latency",
            Service = "auth",
            Application = "login",
            Tags = 
            {
                { "team", "metrics" },
                { "application", "sumologic" },
            },
            Compliances = new[]
            {
                new SumoLogic.Inputs.SloComplianceArgs
                {
                    ComplianceType = "Rolling",
                    Size = "7d",
                    Target = 99,
                    Timezone = "Asia/Kolkata",
                },
            },
            Indicator = new SumoLogic.Inputs.SloIndicatorArgs
            {
                RequestBasedEvaluation = new SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationArgs
                {
                    Op = "LessThanOrEqual",
                    QueryType = "Logs",
                    Threshold = 1,
                    Queries = new[]
                    {
                        new SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationQueryArgs
                        {
                            QueryGroupType = "Threshold",
                            QueryGroups = new[]
                            {
                                new SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs
                                {
                                    RowId = "A",
                                    Query = @"          cluster=sedemostaging namespace=warp004*
                  | parse ""Coffee preparation request time: * ms"" as latency nodrop
                  |  if(isBlank(latency), ""false"", ""true"") as hasLatency
                  | where hasLatency = ""true""
                  |  if(isBlank(latency), 0.0, latency) as latency
                  | latency/ 1000 as latency_sec
    ",
                                    UseRowCount = false,
                                    Field = "latency_sec",
                                },
                            },
                        },
                    },
                },
            },
        });
    
        var sloTfMonitorBased = new SumoLogic.Slo("slo_tf_monitor_based", new()
        {
            Name = "slo-tf-monitor-based",
            Description = "example of monitor based SLO created with terraform",
            ParentId = "0000000000000001",
            SignalType = "Error",
            Service = "auth",
            Application = "login",
            Tags = 
            {
                { "team", "metrics" },
                { "application", "sumologic" },
            },
            Compliances = new[]
            {
                new SumoLogic.Inputs.SloComplianceArgs
                {
                    ComplianceType = "Rolling",
                    Size = "7d",
                    Target = 99,
                    Timezone = "Asia/Kolkata",
                },
            },
            Indicator = new SumoLogic.Inputs.SloIndicatorArgs
            {
                MonitorBasedEvaluation = new SumoLogic.Inputs.SloIndicatorMonitorBasedEvaluationArgs
                {
                    MonitorTriggers = new SumoLogic.Inputs.SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs
                    {
                        MonitorId = "0000000000BCB3A4",
                        TriggerTypes = "Critical",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.Slo;
    import com.pulumi.sumologic.SloArgs;
    import com.pulumi.sumologic.inputs.SloComplianceArgs;
    import com.pulumi.sumologic.inputs.SloIndicatorArgs;
    import com.pulumi.sumologic.inputs.SloIndicatorWindowBasedEvaluationArgs;
    import com.pulumi.sumologic.inputs.SloIndicatorRequestBasedEvaluationArgs;
    import com.pulumi.sumologic.inputs.SloIndicatorMonitorBasedEvaluationArgs;
    import com.pulumi.sumologic.inputs.SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs;
    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 sloTfWindowMetricRatio = new Slo("sloTfWindowMetricRatio", SloArgs.builder()
                .name("login error rate")
                .description("per minute login error rate over rolling 7 days")
                .parentId("0000000000000001")
                .signalType("Error")
                .service("auth")
                .application("login")
                .tags(Map.ofEntries(
                    Map.entry("team", "metrics"),
                    Map.entry("application", "sumologic")
                ))
                .compliances(SloComplianceArgs.builder()
                    .complianceType("Rolling")
                    .size("7d")
                    .target(95)
                    .timezone("Asia/Kolkata")
                    .build())
                .indicator(SloIndicatorArgs.builder()
                    .windowBasedEvaluation(SloIndicatorWindowBasedEvaluationArgs.builder()
                        .op("LessThan")
                        .queryType("Metrics")
                        .size("1m")
                        .threshold(99)
                        .queries(                    
                            SloIndicatorWindowBasedEvaluationQueryArgs.builder()
                                .queryGroupType("Unsuccessful")
                                .queryGroups(SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs.builder()
                                    .rowId("A")
                                    .query("service=auth api=login metric=HTTP_5XX_Count")
                                    .useRowCount(false)
                                    .build())
                                .build(),
                            SloIndicatorWindowBasedEvaluationQueryArgs.builder()
                                .queryGroupType("Total")
                                .queryGroups(SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs.builder()
                                    .rowId("A")
                                    .query("service=auth api=login metric=TotalRequests")
                                    .useRowCount(false)
                                    .build())
                                .build())
                        .build())
                    .build())
                .build());
    
            var sloTfWindowBased = new Slo("sloTfWindowBased", SloArgs.builder()
                .name("slo-tf-window-based")
                .description("example SLO created with terraform")
                .parentId("0000000000000001")
                .signalType("Latency")
                .service("auth")
                .application("login")
                .tags(Map.ofEntries(
                    Map.entry("team", "metrics"),
                    Map.entry("application", "sumologic")
                ))
                .compliances(SloComplianceArgs.builder()
                    .complianceType("Rolling")
                    .size("7d")
                    .target(99)
                    .timezone("Asia/Kolkata")
                    .build())
                .indicator(SloIndicatorArgs.builder()
                    .windowBasedEvaluation(SloIndicatorWindowBasedEvaluationArgs.builder()
                        .op("LessThan")
                        .queryType("Metrics")
                        .aggregation("Avg")
                        .size("1m")
                        .threshold(200)
                        .queries(SloIndicatorWindowBasedEvaluationQueryArgs.builder()
                            .queryGroupType("Threshold")
                            .queryGroups(SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs.builder()
                                .rowId("A")
                                .query("metric=request_time_p90  service=auth api=login")
                                .useRowCount(false)
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
            var sloTfRequestBased = new Slo("sloTfRequestBased", SloArgs.builder()
                .name("slo-tf-request-based")
                .description("example SLO created with terraform for request based SLI")
                .parentId(tfSloFolder.id())
                .signalType("Latency")
                .service("auth")
                .application("login")
                .tags(Map.ofEntries(
                    Map.entry("team", "metrics"),
                    Map.entry("application", "sumologic")
                ))
                .compliances(SloComplianceArgs.builder()
                    .complianceType("Rolling")
                    .size("7d")
                    .target(99)
                    .timezone("Asia/Kolkata")
                    .build())
                .indicator(SloIndicatorArgs.builder()
                    .requestBasedEvaluation(SloIndicatorRequestBasedEvaluationArgs.builder()
                        .op("LessThanOrEqual")
                        .queryType("Logs")
                        .threshold(1)
                        .queries(SloIndicatorRequestBasedEvaluationQueryArgs.builder()
                            .queryGroupType("Threshold")
                            .queryGroups(SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs.builder()
                                .rowId("A")
                                .query("""
              cluster=sedemostaging namespace=warp004*
                  | parse "Coffee preparation request time: * ms" as latency nodrop
                  |  if(isBlank(latency), "false", "true") as hasLatency
                  | where hasLatency = "true"
                  |  if(isBlank(latency), 0.0, latency) as latency
                  | latency/ 1000 as latency_sec
                                """)
                                .useRowCount(false)
                                .field("latency_sec")
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
            var sloTfMonitorBased = new Slo("sloTfMonitorBased", SloArgs.builder()
                .name("slo-tf-monitor-based")
                .description("example of monitor based SLO created with terraform")
                .parentId("0000000000000001")
                .signalType("Error")
                .service("auth")
                .application("login")
                .tags(Map.ofEntries(
                    Map.entry("team", "metrics"),
                    Map.entry("application", "sumologic")
                ))
                .compliances(SloComplianceArgs.builder()
                    .complianceType("Rolling")
                    .size("7d")
                    .target(99)
                    .timezone("Asia/Kolkata")
                    .build())
                .indicator(SloIndicatorArgs.builder()
                    .monitorBasedEvaluation(SloIndicatorMonitorBasedEvaluationArgs.builder()
                        .monitorTriggers(SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs.builder()
                            .monitorId("0000000000BCB3A4")
                            .triggerTypes("Critical")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      sloTfWindowMetricRatio:
        type: sumologic:Slo
        name: slo_tf_window_metric_ratio
        properties:
          name: login error rate
          description: per minute login error rate over rolling 7 days
          parentId: '0000000000000001'
          signalType: Error
          service: auth
          application: login
          tags:
            team: metrics
            application: sumologic
          compliances:
            - complianceType: Rolling
              size: 7d
              target: 95
              timezone: Asia/Kolkata
          indicator:
            windowBasedEvaluation:
              op: LessThan
              queryType: Metrics
              size: 1m
              threshold: 99
              queries:
                - queryGroupType: Unsuccessful
                  queryGroups:
                    - rowId: A
                      query: service=auth api=login metric=HTTP_5XX_Count
                      useRowCount: false
                - queryGroupType: Total
                  queryGroups:
                    - rowId: A
                      query: service=auth api=login metric=TotalRequests
                      useRowCount: false
      sloTfWindowBased:
        type: sumologic:Slo
        name: slo_tf_window_based
        properties:
          name: slo-tf-window-based
          description: example SLO created with terraform
          parentId: '0000000000000001'
          signalType: Latency
          service: auth
          application: login
          tags:
            team: metrics
            application: sumologic
          compliances:
            - complianceType: Rolling
              size: 7d
              target: 99
              timezone: Asia/Kolkata
          indicator:
            windowBasedEvaluation:
              op: LessThan
              queryType: Metrics
              aggregation: Avg
              size: 1m
              threshold: 200
              queries:
                - queryGroupType: Threshold
                  queryGroups:
                    - rowId: A
                      query: metric=request_time_p90  service=auth api=login
                      useRowCount: false
      sloTfRequestBased:
        type: sumologic:Slo
        name: slo_tf_request_based
        properties:
          name: slo-tf-request-based
          description: example SLO created with terraform for request based SLI
          parentId: ${tfSloFolder.id}
          signalType: Latency
          service: auth
          application: login
          tags:
            team: metrics
            application: sumologic
          compliances:
            - complianceType: Rolling
              size: 7d
              target: 99
              timezone: Asia/Kolkata
          indicator:
            requestBasedEvaluation:
              op: LessThanOrEqual
              queryType: Logs
              threshold: 1
              queries:
                - queryGroupType: Threshold
                  queryGroups:
                    - rowId: A
                      query: |2
                                  cluster=sedemostaging namespace=warp004*
                                      | parse "Coffee preparation request time: * ms" as latency nodrop
                                      |  if(isBlank(latency), "false", "true") as hasLatency
                                      | where hasLatency = "true"
                                      |  if(isBlank(latency), 0.0, latency) as latency
                                      | latency/ 1000 as latency_sec
                      useRowCount: false
                      field: latency_sec
      sloTfMonitorBased:
        type: sumologic:Slo
        name: slo_tf_monitor_based
        properties:
          name: slo-tf-monitor-based
          description: example of monitor based SLO created with terraform
          parentId: '0000000000000001'
          signalType: Error
          service: auth
          application: login
          tags:
            team: metrics
            application: sumologic
          compliances:
            - complianceType: Rolling
              size: 7d
              target: 99
              timezone: Asia/Kolkata
          indicator:
            monitorBasedEvaluation:
              monitorTriggers:
                monitorId: 0000000000BCB3A4
                triggerTypes: Critical
    

    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,
            indicator: Optional[SloIndicatorArgs] = None,
            compliances: Optional[Sequence[SloComplianceArgs]] = None,
            signal_type: Optional[str] = None,
            is_system: Optional[bool] = None,
            modified_by: Optional[str] = None,
            created_by: Optional[str] = None,
            is_locked: Optional[bool] = None,
            is_mutable: Optional[bool] = None,
            application: Optional[str] = None,
            modified_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            parent_id: Optional[str] = None,
            post_request_map: Optional[Mapping[str, str]] = None,
            service: Optional[str] = None,
            created_at: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            version: Optional[int] = 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: sumologic: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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sloResource = new SumoLogic.Slo("sloResource", new()
    {
        Indicator = new SumoLogic.Inputs.SloIndicatorArgs
        {
            MonitorBasedEvaluation = new SumoLogic.Inputs.SloIndicatorMonitorBasedEvaluationArgs
            {
                MonitorTriggers = new SumoLogic.Inputs.SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs
                {
                    MonitorId = "string",
                    TriggerTypes = "string",
                },
            },
            RequestBasedEvaluation = new SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationArgs
            {
                Queries = new[]
                {
                    new SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationQueryArgs
                    {
                        QueryGroupType = "string",
                        QueryGroups = new[]
                        {
                            new SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs
                            {
                                Query = "string",
                                RowId = "string",
                                UseRowCount = false,
                                Field = "string",
                            },
                        },
                    },
                },
                QueryType = "string",
                Op = "string",
                Threshold = 0,
            },
            WindowBasedEvaluation = new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationArgs
            {
                Op = "string",
                Queries = new[]
                {
                    new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryArgs
                    {
                        QueryGroupType = "string",
                        QueryGroups = new[]
                        {
                            new SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs
                            {
                                Query = "string",
                                RowId = "string",
                                UseRowCount = false,
                                Field = "string",
                            },
                        },
                    },
                },
                QueryType = "string",
                Size = "string",
                Threshold = 0,
                Aggregation = "string",
            },
        },
        Compliances = new[]
        {
            new SumoLogic.Inputs.SloComplianceArgs
            {
                ComplianceType = "string",
                Size = "string",
                Target = 0,
                Timezone = "string",
                StartFrom = "string",
            },
        },
        SignalType = "string",
        IsSystem = false,
        ModifiedBy = "string",
        CreatedBy = "string",
        IsLocked = false,
        IsMutable = false,
        Application = "string",
        ModifiedAt = "string",
        Description = "string",
        Name = "string",
        ParentId = "string",
        PostRequestMap = 
        {
            { "string", "string" },
        },
        Service = "string",
        CreatedAt = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Version = 0,
    });
    
    example, err := sumologic.NewSlo(ctx, "sloResource", &sumologic.SloArgs{
    	Indicator: &sumologic.SloIndicatorArgs{
    		MonitorBasedEvaluation: &sumologic.SloIndicatorMonitorBasedEvaluationArgs{
    			MonitorTriggers: &sumologic.SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs{
    				MonitorId:    pulumi.String("string"),
    				TriggerTypes: pulumi.String("string"),
    			},
    		},
    		RequestBasedEvaluation: &sumologic.SloIndicatorRequestBasedEvaluationArgs{
    			Queries: sumologic.SloIndicatorRequestBasedEvaluationQueryArray{
    				&sumologic.SloIndicatorRequestBasedEvaluationQueryArgs{
    					QueryGroupType: pulumi.String("string"),
    					QueryGroups: sumologic.SloIndicatorRequestBasedEvaluationQueryQueryGroupArray{
    						&sumologic.SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs{
    							Query:       pulumi.String("string"),
    							RowId:       pulumi.String("string"),
    							UseRowCount: pulumi.Bool(false),
    							Field:       pulumi.String("string"),
    						},
    					},
    				},
    			},
    			QueryType: pulumi.String("string"),
    			Op:        pulumi.String("string"),
    			Threshold: pulumi.Float64(0),
    		},
    		WindowBasedEvaluation: &sumologic.SloIndicatorWindowBasedEvaluationArgs{
    			Op: pulumi.String("string"),
    			Queries: sumologic.SloIndicatorWindowBasedEvaluationQueryArray{
    				&sumologic.SloIndicatorWindowBasedEvaluationQueryArgs{
    					QueryGroupType: pulumi.String("string"),
    					QueryGroups: sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArray{
    						&sumologic.SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs{
    							Query:       pulumi.String("string"),
    							RowId:       pulumi.String("string"),
    							UseRowCount: pulumi.Bool(false),
    							Field:       pulumi.String("string"),
    						},
    					},
    				},
    			},
    			QueryType:   pulumi.String("string"),
    			Size:        pulumi.String("string"),
    			Threshold:   pulumi.Float64(0),
    			Aggregation: pulumi.String("string"),
    		},
    	},
    	Compliances: sumologic.SloComplianceArray{
    		&sumologic.SloComplianceArgs{
    			ComplianceType: pulumi.String("string"),
    			Size:           pulumi.String("string"),
    			Target:         pulumi.Float64(0),
    			Timezone:       pulumi.String("string"),
    			StartFrom:      pulumi.String("string"),
    		},
    	},
    	SignalType:  pulumi.String("string"),
    	IsSystem:    pulumi.Bool(false),
    	ModifiedBy:  pulumi.String("string"),
    	CreatedBy:   pulumi.String("string"),
    	IsLocked:    pulumi.Bool(false),
    	IsMutable:   pulumi.Bool(false),
    	Application: pulumi.String("string"),
    	ModifiedAt:  pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	ParentId:    pulumi.String("string"),
    	PostRequestMap: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Service:   pulumi.String("string"),
    	CreatedAt: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Version: pulumi.Int(0),
    })
    
    var sloResource = new Slo("sloResource", SloArgs.builder()
        .indicator(SloIndicatorArgs.builder()
            .monitorBasedEvaluation(SloIndicatorMonitorBasedEvaluationArgs.builder()
                .monitorTriggers(SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs.builder()
                    .monitorId("string")
                    .triggerTypes("string")
                    .build())
                .build())
            .requestBasedEvaluation(SloIndicatorRequestBasedEvaluationArgs.builder()
                .queries(SloIndicatorRequestBasedEvaluationQueryArgs.builder()
                    .queryGroupType("string")
                    .queryGroups(SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs.builder()
                        .query("string")
                        .rowId("string")
                        .useRowCount(false)
                        .field("string")
                        .build())
                    .build())
                .queryType("string")
                .op("string")
                .threshold(0)
                .build())
            .windowBasedEvaluation(SloIndicatorWindowBasedEvaluationArgs.builder()
                .op("string")
                .queries(SloIndicatorWindowBasedEvaluationQueryArgs.builder()
                    .queryGroupType("string")
                    .queryGroups(SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs.builder()
                        .query("string")
                        .rowId("string")
                        .useRowCount(false)
                        .field("string")
                        .build())
                    .build())
                .queryType("string")
                .size("string")
                .threshold(0)
                .aggregation("string")
                .build())
            .build())
        .compliances(SloComplianceArgs.builder()
            .complianceType("string")
            .size("string")
            .target(0)
            .timezone("string")
            .startFrom("string")
            .build())
        .signalType("string")
        .isSystem(false)
        .modifiedBy("string")
        .createdBy("string")
        .isLocked(false)
        .isMutable(false)
        .application("string")
        .modifiedAt("string")
        .description("string")
        .name("string")
        .parentId("string")
        .postRequestMap(Map.of("string", "string"))
        .service("string")
        .createdAt("string")
        .tags(Map.of("string", "string"))
        .version(0)
        .build());
    
    slo_resource = sumologic.Slo("sloResource",
        indicator={
            "monitor_based_evaluation": {
                "monitor_triggers": {
                    "monitor_id": "string",
                    "trigger_types": "string",
                },
            },
            "request_based_evaluation": {
                "queries": [{
                    "query_group_type": "string",
                    "query_groups": [{
                        "query": "string",
                        "row_id": "string",
                        "use_row_count": False,
                        "field": "string",
                    }],
                }],
                "query_type": "string",
                "op": "string",
                "threshold": 0,
            },
            "window_based_evaluation": {
                "op": "string",
                "queries": [{
                    "query_group_type": "string",
                    "query_groups": [{
                        "query": "string",
                        "row_id": "string",
                        "use_row_count": False,
                        "field": "string",
                    }],
                }],
                "query_type": "string",
                "size": "string",
                "threshold": 0,
                "aggregation": "string",
            },
        },
        compliances=[{
            "compliance_type": "string",
            "size": "string",
            "target": 0,
            "timezone": "string",
            "start_from": "string",
        }],
        signal_type="string",
        is_system=False,
        modified_by="string",
        created_by="string",
        is_locked=False,
        is_mutable=False,
        application="string",
        modified_at="string",
        description="string",
        name="string",
        parent_id="string",
        post_request_map={
            "string": "string",
        },
        service="string",
        created_at="string",
        tags={
            "string": "string",
        },
        version=0)
    
    const sloResource = new sumologic.Slo("sloResource", {
        indicator: {
            monitorBasedEvaluation: {
                monitorTriggers: {
                    monitorId: "string",
                    triggerTypes: "string",
                },
            },
            requestBasedEvaluation: {
                queries: [{
                    queryGroupType: "string",
                    queryGroups: [{
                        query: "string",
                        rowId: "string",
                        useRowCount: false,
                        field: "string",
                    }],
                }],
                queryType: "string",
                op: "string",
                threshold: 0,
            },
            windowBasedEvaluation: {
                op: "string",
                queries: [{
                    queryGroupType: "string",
                    queryGroups: [{
                        query: "string",
                        rowId: "string",
                        useRowCount: false,
                        field: "string",
                    }],
                }],
                queryType: "string",
                size: "string",
                threshold: 0,
                aggregation: "string",
            },
        },
        compliances: [{
            complianceType: "string",
            size: "string",
            target: 0,
            timezone: "string",
            startFrom: "string",
        }],
        signalType: "string",
        isSystem: false,
        modifiedBy: "string",
        createdBy: "string",
        isLocked: false,
        isMutable: false,
        application: "string",
        modifiedAt: "string",
        description: "string",
        name: "string",
        parentId: "string",
        postRequestMap: {
            string: "string",
        },
        service: "string",
        createdAt: "string",
        tags: {
            string: "string",
        },
        version: 0,
    });
    
    type: sumologic:Slo
    properties:
        application: string
        compliances:
            - complianceType: string
              size: string
              startFrom: string
              target: 0
              timezone: string
        createdAt: string
        createdBy: string
        description: string
        indicator:
            monitorBasedEvaluation:
                monitorTriggers:
                    monitorId: string
                    triggerTypes: string
            requestBasedEvaluation:
                op: string
                queries:
                    - queryGroupType: string
                      queryGroups:
                        - field: string
                          query: string
                          rowId: string
                          useRowCount: false
                queryType: string
                threshold: 0
            windowBasedEvaluation:
                aggregation: string
                op: string
                queries:
                    - queryGroupType: string
                      queryGroups:
                        - field: string
                          query: string
                          rowId: string
                          useRowCount: false
                queryType: string
                size: string
                threshold: 0
        isLocked: false
        isMutable: false
        isSystem: false
        modifiedAt: string
        modifiedBy: string
        name: string
        parentId: string
        postRequestMap:
            string: string
        service: string
        signalType: string
        tags:
            string: string
        version: 0
    

    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:

    Compliances List<Pulumi.SumoLogic.Inputs.SloCompliance>
    The compliance settings for the SLO.
    Indicator Pulumi.SumoLogic.Inputs.SloIndicator
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    SignalType string
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    Application string
    Name of the application.
    CreatedAt string
    CreatedBy string
    Description string
    The description of the SLO.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Name string
    The name of the SLO. The name must be alphanumeric.
    ParentId string
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    PostRequestMap Dictionary<string, string>
    Service string
    Name of the service.
    Tags Dictionary<string, string>
    A map defining tag keys and tag values for the SLO.
    Version int
    Compliances []SloComplianceArgs
    The compliance settings for the SLO.
    Indicator SloIndicatorArgs
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    SignalType string
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    Application string
    Name of the application.
    CreatedAt string
    CreatedBy string
    Description string
    The description of the SLO.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Name string
    The name of the SLO. The name must be alphanumeric.
    ParentId string
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    PostRequestMap map[string]string
    Service string
    Name of the service.
    Tags map[string]string
    A map defining tag keys and tag values for the SLO.
    Version int
    compliances List<SloCompliance>
    The compliance settings for the SLO.
    indicator SloIndicator
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    signalType String
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    application String
    Name of the application.
    createdAt String
    createdBy String
    description String
    The description of the SLO.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    name String
    The name of the SLO. The name must be alphanumeric.
    parentId String
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    postRequestMap Map<String,String>
    service String
    Name of the service.
    tags Map<String,String>
    A map defining tag keys and tag values for the SLO.
    version Integer
    compliances SloCompliance[]
    The compliance settings for the SLO.
    indicator SloIndicator
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    signalType string
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    application string
    Name of the application.
    createdAt string
    createdBy string
    description string
    The description of the SLO.
    isLocked boolean
    isMutable boolean
    isSystem boolean
    modifiedAt string
    modifiedBy string
    name string
    The name of the SLO. The name must be alphanumeric.
    parentId string
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    postRequestMap {[key: string]: string}
    service string
    Name of the service.
    tags {[key: string]: string}
    A map defining tag keys and tag values for the SLO.
    version number
    compliances Sequence[SloComplianceArgs]
    The compliance settings for the SLO.
    indicator SloIndicatorArgs
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    signal_type str
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    application str
    Name of the application.
    created_at str
    created_by str
    description str
    The description of the SLO.
    is_locked bool
    is_mutable bool
    is_system bool
    modified_at str
    modified_by str
    name str
    The name of the SLO. The name must be alphanumeric.
    parent_id str
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    post_request_map Mapping[str, str]
    service str
    Name of the service.
    tags Mapping[str, str]
    A map defining tag keys and tag values for the SLO.
    version int
    compliances List<Property Map>
    The compliance settings for the SLO.
    indicator Property Map
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    signalType String
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    application String
    Name of the application.
    createdAt String
    createdBy String
    description String
    The description of the SLO.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    name String
    The name of the SLO. The name must be alphanumeric.
    parentId String
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    postRequestMap Map<String>
    service String
    Name of the service.
    tags Map<String>
    A map defining tag keys and tag values for the SLO.
    version Number

    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,
            application: Optional[str] = None,
            compliances: Optional[Sequence[SloComplianceArgs]] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            indicator: Optional[SloIndicatorArgs] = None,
            is_locked: Optional[bool] = None,
            is_mutable: Optional[bool] = None,
            is_system: Optional[bool] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            name: Optional[str] = None,
            parent_id: Optional[str] = None,
            post_request_map: Optional[Mapping[str, str]] = None,
            service: Optional[str] = None,
            signal_type: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            version: Optional[int] = 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:
    Application string
    Name of the application.
    Compliances List<Pulumi.SumoLogic.Inputs.SloCompliance>
    The compliance settings for the SLO.
    CreatedAt string
    CreatedBy string
    Description string
    The description of the SLO.
    Indicator Pulumi.SumoLogic.Inputs.SloIndicator
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Name string
    The name of the SLO. The name must be alphanumeric.
    ParentId string
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    PostRequestMap Dictionary<string, string>
    Service string
    Name of the service.
    SignalType string
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    Tags Dictionary<string, string>
    A map defining tag keys and tag values for the SLO.
    Version int
    Application string
    Name of the application.
    Compliances []SloComplianceArgs
    The compliance settings for the SLO.
    CreatedAt string
    CreatedBy string
    Description string
    The description of the SLO.
    Indicator SloIndicatorArgs
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Name string
    The name of the SLO. The name must be alphanumeric.
    ParentId string
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    PostRequestMap map[string]string
    Service string
    Name of the service.
    SignalType string
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    Tags map[string]string
    A map defining tag keys and tag values for the SLO.
    Version int
    application String
    Name of the application.
    compliances List<SloCompliance>
    The compliance settings for the SLO.
    createdAt String
    createdBy String
    description String
    The description of the SLO.
    indicator SloIndicator
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    name String
    The name of the SLO. The name must be alphanumeric.
    parentId String
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    postRequestMap Map<String,String>
    service String
    Name of the service.
    signalType String
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    tags Map<String,String>
    A map defining tag keys and tag values for the SLO.
    version Integer
    application string
    Name of the application.
    compliances SloCompliance[]
    The compliance settings for the SLO.
    createdAt string
    createdBy string
    description string
    The description of the SLO.
    indicator SloIndicator
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    isLocked boolean
    isMutable boolean
    isSystem boolean
    modifiedAt string
    modifiedBy string
    name string
    The name of the SLO. The name must be alphanumeric.
    parentId string
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    postRequestMap {[key: string]: string}
    service string
    Name of the service.
    signalType string
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    tags {[key: string]: string}
    A map defining tag keys and tag values for the SLO.
    version number
    application str
    Name of the application.
    compliances Sequence[SloComplianceArgs]
    The compliance settings for the SLO.
    created_at str
    created_by str
    description str
    The description of the SLO.
    indicator SloIndicatorArgs
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    is_locked bool
    is_mutable bool
    is_system bool
    modified_at str
    modified_by str
    name str
    The name of the SLO. The name must be alphanumeric.
    parent_id str
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    post_request_map Mapping[str, str]
    service str
    Name of the service.
    signal_type str
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    tags Mapping[str, str]
    A map defining tag keys and tag values for the SLO.
    version int
    application String
    Name of the application.
    compliances List<Property Map>
    The compliance settings for the SLO.
    createdAt String
    createdBy String
    description String
    The description of the SLO.
    indicator Property Map
    The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the slo help page

    • window_based_evaluation - Evaluate SLI using successful/total windows.
    • request_based_evaluation - Evaluate SLI based on occurrence of successful events / total events over entire compliance period.
    • monitor_based_evaluation - SLIs for Monitor-based SLOs are calculated at a granularity of 1 minute. A minute is treated as unsuccessful if the Monitor threshold is violated at any point of time within that minute.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    name String
    The name of the SLO. The name must be alphanumeric.
    parentId String
    The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
    postRequestMap Map<String>
    service String
    Name of the service.
    signalType String
    The type of SLO. Valid values are Latency, Error, Throughput, Availability , Other. Defaults to Latency.
    tags Map<String>
    A map defining tag keys and tag values for the SLO.
    version Number

    Supporting Types

    SloCompliance, SloComplianceArgs

    ComplianceType string
    The type of compliance to use. Valid values are Rolling or Calendar.
    Size string
    The size of the compliance period to use.

    • For Rolling compliance type it must be a multiple of days e.g. 1d, 2d.
    • For Calendar compliance type the allowed values are Week, Month, Quarter.
    Target double
    Target percentage for the SLI over the compliance period. Must be a number between 0 and 100.
    Timezone string
    Time zone for the SLO compliance. Follow the format in the IANA Time Zone Database.
    StartFrom string
    Start of the calendar window. For Week its required and it would be the day of the week (for e.g. Sunday, Monday etc). For Quarter its required, it would be the first month of the start of quarter (for e.g. January, February etc.). For Month it's not required and is set to first day of the month.
    ComplianceType string
    The type of compliance to use. Valid values are Rolling or Calendar.
    Size string
    The size of the compliance period to use.

    • For Rolling compliance type it must be a multiple of days e.g. 1d, 2d.
    • For Calendar compliance type the allowed values are Week, Month, Quarter.
    Target float64
    Target percentage for the SLI over the compliance period. Must be a number between 0 and 100.
    Timezone string
    Time zone for the SLO compliance. Follow the format in the IANA Time Zone Database.
    StartFrom string
    Start of the calendar window. For Week its required and it would be the day of the week (for e.g. Sunday, Monday etc). For Quarter its required, it would be the first month of the start of quarter (for e.g. January, February etc.). For Month it's not required and is set to first day of the month.
    complianceType String
    The type of compliance to use. Valid values are Rolling or Calendar.
    size String
    The size of the compliance period to use.

    • For Rolling compliance type it must be a multiple of days e.g. 1d, 2d.
    • For Calendar compliance type the allowed values are Week, Month, Quarter.
    target Double
    Target percentage for the SLI over the compliance period. Must be a number between 0 and 100.
    timezone String
    Time zone for the SLO compliance. Follow the format in the IANA Time Zone Database.
    startFrom String
    Start of the calendar window. For Week its required and it would be the day of the week (for e.g. Sunday, Monday etc). For Quarter its required, it would be the first month of the start of quarter (for e.g. January, February etc.). For Month it's not required and is set to first day of the month.
    complianceType string
    The type of compliance to use. Valid values are Rolling or Calendar.
    size string
    The size of the compliance period to use.

    • For Rolling compliance type it must be a multiple of days e.g. 1d, 2d.
    • For Calendar compliance type the allowed values are Week, Month, Quarter.
    target number
    Target percentage for the SLI over the compliance period. Must be a number between 0 and 100.
    timezone string
    Time zone for the SLO compliance. Follow the format in the IANA Time Zone Database.
    startFrom string
    Start of the calendar window. For Week its required and it would be the day of the week (for e.g. Sunday, Monday etc). For Quarter its required, it would be the first month of the start of quarter (for e.g. January, February etc.). For Month it's not required and is set to first day of the month.
    compliance_type str
    The type of compliance to use. Valid values are Rolling or Calendar.
    size str
    The size of the compliance period to use.

    • For Rolling compliance type it must be a multiple of days e.g. 1d, 2d.
    • For Calendar compliance type the allowed values are Week, Month, Quarter.
    target float
    Target percentage for the SLI over the compliance period. Must be a number between 0 and 100.
    timezone str
    Time zone for the SLO compliance. Follow the format in the IANA Time Zone Database.
    start_from str
    Start of the calendar window. For Week its required and it would be the day of the week (for e.g. Sunday, Monday etc). For Quarter its required, it would be the first month of the start of quarter (for e.g. January, February etc.). For Month it's not required and is set to first day of the month.
    complianceType String
    The type of compliance to use. Valid values are Rolling or Calendar.
    size String
    The size of the compliance period to use.

    • For Rolling compliance type it must be a multiple of days e.g. 1d, 2d.
    • For Calendar compliance type the allowed values are Week, Month, Quarter.
    target Number
    Target percentage for the SLI over the compliance period. Must be a number between 0 and 100.
    timezone String
    Time zone for the SLO compliance. Follow the format in the IANA Time Zone Database.
    startFrom String
    Start of the calendar window. For Week its required and it would be the day of the week (for e.g. Sunday, Monday etc). For Quarter its required, it would be the first month of the start of quarter (for e.g. January, February etc.). For Month it's not required and is set to first day of the month.

    SloIndicator, SloIndicatorArgs

    SloIndicatorMonitorBasedEvaluation, SloIndicatorMonitorBasedEvaluationArgs

    MonitorTriggers Pulumi.SumoLogic.Inputs.SloIndicatorMonitorBasedEvaluationMonitorTriggers
    Monitor details on which SLO will be based. Only single monitor is supported here.
    MonitorTriggers SloIndicatorMonitorBasedEvaluationMonitorTriggers
    Monitor details on which SLO will be based. Only single monitor is supported here.
    monitorTriggers SloIndicatorMonitorBasedEvaluationMonitorTriggers
    Monitor details on which SLO will be based. Only single monitor is supported here.
    monitorTriggers SloIndicatorMonitorBasedEvaluationMonitorTriggers
    Monitor details on which SLO will be based. Only single monitor is supported here.
    monitor_triggers SloIndicatorMonitorBasedEvaluationMonitorTriggers
    Monitor details on which SLO will be based. Only single monitor is supported here.
    monitorTriggers Property Map
    Monitor details on which SLO will be based. Only single monitor is supported here.

    SloIndicatorMonitorBasedEvaluationMonitorTriggers, SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs

    MonitorId string
    ID of the monitor. Ex: 0000000000BCB3A4
    TriggerTypes string
    Type of monitor trigger which will attribute towards a successful or unsuccessful SLO window. Valid values are Critical, Warning, MissingData. Only one trigger type is supported.
    MonitorId string
    ID of the monitor. Ex: 0000000000BCB3A4
    TriggerTypes string
    Type of monitor trigger which will attribute towards a successful or unsuccessful SLO window. Valid values are Critical, Warning, MissingData. Only one trigger type is supported.
    monitorId String
    ID of the monitor. Ex: 0000000000BCB3A4
    triggerTypes String
    Type of monitor trigger which will attribute towards a successful or unsuccessful SLO window. Valid values are Critical, Warning, MissingData. Only one trigger type is supported.
    monitorId string
    ID of the monitor. Ex: 0000000000BCB3A4
    triggerTypes string
    Type of monitor trigger which will attribute towards a successful or unsuccessful SLO window. Valid values are Critical, Warning, MissingData. Only one trigger type is supported.
    monitor_id str
    ID of the monitor. Ex: 0000000000BCB3A4
    trigger_types str
    Type of monitor trigger which will attribute towards a successful or unsuccessful SLO window. Valid values are Critical, Warning, MissingData. Only one trigger type is supported.
    monitorId String
    ID of the monitor. Ex: 0000000000BCB3A4
    triggerTypes String
    Type of monitor trigger which will attribute towards a successful or unsuccessful SLO window. Valid values are Critical, Warning, MissingData. Only one trigger type is supported.

    SloIndicatorRequestBasedEvaluation, SloIndicatorRequestBasedEvaluationArgs

    Queries List<Pulumi.SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationQuery>
    The queries to use.
    QueryType string
    The type of query to use. Valid values are Metrics or Logs.
    Op string
    Comparison function with threshold. Valid values are LessThan, LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    Threshold double
    Compared against threshold query's raw data points to determine success criteria.
    Queries []SloIndicatorRequestBasedEvaluationQuery
    The queries to use.
    QueryType string
    The type of query to use. Valid values are Metrics or Logs.
    Op string
    Comparison function with threshold. Valid values are LessThan, LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    Threshold float64
    Compared against threshold query's raw data points to determine success criteria.
    queries List<SloIndicatorRequestBasedEvaluationQuery>
    The queries to use.
    queryType String
    The type of query to use. Valid values are Metrics or Logs.
    op String
    Comparison function with threshold. Valid values are LessThan, LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    threshold Double
    Compared against threshold query's raw data points to determine success criteria.
    queries SloIndicatorRequestBasedEvaluationQuery[]
    The queries to use.
    queryType string
    The type of query to use. Valid values are Metrics or Logs.
    op string
    Comparison function with threshold. Valid values are LessThan, LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    threshold number
    Compared against threshold query's raw data points to determine success criteria.
    queries Sequence[SloIndicatorRequestBasedEvaluationQuery]
    The queries to use.
    query_type str
    The type of query to use. Valid values are Metrics or Logs.
    op str
    Comparison function with threshold. Valid values are LessThan, LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    threshold float
    Compared against threshold query's raw data points to determine success criteria.
    queries List<Property Map>
    The queries to use.
    queryType String
    The type of query to use. Valid values are Metrics or Logs.
    op String
    Comparison function with threshold. Valid values are LessThan, LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    threshold Number
    Compared against threshold query's raw data points to determine success criteria.

    SloIndicatorRequestBasedEvaluationQuery, SloIndicatorRequestBasedEvaluationQueryArgs

    QueryGroupType string
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    QueryGroups List<Pulumi.SumoLogic.Inputs.SloIndicatorRequestBasedEvaluationQueryQueryGroup>
    List of queries to use.
    QueryGroupType string
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    QueryGroups []SloIndicatorRequestBasedEvaluationQueryQueryGroup
    List of queries to use.
    queryGroupType String
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    queryGroups List<SloIndicatorRequestBasedEvaluationQueryQueryGroup>
    List of queries to use.
    queryGroupType string
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    queryGroups SloIndicatorRequestBasedEvaluationQueryQueryGroup[]
    List of queries to use.
    query_group_type str
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    query_groups Sequence[SloIndicatorRequestBasedEvaluationQueryQueryGroup]
    List of queries to use.
    queryGroupType String
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    queryGroups List<Property Map>
    List of queries to use.

    SloIndicatorRequestBasedEvaluationQueryQueryGroup, SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs

    Query string
    The query string to use.
    RowId string
    The row ID to use.
    UseRowCount bool
    Whether to use the row count. Defaults to false.
    Field string
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    Query string
    The query string to use.
    RowId string
    The row ID to use.
    UseRowCount bool
    Whether to use the row count. Defaults to false.
    Field string
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query String
    The query string to use.
    rowId String
    The row ID to use.
    useRowCount Boolean
    Whether to use the row count. Defaults to false.
    field String
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query string
    The query string to use.
    rowId string
    The row ID to use.
    useRowCount boolean
    Whether to use the row count. Defaults to false.
    field string
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query str
    The query string to use.
    row_id str
    The row ID to use.
    use_row_count bool
    Whether to use the row count. Defaults to false.
    field str
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query String
    The query string to use.
    rowId String
    The row ID to use.
    useRowCount Boolean
    Whether to use the row count. Defaults to false.
    field String
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.

    SloIndicatorWindowBasedEvaluation, SloIndicatorWindowBasedEvaluationArgs

    Op string
    The operator used to define a successful window. Valid values are LessThan , LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    Queries List<Pulumi.SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQuery>
    The queries to use.
    QueryType string
    The type of query to use. Valid values are Metrics or Logs.
    Size string
    The size of the window to use, minimum of 1m and maximum of 1h.
    Threshold double
    Threshold for classifying window as successful or unsuccessful, i.e. the minimum value for (good windows / total windows) * 100.
    Aggregation string
    Aggregation function applied over each window to arrive at SLI. Valid values are Avg , Sum, Count, Max, Min and p[1-99].
    Op string
    The operator used to define a successful window. Valid values are LessThan , LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    Queries []SloIndicatorWindowBasedEvaluationQuery
    The queries to use.
    QueryType string
    The type of query to use. Valid values are Metrics or Logs.
    Size string
    The size of the window to use, minimum of 1m and maximum of 1h.
    Threshold float64
    Threshold for classifying window as successful or unsuccessful, i.e. the minimum value for (good windows / total windows) * 100.
    Aggregation string
    Aggregation function applied over each window to arrive at SLI. Valid values are Avg , Sum, Count, Max, Min and p[1-99].
    op String
    The operator used to define a successful window. Valid values are LessThan , LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    queries List<SloIndicatorWindowBasedEvaluationQuery>
    The queries to use.
    queryType String
    The type of query to use. Valid values are Metrics or Logs.
    size String
    The size of the window to use, minimum of 1m and maximum of 1h.
    threshold Double
    Threshold for classifying window as successful or unsuccessful, i.e. the minimum value for (good windows / total windows) * 100.
    aggregation String
    Aggregation function applied over each window to arrive at SLI. Valid values are Avg , Sum, Count, Max, Min and p[1-99].
    op string
    The operator used to define a successful window. Valid values are LessThan , LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    queries SloIndicatorWindowBasedEvaluationQuery[]
    The queries to use.
    queryType string
    The type of query to use. Valid values are Metrics or Logs.
    size string
    The size of the window to use, minimum of 1m and maximum of 1h.
    threshold number
    Threshold for classifying window as successful or unsuccessful, i.e. the minimum value for (good windows / total windows) * 100.
    aggregation string
    Aggregation function applied over each window to arrive at SLI. Valid values are Avg , Sum, Count, Max, Min and p[1-99].
    op str
    The operator used to define a successful window. Valid values are LessThan , LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    queries Sequence[SloIndicatorWindowBasedEvaluationQuery]
    The queries to use.
    query_type str
    The type of query to use. Valid values are Metrics or Logs.
    size str
    The size of the window to use, minimum of 1m and maximum of 1h.
    threshold float
    Threshold for classifying window as successful or unsuccessful, i.e. the minimum value for (good windows / total windows) * 100.
    aggregation str
    Aggregation function applied over each window to arrive at SLI. Valid values are Avg , Sum, Count, Max, Min and p[1-99].
    op String
    The operator used to define a successful window. Valid values are LessThan , LessThanOrEqual, GreaterThan , GreaterThanOrEqual.
    queries List<Property Map>
    The queries to use.
    queryType String
    The type of query to use. Valid values are Metrics or Logs.
    size String
    The size of the window to use, minimum of 1m and maximum of 1h.
    threshold Number
    Threshold for classifying window as successful or unsuccessful, i.e. the minimum value for (good windows / total windows) * 100.
    aggregation String
    Aggregation function applied over each window to arrive at SLI. Valid values are Avg , Sum, Count, Max, Min and p[1-99].

    SloIndicatorWindowBasedEvaluationQuery, SloIndicatorWindowBasedEvaluationQueryArgs

    QueryGroupType string
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    QueryGroups List<Pulumi.SumoLogic.Inputs.SloIndicatorWindowBasedEvaluationQueryQueryGroup>
    List of queries to use.
    QueryGroupType string
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    QueryGroups []SloIndicatorWindowBasedEvaluationQueryQueryGroup
    List of queries to use.
    queryGroupType String
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    queryGroups List<SloIndicatorWindowBasedEvaluationQueryQueryGroup>
    List of queries to use.
    queryGroupType string
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    queryGroups SloIndicatorWindowBasedEvaluationQueryQueryGroup[]
    List of queries to use.
    query_group_type str
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    query_groups Sequence[SloIndicatorWindowBasedEvaluationQueryQueryGroup]
    List of queries to use.
    queryGroupType String
    The type of query. Valid values are Successful, Unsuccessful, Total , Threshold.
    queryGroups List<Property Map>
    List of queries to use.

    SloIndicatorWindowBasedEvaluationQueryQueryGroup, SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs

    Query string
    The query string to use.
    RowId string
    The row ID to use.
    UseRowCount bool
    Whether to use the row count. Defaults to false.
    Field string
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    Query string
    The query string to use.
    RowId string
    The row ID to use.
    UseRowCount bool
    Whether to use the row count. Defaults to false.
    Field string
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query String
    The query string to use.
    rowId String
    The row ID to use.
    useRowCount Boolean
    Whether to use the row count. Defaults to false.
    field String
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query string
    The query string to use.
    rowId string
    The row ID to use.
    useRowCount boolean
    Whether to use the row count. Defaults to false.
    field string
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query str
    The query string to use.
    row_id str
    The row ID to use.
    use_row_count bool
    Whether to use the row count. Defaults to false.
    field str
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.
    query String
    The query string to use.
    rowId String
    The row ID to use.
    useRowCount Boolean
    Whether to use the row count. Defaults to false.
    field String
    Field of log query output to compare against. To be used only for logs based data type when use_row_count is false.

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi