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

honeycombio.getSlo

Explore with Pulumi AI

# Data Source: honeycombio.Slo

The honeycombio.Slo data source retrieves the details of a single SLO.
If you want to retreive multiple SLOs, use the honeycombio.getSlos data source instead.

Example Usage

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

const myslo = honeycombio.getSlo({
    id: "fS4WfA82ACt",
});
Copy
import pulumi
import pulumi_honeycombio as honeycombio

myslo = honeycombio.get_slo(id="fS4WfA82ACt")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := honeycombio.LookupSlo(ctx, &honeycombio.LookupSloArgs{
			Id: "fS4WfA82ACt",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Honeycombio = Pulumi.Honeycombio;

return await Deployment.RunAsync(() => 
{
    var myslo = Honeycombio.GetSlo.Invoke(new()
    {
        Id = "fS4WfA82ACt",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.honeycombio.HoneycombioFunctions;
import com.pulumi.honeycombio.inputs.GetSloArgs;
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) {
        final var myslo = HoneycombioFunctions.getSlo(GetSloArgs.builder()
            .id("fS4WfA82ACt")
            .build());

    }
}
Copy
variables:
  myslo:
    fn::invoke:
      function: honeycombio:getSlo
      arguments:
        id: fS4WfA82ACt
Copy

Using getSlo

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

function getSlo(args: GetSloArgs, opts?: InvokeOptions): Promise<GetSloResult>
function getSloOutput(args: GetSloOutputArgs, opts?: InvokeOptions): Output<GetSloResult>
Copy
def get_slo(dataset: Optional[str] = None,
            id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetSloResult
def get_slo_output(dataset: Optional[pulumi.Input[str]] = None,
            id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetSloResult]
Copy
func LookupSlo(ctx *Context, args *LookupSloArgs, opts ...InvokeOption) (*LookupSloResult, error)
func LookupSloOutput(ctx *Context, args *LookupSloOutputArgs, opts ...InvokeOption) LookupSloResultOutput
Copy

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

public static class GetSlo 
{
    public static Task<GetSloResult> InvokeAsync(GetSloArgs args, InvokeOptions? opts = null)
    public static Output<GetSloResult> Invoke(GetSloInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSloResult> getSlo(GetSloArgs args, InvokeOptions options)
public static Output<GetSloResult> getSlo(GetSloArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: honeycombio:index/getSlo:getSlo
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID of the SLO
Dataset string
No longer required. The dataset this SLO is associated with.

Deprecated: Deprecated

Id This property is required. string
The ID of the SLO
Dataset string
No longer required. The dataset this SLO is associated with.

Deprecated: Deprecated

id This property is required. String
The ID of the SLO
dataset String
No longer required. The dataset this SLO is associated with.

Deprecated: Deprecated

id This property is required. string
The ID of the SLO
dataset string
No longer required. The dataset this SLO is associated with.

Deprecated: Deprecated

id This property is required. str
The ID of the SLO
dataset str
No longer required. The dataset this SLO is associated with.

Deprecated: Deprecated

id This property is required. String
The ID of the SLO
dataset String
No longer required. The dataset this SLO is associated with.

Deprecated: Deprecated

getSlo Result

The following output properties are available:

Dataset string

Deprecated: Deprecated

Datasets List<string>
A list of dataset slugs the SLO is evaluated on.
Description string
the SLO's description.
Id string
Name string
the name of the SLO.
Sli string
the alias of the Derived Column used as the SLO's SLI.
TargetPercentage double
the percentage of qualified events expected to succeed during the time_period.
TimePeriod double
The time period, in days, over which the SLO is evaluated.
Dataset string

Deprecated: Deprecated

Datasets []string
A list of dataset slugs the SLO is evaluated on.
Description string
the SLO's description.
Id string
Name string
the name of the SLO.
Sli string
the alias of the Derived Column used as the SLO's SLI.
TargetPercentage float64
the percentage of qualified events expected to succeed during the time_period.
TimePeriod float64
The time period, in days, over which the SLO is evaluated.
dataset String

Deprecated: Deprecated

datasets List<String>
A list of dataset slugs the SLO is evaluated on.
description String
the SLO's description.
id String
name String
the name of the SLO.
sli String
the alias of the Derived Column used as the SLO's SLI.
targetPercentage Double
the percentage of qualified events expected to succeed during the time_period.
timePeriod Double
The time period, in days, over which the SLO is evaluated.
dataset string

Deprecated: Deprecated

datasets string[]
A list of dataset slugs the SLO is evaluated on.
description string
the SLO's description.
id string
name string
the name of the SLO.
sli string
the alias of the Derived Column used as the SLO's SLI.
targetPercentage number
the percentage of qualified events expected to succeed during the time_period.
timePeriod number
The time period, in days, over which the SLO is evaluated.
dataset str

Deprecated: Deprecated

datasets Sequence[str]
A list of dataset slugs the SLO is evaluated on.
description str
the SLO's description.
id str
name str
the name of the SLO.
sli str
the alias of the Derived Column used as the SLO's SLI.
target_percentage float
the percentage of qualified events expected to succeed during the time_period.
time_period float
The time period, in days, over which the SLO is evaluated.
dataset String

Deprecated: Deprecated

datasets List<String>
A list of dataset slugs the SLO is evaluated on.
description String
the SLO's description.
id String
name String
the name of the SLO.
sli String
the alias of the Derived Column used as the SLO's SLI.
targetPercentage Number
the percentage of qualified events expected to succeed during the time_period.
timePeriod Number
The time period, in days, over which the SLO is evaluated.

Package Details

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