1. Packages
  2. Dynatrace
  3. API Docs
  4. Slo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.Slo

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    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,
            target: Optional[float] = None,
            timeframe: Optional[str] = None,
            warning: Optional[float] = None,
            denominator: Optional[str] = None,
            description: Optional[str] = None,
            disabled: Optional[bool] = None,
            filter: Optional[str] = None,
            metric_expression: Optional[str] = None,
            name: Optional[str] = None,
            numerator: Optional[str] = None,
            rate: 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.

    Example

    The following reference example uses placeholder values for all input properties.

    var sloResource = new Dynatrace.Slo("sloResource", new()
    {
        Evaluation = "string",
        Target = 0,
        Timeframe = "string",
        Warning = 0,
        Denominator = "string",
        Description = "string",
        Disabled = false,
        Filter = "string",
        MetricExpression = "string",
        Name = "string",
        Rate = "string",
    });
    
    example, err := dynatrace.NewSlo(ctx, "sloResource", &dynatrace.SloArgs{
    	Evaluation:       pulumi.String("string"),
    	Target:           pulumi.Float64(0),
    	Timeframe:        pulumi.String("string"),
    	Warning:          pulumi.Float64(0),
    	Denominator:      pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	Disabled:         pulumi.Bool(false),
    	Filter:           pulumi.String("string"),
    	MetricExpression: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Rate:             pulumi.String("string"),
    })
    
    var sloResource = new Slo("sloResource", SloArgs.builder()        
        .evaluation("string")
        .target(0)
        .timeframe("string")
        .warning(0)
        .denominator("string")
        .description("string")
        .disabled(false)
        .filter("string")
        .metricExpression("string")
        .name("string")
        .rate("string")
        .build());
    
    slo_resource = dynatrace.Slo("sloResource",
        evaluation="string",
        target=0,
        timeframe="string",
        warning=0,
        denominator="string",
        description="string",
        disabled=False,
        filter="string",
        metric_expression="string",
        name="string",
        rate="string")
    
    const sloResource = new dynatrace.Slo("sloResource", {
        evaluation: "string",
        target: 0,
        timeframe: "string",
        warning: 0,
        denominator: "string",
        description: "string",
        disabled: false,
        filter: "string",
        metricExpression: "string",
        name: "string",
        rate: "string",
    });
    
    type: dynatrace:Slo
    properties:
        denominator: string
        description: string
        disabled: false
        evaluation: string
        filter: string
        metricExpression: 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

    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)
    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
    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)
    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
    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)
    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
    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)
    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
    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)
    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
    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)
    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
    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,
            evaluation: Optional[str] = None,
            filter: Optional[str] = None,
            metric_expression: 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)
    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
    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)
    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
    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)
    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
    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)
    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
    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)
    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
    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)
    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
    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

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs