1. Packages
  2. Honeycombio Provider
  3. API Docs
  4. getSlo
honeycombio 0.34.0 published on Tuesday, May 6, 2025 by honeycombio

honeycombio.getSlo

Explore with Pulumi AI

honeycombio logo
honeycombio 0.34.0 published on Tuesday, May 6, 2025 by honeycombio

    # 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",
    });
    
    import pulumi
    import pulumi_honeycombio as honeycombio
    
    myslo = honeycombio.get_slo(id="fS4WfA82ACt")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      myslo:
        fn::invoke:
          function: honeycombio:getSlo
          arguments:
            id: fS4WfA82ACt
    

    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>
    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]
    func LookupSlo(ctx *Context, args *LookupSloArgs, opts ...InvokeOption) (*LookupSloResult, error)
    func LookupSloOutput(ctx *Context, args *LookupSloOutputArgs, opts ...InvokeOption) LookupSloResultOutput

    > 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)
    }
    public static CompletableFuture<GetSloResult> getSlo(GetSloArgs args, InvokeOptions options)
    public static Output<GetSloResult> getSlo(GetSloArgs args, InvokeOptions options)
    
    fn::invoke:
      function: honeycombio:index/getSlo:getSlo
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    Deprecated: Deprecated

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

    Deprecated: Deprecated

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

    Deprecated: Deprecated

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

    Deprecated: Deprecated

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

    Deprecated: Deprecated

    id 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.
    Tags Dictionary<string, string>
    A map of the tags assigned to the resource.
    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.
    Tags map[string]string
    A map of the tags assigned to the resource.
    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.
    tags Map<String,String>
    A map of the tags assigned to the resource.
    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.
    tags {[key: string]: string}
    A map of the tags assigned to the resource.
    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.
    tags Mapping[str, str]
    A map of the tags assigned to the resource.
    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.
    tags Map<String>
    A map of the tags assigned to the resource.
    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.
    honeycombio logo
    honeycombio 0.34.0 published on Tuesday, May 6, 2025 by honeycombio