Viewing docs for Honeycomb 0.49.0
published on Friday, May 1, 2026 by honeycombio
published on Friday, May 1, 2026 by honeycombio
Viewing docs for Honeycomb 0.49.0
published on Friday, May 1, 2026 by honeycombio
published on Friday, May 1, 2026 by honeycombio
# Data Source: honeycombio.getSlos
The SLOs data source retrieves the SLOs of a dataset or environment, with the option of narrowing the retrieval by providing a detail_filter.
Note Multi-Dataset SLOs are not supported yet for this data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as honeycombio from "@pulumi/honeycombio";
const config = new pulumi.Config();
const dataset = config.require("dataset");
// returns all SLOs
const all = honeycombio.getSlos({
dataset: dataset,
});
// only returns the SLOs starting with 'foo_'
const foo = honeycombio.getSlos({
dataset: dataset,
detailFilters: [
{
name: "name",
valueRegex: "foo_*",
},
{
name: "tags",
operator: "contains",
value: "team:core",
},
],
});
import pulumi
import pulumi_honeycombio as honeycombio
config = pulumi.Config()
dataset = config.require("dataset")
# returns all SLOs
all = honeycombio.get_slos(dataset=dataset)
# only returns the SLOs starting with 'foo_'
foo = honeycombio.get_slos(dataset=dataset,
detail_filters=[
{
"name": "name",
"value_regex": "foo_*",
},
{
"name": "tags",
"operator": "contains",
"value": "team:core",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/honeycombio/honeycombio"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
dataset := cfg.Require("dataset")
// returns all SLOs
_, err := honeycombio.GetSlos(ctx, &honeycombio.GetSlosArgs{
Dataset: pulumi.StringRef(dataset),
}, nil)
if err != nil {
return err
}
// only returns the SLOs starting with 'foo_'
_, err = honeycombio.GetSlos(ctx, &honeycombio.GetSlosArgs{
Dataset: pulumi.StringRef(dataset),
DetailFilters: []honeycombio.GetSlosDetailFilter{
{
Name: "name",
ValueRegex: pulumi.StringRef("foo_*"),
},
{
Name: "tags",
Operator: pulumi.StringRef("contains"),
Value: pulumi.StringRef("team:core"),
},
},
}, 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 config = new Config();
var dataset = config.Require("dataset");
// returns all SLOs
var all = Honeycombio.GetSlos.Invoke(new()
{
Dataset = dataset,
});
// only returns the SLOs starting with 'foo_'
var foo = Honeycombio.GetSlos.Invoke(new()
{
Dataset = dataset,
DetailFilters = new[]
{
new Honeycombio.Inputs.GetSlosDetailFilterInputArgs
{
Name = "name",
ValueRegex = "foo_*",
},
new Honeycombio.Inputs.GetSlosDetailFilterInputArgs
{
Name = "tags",
Operator = "contains",
Value = "team:core",
},
},
});
});
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.GetSlosArgs;
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 config = ctx.config();
final var dataset = config.get("dataset");
// returns all SLOs
final var all = HoneycombioFunctions.getSlos(GetSlosArgs.builder()
.dataset(dataset)
.build());
// only returns the SLOs starting with 'foo_'
final var foo = HoneycombioFunctions.getSlos(GetSlosArgs.builder()
.dataset(dataset)
.detailFilters(
GetSlosDetailFilterArgs.builder()
.name("name")
.valueRegex("foo_*")
.build(),
GetSlosDetailFilterArgs.builder()
.name("tags")
.operator("contains")
.value("team:core")
.build())
.build());
}
}
configuration:
dataset:
type: string
variables:
# returns all SLOs
all:
fn::invoke:
function: honeycombio:getSlos
arguments:
dataset: ${dataset}
# only returns the SLOs starting with 'foo_'
foo:
fn::invoke:
function: honeycombio:getSlos
arguments:
dataset: ${dataset}
detailFilters:
- name: name
valueRegex: foo_*
- name: tags
operator: contains
value: team:core
Using getSlos
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 getSlos(args: GetSlosArgs, opts?: InvokeOptions): Promise<GetSlosResult>
function getSlosOutput(args: GetSlosOutputArgs, opts?: InvokeOptions): Output<GetSlosResult>def get_slos(dataset: Optional[str] = None,
detail_filters: Optional[Sequence[GetSlosDetailFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetSlosResult
def get_slos_output(dataset: pulumi.Input[Optional[str]] = None,
detail_filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetSlosDetailFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSlosResult]func GetSlos(ctx *Context, args *GetSlosArgs, opts ...InvokeOption) (*GetSlosResult, error)
func GetSlosOutput(ctx *Context, args *GetSlosOutputArgs, opts ...InvokeOption) GetSlosResultOutput> Note: This function is named GetSlos in the Go SDK.
public static class GetSlos
{
public static Task<GetSlosResult> InvokeAsync(GetSlosArgs args, InvokeOptions? opts = null)
public static Output<GetSlosResult> Invoke(GetSlosInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSlosResult> getSlos(GetSlosArgs args, InvokeOptions options)
public static Output<GetSlosResult> getSlos(GetSlosArgs args, InvokeOptions options)
fn::invoke:
function: honeycombio:index/getSlos:getSlos
arguments:
# arguments dictionaryThe following arguments are supported:
getSlos Result
The following output properties are available:
- Id string
- Ids List<string>
- Dataset string
- Detail
Filters List<GetSlos Detail Filter>
- Id string
- Ids []string
- Dataset string
- Detail
Filters []GetSlos Detail Filter
- id String
- ids List<String>
- dataset String
- detail
Filters List<GetSlos Detail Filter>
- id string
- ids string[]
- dataset string
- detail
Filters GetSlos Detail Filter[]
- id str
- ids Sequence[str]
- dataset str
- detail_
filters Sequence[GetSlos Detail Filter]
- id String
- ids List<String>
- dataset String
- detail
Filters List<Property Map>
Supporting Types
GetSlosDetailFilter
- Name string
- The name of the detail field to filter by. This must match a schema attribute of the resource (e.g.,
name,description,id). - Operator string
- The comparison operator to use for filtering. Defaults to
equals. Valid operators include:equals,=,eq- Exact match comparisonnot-equals,!=,ne- Inverse exact match comparisoncontains,in- Substring inclusion checkdoes-not-contain,not-in- Inverse substring inclusion checkstarts-with- Prefix matchingdoes-not-start-with- Inverse prefix matchingends-with- Suffix matchingdoes-not-end-with- Inverse suffix matching>,gt- Numeric greater than comparison>=,ge- Numeric greater than or equal comparison<,lt- Numeric less than comparison<=,le- Numeric less than or equal comparisondoes-not-exist- Field absence check
- Value string
- The value of the detail field to match on. Required unless
value_regexis set oroperatorisdoes-not-exist. - Value
Regex string - A regular expression string to apply to the value of the detail field to match on. Required unless
valueis set oroperatorisdoes-not-exist.
- Name string
- The name of the detail field to filter by. This must match a schema attribute of the resource (e.g.,
name,description,id). - Operator string
- The comparison operator to use for filtering. Defaults to
equals. Valid operators include:equals,=,eq- Exact match comparisonnot-equals,!=,ne- Inverse exact match comparisoncontains,in- Substring inclusion checkdoes-not-contain,not-in- Inverse substring inclusion checkstarts-with- Prefix matchingdoes-not-start-with- Inverse prefix matchingends-with- Suffix matchingdoes-not-end-with- Inverse suffix matching>,gt- Numeric greater than comparison>=,ge- Numeric greater than or equal comparison<,lt- Numeric less than comparison<=,le- Numeric less than or equal comparisondoes-not-exist- Field absence check
- Value string
- The value of the detail field to match on. Required unless
value_regexis set oroperatorisdoes-not-exist. - Value
Regex string - A regular expression string to apply to the value of the detail field to match on. Required unless
valueis set oroperatorisdoes-not-exist.
- name String
- The name of the detail field to filter by. This must match a schema attribute of the resource (e.g.,
name,description,id). - operator String
- The comparison operator to use for filtering. Defaults to
equals. Valid operators include:equals,=,eq- Exact match comparisonnot-equals,!=,ne- Inverse exact match comparisoncontains,in- Substring inclusion checkdoes-not-contain,not-in- Inverse substring inclusion checkstarts-with- Prefix matchingdoes-not-start-with- Inverse prefix matchingends-with- Suffix matchingdoes-not-end-with- Inverse suffix matching>,gt- Numeric greater than comparison>=,ge- Numeric greater than or equal comparison<,lt- Numeric less than comparison<=,le- Numeric less than or equal comparisondoes-not-exist- Field absence check
- value String
- The value of the detail field to match on. Required unless
value_regexis set oroperatorisdoes-not-exist. - value
Regex String - A regular expression string to apply to the value of the detail field to match on. Required unless
valueis set oroperatorisdoes-not-exist.
- name string
- The name of the detail field to filter by. This must match a schema attribute of the resource (e.g.,
name,description,id). - operator string
- The comparison operator to use for filtering. Defaults to
equals. Valid operators include:equals,=,eq- Exact match comparisonnot-equals,!=,ne- Inverse exact match comparisoncontains,in- Substring inclusion checkdoes-not-contain,not-in- Inverse substring inclusion checkstarts-with- Prefix matchingdoes-not-start-with- Inverse prefix matchingends-with- Suffix matchingdoes-not-end-with- Inverse suffix matching>,gt- Numeric greater than comparison>=,ge- Numeric greater than or equal comparison<,lt- Numeric less than comparison<=,le- Numeric less than or equal comparisondoes-not-exist- Field absence check
- value string
- The value of the detail field to match on. Required unless
value_regexis set oroperatorisdoes-not-exist. - value
Regex string - A regular expression string to apply to the value of the detail field to match on. Required unless
valueis set oroperatorisdoes-not-exist.
- name str
- The name of the detail field to filter by. This must match a schema attribute of the resource (e.g.,
name,description,id). - operator str
- The comparison operator to use for filtering. Defaults to
equals. Valid operators include:equals,=,eq- Exact match comparisonnot-equals,!=,ne- Inverse exact match comparisoncontains,in- Substring inclusion checkdoes-not-contain,not-in- Inverse substring inclusion checkstarts-with- Prefix matchingdoes-not-start-with- Inverse prefix matchingends-with- Suffix matchingdoes-not-end-with- Inverse suffix matching>,gt- Numeric greater than comparison>=,ge- Numeric greater than or equal comparison<,lt- Numeric less than comparison<=,le- Numeric less than or equal comparisondoes-not-exist- Field absence check
- value str
- The value of the detail field to match on. Required unless
value_regexis set oroperatorisdoes-not-exist. - value_
regex str - A regular expression string to apply to the value of the detail field to match on. Required unless
valueis set oroperatorisdoes-not-exist.
- name String
- The name of the detail field to filter by. This must match a schema attribute of the resource (e.g.,
name,description,id). - operator String
- The comparison operator to use for filtering. Defaults to
equals. Valid operators include:equals,=,eq- Exact match comparisonnot-equals,!=,ne- Inverse exact match comparisoncontains,in- Substring inclusion checkdoes-not-contain,not-in- Inverse substring inclusion checkstarts-with- Prefix matchingdoes-not-start-with- Inverse prefix matchingends-with- Suffix matchingdoes-not-end-with- Inverse suffix matching>,gt- Numeric greater than comparison>=,ge- Numeric greater than or equal comparison<,lt- Numeric less than comparison<=,le- Numeric less than or equal comparisondoes-not-exist- Field absence check
- value String
- The value of the detail field to match on. Required unless
value_regexis set oroperatorisdoes-not-exist. - value
Regex String - A regular expression string to apply to the value of the detail field to match on. Required unless
valueis set oroperatorisdoes-not-exist.
Package Details
- Repository
- honeycombio honeycombio/terraform-provider-honeycombio
- License
- Notes
- This Pulumi package is based on the
honeycombioTerraform Provider.
Viewing docs for Honeycomb 0.49.0
published on Friday, May 1, 2026 by honeycombio
published on Friday, May 1, 2026 by honeycombio
