1. Packages
  2. Dynatrace
  3. API Docs
  4. SloV2
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.SloV2

Explore with Pulumi AI

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,
          target_success: Optional[float] = None,
          target_warning: Optional[float] = None,
          custom_description: Optional[str] = None,
          legacy_id: Optional[str] = None,
          metric_name: 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 This property is required. string
The unique name of the resource.
args This property is required. SloV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SloV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SloV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SloV2Args
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 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",
    TargetSuccess = 0,
    TargetWarning = 0,
    CustomDescription = "string",
    LegacyId = "string",
    MetricName = "string",
    Name = "string",
});
Copy
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"),
	TargetSuccess:     pulumi.Float64(0),
	TargetWarning:     pulumi.Float64(0),
	CustomDescription: pulumi.String("string"),
	LegacyId:          pulumi.String("string"),
	MetricName:        pulumi.String("string"),
	Name:              pulumi.String("string"),
})
Copy
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")
    .targetSuccess(0)
    .targetWarning(0)
    .customDescription("string")
    .legacyId("string")
    .metricName("string")
    .name("string")
    .build());
Copy
slo_v2_resource = dynatrace.SloV2("sloV2Resource",
    enabled=False,
    error_budget_burn_rate={
        "burn_rate_visualization_enabled": False,
        "fast_burn_threshold": 0,
    },
    evaluation_type="string",
    evaluation_window="string",
    filter="string",
    metric_expression="string",
    target_success=0,
    target_warning=0,
    custom_description="string",
    legacy_id="string",
    metric_name="string",
    name="string")
Copy
const sloV2Resource = new dynatrace.SloV2("sloV2Resource", {
    enabled: false,
    errorBudgetBurnRate: {
        burnRateVisualizationEnabled: false,
        fastBurnThreshold: 0,
    },
    evaluationType: "string",
    evaluationWindow: "string",
    filter: "string",
    metricExpression: "string",
    targetSuccess: 0,
    targetWarning: 0,
    customDescription: "string",
    legacyId: "string",
    metricName: "string",
    name: "string",
});
Copy
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
Copy

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

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

The SloV2 resource accepts the following input properties:

Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
ErrorBudgetBurnRate This property is required. Pulumiverse.Dynatrace.Inputs.SloV2ErrorBudgetBurnRate

Error budget burn rate

EvaluationType This property is required. string
Possible Values: AGGREGATE
EvaluationWindow This property is required. 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 This property is required. 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 This property is required. string
For details, see the Metrics page.
TargetSuccess This property is required. double
Set the target value of the SLO. A percentage below this value indicates a failure.
TargetWarning This property is required. 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
MetricName string
Metric name
Name string
SLO name
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
ErrorBudgetBurnRate This property is required. SloV2ErrorBudgetBurnRateArgs

Error budget burn rate

EvaluationType This property is required. string
Possible Values: AGGREGATE
EvaluationWindow This property is required. 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 This property is required. 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 This property is required. string
For details, see the Metrics page.
TargetSuccess This property is required. float64
Set the target value of the SLO. A percentage below this value indicates a failure.
TargetWarning This property is required. 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
MetricName string
Metric name
Name string
SLO name
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
errorBudgetBurnRate This property is required. SloV2ErrorBudgetBurnRate

Error budget burn rate

evaluationType This property is required. String
Possible Values: AGGREGATE
evaluationWindow This property is required. 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 This property is required. 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 This property is required. String
For details, see the Metrics page.
targetSuccess This property is required. Double
Set the target value of the SLO. A percentage below this value indicates a failure.
targetWarning This property is required. 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
metricName String
Metric name
name String
SLO name
enabled This property is required. boolean
This setting is enabled (true) or disabled (false)
errorBudgetBurnRate This property is required. SloV2ErrorBudgetBurnRate

Error budget burn rate

evaluationType This property is required. string
Possible Values: AGGREGATE
evaluationWindow This property is required. 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 This property is required. 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 This property is required. string
For details, see the Metrics page.
targetSuccess This property is required. number
Set the target value of the SLO. A percentage below this value indicates a failure.
targetWarning This property is required. 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
metricName string
Metric name
name string
SLO name
enabled This property is required. bool
This setting is enabled (true) or disabled (false)
error_budget_burn_rate This property is required. SloV2ErrorBudgetBurnRateArgs

Error budget burn rate

evaluation_type This property is required. str
Possible Values: AGGREGATE
evaluation_window This property is required. 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 This property is required. 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 This property is required. str
For details, see the Metrics page.
target_success This property is required. float
Set the target value of the SLO. A percentage below this value indicates a failure.
target_warning This property is required. 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
metric_name str
Metric name
name str
SLO name
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
errorBudgetBurnRate This property is required. Property Map

Error budget burn rate

evaluationType This property is required. String
Possible Values: AGGREGATE
evaluationWindow This property is required. 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 This property is required. 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 This property is required. String
For details, see the Metrics page.
targetSuccess This property is required. Number
Set the target value of the SLO. A percentage below this value indicates a failure.
targetWarning This property is required. 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
metricName String
Metric name
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)
resources:  _:    type: dynatrace:SloV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Pulumiverse.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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.