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

dynatrace.SloV2

Explore with Pulumi AI

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

    Create SloV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SloV2(name: string, args: SloV2Args, opts?: CustomResourceOptions);
    @overload
    def SloV2(resource_name: str,
              args: SloV2Args,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def SloV2(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              enabled: Optional[bool] = None,
              error_budget_burn_rate: Optional[SloV2ErrorBudgetBurnRateArgs] = None,
              evaluation_type: Optional[str] = None,
              evaluation_window: Optional[str] = None,
              filter: Optional[str] = None,
              metric_expression: Optional[str] = None,
              metric_name: Optional[str] = None,
              target_success: Optional[float] = None,
              target_warning: Optional[float] = None,
              custom_description: Optional[str] = None,
              legacy_id: Optional[str] = None,
              name: Optional[str] = None)
    func NewSloV2(ctx *Context, name string, args SloV2Args, opts ...ResourceOption) (*SloV2, error)
    public SloV2(string name, SloV2Args args, CustomResourceOptions? opts = null)
    public SloV2(String name, SloV2Args args)
    public SloV2(String name, SloV2Args args, CustomResourceOptions options)
    
    type: dynatrace:SloV2
    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 SloV2Args
    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 SloV2Args
    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 SloV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SloV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SloV2Args
    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 sloV2Resource = new Dynatrace.SloV2("sloV2Resource", new()
    {
        Enabled = false,
        ErrorBudgetBurnRate = new Dynatrace.Inputs.SloV2ErrorBudgetBurnRateArgs
        {
            BurnRateVisualizationEnabled = false,
            FastBurnThreshold = 0,
        },
        EvaluationType = "string",
        EvaluationWindow = "string",
        Filter = "string",
        MetricExpression = "string",
        MetricName = "string",
        TargetSuccess = 0,
        TargetWarning = 0,
        CustomDescription = "string",
        LegacyId = "string",
        Name = "string",
    });
    
    example, err := dynatrace.NewSloV2(ctx, "sloV2Resource", &dynatrace.SloV2Args{
    	Enabled: pulumi.Bool(false),
    	ErrorBudgetBurnRate: &dynatrace.SloV2ErrorBudgetBurnRateArgs{
    		BurnRateVisualizationEnabled: pulumi.Bool(false),
    		FastBurnThreshold:            pulumi.Float64(0),
    	},
    	EvaluationType:    pulumi.String("string"),
    	EvaluationWindow:  pulumi.String("string"),
    	Filter:            pulumi.String("string"),
    	MetricExpression:  pulumi.String("string"),
    	MetricName:        pulumi.String("string"),
    	TargetSuccess:     pulumi.Float64(0),
    	TargetWarning:     pulumi.Float64(0),
    	CustomDescription: pulumi.String("string"),
    	LegacyId:          pulumi.String("string"),
    	Name:              pulumi.String("string"),
    })
    
    var sloV2Resource = new SloV2("sloV2Resource", SloV2Args.builder()        
        .enabled(false)
        .errorBudgetBurnRate(SloV2ErrorBudgetBurnRateArgs.builder()
            .burnRateVisualizationEnabled(false)
            .fastBurnThreshold(0)
            .build())
        .evaluationType("string")
        .evaluationWindow("string")
        .filter("string")
        .metricExpression("string")
        .metricName("string")
        .targetSuccess(0)
        .targetWarning(0)
        .customDescription("string")
        .legacyId("string")
        .name("string")
        .build());
    
    slo_v2_resource = dynatrace.SloV2("sloV2Resource",
        enabled=False,
        error_budget_burn_rate=dynatrace.SloV2ErrorBudgetBurnRateArgs(
            burn_rate_visualization_enabled=False,
            fast_burn_threshold=0,
        ),
        evaluation_type="string",
        evaluation_window="string",
        filter="string",
        metric_expression="string",
        metric_name="string",
        target_success=0,
        target_warning=0,
        custom_description="string",
        legacy_id="string",
        name="string")
    
    const sloV2Resource = new dynatrace.SloV2("sloV2Resource", {
        enabled: false,
        errorBudgetBurnRate: {
            burnRateVisualizationEnabled: false,
            fastBurnThreshold: 0,
        },
        evaluationType: "string",
        evaluationWindow: "string",
        filter: "string",
        metricExpression: "string",
        metricName: "string",
        targetSuccess: 0,
        targetWarning: 0,
        customDescription: "string",
        legacyId: "string",
        name: "string",
    });
    
    type: dynatrace:SloV2
    properties:
        customDescription: string
        enabled: false
        errorBudgetBurnRate:
            burnRateVisualizationEnabled: false
            fastBurnThreshold: 0
        evaluationType: string
        evaluationWindow: string
        filter: string
        legacyId: string
        metricExpression: string
        metricName: string
        name: string
        targetSuccess: 0
        targetWarning: 0
    

    SloV2 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 SloV2 resource accepts the following input properties:

    Enabled bool
    This setting is enabled (true) or disabled (false)
    ErrorBudgetBurnRate Lbrlabs.PulumiPackage.Dynatrace.Inputs.SloV2ErrorBudgetBurnRate

    Error budget burn rate

    EvaluationType string
    Possible Values: AGGREGATE
    EvaluationWindow string
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    Filter string
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    MetricExpression string
    For details, see the Metrics page.
    MetricName string
    Metric name
    TargetSuccess double
    Set the target value of the SLO. A percentage below this value indicates a failure.
    TargetWarning double
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    CustomDescription string
    The description of the SLO
    LegacyId string
    The ID of this setting when referred to by the Config REST API V1
    Name string
    SLO name
    Enabled bool
    This setting is enabled (true) or disabled (false)
    ErrorBudgetBurnRate SloV2ErrorBudgetBurnRateArgs

    Error budget burn rate

    EvaluationType string
    Possible Values: AGGREGATE
    EvaluationWindow string
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    Filter string
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    MetricExpression string
    For details, see the Metrics page.
    MetricName string
    Metric name
    TargetSuccess float64
    Set the target value of the SLO. A percentage below this value indicates a failure.
    TargetWarning float64
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    CustomDescription string
    The description of the SLO
    LegacyId string
    The ID of this setting when referred to by the Config REST API V1
    Name string
    SLO name
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    errorBudgetBurnRate SloV2ErrorBudgetBurnRate

    Error budget burn rate

    evaluationType String
    Possible Values: AGGREGATE
    evaluationWindow String
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter String
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    metricExpression String
    For details, see the Metrics page.
    metricName String
    Metric name
    targetSuccess Double
    Set the target value of the SLO. A percentage below this value indicates a failure.
    targetWarning Double
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    customDescription String
    The description of the SLO
    legacyId String
    The ID of this setting when referred to by the Config REST API V1
    name String
    SLO name
    enabled boolean
    This setting is enabled (true) or disabled (false)
    errorBudgetBurnRate SloV2ErrorBudgetBurnRate

    Error budget burn rate

    evaluationType string
    Possible Values: AGGREGATE
    evaluationWindow string
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter string
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    metricExpression string
    For details, see the Metrics page.
    metricName string
    Metric name
    targetSuccess number
    Set the target value of the SLO. A percentage below this value indicates a failure.
    targetWarning number
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    customDescription string
    The description of the SLO
    legacyId string
    The ID of this setting when referred to by the Config REST API V1
    name string
    SLO name
    enabled bool
    This setting is enabled (true) or disabled (false)
    error_budget_burn_rate SloV2ErrorBudgetBurnRateArgs

    Error budget burn rate

    evaluation_type str
    Possible Values: AGGREGATE
    evaluation_window str
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter str
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    metric_expression str
    For details, see the Metrics page.
    metric_name str
    Metric name
    target_success float
    Set the target value of the SLO. A percentage below this value indicates a failure.
    target_warning float
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    custom_description str
    The description of the SLO
    legacy_id str
    The ID of this setting when referred to by the Config REST API V1
    name str
    SLO name
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    errorBudgetBurnRate Property Map

    Error budget burn rate

    evaluationType String
    Possible Values: AGGREGATE
    evaluationWindow String
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter String
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    metricExpression String
    For details, see the Metrics page.
    metricName String
    Metric name
    targetSuccess Number
    Set the target value of the SLO. A percentage below this value indicates a failure.
    targetWarning Number
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    customDescription String
    The description of the SLO
    legacyId String
    The ID of this setting when referred to by the Config REST API V1
    name String
    SLO name

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SloV2 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 SloV2 Resource

    Get an existing SloV2 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?: SloV2State, opts?: CustomResourceOptions): SloV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_description: Optional[str] = None,
            enabled: Optional[bool] = None,
            error_budget_burn_rate: Optional[SloV2ErrorBudgetBurnRateArgs] = None,
            evaluation_type: Optional[str] = None,
            evaluation_window: Optional[str] = None,
            filter: Optional[str] = None,
            legacy_id: Optional[str] = None,
            metric_expression: Optional[str] = None,
            metric_name: Optional[str] = None,
            name: Optional[str] = None,
            target_success: Optional[float] = None,
            target_warning: Optional[float] = None) -> SloV2
    func GetSloV2(ctx *Context, name string, id IDInput, state *SloV2State, opts ...ResourceOption) (*SloV2, error)
    public static SloV2 Get(string name, Input<string> id, SloV2State? state, CustomResourceOptions? opts = null)
    public static SloV2 get(String name, Output<String> id, SloV2State 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:
    CustomDescription string
    The description of the SLO
    Enabled bool
    This setting is enabled (true) or disabled (false)
    ErrorBudgetBurnRate Lbrlabs.PulumiPackage.Dynatrace.Inputs.SloV2ErrorBudgetBurnRate

    Error budget burn rate

    EvaluationType string
    Possible Values: AGGREGATE
    EvaluationWindow string
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    Filter string
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    LegacyId string
    The ID of this setting when referred to by the Config REST API V1
    MetricExpression string
    For details, see the Metrics page.
    MetricName string
    Metric name
    Name string
    SLO name
    TargetSuccess double
    Set the target value of the SLO. A percentage below this value indicates a failure.
    TargetWarning double
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    CustomDescription string
    The description of the SLO
    Enabled bool
    This setting is enabled (true) or disabled (false)
    ErrorBudgetBurnRate SloV2ErrorBudgetBurnRateArgs

    Error budget burn rate

    EvaluationType string
    Possible Values: AGGREGATE
    EvaluationWindow string
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    Filter string
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    LegacyId string
    The ID of this setting when referred to by the Config REST API V1
    MetricExpression string
    For details, see the Metrics page.
    MetricName string
    Metric name
    Name string
    SLO name
    TargetSuccess float64
    Set the target value of the SLO. A percentage below this value indicates a failure.
    TargetWarning float64
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    customDescription String
    The description of the SLO
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    errorBudgetBurnRate SloV2ErrorBudgetBurnRate

    Error budget burn rate

    evaluationType String
    Possible Values: AGGREGATE
    evaluationWindow String
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter String
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    legacyId String
    The ID of this setting when referred to by the Config REST API V1
    metricExpression String
    For details, see the Metrics page.
    metricName String
    Metric name
    name String
    SLO name
    targetSuccess Double
    Set the target value of the SLO. A percentage below this value indicates a failure.
    targetWarning Double
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    customDescription string
    The description of the SLO
    enabled boolean
    This setting is enabled (true) or disabled (false)
    errorBudgetBurnRate SloV2ErrorBudgetBurnRate

    Error budget burn rate

    evaluationType string
    Possible Values: AGGREGATE
    evaluationWindow string
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter string
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    legacyId string
    The ID of this setting when referred to by the Config REST API V1
    metricExpression string
    For details, see the Metrics page.
    metricName string
    Metric name
    name string
    SLO name
    targetSuccess number
    Set the target value of the SLO. A percentage below this value indicates a failure.
    targetWarning number
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    custom_description str
    The description of the SLO
    enabled bool
    This setting is enabled (true) or disabled (false)
    error_budget_burn_rate SloV2ErrorBudgetBurnRateArgs

    Error budget burn rate

    evaluation_type str
    Possible Values: AGGREGATE
    evaluation_window str
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter str
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    legacy_id str
    The ID of this setting when referred to by the Config REST API V1
    metric_expression str
    For details, see the Metrics page.
    metric_name str
    Metric name
    name str
    SLO name
    target_success float
    Set the target value of the SLO. A percentage below this value indicates a failure.
    target_warning float
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
    customDescription String
    The description of the SLO
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    errorBudgetBurnRate Property Map

    Error budget burn rate

    evaluationType String
    Possible Values: AGGREGATE
    evaluationWindow String
    Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
    filter String
    Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the Entity Selector documentation.
    legacyId String
    The ID of this setting when referred to by the Config REST API V1
    metricExpression String
    For details, see the Metrics page.
    metricName String
    Metric name
    name String
    SLO name
    targetSuccess Number
    Set the target value of the SLO. A percentage below this value indicates a failure.
    targetWarning Number
    Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.

    Supporting Types

    SloV2ErrorBudgetBurnRate, SloV2ErrorBudgetBurnRateArgs

    BurnRateVisualizationEnabled bool
    Burn rate visualization enabled
    FastBurnThreshold double
    The threshold defines when a burn rate is marked as fast-burning (high-emergency). Burn rates lower than this threshold (and greater than 1) are highlighted as slow-burn (low-emergency).
    BurnRateVisualizationEnabled bool
    Burn rate visualization enabled
    FastBurnThreshold float64
    The threshold defines when a burn rate is marked as fast-burning (high-emergency). Burn rates lower than this threshold (and greater than 1) are highlighted as slow-burn (low-emergency).
    burnRateVisualizationEnabled Boolean
    Burn rate visualization enabled
    fastBurnThreshold Double
    The threshold defines when a burn rate is marked as fast-burning (high-emergency). Burn rates lower than this threshold (and greater than 1) are highlighted as slow-burn (low-emergency).
    burnRateVisualizationEnabled boolean
    Burn rate visualization enabled
    fastBurnThreshold number
    The threshold defines when a burn rate is marked as fast-burning (high-emergency). Burn rates lower than this threshold (and greater than 1) are highlighted as slow-burn (low-emergency).
    burn_rate_visualization_enabled bool
    Burn rate visualization enabled
    fast_burn_threshold float
    The threshold defines when a burn rate is marked as fast-burning (high-emergency). Burn rates lower than this threshold (and greater than 1) are highlighted as slow-burn (low-emergency).
    burnRateVisualizationEnabled Boolean
    Burn rate visualization enabled
    fastBurnThreshold Number
    The threshold defines when a burn rate is marked as fast-burning (high-emergency). Burn rates lower than this threshold (and greater than 1) are highlighted as slow-burn (low-emergency).

    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