1. Packages
  2. SignalFx
  3. API Docs
  4. Slo
SignalFx v7.1.3 published on Wednesday, Apr 24, 2024 by Pulumi

signalfx.Slo

Explore with Pulumi AI

signalfx logo
SignalFx v7.1.3 published on Wednesday, Apr 24, 2024 by Pulumi

    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

    resource "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'))\nT = 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_rule {
          type = "BREACH"
    
          rule {
            severity = "Warning"
            notifications = ["Email,foo-alerts@bar.com"]
          }
        }
      }
    }
    
    provider "signalfx" {}
    

    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:

    Email

    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"]
    

    Arguments

    • name - (Required) Name of the SLO. Each SLO name must be unique within an organization.
    • description - (Optional) Description of the SLO.
    • type - (Required) Type of the SLO. Currently just: "RequestBased" is supported.
    • input - (Required) Properties to configure an SLO object inputs
      • program_text - (Required) SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
      • good_events_label - (Required) Label used in "program_text" that refers to the data block which contains the stream of successful events
      • total_events_label - (Required) Label used in "program_text" that refers to the data block which contains the stream of total events
    • target - (Required) Define target value of the service level indicator in the appropriate time period.
      • type - (Required) SLO target type can be the following type: "RollingWindow"
      • compliance_period - (Required for "RollingWindow" type) Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
      • slo - (Required) Target value in the form of a percentage
      • alert_rule - (Required) List of alert rules you want to set for this SLO target. An SLO alert rule of type BREACH is always required.
        • type - (Required) 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.
        • rule - (Required) Set of rules used for alerting.
          • severity - (Required) The severity of the rule, must be one of: "Critical", "Major", "Minor", "Warning", "Info".
          • description - (Optional) Description for the rule. Displays as the alert condition in the Alert Rules tab of the detector editor in the web UI.
          • disabled - (Optional) When true, notifications and events will not be generated for the detect label. false by default.
          • notifications - (Optional) List of strings specifying where notifications will be sent when an incident occurs. See Create SLO for more info.
          • parameterized_body - (Optional) Custom notification message body when an alert is triggered. See Alert message for more info.
          • parameterized_subject - (Optional) Custom notification message subject when an alert is triggered. See Alert message for more info.
          • runbook_url - (Optional) URL of page to consult when an alert is triggered. This can be used with custom notification messages.
          • tip - (Optional) Plain text suggested first course of action, such as a command line to execute. This can be used with custom notification messages.
          • parameters - (Optional) Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
            • fire_lasting - (Optional) 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"
            • percent_of_lasting - (Optional) 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
            • percent_error_budget_left - (Optional) 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
            • short_window_1 - (Optional) 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_window_2 - (Optional) 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.
            • long_window_1 - (Optional) 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_window_2 - (Optional) 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.
            • burn_rate_threshold_1 - (Optional) 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_threshold_2 - (Optional) 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.

    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)
    public Slo(String name, SloArgs args)
    public Slo(String name, SloArgs args, CustomResourceOptions options)
    
    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.

    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",
        },
        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"),
    	},
    	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")
            .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",
        ),
        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",
        },
        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
            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.SignalFx.Inputs.SloInput
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    Target Pulumi.SignalFx.Inputs.SloTarget
    Define target value of the service level indicator in the appropriate time period.
    Type string
    Type of the SLO. Currently only RequestBased SLO is supported
    Description string
    Description of the SLO
    Name string
    Name of the SLO
    Input SloInputTypeArgs
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    Target SloTargetArgs
    Define target value of the service level indicator in the appropriate time period.
    Type string
    Type of the SLO. Currently only RequestBased SLO is supported
    Description string
    Description of the SLO
    Name string
    Name of the SLO
    input SloInput
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    target SloTarget
    Define target value of the service level indicator in the appropriate time period.
    type String
    Type of the SLO. Currently only RequestBased SLO is supported
    description String
    Description of the SLO
    name String
    Name of the SLO
    input SloInput
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    target SloTarget
    Define target value of the service level indicator in the appropriate time period.
    type string
    Type of the SLO. Currently only RequestBased SLO is supported
    description string
    Description of the SLO
    name string
    Name of the SLO
    input SloInputArgs
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    target SloTargetArgs
    Define target value of the service level indicator in the appropriate time period.
    type str
    Type of the SLO. Currently only RequestBased SLO is supported
    description str
    Description of the SLO
    name str
    Name of the SLO
    input Property Map
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    target Property Map
    Define target value of the service level indicator in the appropriate time period.
    type String
    Type of the SLO. Currently only RequestBased SLO is supported
    description String
    Description of the SLO
    name String
    Name of the SLO

    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.
    The following state arguments are supported:
    Description string
    Description of the SLO
    Input Pulumi.SignalFx.Inputs.SloInput
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    Name string
    Name of the SLO
    Target Pulumi.SignalFx.Inputs.SloTarget
    Define target value of the service level indicator in the appropriate time period.
    Type string
    Type of the SLO. Currently only RequestBased SLO is supported
    Description string
    Description of the SLO
    Input SloInputTypeArgs
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    Name string
    Name of the SLO
    Target SloTargetArgs
    Define target value of the service level indicator in the appropriate time period.
    Type string
    Type of the SLO. Currently only RequestBased SLO is supported
    description String
    Description of the SLO
    input SloInput
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    name String
    Name of the SLO
    target SloTarget
    Define target value of the service level indicator in the appropriate time period.
    type String
    Type of the SLO. Currently only RequestBased SLO is supported
    description string
    Description of the SLO
    input SloInput
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    name string
    Name of the SLO
    target SloTarget
    Define target value of the service level indicator in the appropriate time period.
    type string
    Type of the SLO. Currently only RequestBased SLO is supported
    description str
    Description of the SLO
    input SloInputArgs
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    name str
    Name of the SLO
    target SloTargetArgs
    Define target value of the service level indicator in the appropriate time period.
    type str
    Type of the SLO. Currently only RequestBased SLO is supported
    description String
    Description of the SLO
    input Property Map
    SignalFlow program and arguments text strings that define the streams used as successful event count and total event count
    name String
    Name of the SLO
    target Property Map
    Define target value of the service level indicator in the appropriate time period.
    type String
    Type of the SLO. Currently only RequestBased SLO is supported

    Supporting Types

    SloInput, SloInputArgs

    ProgramText string
    Signalflow program text for the SLO. More info at "https://dev.splunk.com/observability/docs/signalflow". We require this Signalflow program text to contain at least 2 data blocks - one for the total stream and one for the good stream, whose labels are specified by goodEventsLabel and totalEventsLabel
    GoodEventsLabel string
    Label used in program_text that refers to the data block which contains the stream of successful events
    TotalEventsLabel string
    Label used in program_text that refers to the data block which contains the stream of total events
    ProgramText string
    Signalflow program text for the SLO. More info at "https://dev.splunk.com/observability/docs/signalflow". We require this Signalflow program text to contain at least 2 data blocks - one for the total stream and one for the good stream, whose labels are specified by goodEventsLabel and totalEventsLabel
    GoodEventsLabel string
    Label used in program_text that refers to the data block which contains the stream of successful events
    TotalEventsLabel string
    Label used in program_text that refers to the data block which contains the stream of total events
    programText String
    Signalflow program text for the SLO. More info at "https://dev.splunk.com/observability/docs/signalflow". We require this Signalflow program text to contain at least 2 data blocks - one for the total stream and one for the good stream, whose labels are specified by goodEventsLabel and totalEventsLabel
    goodEventsLabel String
    Label used in program_text that refers to the data block which contains the stream of successful events
    totalEventsLabel String
    Label used in program_text that refers to the data block which contains the stream of total events
    programText string
    Signalflow program text for the SLO. More info at "https://dev.splunk.com/observability/docs/signalflow". We require this Signalflow program text to contain at least 2 data blocks - one for the total stream and one for the good stream, whose labels are specified by goodEventsLabel and totalEventsLabel
    goodEventsLabel string
    Label used in program_text that refers to the data block which contains the stream of successful events
    totalEventsLabel string
    Label used in program_text that refers to the data block which contains the stream of total events
    program_text str
    Signalflow program text for the SLO. More info at "https://dev.splunk.com/observability/docs/signalflow". We require this Signalflow program text to contain at least 2 data blocks - one for the total stream and one for the good stream, whose labels are specified by goodEventsLabel and totalEventsLabel
    good_events_label str
    Label used in program_text that refers to the data block which contains the stream of successful events
    total_events_label str
    Label used in program_text that refers to the data block which contains the stream of total events
    programText String
    Signalflow program text for the SLO. More info at "https://dev.splunk.com/observability/docs/signalflow". We require this Signalflow program text to contain at least 2 data blocks - one for the total stream and one for the good stream, whose labels are specified by goodEventsLabel and totalEventsLabel
    goodEventsLabel String
    Label used in program_text that refers to the data block which contains the stream of successful events
    totalEventsLabel String
    Label used in program_text that refers to the data block which contains the stream of total events

    SloTarget, SloTargetArgs

    AlertRules List<Pulumi.SignalFx.Inputs.SloTargetAlertRule>
    SLO alert rules
    Slo double
    Target value in the form of a percentage
    Type string
    SLO target type can be the following type: RollingWindow
    CompliancePeriod string
    (Required for RollingWindow type) Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
    AlertRules []SloTargetAlertRule
    SLO alert rules
    Slo float64
    Target value in the form of a percentage
    Type string
    SLO target type can be the following type: RollingWindow
    CompliancePeriod string
    (Required for RollingWindow type) Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
    alertRules List<SloTargetAlertRule>
    SLO alert rules
    slo Double
    Target value in the form of a percentage
    type String
    SLO target type can be the following type: RollingWindow
    compliancePeriod String
    (Required for RollingWindow type) Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
    alertRules SloTargetAlertRule[]
    SLO alert rules
    slo number
    Target value in the form of a percentage
    type string
    SLO target type can be the following type: RollingWindow
    compliancePeriod string
    (Required for RollingWindow type) Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
    alert_rules Sequence[SloTargetAlertRule]
    SLO alert rules
    slo float
    Target value in the form of a percentage
    type str
    SLO target type can be the following type: RollingWindow
    compliance_period str
    (Required for RollingWindow type) Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.
    alertRules List<Property Map>
    SLO alert rules
    slo Number
    Target value in the form of a percentage
    type String
    SLO target type can be the following type: RollingWindow
    compliancePeriod String
    (Required for RollingWindow type) Compliance period of this SLO. This value must be within the range of 1d (1 days) to 30d (30 days), inclusive.

    SloTargetAlertRule, SloTargetAlertRuleArgs

    Rules List<Pulumi.SignalFx.Inputs.SloTargetAlertRuleRule>
    Set of rules used for alerting
    Type string
    SLO alert rule type
    Rules []SloTargetAlertRuleRule
    Set of rules used for alerting
    Type string
    SLO alert rule type
    rules List<SloTargetAlertRuleRule>
    Set of rules used for alerting
    type String
    SLO alert rule type
    rules SloTargetAlertRuleRule[]
    Set of rules used for alerting
    type string
    SLO alert rule type
    rules Sequence[SloTargetAlertRuleRule]
    Set of rules used for alerting
    type str
    SLO alert rule type
    rules List<Property Map>
    Set of rules used for alerting
    type String
    SLO alert rule type

    SloTargetAlertRuleRule, SloTargetAlertRuleRuleArgs

    Severity string
    The severity of the rule, must be one of: Critical, Warning, Major, Minor, Info
    Description string
    Description of the rule
    Disabled bool
    (default: false) When true, notifications and events will not be generated for the detect label
    Notifications List<string>
    List of strings specifying where notifications will be sent when an incident occurs. See https://developers.signalfx.com/v2/docs/detector-model#notifications-models for more info
    ParameterizedBody string
    Custom notification message body when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    ParameterizedSubject string
    Custom notification message subject when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    Parameters Pulumi.SignalFx.Inputs.SloTargetAlertRuleRuleParameters
    Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
    RunbookUrl string
    URL of page to consult when an alert is triggered
    Tip string
    Plain text suggested first course of action, such as a command to execute.
    Severity string
    The severity of the rule, must be one of: Critical, Warning, Major, Minor, Info
    Description string
    Description of the rule
    Disabled bool
    (default: false) When true, notifications and events will not be generated for the detect label
    Notifications []string
    List of strings specifying where notifications will be sent when an incident occurs. See https://developers.signalfx.com/v2/docs/detector-model#notifications-models for more info
    ParameterizedBody string
    Custom notification message body when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    ParameterizedSubject string
    Custom notification message subject when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    Parameters SloTargetAlertRuleRuleParameters
    Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
    RunbookUrl string
    URL of page to consult when an alert is triggered
    Tip string
    Plain text suggested first course of action, such as a command to execute.
    severity String
    The severity of the rule, must be one of: Critical, Warning, Major, Minor, Info
    description String
    Description of the rule
    disabled Boolean
    (default: false) When true, notifications and events will not be generated for the detect label
    notifications List<String>
    List of strings specifying where notifications will be sent when an incident occurs. See https://developers.signalfx.com/v2/docs/detector-model#notifications-models for more info
    parameterizedBody String
    Custom notification message body when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    parameterizedSubject String
    Custom notification message subject when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    parameters SloTargetAlertRuleRuleParameters
    Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
    runbookUrl String
    URL of page to consult when an alert is triggered
    tip String
    Plain text suggested first course of action, such as a command to execute.
    severity string
    The severity of the rule, must be one of: Critical, Warning, Major, Minor, Info
    description string
    Description of the rule
    disabled boolean
    (default: false) When true, notifications and events will not be generated for the detect label
    notifications string[]
    List of strings specifying where notifications will be sent when an incident occurs. See https://developers.signalfx.com/v2/docs/detector-model#notifications-models for more info
    parameterizedBody string
    Custom notification message body when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    parameterizedSubject string
    Custom notification message subject when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    parameters SloTargetAlertRuleRuleParameters
    Parameters for the SLO alert rule. Each SLO alert rule type accepts different parameters. If not specified, default parameters are used.
    runbookUrl string
    URL of page to consult when an alert is triggered
    tip string
    Plain text suggested first course of action, such as a command to execute.
    severity str
    The severity of the rule, must be one of: Critical, Warning, Major, Minor, Info
    description str
    Description of the rule
    disabled bool
    (default: false) When true, notifications and events will not be generated for the detect label
    notifications Sequence[str]
    List of strings specifying where notifications will be sent when an incident occurs. See https://developers.signalfx.com/v2/docs/detector-model#notifications-models for more info
    parameterized_body str
    Custom notification message body when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    parameterized_subject str
    Custom notification message subject when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    parameters SloTargetAlertRuleRuleParameters
    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
    tip str
    Plain text suggested first course of action, such as a command to execute.
    severity String
    The severity of the rule, must be one of: Critical, Warning, Major, Minor, Info
    description String
    Description of the rule
    disabled Boolean
    (default: false) When true, notifications and events will not be generated for the detect label
    notifications List<String>
    List of strings specifying where notifications will be sent when an incident occurs. See https://developers.signalfx.com/v2/docs/detector-model#notifications-models for more info
    parameterizedBody String
    Custom notification message body when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model for more info
    parameterizedSubject String
    Custom notification message subject when an alert is triggered. See https://developers.signalfx.com/v2/reference#detector-model 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.
    runbookUrl String
    URL of page to consult when an alert is triggered
    tip String
    Plain text suggested first course of action, such as a command to execute.

    SloTargetAlertRuleRuleParameters, SloTargetAlertRuleRuleParametersArgs

    BurnRateThreshold1 double
    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.
    BurnRateThreshold2 double
    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.
    FireLasting 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 fire_lasting parameter
    LongWindow1 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.
    LongWindow2 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.
    PercentErrorBudgetLeft double
    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.
    PercentOfLasting double
    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
    ShortWindow1 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.
    ShortWindow2 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.
    BurnRateThreshold1 float64
    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.
    BurnRateThreshold2 float64
    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.
    FireLasting 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 fire_lasting parameter
    LongWindow1 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.
    LongWindow2 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.
    PercentErrorBudgetLeft float64
    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.
    PercentOfLasting float64
    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
    ShortWindow1 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.
    ShortWindow2 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.
    burnRateThreshold1 Double
    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.
    burnRateThreshold2 Double
    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.
    fireLasting 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 fire_lasting parameter
    longWindow1 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.
    longWindow2 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.
    percentErrorBudgetLeft Double
    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.
    percentOfLasting Double
    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
    shortWindow1 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.
    shortWindow2 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.
    burnRateThreshold1 number
    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.
    burnRateThreshold2 number
    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.
    fireLasting 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 fire_lasting parameter
    longWindow1 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.
    longWindow2 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.
    percentErrorBudgetLeft number
    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.
    percentOfLasting number
    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
    shortWindow1 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.
    shortWindow2 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.
    burn_rate_threshold1 float
    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.
    burn_rate_threshold2 float
    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.
    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 fire_lasting parameter
    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.
    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.
    percent_error_budget_left float
    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.
    percent_of_lasting float
    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
    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.
    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.
    burnRateThreshold1 Number
    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.
    burnRateThreshold2 Number
    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.
    fireLasting 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 fire_lasting parameter
    longWindow1 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.
    longWindow2 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.
    percentErrorBudgetLeft Number
    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.
    percentOfLasting Number
    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
    shortWindow1 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.
    shortWindow2 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.

    Package Details

    Repository
    SignalFx pulumi/pulumi-signalfx
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the signalfx Terraform Provider.
    signalfx logo
    SignalFx v7.1.3 published on Wednesday, Apr 24, 2024 by Pulumi