sumologic.Slo
Explore with Pulumi AI
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)
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.
Sumo Logic. Inputs. Slo Compliance> - The compliance settings for the SLO.
- Indicator
Pulumi.
Sumo Logic. Inputs. Slo Indicator - 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 string - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - Application string
- Name of the application.
- Created
At string - Created
By string - Description string
- The description of the SLO.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the SLO. The name must be alphanumeric.
- Parent
Id string - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- Post
Request Dictionary<string, string>Map - Service string
- Name of the service.
- Dictionary<string, string>
- A map defining tag keys and tag values for the SLO.
- Version int
- Compliances
[]Slo
Compliance Args - The compliance settings for the SLO.
- Indicator
Slo
Indicator Args - 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 string - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - Application string
- Name of the application.
- Created
At string - Created
By string - Description string
- The description of the SLO.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the SLO. The name must be alphanumeric.
- Parent
Id string - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- Post
Request map[string]stringMap - Service string
- Name of the service.
- map[string]string
- A map defining tag keys and tag values for the SLO.
- Version int
- compliances
List<Slo
Compliance> - The compliance settings for the SLO.
- indicator
Slo
Indicator - 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 String - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - application String
- Name of the application.
- created
At String - created
By String - description String
- The description of the SLO.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO. The name must be alphanumeric.
- parent
Id String - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- post
Request Map<String,String>Map - service String
- Name of the service.
- Map<String,String>
- A map defining tag keys and tag values for the SLO.
- version Integer
- compliances
Slo
Compliance[] - The compliance settings for the SLO.
- indicator
Slo
Indicator - 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 string - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - application string
- Name of the application.
- created
At string - created
By string - description string
- The description of the SLO.
- is
Locked boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - name string
- The name of the SLO. The name must be alphanumeric.
- parent
Id string - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- post
Request {[key: string]: string}Map - service string
- Name of the service.
- {[key: string]: string}
- A map defining tag keys and tag values for the SLO.
- version number
- compliances
Sequence[Slo
Compliance Args] - The compliance settings for the SLO.
- indicator
Slo
Indicator Args - 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 toLatency
. - 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_ Mapping[str, str]map - service str
- Name of the service.
- 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.
- signal
Type String - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - application String
- Name of the application.
- created
At String - created
By String - description String
- The description of the SLO.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO. The name must be alphanumeric.
- parent
Id String - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- post
Request Map<String>Map - service String
- Name of the service.
- 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.
- Application string
- Name of the application.
- Compliances
List<Pulumi.
Sumo Logic. Inputs. Slo Compliance> - The compliance settings for the SLO.
- Created
At string - Created
By string - Description string
- The description of the SLO.
- Indicator
Pulumi.
Sumo Logic. Inputs. Slo Indicator - 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 string - Modified
By string - Name string
- The name of the SLO. The name must be alphanumeric.
- Parent
Id string - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- Post
Request Dictionary<string, string>Map - Service string
- Name of the service.
- Signal
Type string - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - Dictionary<string, string>
- A map defining tag keys and tag values for the SLO.
- Version int
- Application string
- Name of the application.
- Compliances
[]Slo
Compliance Args - The compliance settings for the SLO.
- Created
At string - Created
By string - Description string
- The description of the SLO.
- Indicator
Slo
Indicator Args - 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 string - Modified
By string - Name string
- The name of the SLO. The name must be alphanumeric.
- Parent
Id string - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- Post
Request map[string]stringMap - Service string
- Name of the service.
- Signal
Type string - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - map[string]string
- A map defining tag keys and tag values for the SLO.
- Version int
- application String
- Name of the application.
- compliances
List<Slo
Compliance> - The compliance settings for the SLO.
- created
At String - created
By String - description String
- The description of the SLO.
- indicator
Slo
Indicator - 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 Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO. The name must be alphanumeric.
- parent
Id String - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- post
Request Map<String,String>Map - service String
- Name of the service.
- signal
Type String - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - Map<String,String>
- A map defining tag keys and tag values for the SLO.
- version Integer
- application string
- Name of the application.
- compliances
Slo
Compliance[] - The compliance settings for the SLO.
- created
At string - created
By string - description string
- The description of the SLO.
- indicator
Slo
Indicator - 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 boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - name string
- The name of the SLO. The name must be alphanumeric.
- parent
Id string - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- post
Request {[key: string]: string}Map - service string
- Name of the service.
- signal
Type string - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - {[key: string]: string}
- A map defining tag keys and tag values for the SLO.
- version number
- application str
- Name of the application.
- compliances
Sequence[Slo
Compliance Args] - The compliance settings for the SLO.
- created_
at str - created_
by str - description str
- The description of the SLO.
- indicator
Slo
Indicator Args - 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_ Mapping[str, str]map - service str
- Name of the service.
- signal_
type str - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - 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.
- created
At String - created
By 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.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO. The name must be alphanumeric.
- parent
Id String - The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
- post
Request Map<String>Map - service String
- Name of the service.
- signal
Type String - The type of SLO. Valid values are
Latency
,Error
,Throughput
,Availability
,Other
. Defaults toLatency
. - Map<String>
- A map defining tag keys and tag values for the SLO.
- version Number
Supporting Types
SloCompliance, SloComplianceArgs
- Compliance
Type string - The type of compliance to use. Valid values are
Rolling
orCalendar
. - 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 areWeek
,Month
,Quarter
.
- For
- 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.
- Start
From 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). ForQuarter
its required, it would be the first month of the start of quarter (for e.g. January, February etc.). ForMonth
it's not required and is set to first day of the month.
- Compliance
Type string - The type of compliance to use. Valid values are
Rolling
orCalendar
. - 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 areWeek
,Month
,Quarter
.
- For
- 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.
- Start
From 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). ForQuarter
its required, it would be the first month of the start of quarter (for e.g. January, February etc.). ForMonth
it's not required and is set to first day of the month.
- compliance
Type String - The type of compliance to use. Valid values are
Rolling
orCalendar
. - 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 areWeek
,Month
,Quarter
.
- For
- 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.
- start
From 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). ForQuarter
its required, it would be the first month of the start of quarter (for e.g. January, February etc.). ForMonth
it's not required and is set to first day of the month.
- compliance
Type string - The type of compliance to use. Valid values are
Rolling
orCalendar
. - 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 areWeek
,Month
,Quarter
.
- For
- 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.
- start
From 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). ForQuarter
its required, it would be the first month of the start of quarter (for e.g. January, February etc.). ForMonth
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
orCalendar
. - 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 areWeek
,Month
,Quarter
.
- For
- 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). ForQuarter
its required, it would be the first month of the start of quarter (for e.g. January, February etc.). ForMonth
it's not required and is set to first day of the month.
- compliance
Type String - The type of compliance to use. Valid values are
Rolling
orCalendar
. - 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 areWeek
,Month
,Quarter
.
- For
- 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.
- start
From 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). ForQuarter
its required, it would be the first month of the start of quarter (for e.g. January, February etc.). ForMonth
it's not required and is set to first day of the month.
SloIndicator, SloIndicatorArgs
SloIndicatorMonitorBasedEvaluation, SloIndicatorMonitorBasedEvaluationArgs
- Monitor
Triggers Pulumi.Sumo Logic. Inputs. Slo Indicator Monitor Based Evaluation Monitor Triggers - Monitor details on which SLO will be based. Only single monitor is supported here.
- Monitor
Triggers SloIndicator Monitor Based Evaluation Monitor Triggers - Monitor details on which SLO will be based. Only single monitor is supported here.
- monitor
Triggers SloIndicator Monitor Based Evaluation Monitor Triggers - Monitor details on which SLO will be based. Only single monitor is supported here.
- monitor
Triggers SloIndicator Monitor Based Evaluation Monitor Triggers - Monitor details on which SLO will be based. Only single monitor is supported here.
- monitor_
triggers SloIndicator Monitor Based Evaluation Monitor Triggers - Monitor details on which SLO will be based. Only single monitor is supported here.
- monitor
Triggers Property Map - Monitor details on which SLO will be based. Only single monitor is supported here.
SloIndicatorMonitorBasedEvaluationMonitorTriggers, SloIndicatorMonitorBasedEvaluationMonitorTriggersArgs
- Monitor
Id string - ID of the monitor. Ex:
0000000000BCB3A4
- Trigger
Types 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 string - ID of the monitor. Ex:
0000000000BCB3A4
- Trigger
Types 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 String - ID of the monitor. Ex:
0000000000BCB3A4
- trigger
Types 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 string - ID of the monitor. Ex:
0000000000BCB3A4
- trigger
Types 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.
- monitor
Id String - ID of the monitor. Ex:
0000000000BCB3A4
- trigger
Types 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.
Sumo Logic. Inputs. Slo Indicator Request Based Evaluation Query> - The queries to use.
- Query
Type string - The type of query to use. Valid values are
Metrics
orLogs
. - 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
[]Slo
Indicator Request Based Evaluation Query - The queries to use.
- Query
Type string - The type of query to use. Valid values are
Metrics
orLogs
. - 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<Slo
Indicator Request Based Evaluation Query> - The queries to use.
- query
Type String - The type of query to use. Valid values are
Metrics
orLogs
. - 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
Slo
Indicator Request Based Evaluation Query[] - The queries to use.
- query
Type string - The type of query to use. Valid values are
Metrics
orLogs
. - 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[Slo
Indicator Request Based Evaluation Query] - The queries to use.
- query_
type str - The type of query to use. Valid values are
Metrics
orLogs
. - 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.
- query
Type String - The type of query to use. Valid values are
Metrics
orLogs
. - 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
- Query
Group stringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - Query
Groups List<Pulumi.Sumo Logic. Inputs. Slo Indicator Request Based Evaluation Query Query Group> - List of queries to use.
- Query
Group stringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - Query
Groups []SloIndicator Request Based Evaluation Query Query Group - List of queries to use.
- query
Group StringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query
Groups List<SloIndicator Request Based Evaluation Query Query Group> - List of queries to use.
- query
Group stringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query
Groups SloIndicator Request Based Evaluation Query Query Group[] - List of queries to use.
- query_
group_ strtype - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query_
groups Sequence[SloIndicator Request Based Evaluation Query Query Group] - List of queries to use.
- query
Group StringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query
Groups List<Property Map> - List of queries to use.
SloIndicatorRequestBasedEvaluationQueryQueryGroup, SloIndicatorRequestBasedEvaluationQueryQueryGroupArgs
- Query string
- The query string to use.
- Row
Id string - The row ID to use.
- Use
Row boolCount - 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.
- Row
Id string - The row ID to use.
- Use
Row boolCount - 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.
- row
Id String - The row ID to use.
- use
Row BooleanCount - 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.
- row
Id string - The row ID to use.
- use
Row booleanCount - 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_ boolcount - 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.
- row
Id String - The row ID to use.
- use
Row BooleanCount - 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.
Sumo Logic. Inputs. Slo Indicator Window Based Evaluation Query> - The queries to use.
- Query
Type string - The type of query to use. Valid values are
Metrics
orLogs
. - Size string
- The size of the window to use, minimum of
1m
and maximum of1h
. - 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
andp[1-99]
.
- Op string
- The operator used to define a successful window. Valid values are
LessThan
,LessThanOrEqual
,GreaterThan
,GreaterThanOrEqual
. - Queries
[]Slo
Indicator Window Based Evaluation Query - The queries to use.
- Query
Type string - The type of query to use. Valid values are
Metrics
orLogs
. - Size string
- The size of the window to use, minimum of
1m
and maximum of1h
. - 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
andp[1-99]
.
- op String
- The operator used to define a successful window. Valid values are
LessThan
,LessThanOrEqual
,GreaterThan
,GreaterThanOrEqual
. - queries
List<Slo
Indicator Window Based Evaluation Query> - The queries to use.
- query
Type String - The type of query to use. Valid values are
Metrics
orLogs
. - size String
- The size of the window to use, minimum of
1m
and maximum of1h
. - 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
andp[1-99]
.
- op string
- The operator used to define a successful window. Valid values are
LessThan
,LessThanOrEqual
,GreaterThan
,GreaterThanOrEqual
. - queries
Slo
Indicator Window Based Evaluation Query[] - The queries to use.
- query
Type string - The type of query to use. Valid values are
Metrics
orLogs
. - size string
- The size of the window to use, minimum of
1m
and maximum of1h
. - 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
andp[1-99]
.
- op str
- The operator used to define a successful window. Valid values are
LessThan
,LessThanOrEqual
,GreaterThan
,GreaterThanOrEqual
. - queries
Sequence[Slo
Indicator Window Based Evaluation Query] - The queries to use.
- query_
type str - The type of query to use. Valid values are
Metrics
orLogs
. - size str
- The size of the window to use, minimum of
1m
and maximum of1h
. - 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
andp[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.
- query
Type String - The type of query to use. Valid values are
Metrics
orLogs
. - size String
- The size of the window to use, minimum of
1m
and maximum of1h
. - 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
andp[1-99]
.
SloIndicatorWindowBasedEvaluationQuery, SloIndicatorWindowBasedEvaluationQueryArgs
- Query
Group stringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - Query
Groups List<Pulumi.Sumo Logic. Inputs. Slo Indicator Window Based Evaluation Query Query Group> - List of queries to use.
- Query
Group stringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - Query
Groups []SloIndicator Window Based Evaluation Query Query Group - List of queries to use.
- query
Group StringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query
Groups List<SloIndicator Window Based Evaluation Query Query Group> - List of queries to use.
- query
Group stringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query
Groups SloIndicator Window Based Evaluation Query Query Group[] - List of queries to use.
- query_
group_ strtype - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query_
groups Sequence[SloIndicator Window Based Evaluation Query Query Group] - List of queries to use.
- query
Group StringType - The type of query. Valid values are
Successful
,Unsuccessful
,Total
,Threshold
. - query
Groups List<Property Map> - List of queries to use.
SloIndicatorWindowBasedEvaluationQueryQueryGroup, SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs
- Query string
- The query string to use.
- Row
Id string - The row ID to use.
- Use
Row boolCount - 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.
- Row
Id string - The row ID to use.
- Use
Row boolCount - 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.
- row
Id String - The row ID to use.
- use
Row BooleanCount - 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.
- row
Id string - The row ID to use.
- use
Row booleanCount - 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_ boolcount - 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.
- row
Id String - The row ID to use.
- use
Row BooleanCount - 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.