1. Packages
  2. Dynatrace
  3. API Docs
  4. Slo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.Slo

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    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,
            evaluation: Optional[str] = None,
            warning: Optional[float] = None,
            timeframe: Optional[str] = None,
            target: Optional[float] = None,
            metric_expression: Optional[str] = None,
            filter: Optional[str] = None,
            denominator: Optional[str] = None,
            metric_name: Optional[str] = None,
            name: Optional[str] = None,
            numerator: Optional[str] = None,
            rate: Optional[str] = None,
            error_budget_burn_rate: Optional[SloErrorBudgetBurnRateArgs] = None,
            disabled: Optional[bool] = None,
            description: 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: dynatrace: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 Dynatrace.Slo("sloResource", new()
    {
        Evaluation = "string",
        Warning = 0,
        Timeframe = "string",
        Target = 0,
        MetricExpression = "string",
        Filter = "string",
        Denominator = "string",
        MetricName = "string",
        Name = "string",
        Rate = "string",
        ErrorBudgetBurnRate = new Dynatrace.Inputs.SloErrorBudgetBurnRateArgs
        {
            BurnRateVisualizationEnabled = false,
            FastBurnThreshold = 0,
        },
        Disabled = false,
        Description = "string",
    });
    
    example, err := dynatrace.NewSlo(ctx, "sloResource", &dynatrace.SloArgs{
    	Evaluation:       pulumi.String("string"),
    	Warning:          pulumi.Float64(0),
    	Timeframe:        pulumi.String("string"),
    	Target:           pulumi.Float64(0),
    	MetricExpression: pulumi.String("string"),
    	Filter:           pulumi.String("string"),
    	Denominator:      pulumi.String("string"),
    	MetricName:       pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Rate:             pulumi.String("string"),
    	ErrorBudgetBurnRate: &dynatrace.SloErrorBudgetBurnRateArgs{
    		BurnRateVisualizationEnabled: pulumi.Bool(false),
    		FastBurnThreshold:            pulumi.Float64(0),
    	},
    	Disabled:    pulumi.Bool(false),
    	Description: pulumi.String("string"),
    })
    
    var sloResource = new Slo("sloResource", SloArgs.builder()
        .evaluation("string")
        .warning(0)
        .timeframe("string")
        .target(0)
        .metricExpression("string")
        .filter("string")
        .denominator("string")
        .metricName("string")
        .name("string")
        .rate("string")
        .errorBudgetBurnRate(SloErrorBudgetBurnRateArgs.builder()
            .burnRateVisualizationEnabled(false)
            .fastBurnThreshold(0)
            .build())
        .disabled(false)
        .description("string")
        .build());
    
    slo_resource = dynatrace.Slo("sloResource",
        evaluation="string",
        warning=0,
        timeframe="string",
        target=0,
        metric_expression="string",
        filter="string",
        denominator="string",
        metric_name="string",
        name="string",
        rate="string",
        error_budget_burn_rate={
            "burn_rate_visualization_enabled": False,
            "fast_burn_threshold": 0,
        },
        disabled=False,
        description="string")
    
    const sloResource = new dynatrace.Slo("sloResource", {
        evaluation: "string",
        warning: 0,
        timeframe: "string",
        target: 0,
        metricExpression: "string",
        filter: "string",
        denominator: "string",
        metricName: "string",
        name: "string",
        rate: "string",
        errorBudgetBurnRate: {
            burnRateVisualizationEnabled: false,
            fastBurnThreshold: 0,
        },
        disabled: false,
        description: "string",
    });
    
    type: dynatrace:Slo
    properties:
        denominator: string
        description: string
        disabled: false
        errorBudgetBurnRate:
            burnRateVisualizationEnabled: false
            fastBurnThreshold: 0
        evaluation: string
        filter: string
        metricExpression: string
        metricName: string
        name: string
        rate: string
        target: 0
        timeframe: string
        warning: 0
    

    Slo Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Slo resource accepts the following input properties:

    Evaluation string
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    Target double
    The target value of the SLO
    Timeframe string
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    Warning double
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    Denominator string
    The total count metric (the denominator in rate calculation)
    Description string
    The custom description of the SLO (optional)
    Disabled bool
    The SLO is enabled (false) or disabled (true)
    ErrorBudgetBurnRate Pulumiverse.Dynatrace.Inputs.SloErrorBudgetBurnRate
    Error budget burn rate configuration of a service-level objective (SLO).
    Filter string
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    MetricExpression string
    The percentage-based metric expression for the calculation of the SLO
    MetricName string
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    Name string
    The name of the rule
    Numerator string
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    Rate string
    The percentage-based metric for the calculation of the SLO
    Evaluation string
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    Target float64
    The target value of the SLO
    Timeframe string
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    Warning float64
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    Denominator string
    The total count metric (the denominator in rate calculation)
    Description string
    The custom description of the SLO (optional)
    Disabled bool
    The SLO is enabled (false) or disabled (true)
    ErrorBudgetBurnRate SloErrorBudgetBurnRateArgs
    Error budget burn rate configuration of a service-level objective (SLO).
    Filter string
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    MetricExpression string
    The percentage-based metric expression for the calculation of the SLO
    MetricName string
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    Name string
    The name of the rule
    Numerator string
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    Rate string
    The percentage-based metric for the calculation of the SLO
    evaluation String
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    target Double
    The target value of the SLO
    timeframe String
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning Double
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator String
    The total count metric (the denominator in rate calculation)
    description String
    The custom description of the SLO (optional)
    disabled Boolean
    The SLO is enabled (false) or disabled (true)
    errorBudgetBurnRate SloErrorBudgetBurnRate
    Error budget burn rate configuration of a service-level objective (SLO).
    filter String
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metricExpression String
    The percentage-based metric expression for the calculation of the SLO
    metricName String
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name String
    The name of the rule
    numerator String
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate String
    The percentage-based metric for the calculation of the SLO
    evaluation string
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    target number
    The target value of the SLO
    timeframe string
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning number
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator string
    The total count metric (the denominator in rate calculation)
    description string
    The custom description of the SLO (optional)
    disabled boolean
    The SLO is enabled (false) or disabled (true)
    errorBudgetBurnRate SloErrorBudgetBurnRate
    Error budget burn rate configuration of a service-level objective (SLO).
    filter string
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metricExpression string
    The percentage-based metric expression for the calculation of the SLO
    metricName string
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name string
    The name of the rule
    numerator string
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate string
    The percentage-based metric for the calculation of the SLO
    evaluation str
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    target float
    The target value of the SLO
    timeframe str
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning float
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator str
    The total count metric (the denominator in rate calculation)
    description str
    The custom description of the SLO (optional)
    disabled bool
    The SLO is enabled (false) or disabled (true)
    error_budget_burn_rate SloErrorBudgetBurnRateArgs
    Error budget burn rate configuration of a service-level objective (SLO).
    filter str
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metric_expression str
    The percentage-based metric expression for the calculation of the SLO
    metric_name str
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name str
    The name of the rule
    numerator str
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate str
    The percentage-based metric for the calculation of the SLO
    evaluation String
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    target Number
    The target value of the SLO
    timeframe String
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning Number
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator String
    The total count metric (the denominator in rate calculation)
    description String
    The custom description of the SLO (optional)
    disabled Boolean
    The SLO is enabled (false) or disabled (true)
    errorBudgetBurnRate Property Map
    Error budget burn rate configuration of a service-level objective (SLO).
    filter String
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metricExpression String
    The percentage-based metric expression for the calculation of the SLO
    metricName String
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name String
    The name of the rule
    numerator String
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate String
    The percentage-based metric for the calculation 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,
            denominator: Optional[str] = None,
            description: Optional[str] = None,
            disabled: Optional[bool] = None,
            error_budget_burn_rate: Optional[SloErrorBudgetBurnRateArgs] = None,
            evaluation: Optional[str] = None,
            filter: Optional[str] = None,
            metric_expression: Optional[str] = None,
            metric_name: Optional[str] = None,
            name: Optional[str] = None,
            numerator: Optional[str] = None,
            rate: Optional[str] = None,
            target: Optional[float] = None,
            timeframe: Optional[str] = None,
            warning: Optional[float] = 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:
    Denominator string
    The total count metric (the denominator in rate calculation)
    Description string
    The custom description of the SLO (optional)
    Disabled bool
    The SLO is enabled (false) or disabled (true)
    ErrorBudgetBurnRate Pulumiverse.Dynatrace.Inputs.SloErrorBudgetBurnRate
    Error budget burn rate configuration of a service-level objective (SLO).
    Evaluation string
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    Filter string
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    MetricExpression string
    The percentage-based metric expression for the calculation of the SLO
    MetricName string
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    Name string
    The name of the rule
    Numerator string
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    Rate string
    The percentage-based metric for the calculation of the SLO
    Target double
    The target value of the SLO
    Timeframe string
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    Warning double
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    Denominator string
    The total count metric (the denominator in rate calculation)
    Description string
    The custom description of the SLO (optional)
    Disabled bool
    The SLO is enabled (false) or disabled (true)
    ErrorBudgetBurnRate SloErrorBudgetBurnRateArgs
    Error budget burn rate configuration of a service-level objective (SLO).
    Evaluation string
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    Filter string
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    MetricExpression string
    The percentage-based metric expression for the calculation of the SLO
    MetricName string
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    Name string
    The name of the rule
    Numerator string
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    Rate string
    The percentage-based metric for the calculation of the SLO
    Target float64
    The target value of the SLO
    Timeframe string
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    Warning float64
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator String
    The total count metric (the denominator in rate calculation)
    description String
    The custom description of the SLO (optional)
    disabled Boolean
    The SLO is enabled (false) or disabled (true)
    errorBudgetBurnRate SloErrorBudgetBurnRate
    Error budget burn rate configuration of a service-level objective (SLO).
    evaluation String
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    filter String
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metricExpression String
    The percentage-based metric expression for the calculation of the SLO
    metricName String
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name String
    The name of the rule
    numerator String
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate String
    The percentage-based metric for the calculation of the SLO
    target Double
    The target value of the SLO
    timeframe String
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning Double
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator string
    The total count metric (the denominator in rate calculation)
    description string
    The custom description of the SLO (optional)
    disabled boolean
    The SLO is enabled (false) or disabled (true)
    errorBudgetBurnRate SloErrorBudgetBurnRate
    Error budget burn rate configuration of a service-level objective (SLO).
    evaluation string
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    filter string
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metricExpression string
    The percentage-based metric expression for the calculation of the SLO
    metricName string
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name string
    The name of the rule
    numerator string
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate string
    The percentage-based metric for the calculation of the SLO
    target number
    The target value of the SLO
    timeframe string
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning number
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator str
    The total count metric (the denominator in rate calculation)
    description str
    The custom description of the SLO (optional)
    disabled bool
    The SLO is enabled (false) or disabled (true)
    error_budget_burn_rate SloErrorBudgetBurnRateArgs
    Error budget burn rate configuration of a service-level objective (SLO).
    evaluation str
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    filter str
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metric_expression str
    The percentage-based metric expression for the calculation of the SLO
    metric_name str
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name str
    The name of the rule
    numerator str
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate str
    The percentage-based metric for the calculation of the SLO
    target float
    The target value of the SLO
    timeframe str
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning float
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
    denominator String
    The total count metric (the denominator in rate calculation)
    description String
    The custom description of the SLO (optional)
    disabled Boolean
    The SLO is enabled (false) or disabled (true)
    errorBudgetBurnRate Property Map
    Error budget burn rate configuration of a service-level objective (SLO).
    evaluation String
    The evaluation type of the SLO. Currently only AGGREGATE is supported
    filter String
    The entity filter for the SLO evaluation. Use the syntax of entity selector
    metricExpression String
    The percentage-based metric expression for the calculation of the SLO
    metricName String
    The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
    name String
    The name of the rule
    numerator String
    The metric for the count of successes (the numerator in rate calculation)

    Deprecated: numerator and denominator have been replaced by metric_expression

    rate String
    The percentage-based metric for the calculation of the SLO
    target Number
    The target value of the SLO
    timeframe String
    The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
    warning Number
    The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure

    Supporting Types

    SloErrorBudgetBurnRate, SloErrorBudgetBurnRateArgs

    BurnRateVisualizationEnabled bool
    The error budget burn rate calculation is enabled (true) or disabled (false).
    FastBurnThreshold double
    The threshold between a slow and a fast burn rate.
    BurnRateVisualizationEnabled bool
    The error budget burn rate calculation is enabled (true) or disabled (false).
    FastBurnThreshold float64
    The threshold between a slow and a fast burn rate.
    burnRateVisualizationEnabled Boolean
    The error budget burn rate calculation is enabled (true) or disabled (false).
    fastBurnThreshold Double
    The threshold between a slow and a fast burn rate.
    burnRateVisualizationEnabled boolean
    The error budget burn rate calculation is enabled (true) or disabled (false).
    fastBurnThreshold number
    The threshold between a slow and a fast burn rate.
    burn_rate_visualization_enabled bool
    The error budget burn rate calculation is enabled (true) or disabled (false).
    fast_burn_threshold float
    The threshold between a slow and a fast burn rate.
    burnRateVisualizationEnabled Boolean
    The error budget burn rate calculation is enabled (true) or disabled (false).
    fastBurnThreshold Number
    The threshold between a slow and a fast burn rate.

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse