# Resource:<span pulumi-lang-nodejs=" honeycombio.Slo
" pulumi-lang-dotnet=" honeycombio.Slo " pulumi-lang-go=" Slo " pulumi-lang-python=" Slo " pulumi-lang-yaml=" honeycombio.Slo " pulumi-lang-java=" honeycombio.Slo “> honeycombio.Slo Creates a service level objective (SLO). For more information about SLOs, check out Set Service Level Objectives (SLOs).
Example Usage
Multi-dataset SLO
$ pulumi import honeycombio:index/slo:Slo my_slo bj9BwOb1uKz
You can find the ID in the URL bar when visiting the SLO from the UI.
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,
tags: Optional[Mapping[str, str]] = None)func NewSlo(ctx *Context, name string, args SloArgs, opts ...ResourceOption) (*Slo, error)public Slo(string name, SloArgs args, CustomResourceOptions? opts = null)type: honeycombio: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 Honeycombio.Slo("sloResource", new()
{
Sli = "string",
TargetPercentage = 0,
TimePeriod = 0,
Dataset = "string",
Datasets = new[]
{
"string",
},
Description = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
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"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var sloResource = new Slo("sloResource", SloArgs.builder()
.sli("string")
.targetPercentage(0.0)
.timePeriod(0.0)
.dataset("string")
.datasets("string")
.description("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
slo_resource = honeycombio.Slo("sloResource",
sli="string",
target_percentage=0,
time_period=0,
dataset="string",
datasets=["string"],
description="string",
name="string",
tags={
"string": "string",
})
const sloResource = new honeycombio.Slo("sloResource", {
sli: "string",
targetPercentage: 0,
timePeriod: 0,
dataset: "string",
datasets: ["string"],
description: "string",
name: "string",
tags: {
string: "string",
},
});
type: honeycombio:Slo
properties:
dataset: string
datasets:
- string
description: string
name: string
sli: string
tags:
string: string
targetPercentage: 0
timePeriod: 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:
- 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.
- Target
Percentage double - The percentage of qualified events that you expect to succeed during the
time_period. - Time
Period double The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- Dictionary<string, string>
- Map of tags to assign to the resource.
- 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.
- Target
Percentage float64 - The percentage of qualified events that you expect to succeed during the
time_period. - Time
Period float64 The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- map[string]string
- Map of tags to assign to the resource.
- 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.
- target
Percentage Double - The percentage of qualified events that you expect to succeed during the
time_period. - time
Period Double The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- Map<String,String>
- Map of tags to assign to the resource.
- 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.
- target
Percentage number - The percentage of qualified events that you expect to succeed during the
time_period. - time
Period number The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- {[key: string]: string}
- Map of tags to assign to the resource.
- 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.
- 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
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- Mapping[str, str]
- Map of tags to assign to the resource.
- 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.
- target
Percentage Number - The percentage of qualified events that you expect to succeed during the
time_period. - time
Period Number The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- Map<String>
- Map of tags to assign to the resource.
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,
tags: Optional[Mapping[str, str]] = None,
target_percentage: Optional[float] = None,
time_period: Optional[float] = None) -> Slofunc 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
- 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.
- 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.
- Dictionary<string, string>
- Map of tags to assign to the resource.
- Target
Percentage double - The percentage of qualified events that you expect to succeed during the
time_period. - Time
Period double The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- map[string]string
- Map of tags to assign to the resource.
- Target
Percentage float64 - The percentage of qualified events that you expect to succeed during the
time_period. - Time
Period float64 The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- Map<String,String>
- Map of tags to assign to the resource.
- target
Percentage Double - The percentage of qualified events that you expect to succeed during the
time_period. - time
Period Double The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- {[key: string]: string}
- Map of tags to assign to the resource.
- target
Percentage number - The percentage of qualified events that you expect to succeed during the
time_period. - time
Period number The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- Mapping[str, str]
- Map of tags to assign to the resource.
- 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
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto 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.
- Map<String>
- Map of tags to assign to the resource.
- target
Percentage Number - The percentage of qualified events that you expect to succeed during the
time_period. - time
Period Number The time period, in days, over which your SLO will be evaluated.
Note
datasetwill be deprecated in a future release. One ofdatasetordatasetsis required. In the meantime, you can swapdatasetwith a single value array fordatasetsto effectively evaluate to the same configuration.
Package Details
- Repository
- honeycombio honeycombio/terraform-provider-honeycombio
- License
- Notes
- This Pulumi package is based on the
honeycombioTerraform Provider.
