signalfx.Slo
Explore with Pulumi AI
Provides a Splunk Observability Cloud slo resource. This can be used to create and manage SLOs.
To learn more about this feature take a look on documentation for SLO.
Example
import * as pulumi from "@pulumi/pulumi";
import * as signalfx from "@pulumi/signalfx";
const fooServiceSlo = new signalfx.Slo("foo_service_slo", {
name: "foo service SLO",
type: "RequestBased",
description: "SLO monitoring for foo service",
input: {
programText: `G = data('spans.count', filter=filter('sf_error', 'false') and filter('sf_service', 'foo-service'))
T = data('spans.count', filter=filter('sf_service', 'foo-service'))`,
goodEventsLabel: "G",
totalEventsLabel: "T",
},
target: {
type: "RollingWindow",
slo: 95,
compliancePeriod: "30d",
alertRules: [{
type: "BREACH",
rules: [{
severity: "Warning",
notifications: ["Email,foo-alerts@bar.com"],
}],
}],
},
});
import pulumi
import pulumi_signalfx as signalfx
foo_service_slo = signalfx.Slo("foo_service_slo",
name="foo service SLO",
type="RequestBased",
description="SLO monitoring for foo service",
input={
"program_text": """G = data('spans.count', filter=filter('sf_error', 'false') and filter('sf_service', 'foo-service'))
T = data('spans.count', filter=filter('sf_service', 'foo-service'))""",
"good_events_label": "G",
"total_events_label": "T",
},
target={
"type": "RollingWindow",
"slo": 95,
"compliance_period": "30d",
"alert_rules": [{
"type": "BREACH",
"rules": [{
"severity": "Warning",
"notifications": ["Email,foo-alerts@bar.com"],
}],
}],
})
package main
import (
"github.com/pulumi/pulumi-signalfx/sdk/v7/go/signalfx"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := signalfx.NewSlo(ctx, "foo_service_slo", &signalfx.SloArgs{
Name: pulumi.String("foo service SLO"),
Type: pulumi.String("RequestBased"),
Description: pulumi.String("SLO monitoring for foo service"),
Input: &signalfx.SloInputTypeArgs{
ProgramText: pulumi.String("G = data('spans.count', filter=filter('sf_error', 'false') and filter('sf_service', 'foo-service'))\nT = data('spans.count', filter=filter('sf_service', 'foo-service'))"),
GoodEventsLabel: pulumi.String("G"),
TotalEventsLabel: pulumi.String("T"),
},
Target: &signalfx.SloTargetArgs{
Type: pulumi.String("RollingWindow"),
Slo: pulumi.Float64(95),
CompliancePeriod: pulumi.String("30d"),
AlertRules: signalfx.SloTargetAlertRuleArray{
&signalfx.SloTargetAlertRuleArgs{
Type: pulumi.String("BREACH"),
Rules: signalfx.SloTargetAlertRuleRuleArray{
&signalfx.SloTargetAlertRuleRuleArgs{
Severity: pulumi.String("Warning"),
Notifications: pulumi.StringArray{
pulumi.String("Email,foo-alerts@bar.com"),
},
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SignalFx = Pulumi.SignalFx;
return await Deployment.RunAsync(() =>
{
var fooServiceSlo = new SignalFx.Slo("foo_service_slo", new()
{
Name = "foo service SLO",
Type = "RequestBased",
Description = "SLO monitoring for foo service",
Input = new SignalFx.Inputs.SloInputArgs
{
ProgramText = @"G = data('spans.count', filter=filter('sf_error', 'false') and filter('sf_service', 'foo-service'))
T = data('spans.count', filter=filter('sf_service', 'foo-service'))",
GoodEventsLabel = "G",
TotalEventsLabel = "T",
},
Target = new SignalFx.Inputs.SloTargetArgs
{
Type = "RollingWindow",
Slo = 95,
CompliancePeriod = "30d",
AlertRules = new[]
{
new SignalFx.Inputs.SloTargetAlertRuleArgs
{
Type = "BREACH",
Rules = new[]
{
new SignalFx.Inputs.SloTargetAlertRuleRuleArgs
{
Severity = "Warning",
Notifications = new[]
{
"Email,foo-alerts@bar.com",
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.signalfx.Slo;
import com.pulumi.signalfx.SloArgs;
import com.pulumi.signalfx.inputs.SloInputArgs;
import com.pulumi.signalfx.inputs.SloTargetArgs;
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 fooServiceSlo = new Slo("fooServiceSlo", SloArgs.builder()
.name("foo service SLO")
.type("RequestBased")
.description("SLO monitoring for foo service")
.input(SloInputArgs.builder()
.programText("""
G = data('spans.count', filter=filter('sf_error', 'false') and filter('sf_service', 'foo-service'))
T = data('spans.count', filter=filter('sf_service', 'foo-service')) """)
.goodEventsLabel("G")
.totalEventsLabel("T")
.build())
.target(SloTargetArgs.builder()
.type("RollingWindow")
.slo(95)
.compliancePeriod("30d")
.alertRules(SloTargetAlertRuleArgs.builder()
.type("BREACH")
.rules(SloTargetAlertRuleRuleArgs.builder()
.severity("Warning")
.notifications("Email,foo-alerts@bar.com")
.build())
.build())
.build())
.build());
}
}
resources:
fooServiceSlo:
type: signalfx:Slo
name: foo_service_slo
properties:
name: foo service SLO
type: RequestBased
description: SLO monitoring for foo service
input:
programText: |-
G = data('spans.count', filter=filter('sf_error', 'false') and filter('sf_service', 'foo-service'))
T = data('spans.count', filter=filter('sf_service', 'foo-service'))
goodEventsLabel: G
totalEventsLabel: T
target:
type: RollingWindow
slo: 95
compliancePeriod: 30d
alertRules:
- type: BREACH
rules:
- severity: Warning
notifications:
- Email,foo-alerts@bar.com
Notification format
As Splunk Observability Cloud supports different notification mechanisms, use a comma-delimited string to provide inputs. If you want to specify multiple notifications, each must be a member in the list, like so:
notifications = ["Email,foo-alerts@example.com", "Slack,credentialId,channel"]
See Splunk Observability Cloud Docs for more information.
Here are some example of how to configure each notification type:
notifications = ["Email,foo-alerts@bar.com"]
Jira
Note that the credentialId
is the Splunk-provided ID shown after setting up your Jira integration. See also signalfx.jira.Integration
.
notifications = ["Jira,credentialId"]
OpsGenie
Note that the credentialId
is the Splunk-provided ID shown after setting up your Opsgenie integration. Team
here is hardcoded as the responderType
as that is the only acceptable type as per the API docs.
notifications = ["Opsgenie,credentialId,responderName,responderId,Team"]
PagerDuty
notifications = ["PagerDuty,credentialId"]
Slack
Exclude the #
on the channel name:
notifications = ["Slack,credentialId,channel"]
Team
Sends notifications to a team.
notifications = ["Team,teamId"]
TeamEmail
Sends an email to every member of a team.
notifications = ["TeamEmail,teamId"]
Splunk On-Call (formerly VictorOps)
notifications = ["VictorOps,credentialId,routingKey"]
Webhooks
You need to include all the commas even if you only use a credential id.
You can either configure a Webhook to use an existing integration’s credential id:
notifications = ["Webhook,credentialId,,"]
Or configure one inline:
notifications = ["Webhook,,secret,url"]
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,
input: Optional[SloInputArgs] = None,
target: Optional[SloTargetArgs] = None,
type: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewSlo(ctx *Context, name string, args SloArgs, opts ...ResourceOption) (*Slo, error)
public Slo(string name, SloArgs args, CustomResourceOptions? opts = null)
type: signalfx: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 SignalFx.Slo("sloResource", new()
{
Input = new SignalFx.Inputs.SloInputArgs
{
ProgramText = "string",
GoodEventsLabel = "string",
TotalEventsLabel = "string",
},
Target = new SignalFx.Inputs.SloTargetArgs
{
AlertRules = new[]
{
new SignalFx.Inputs.SloTargetAlertRuleArgs
{
Rules = new[]
{
new SignalFx.Inputs.SloTargetAlertRuleRuleArgs
{
Severity = "string",
Description = "string",
Disabled = false,
Notifications = new[]
{
"string",
},
ParameterizedBody = "string",
ParameterizedSubject = "string",
Parameters = new SignalFx.Inputs.SloTargetAlertRuleRuleParametersArgs
{
BurnRateThreshold1 = 0,
BurnRateThreshold2 = 0,
FireLasting = "string",
LongWindow1 = "string",
LongWindow2 = "string",
PercentErrorBudgetLeft = 0,
PercentOfLasting = 0,
ShortWindow1 = "string",
ShortWindow2 = "string",
},
RunbookUrl = "string",
Tip = "string",
},
},
Type = "string",
},
},
Slo = 0,
Type = "string",
CompliancePeriod = "string",
CycleStart = "string",
CycleType = "string",
},
Type = "string",
Description = "string",
Name = "string",
});
example, err := signalfx.NewSlo(ctx, "sloResource", &signalfx.SloArgs{
Input: &signalfx.SloInputTypeArgs{
ProgramText: pulumi.String("string"),
GoodEventsLabel: pulumi.String("string"),
TotalEventsLabel: pulumi.String("string"),
},
Target: &signalfx.SloTargetArgs{
AlertRules: signalfx.SloTargetAlertRuleArray{
&signalfx.SloTargetAlertRuleArgs{
Rules: signalfx.SloTargetAlertRuleRuleArray{
&signalfx.SloTargetAlertRuleRuleArgs{
Severity: pulumi.String("string"),
Description: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Notifications: pulumi.StringArray{
pulumi.String("string"),
},
ParameterizedBody: pulumi.String("string"),
ParameterizedSubject: pulumi.String("string"),
Parameters: &signalfx.SloTargetAlertRuleRuleParametersArgs{
BurnRateThreshold1: pulumi.Float64(0),
BurnRateThreshold2: pulumi.Float64(0),
FireLasting: pulumi.String("string"),
LongWindow1: pulumi.String("string"),
LongWindow2: pulumi.String("string"),
PercentErrorBudgetLeft: pulumi.Float64(0),
PercentOfLasting: pulumi.Float64(0),
ShortWindow1: pulumi.String("string"),
ShortWindow2: pulumi.String("string"),
},
RunbookUrl: pulumi.String("string"),
Tip: pulumi.String("string"),
},
},
Type: pulumi.String("string"),
},
},
Slo: pulumi.Float64(0),
Type: pulumi.String("string"),
CompliancePeriod: pulumi.String("string"),
CycleStart: pulumi.String("string"),
CycleType: pulumi.String("string"),
},
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var sloResource = new Slo("sloResource", SloArgs.builder()
.input(SloInputArgs.builder()
.programText("string")
.goodEventsLabel("string")
.totalEventsLabel("string")
.build())
.target(SloTargetArgs.builder()
.alertRules(SloTargetAlertRuleArgs.builder()
.rules(SloTargetAlertRuleRuleArgs.builder()
.severity("string")
.description("string")
.disabled(false)
.notifications("string")
.parameterizedBody("string")
.parameterizedSubject("string")
.parameters(SloTargetAlertRuleRuleParametersArgs.builder()
.burnRateThreshold1(0)
.burnRateThreshold2(0)
.fireLasting("string")
.longWindow1("string")
.longWindow2("string")
.percentErrorBudgetLeft(0)
.percentOfLasting(0)
.shortWindow1("string")
.shortWindow2("string")
.build())
.runbookUrl("string")
.tip("string")
.build())
.type("string")
.build())
.slo(0)
.type("string")
.compliancePeriod("string")
.cycleStart("string")
.cycleType("string")
.build())
.type("string")
.description("string")
.name("string")
.build());
slo_resource = signalfx.Slo("sloResource",
input=signalfx.SloInputArgs(
program_text="string",
good_events_label="string",
total_events_label="string",
),
target=signalfx.SloTargetArgs(
alert_rules=[signalfx.SloTargetAlertRuleArgs(
rules=[signalfx.SloTargetAlertRuleRuleArgs(
severity="string",
description="string",
disabled=False,
notifications=["string"],
parameterized_body="string",
parameterized_subject="string",
parameters=signalfx.SloTargetAlertRuleRuleParametersArgs(
burn_rate_threshold1=0,
burn_rate_threshold2=0,
fire_lasting="string",
long_window1="string",
long_window2="string",
percent_error_budget_left=0,
percent_of_lasting=0,
short_window1="string",
short_window2="string",
),
runbook_url="string",
tip="string",
)],
type="string",
)],
slo=0,
type="string",
compliance_period="string",
cycle_start="string",
cycle_type="string",
),
type="string",
description="string",
name="string")
const sloResource = new signalfx.Slo("sloResource", {
input: {
programText: "string",
goodEventsLabel: "string",
totalEventsLabel: "string",
},
target: {
alertRules: [{
rules: [{
severity: "string",
description: "string",
disabled: false,
notifications: ["string"],
parameterizedBody: "string",
parameterizedSubject: "string",
parameters: {
burnRateThreshold1: 0,
burnRateThreshold2: 0,
fireLasting: "string",
longWindow1: "string",
longWindow2: "string",
percentErrorBudgetLeft: 0,
percentOfLasting: 0,
shortWindow1: "string",
shortWindow2: "string",
},
runbookUrl: "string",
tip: "string",
}],
type: "string",
}],
slo: 0,
type: "string",
compliancePeriod: "string",
cycleStart: "string",
cycleType: "string",
},
type: "string",
description: "string",
name: "string",
});
type: signalfx:Slo
properties:
description: string
input:
goodEventsLabel: string
programText: string
totalEventsLabel: string
name: string
target:
alertRules:
- rules:
- description: string
disabled: false
notifications:
- string
parameterizedBody: string
parameterizedSubject: string
parameters:
burnRateThreshold1: 0
burnRateThreshold2: 0
fireLasting: string
longWindow1: string
longWindow2: string
percentErrorBudgetLeft: 0
percentOfLasting: 0
shortWindow1: string
shortWindow2: string
runbookUrl: string
severity: string
tip: string
type: string
compliancePeriod: string
cycleStart: string
cycleType: string
slo: 0
type: string
type: string
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
The Slo resource accepts the following input properties:
- Input
Pulumi.
Signal Fx. Inputs. Slo Input - Properties to configure an SLO object inputs
- Target
Pulumi.
Signal Fx. Inputs. Slo Target - Define target value of the service level indicator in the appropriate time period.
- Type string
- Type of the SLO. Currently just:
"RequestBased"
is supported. - Description string
- Description of the SLO.
- Name string
- Name of the SLO. Each SLO name must be unique within an organization.
- Input
Slo
Input Type Args - Properties to configure an SLO object inputs
- Target
Slo
Target Args - Define target value of the service level indicator in the appropriate time period.
- Type string
- Type of the SLO. Currently just:
"RequestBased"
is supported. - Description string
- Description of the SLO.
- Name string
- Name of the SLO. Each SLO name must be unique within an organization.
- input
Slo
Input - Properties to configure an SLO object inputs
- target
Slo
Target - Define target value of the service level indicator in the appropriate time period.
- type String
- Type of the SLO. Currently just:
"RequestBased"
is supported. - description String
- Description of the SLO.
- name String
- Name of the SLO. Each SLO name must be unique within an organization.
- input
Slo
Input - Properties to configure an SLO object inputs
- target
Slo
Target - Define target value of the service level indicator in the appropriate time period.
- type string
- Type of the SLO. Currently just:
"RequestBased"
is supported. - description string
- Description of the SLO.
- name string
- Name of the SLO. Each SLO name must be unique within an organization.
- input
Slo
Input Args - Properties to configure an SLO object inputs
- target
Slo
Target Args - Define target value of the service level indicator in the appropriate time period.
- type str
- Type of the SLO. Currently just:
"RequestBased"
is supported. - description str
- Description of the SLO.
- name str
- Name of the SLO. Each SLO name must be unique within an organization.
- input Property Map
- Properties to configure an SLO object inputs
- target Property Map
- Define target value of the service level indicator in the appropriate time period.
- type String
- Type of the SLO. Currently just:
"RequestBased"
is supported. - description String
- Description of the SLO.
- name String
- Name of the SLO. Each SLO name must be unique within an organization.
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,
description: Optional[str] = None,
input: Optional[SloInputArgs] = None,
name: Optional[str] = None,
target: Optional[SloTargetArgs] = None,
type: Optional[str] = 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)
Resource lookup is not supported in YAML
- 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.
- Description string
- Description of the SLO.
- Input
Pulumi.
Signal Fx. Inputs. Slo Input - Properties to configure an SLO object inputs
- Name string
- Name of the SLO. Each SLO name must be unique within an organization.
- Target
Pulumi.
Signal Fx. Inputs. Slo Target - Define target value of the service level indicator in the appropriate time period.
- Type string
- Type of the SLO. Currently just:
"RequestBased"
is supported.
- Description string
- Description of the SLO.
- Input
Slo
Input Type Args - Properties to configure an SLO object inputs
- Name string
- Name of the SLO. Each SLO name must be unique within an organization.
- Target
Slo
Target Args - Define target value of the service level indicator in the appropriate time period.
- Type string
- Type of the SLO. Currently just:
"RequestBased"
is supported.
- description String
- Description of the SLO.
- input
Slo
Input - Properties to configure an SLO object inputs
- name String
- Name of the SLO. Each SLO name must be unique within an organization.
- target
Slo
Target - Define target value of the service level indicator in the appropriate time period.
- type String
- Type of the SLO. Currently just:
"RequestBased"
is supported.
- description string
- Description of the SLO.
- input
Slo
Input - Properties to configure an SLO object inputs
- name string
- Name of the SLO. Each SLO name must be unique within an organization.
- target
Slo
Target - Define target value of the service level indicator in the appropriate time period.
- type string
- Type of the SLO. Currently just:
"RequestBased"
is supported.
- description str
- Description of the SLO.
- input
Slo
Input Args - Properties to configure an SLO object inputs
- name str
- Name of the SLO. Each SLO name must be unique within an organization.
- target
Slo
Target Args - Define target value of the service level indicator in the appropriate time period.
- type str
- Type of the SLO. Currently just:
"RequestBased"
is supported.
- description String
- Description of the SLO.
- input Property Map
- Properties to configure an SLO object inputs
- name String
- Name of the SLO. Each SLO name must be unique within an organization.
- target Property Map
- Define target value of the service level indicator in the appropriate time period.
- type String
- Type of the SLO. Currently just:
"RequestBased"
is supported.
Supporting Types
SloInput, SloInputArgs
- Program
Text string - SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
- Good
Events stringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of successful events - Total
Events stringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of total events
- Program
Text string - SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
- Good
Events stringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of successful events - Total
Events stringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of total events
- program
Text String - SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
- good
Events StringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of successful events - total
Events StringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of total events
- program
Text string - SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
- good
Events stringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of successful events - total
Events stringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of total events
- program_
text str - SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
- good_
events_ strlabel - Label used in
"program_text"
that refers to the data block which contains the stream of successful events - total_
events_ strlabel - Label used in
"program_text"
that refers to the data block which contains the stream of total events
- program
Text String - SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
- good
Events StringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of successful events - total
Events StringLabel - Label used in
"program_text"
that refers to the data block which contains the stream of total events
SloTarget, SloTargetArgs
- Alert
Rules List<Pulumi.Signal Fx. Inputs. Slo Target Alert Rule> - List of alert rules you want to set for this SLO target. An SLO alert rule of type BREACH is always required.
- Slo double
- Target value in the form of a percentage
- Type string
- SLO target type can be the following type:
"RollingWindow"
,"CalendarWindow"
- Compliance
Period string - Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
- Cycle
Start string - It can be used to change the cycle start time. For example, you can specify sunday as the start of the week (instead of the default monday)
- Cycle
Type string - The cycle type of the calendar window, e.g. week, month.
- Alert
Rules []SloTarget Alert Rule - List of alert rules you want to set for this SLO target. An SLO alert rule of type BREACH is always required.
- Slo float64
- Target value in the form of a percentage
- Type string
- SLO target type can be the following type:
"RollingWindow"
,"CalendarWindow"
- Compliance
Period string - Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
- Cycle
Start string - It can be used to change the cycle start time. For example, you can specify sunday as the start of the week (instead of the default monday)
- Cycle
Type string - The cycle type of the calendar window, e.g. week, month.
- alert
Rules List<SloTarget Alert Rule> - List of alert rules you want to set for this SLO target. An SLO alert rule of type BREACH is always required.
- slo Double
- Target value in the form of a percentage
- type String
- SLO target type can be the following type:
"RollingWindow"
,"CalendarWindow"
- compliance
Period String - Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
- cycle
Start String - It can be used to change the cycle start time. For example, you can specify sunday as the start of the week (instead of the default monday)
- cycle
Type String - The cycle type of the calendar window, e.g. week, month.
- alert
Rules SloTarget Alert Rule[] - List of alert rules you want to set for this SLO target. An SLO alert rule of type BREACH is always required.
- slo number
- Target value in the form of a percentage
- type string
- SLO target type can be the following type:
"RollingWindow"
,"CalendarWindow"
- compliance
Period string - Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
- cycle
Start string - It can be used to change the cycle start time. For example, you can specify sunday as the start of the week (instead of the default monday)
- cycle
Type string - The cycle type of the calendar window, e.g. week, month.
- alert_
rules Sequence[SloTarget Alert Rule] - List of alert rules you want to set for this SLO target. An SLO alert rule of type BREACH is always required.
- slo float
- Target value in the form of a percentage
- type str
- SLO target type can be the following type:
"RollingWindow"
,"CalendarWindow"
- compliance_
period str - Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
- cycle_
start str - It can be used to change the cycle start time. For example, you can specify sunday as the start of the week (instead of the default monday)
- cycle_
type str - The cycle type of the calendar window, e.g. week, month.
- alert
Rules List<Property Map> - List of alert rules you want to set for this SLO target. An SLO alert rule of type BREACH is always required.
- slo Number
- Target value in the form of a percentage
- type String
- SLO target type can be the following type:
"RollingWindow"
,"CalendarWindow"
- compliance
Period String - Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
- cycle
Start String - It can be used to change the cycle start time. For example, you can specify sunday as the start of the week (instead of the default monday)
- cycle
Type String - The cycle type of the calendar window, e.g. week, month.
SloTargetAlertRule, SloTargetAlertRuleArgs
- Rules
List<Pulumi.
Signal Fx. Inputs. Slo Target Alert Rule Rule> - Set of rules used for alerting.
- Type string
- SLO alert rule can be one of the following types: BREACH, ERROR_BUDGET_LEFT, BURN_RATE. Within an SLO object, you can only specify one SLO alert_rule per type. For example, you can't specify two alert_rule of type BREACH. See SLO alerts for more info.
- Rules
[]Slo
Target Alert Rule Rule - Set of rules used for alerting.
- Type string
- SLO alert rule can be one of the following types: BREACH, ERROR_BUDGET_LEFT, BURN_RATE. Within an SLO object, you can only specify one SLO alert_rule per type. For example, you can't specify two alert_rule of type BREACH. See SLO alerts for more info.
- rules
List<Slo
Target Alert Rule Rule> - Set of rules used for alerting.
- type String
- SLO alert rule can be one of the following types: BREACH, ERROR_BUDGET_LEFT, BURN_RATE. Within an SLO object, you can only specify one SLO alert_rule per type. For example, you can't specify two alert_rule of type BREACH. See SLO alerts for more info.
- rules
Slo
Target Alert Rule Rule[] - Set of rules used for alerting.
- type string
- SLO alert rule can be one of the following types: BREACH, ERROR_BUDGET_LEFT, BURN_RATE. Within an SLO object, you can only specify one SLO alert_rule per type. For example, you can't specify two alert_rule of type BREACH. See SLO alerts for more info.
- rules
Sequence[Slo
Target Alert Rule Rule] - Set of rules used for alerting.
- type str
- SLO alert rule can be one of the following types: BREACH, ERROR_BUDGET_LEFT, BURN_RATE. Within an SLO object, you can only specify one SLO alert_rule per type. For example, you can't specify two alert_rule of type BREACH. See SLO alerts for more info.
- rules List<Property Map>
- Set of rules used for alerting.
- type String
- SLO alert rule can be one of the following types: BREACH, ERROR_BUDGET_LEFT, BURN_RATE. Within an SLO object, you can only specify one SLO alert_rule per type. For example, you can't specify two alert_rule of type BREACH. See SLO alerts for more info.
SloTargetAlertRuleRule, SloTargetAlertRuleRuleArgs
- Severity string
- The severity of the rule, must be one of:
"Critical"
,"Major"
,"Minor"
,"Warning"
,"Info"
. - Description string
- Description for the rule. Displays as the alert condition in the Alert Rules tab of the detector editor in the web UI.
- Disabled bool
- When true, notifications and events will not be generated for the detect label.
false
by default. - Notifications List<string>
- List of strings specifying where notifications will be sent when an incident occurs. See Create SLO for more info.
- Parameterized
Body string - Custom notification message body when an alert is triggered. See Alert message for more info.
- Parameterized
Subject string - Custom notification message subject when an alert is triggered. See Alert message for more info.
- Parameters
Pulumi.
Signal Fx. Inputs. Slo Target Alert Rule Rule Parameters - Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
- Runbook
Url string - URL of page to consult when an alert is triggered. This can be used with custom notification messages.
- Tip string
- Plain text suggested first course of action, such as a command line to execute. This can be used with custom notification messages.
- Severity string
- The severity of the rule, must be one of:
"Critical"
,"Major"
,"Minor"
,"Warning"
,"Info"
. - Description string
- Description for the rule. Displays as the alert condition in the Alert Rules tab of the detector editor in the web UI.
- Disabled bool
- When true, notifications and events will not be generated for the detect label.
false
by default. - Notifications []string
- List of strings specifying where notifications will be sent when an incident occurs. See Create SLO for more info.
- Parameterized
Body string - Custom notification message body when an alert is triggered. See Alert message for more info.
- Parameterized
Subject string - Custom notification message subject when an alert is triggered. See Alert message for more info.
- Parameters
Slo
Target Alert Rule Rule Parameters - Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
- Runbook
Url string - URL of page to consult when an alert is triggered. This can be used with custom notification messages.
- Tip string
- Plain text suggested first course of action, such as a command line to execute. This can be used with custom notification messages.
- severity String
- The severity of the rule, must be one of:
"Critical"
,"Major"
,"Minor"
,"Warning"
,"Info"
. - description String
- Description for the rule. Displays as the alert condition in the Alert Rules tab of the detector editor in the web UI.
- disabled Boolean
- When true, notifications and events will not be generated for the detect label.
false
by default. - notifications List<String>
- List of strings specifying where notifications will be sent when an incident occurs. See Create SLO for more info.
- parameterized
Body String - Custom notification message body when an alert is triggered. See Alert message for more info.
- parameterized
Subject String - Custom notification message subject when an alert is triggered. See Alert message for more info.
- parameters
Slo
Target Alert Rule Rule Parameters - Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
- runbook
Url String - URL of page to consult when an alert is triggered. This can be used with custom notification messages.
- tip String
- Plain text suggested first course of action, such as a command line to execute. This can be used with custom notification messages.
- severity string
- The severity of the rule, must be one of:
"Critical"
,"Major"
,"Minor"
,"Warning"
,"Info"
. - description string
- Description for the rule. Displays as the alert condition in the Alert Rules tab of the detector editor in the web UI.
- disabled boolean
- When true, notifications and events will not be generated for the detect label.
false
by default. - notifications string[]
- List of strings specifying where notifications will be sent when an incident occurs. See Create SLO for more info.
- parameterized
Body string - Custom notification message body when an alert is triggered. See Alert message for more info.
- parameterized
Subject string - Custom notification message subject when an alert is triggered. See Alert message for more info.
- parameters
Slo
Target Alert Rule Rule Parameters - Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
- runbook
Url string - URL of page to consult when an alert is triggered. This can be used with custom notification messages.
- tip string
- Plain text suggested first course of action, such as a command line to execute. This can be used with custom notification messages.
- severity str
- The severity of the rule, must be one of:
"Critical"
,"Major"
,"Minor"
,"Warning"
,"Info"
. - description str
- Description for the rule. Displays as the alert condition in the Alert Rules tab of the detector editor in the web UI.
- disabled bool
- When true, notifications and events will not be generated for the detect label.
false
by default. - notifications Sequence[str]
- List of strings specifying where notifications will be sent when an incident occurs. See Create SLO for more info.
- parameterized_
body str - Custom notification message body when an alert is triggered. See Alert message for more info.
- parameterized_
subject str - Custom notification message subject when an alert is triggered. See Alert message for more info.
- parameters
Slo
Target Alert Rule Rule Parameters - Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
- runbook_
url str - URL of page to consult when an alert is triggered. This can be used with custom notification messages.
- tip str
- Plain text suggested first course of action, such as a command line to execute. This can be used with custom notification messages.
- severity String
- The severity of the rule, must be one of:
"Critical"
,"Major"
,"Minor"
,"Warning"
,"Info"
. - description String
- Description for the rule. Displays as the alert condition in the Alert Rules tab of the detector editor in the web UI.
- disabled Boolean
- When true, notifications and events will not be generated for the detect label.
false
by default. - notifications List<String>
- List of strings specifying where notifications will be sent when an incident occurs. See Create SLO for more info.
- parameterized
Body String - Custom notification message body when an alert is triggered. See Alert message for more info.
- parameterized
Subject String - Custom notification message subject when an alert is triggered. See Alert message for more info.
- parameters Property Map
- Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
- runbook
Url String - URL of page to consult when an alert is triggered. This can be used with custom notification messages.
- tip String
- Plain text suggested first course of action, such as a command line to execute. This can be used with custom notification messages.
SloTargetAlertRuleRuleParameters, SloTargetAlertRuleRuleParametersArgs
- Burn
Rate doubleThreshold1 - Burn rate threshold 1 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_1"
parameter. See SLO alerts for more info. - Burn
Rate doubleThreshold2 - Burn rate threshold 2 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_2"
parameter. See SLO alerts for more info. - Fire
Lasting string - Duration that indicates how long the alert condition is met before the alert is triggered. The value must be positive and smaller than the compliance period of the SLO target. Note:
"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the fireLasting parameter. Default:"5m"
- Long
Window1 string - Long window 1 used in burn rate alert calculation. This value must be longer than
"short_window_1"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_1"
parameter. See SLO alerts for more info. - Long
Window2 string - Long window 2 used in burn rate alert calculation. This value must be longer than
"short_window_2"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_2"
parameter. See SLO alerts for more info. - Percent
Error doubleBudget Left - Error budget must be equal to or smaller than this percentage for the alert to be triggered. Note:
"ERROR_BUDGET_LEFT"
alert rules use the"percent_error_budget_left"
parameter. Default:100
- Percent
Of doubleLasting - Percentage of the
"fire_lasting"
duration that the alert condition is met before the alert is triggered. Note:"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the"percent_of_lasting"
parameter. Default:100
- Short
Window1 string - Short window 1 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_1"
. Note:"BURN_RATE"
alert rules use the"short_window_1"
parameter. See SLO alerts for more info. - Short
Window2 string - Short window 2 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_2"
. Note:"BURN_RATE"
alert rules use the"short_window_2"
parameter. See SLO alerts for more info.
- Burn
Rate float64Threshold1 - Burn rate threshold 1 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_1"
parameter. See SLO alerts for more info. - Burn
Rate float64Threshold2 - Burn rate threshold 2 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_2"
parameter. See SLO alerts for more info. - Fire
Lasting string - Duration that indicates how long the alert condition is met before the alert is triggered. The value must be positive and smaller than the compliance period of the SLO target. Note:
"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the fireLasting parameter. Default:"5m"
- Long
Window1 string - Long window 1 used in burn rate alert calculation. This value must be longer than
"short_window_1"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_1"
parameter. See SLO alerts for more info. - Long
Window2 string - Long window 2 used in burn rate alert calculation. This value must be longer than
"short_window_2"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_2"
parameter. See SLO alerts for more info. - Percent
Error float64Budget Left - Error budget must be equal to or smaller than this percentage for the alert to be triggered. Note:
"ERROR_BUDGET_LEFT"
alert rules use the"percent_error_budget_left"
parameter. Default:100
- Percent
Of float64Lasting - Percentage of the
"fire_lasting"
duration that the alert condition is met before the alert is triggered. Note:"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the"percent_of_lasting"
parameter. Default:100
- Short
Window1 string - Short window 1 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_1"
. Note:"BURN_RATE"
alert rules use the"short_window_1"
parameter. See SLO alerts for more info. - Short
Window2 string - Short window 2 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_2"
. Note:"BURN_RATE"
alert rules use the"short_window_2"
parameter. See SLO alerts for more info.
- burn
Rate DoubleThreshold1 - Burn rate threshold 1 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_1"
parameter. See SLO alerts for more info. - burn
Rate DoubleThreshold2 - Burn rate threshold 2 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_2"
parameter. See SLO alerts for more info. - fire
Lasting String - Duration that indicates how long the alert condition is met before the alert is triggered. The value must be positive and smaller than the compliance period of the SLO target. Note:
"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the fireLasting parameter. Default:"5m"
- long
Window1 String - Long window 1 used in burn rate alert calculation. This value must be longer than
"short_window_1"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_1"
parameter. See SLO alerts for more info. - long
Window2 String - Long window 2 used in burn rate alert calculation. This value must be longer than
"short_window_2"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_2"
parameter. See SLO alerts for more info. - percent
Error DoubleBudget Left - Error budget must be equal to or smaller than this percentage for the alert to be triggered. Note:
"ERROR_BUDGET_LEFT"
alert rules use the"percent_error_budget_left"
parameter. Default:100
- percent
Of DoubleLasting - Percentage of the
"fire_lasting"
duration that the alert condition is met before the alert is triggered. Note:"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the"percent_of_lasting"
parameter. Default:100
- short
Window1 String - Short window 1 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_1"
. Note:"BURN_RATE"
alert rules use the"short_window_1"
parameter. See SLO alerts for more info. - short
Window2 String - Short window 2 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_2"
. Note:"BURN_RATE"
alert rules use the"short_window_2"
parameter. See SLO alerts for more info.
- burn
Rate numberThreshold1 - Burn rate threshold 1 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_1"
parameter. See SLO alerts for more info. - burn
Rate numberThreshold2 - Burn rate threshold 2 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_2"
parameter. See SLO alerts for more info. - fire
Lasting string - Duration that indicates how long the alert condition is met before the alert is triggered. The value must be positive and smaller than the compliance period of the SLO target. Note:
"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the fireLasting parameter. Default:"5m"
- long
Window1 string - Long window 1 used in burn rate alert calculation. This value must be longer than
"short_window_1"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_1"
parameter. See SLO alerts for more info. - long
Window2 string - Long window 2 used in burn rate alert calculation. This value must be longer than
"short_window_2"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_2"
parameter. See SLO alerts for more info. - percent
Error numberBudget Left - Error budget must be equal to or smaller than this percentage for the alert to be triggered. Note:
"ERROR_BUDGET_LEFT"
alert rules use the"percent_error_budget_left"
parameter. Default:100
- percent
Of numberLasting - Percentage of the
"fire_lasting"
duration that the alert condition is met before the alert is triggered. Note:"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the"percent_of_lasting"
parameter. Default:100
- short
Window1 string - Short window 1 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_1"
. Note:"BURN_RATE"
alert rules use the"short_window_1"
parameter. See SLO alerts for more info. - short
Window2 string - Short window 2 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_2"
. Note:"BURN_RATE"
alert rules use the"short_window_2"
parameter. See SLO alerts for more info.
- burn_
rate_ floatthreshold1 - Burn rate threshold 1 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_1"
parameter. See SLO alerts for more info. - burn_
rate_ floatthreshold2 - Burn rate threshold 2 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_2"
parameter. See SLO alerts for more info. - fire_
lasting str - Duration that indicates how long the alert condition is met before the alert is triggered. The value must be positive and smaller than the compliance period of the SLO target. Note:
"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the fireLasting parameter. Default:"5m"
- long_
window1 str - Long window 1 used in burn rate alert calculation. This value must be longer than
"short_window_1"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_1"
parameter. See SLO alerts for more info. - long_
window2 str - Long window 2 used in burn rate alert calculation. This value must be longer than
"short_window_2"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_2"
parameter. See SLO alerts for more info. - percent_
error_ floatbudget_ left - Error budget must be equal to or smaller than this percentage for the alert to be triggered. Note:
"ERROR_BUDGET_LEFT"
alert rules use the"percent_error_budget_left"
parameter. Default:100
- percent_
of_ floatlasting - Percentage of the
"fire_lasting"
duration that the alert condition is met before the alert is triggered. Note:"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the"percent_of_lasting"
parameter. Default:100
- short_
window1 str - Short window 1 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_1"
. Note:"BURN_RATE"
alert rules use the"short_window_1"
parameter. See SLO alerts for more info. - short_
window2 str - Short window 2 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_2"
. Note:"BURN_RATE"
alert rules use the"short_window_2"
parameter. See SLO alerts for more info.
- burn
Rate NumberThreshold1 - Burn rate threshold 1 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_1"
parameter. See SLO alerts for more info. - burn
Rate NumberThreshold2 - Burn rate threshold 2 used in burn rate alert calculation. This value must be between 0 and 100/(100-SLO target). Note:
"BURN_RATE"
alert rules use the"burn_rate_threshold_2"
parameter. See SLO alerts for more info. - fire
Lasting String - Duration that indicates how long the alert condition is met before the alert is triggered. The value must be positive and smaller than the compliance period of the SLO target. Note:
"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the fireLasting parameter. Default:"5m"
- long
Window1 String - Long window 1 used in burn rate alert calculation. This value must be longer than
"short_window_1"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_1"
parameter. See SLO alerts for more info. - long
Window2 String - Long window 2 used in burn rate alert calculation. This value must be longer than
"short_window_2"
and shorter than 90 days. Note:"BURN_RATE"
alert rules use the"long_window_2"
parameter. See SLO alerts for more info. - percent
Error NumberBudget Left - Error budget must be equal to or smaller than this percentage for the alert to be triggered. Note:
"ERROR_BUDGET_LEFT"
alert rules use the"percent_error_budget_left"
parameter. Default:100
- percent
Of NumberLasting - Percentage of the
"fire_lasting"
duration that the alert condition is met before the alert is triggered. Note:"BREACH"
and"ERROR_BUDGET_LEFT"
alert rules use the"percent_of_lasting"
parameter. Default:100
- short
Window1 String - Short window 1 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_1"
. Note:"BURN_RATE"
alert rules use the"short_window_1"
parameter. See SLO alerts for more info. - short
Window2 String - Short window 2 used in burn rate alert calculation. This value must be longer than 1/30 of
"long_window_2"
. Note:"BURN_RATE"
alert rules use the"short_window_2"
parameter. See SLO alerts for more info.
Package Details
- Repository
- SignalFx pulumi/pulumi-signalfx
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
signalfx
Terraform Provider.