1. Packages
  2. Honeycombio Provider
  3. API Docs
  4. Slo
honeycombio 0.32.0 published on Monday, Apr 7, 2025 by honeycombio

honeycombio.Slo

Explore with Pulumi AI

# Resource: honeycombio.Slo

Creates a service level objective (SLO). For more information about SLOs, check out Set Service Level Objectives (SLOs).

Example Usage

Single Dataset SLO

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as honeycombio from "@pulumi/honeycombio";

const requestLatencySli = new honeycombio.DerivedColumn("requestLatencySli", {
    alias: "sli.request_latency",
    description: "SLI: request latency less than 300ms",
    dataset: _var.dataset,
    expression: fs.readFileSync("../sli/sli.request_latency.honeycomb", "utf8"),
});
const slo = new honeycombio.Slo("slo", {
    description: "example of an SLO",
    dataset: _var.dataset,
    sli: requestLatencySli.alias,
    targetPercentage: 99.9,
    timePeriod: 30,
});
Copy
import pulumi
import pulumi_honeycombio as honeycombio

request_latency_sli = honeycombio.DerivedColumn("requestLatencySli",
    alias="sli.request_latency",
    description="SLI: request latency less than 300ms",
    dataset=var["dataset"],
    expression=(lambda path: open(path).read())("../sli/sli.request_latency.honeycomb"))
slo = honeycombio.Slo("slo",
    description="example of an SLO",
    dataset=var["dataset"],
    sli=request_latency_sli.alias,
    target_percentage=99.9,
    time_period=30)
Copy
package main

import (
	"os"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/honeycombio/honeycombio"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		requestLatencySli, err := honeycombio.NewDerivedColumn(ctx, "requestLatencySli", &honeycombio.DerivedColumnArgs{
			Alias:       pulumi.String("sli.request_latency"),
			Description: pulumi.String("SLI: request latency less than 300ms"),
			Dataset:     pulumi.Any(_var.Dataset),
			Expression:  pulumi.String(readFileOrPanic("../sli/sli.request_latency.honeycomb")),
		})
		if err != nil {
			return err
		}
		_, err = honeycombio.NewSlo(ctx, "slo", &honeycombio.SloArgs{
			Description:      pulumi.String("example of an SLO"),
			Dataset:          pulumi.Any(_var.Dataset),
			Sli:              requestLatencySli.Alias,
			TargetPercentage: pulumi.Float64(99.9),
			TimePeriod:       pulumi.Float64(30),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Honeycombio = Pulumi.Honeycombio;

return await Deployment.RunAsync(() => 
{
    var requestLatencySli = new Honeycombio.DerivedColumn("requestLatencySli", new()
    {
        Alias = "sli.request_latency",
        Description = "SLI: request latency less than 300ms",
        Dataset = @var.Dataset,
        Expression = File.ReadAllText("../sli/sli.request_latency.honeycomb"),
    });

    var slo = new Honeycombio.Slo("slo", new()
    {
        Description = "example of an SLO",
        Dataset = @var.Dataset,
        Sli = requestLatencySli.Alias,
        TargetPercentage = 99.9,
        TimePeriod = 30,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.honeycombio.DerivedColumn;
import com.pulumi.honeycombio.DerivedColumnArgs;
import com.pulumi.honeycombio.Slo;
import com.pulumi.honeycombio.SloArgs;
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 requestLatencySli = new DerivedColumn("requestLatencySli", DerivedColumnArgs.builder()
            .alias("sli.request_latency")
            .description("SLI: request latency less than 300ms")
            .dataset(var_.dataset())
            .expression(Files.readString(Paths.get("../sli/sli.request_latency.honeycomb")))
            .build());

        var slo = new Slo("slo", SloArgs.builder()
            .description("example of an SLO")
            .dataset(var_.dataset())
            .sli(requestLatencySli.alias())
            .targetPercentage(99.9)
            .timePeriod(30)
            .build());

    }
}
Copy
resources:
  requestLatencySli:
    type: honeycombio:DerivedColumn
    properties:
      alias: sli.request_latency
      description: 'SLI: request latency less than 300ms'
      dataset: ${var.dataset}
      # heredoc also works
      expression:
        fn::readFile: ../sli/sli.request_latency.honeycomb
  slo:
    type: honeycombio:Slo
    properties:
      description: example of an SLO
      dataset: ${var.dataset}
      sli: ${requestLatencySli.alias}
      targetPercentage: 99.9
      timePeriod: 30
Copy

Multi-Dataset SLO

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as honeycombio from "@pulumi/honeycombio";

const requestLatencySli = new honeycombio.DerivedColumn("requestLatencySli", {
    alias: "sli.request_latency",
    description: "SLI: request latency less than 300ms",
    expression: fs.readFileSync("../sli/sli.request_latency.honeycomb", "utf8"),
});
const slo = new honeycombio.Slo("slo", {
    description: "example of an SLO",
    datasets: [
        _var.dataset1,
        _var.dataset2,
    ],
    sli: requestLatencySli.alias,
    targetPercentage: 99.9,
    timePeriod: 30,
});
Copy
import pulumi
import pulumi_honeycombio as honeycombio

request_latency_sli = honeycombio.DerivedColumn("requestLatencySli",
    alias="sli.request_latency",
    description="SLI: request latency less than 300ms",
    expression=(lambda path: open(path).read())("../sli/sli.request_latency.honeycomb"))
slo = honeycombio.Slo("slo",
    description="example of an SLO",
    datasets=[
        var["dataset1"],
        var["dataset2"],
    ],
    sli=request_latency_sli.alias,
    target_percentage=99.9,
    time_period=30)
Copy
package main

import (
	"os"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/honeycombio/honeycombio"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		requestLatencySli, err := honeycombio.NewDerivedColumn(ctx, "requestLatencySli", &honeycombio.DerivedColumnArgs{
			Alias:       pulumi.String("sli.request_latency"),
			Description: pulumi.String("SLI: request latency less than 300ms"),
			Expression:  pulumi.String(readFileOrPanic("../sli/sli.request_latency.honeycomb")),
		})
		if err != nil {
			return err
		}
		_, err = honeycombio.NewSlo(ctx, "slo", &honeycombio.SloArgs{
			Description: pulumi.String("example of an SLO"),
			Datasets: pulumi.StringArray{
				_var.Dataset1,
				_var.Dataset2,
			},
			Sli:              requestLatencySli.Alias,
			TargetPercentage: pulumi.Float64(99.9),
			TimePeriod:       pulumi.Float64(30),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Honeycombio = Pulumi.Honeycombio;

return await Deployment.RunAsync(() => 
{
    var requestLatencySli = new Honeycombio.DerivedColumn("requestLatencySli", new()
    {
        Alias = "sli.request_latency",
        Description = "SLI: request latency less than 300ms",
        Expression = File.ReadAllText("../sli/sli.request_latency.honeycomb"),
    });

    var slo = new Honeycombio.Slo("slo", new()
    {
        Description = "example of an SLO",
        Datasets = new[]
        {
            @var.Dataset1,
            @var.Dataset2,
        },
        Sli = requestLatencySli.Alias,
        TargetPercentage = 99.9,
        TimePeriod = 30,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.honeycombio.DerivedColumn;
import com.pulumi.honeycombio.DerivedColumnArgs;
import com.pulumi.honeycombio.Slo;
import com.pulumi.honeycombio.SloArgs;
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 requestLatencySli = new DerivedColumn("requestLatencySli", DerivedColumnArgs.builder()
            .alias("sli.request_latency")
            .description("SLI: request latency less than 300ms")
            .expression(Files.readString(Paths.get("../sli/sli.request_latency.honeycomb")))
            .build());

        var slo = new Slo("slo", SloArgs.builder()
            .description("example of an SLO")
            .datasets(            
                var_.dataset1(),
                var_.dataset2())
            .sli(requestLatencySli.alias())
            .targetPercentage(99.9)
            .timePeriod(30)
            .build());

    }
}
Copy
resources:
  requestLatencySli:
    type: honeycombio:DerivedColumn
    properties:
      alias: sli.request_latency
      description: 'SLI: request latency less than 300ms'
      # heredoc also works
      expression:
        fn::readFile: ../sli/sli.request_latency.honeycomb
  slo:
    type: honeycombio:Slo
    properties:
      description: example of an SLO
      datasets:
        - ${var.dataset1}
        - ${var.dataset2}
      sli: ${requestLatencySli.alias}
      targetPercentage: 99.9
      timePeriod: 30
Copy

Note As Derived Columns cannot be renamed or deleted while in use, it is recommended to use the create_before_destroy lifecycle argument on your SLI resources as shown in the example above. This way you will avoid running into conflicts if the Derived Column needs to be recreated.

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,
        sli: Optional[str] = None,
        target_percentage: Optional[float] = None,
        time_period: Optional[float] = None,
        dataset: Optional[str] = None,
        datasets: Optional[Sequence[str]] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        slo_id: Optional[str] = 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: honeycombio:Slo
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SloArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SloArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SloArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Honeycombio.Slo("sloResource", new()
{
    Sli = "string",
    TargetPercentage = 0,
    TimePeriod = 0,
    Dataset = "string",
    Datasets = new[]
    {
        "string",
    },
    Description = "string",
    Name = "string",
    SloId = "string",
});
Copy
example, err := honeycombio.NewSlo(ctx, "sloResource", &honeycombio.SloArgs{
Sli: pulumi.String("string"),
TargetPercentage: pulumi.Float64(0),
TimePeriod: pulumi.Float64(0),
Dataset: pulumi.String("string"),
Datasets: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SloId: pulumi.String("string"),
})
Copy
var sloResource = new Slo("sloResource", SloArgs.builder()
    .sli("string")
    .targetPercentage(0)
    .timePeriod(0)
    .dataset("string")
    .datasets("string")
    .description("string")
    .name("string")
    .sloId("string")
    .build());
Copy
slo_resource = honeycombio.Slo("sloResource",
    sli="string",
    target_percentage=0,
    time_period=0,
    dataset="string",
    datasets=["string"],
    description="string",
    name="string",
    slo_id="string")
Copy
const sloResource = new honeycombio.Slo("sloResource", {
    sli: "string",
    targetPercentage: 0,
    timePeriod: 0,
    dataset: "string",
    datasets: ["string"],
    description: "string",
    name: "string",
    sloId: "string",
});
Copy
type: honeycombio:Slo
properties:
    dataset: string
    datasets:
        - string
    description: string
    name: string
    sli: string
    sloId: string
    targetPercentage: 0
    timePeriod: 0
Copy

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:

Sli This property is required. string
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
TargetPercentage This property is required. double
The percentage of qualified events that you expect to succeed during the time_period.
TimePeriod This property is required. double

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

Dataset string
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
Datasets List<string>
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
Description string
A description of the SLO's intent and context.
Name string
The name of the SLO.
SloId string
ID of the SLO.
Sli This property is required. string
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
TargetPercentage This property is required. float64
The percentage of qualified events that you expect to succeed during the time_period.
TimePeriod This property is required. float64

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

Dataset string
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
Datasets []string
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
Description string
A description of the SLO's intent and context.
Name string
The name of the SLO.
SloId string
ID of the SLO.
sli This property is required. String
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
targetPercentage This property is required. Double
The percentage of qualified events that you expect to succeed during the time_period.
timePeriod This property is required. Double

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset String
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets List<String>
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description String
A description of the SLO's intent and context.
name String
The name of the SLO.
sloId String
ID of the SLO.
sli This property is required. string
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
targetPercentage This property is required. number
The percentage of qualified events that you expect to succeed during the time_period.
timePeriod This property is required. number

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset string
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets string[]
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description string
A description of the SLO's intent and context.
name string
The name of the SLO.
sloId string
ID of the SLO.
sli This property is required. str
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
target_percentage This property is required. float
The percentage of qualified events that you expect to succeed during the time_period.
time_period This property is required. float

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset str
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets Sequence[str]
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description str
A description of the SLO's intent and context.
name str
The name of the SLO.
slo_id str
ID of the SLO.
sli This property is required. String
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
targetPercentage This property is required. Number
The percentage of qualified events that you expect to succeed during the time_period.
timePeriod This property is required. Number

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset String
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets List<String>
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description String
A description of the SLO's intent and context.
name String
The name of the SLO.
sloId String
ID of the SLO.

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,
        dataset: Optional[str] = None,
        datasets: Optional[Sequence[str]] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        sli: Optional[str] = None,
        slo_id: Optional[str] = None,
        target_percentage: Optional[float] = None,
        time_period: Optional[float] = 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)
resources:  _:    type: honeycombio:Slo    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Dataset string
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
Datasets List<string>
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
Description string
A description of the SLO's intent and context.
Name string
The name of the SLO.
Sli string
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
SloId string
ID of the SLO.
TargetPercentage double
The percentage of qualified events that you expect to succeed during the time_period.
TimePeriod double

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

Dataset string
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
Datasets []string
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
Description string
A description of the SLO's intent and context.
Name string
The name of the SLO.
Sli string
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
SloId string
ID of the SLO.
TargetPercentage float64
The percentage of qualified events that you expect to succeed during the time_period.
TimePeriod float64

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset String
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets List<String>
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description String
A description of the SLO's intent and context.
name String
The name of the SLO.
sli String
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
sloId String
ID of the SLO.
targetPercentage Double
The percentage of qualified events that you expect to succeed during the time_period.
timePeriod Double

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset string
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets string[]
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description string
A description of the SLO's intent and context.
name string
The name of the SLO.
sli string
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
sloId string
ID of the SLO.
targetPercentage number
The percentage of qualified events that you expect to succeed during the time_period.
timePeriod number

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset str
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets Sequence[str]
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description str
A description of the SLO's intent and context.
name str
The name of the SLO.
sli str
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
slo_id str
ID of the SLO.
target_percentage float
The percentage of qualified events that you expect to succeed during the time_period.
time_period float

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

dataset String
The dataset this SLO is created in. Must be the same dataset as the SLI unless the SLI is an Environment-wide Derived Column. Conflicts with datasets. Will be deprecated in a future release of the provider.
datasets List<String>
Array of datasets the SLO is evaluated on. Conflicts with dataset. Must have a length between 1 and 10.
description String
A description of the SLO's intent and context.
name String
The name of the SLO.
sli String
The alias of the Derived Column that will be used as the SLI to indicate event success. The derived column used as the SLI must be in the same dataset as the SLO. Additionally, the column evaluation should consistently return nil, true, or false, as these are the only valid values for an SLI.
sloId String
ID of the SLO.
targetPercentage Number
The percentage of qualified events that you expect to succeed during the time_period.
timePeriod Number

The time period, in days, over which your SLO will be evaluated.

Note dataset will be deprecated in a future release. One of dataset or datasets is required. In the meantime, you can swap dataset with a single value array for datasets to effectively evaluate to the same configuration.

Import

Multi-dataset SLO

$ pulumi import honeycombio:index/slo:Slo my_slo bj9BwOb1uKz
Copy

You can find the ID in the URL bar when visiting the SLO from the UI.

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

Package Details

Repository
honeycombio honeycombio/terraform-provider-honeycombio
License
Notes
This Pulumi package is based on the honeycombio Terraform Provider.