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)
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.
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",
});
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"),
})
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());
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")
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",
});
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
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 bool
- This setting is enabled (
true
) or disabled (false
) - Error
Budget Pulumiverse.Burn Rate Dynatrace. Inputs. Slo V2Error Budget Burn Rate Error budget burn rate
- Evaluation
Type string - Possible Values:
AGGREGATE
- Evaluation
Window 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.
- Metric
Expression string - For details, see the Metrics page.
- Target
Success double - Set the target value of the SLO. A percentage below this value indicates a failure.
- Target
Warning double - 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 string - The description of the SLO
- Legacy
Id string - The ID of this setting when referred to by the Config REST API V1
- Metric
Name string - Metric name
- Name string
- SLO name
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Error
Budget SloBurn Rate V2Error Budget Burn Rate Args Error budget burn rate
- Evaluation
Type string - Possible Values:
AGGREGATE
- Evaluation
Window 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.
- Metric
Expression string - For details, see the Metrics page.
- Target
Success float64 - Set the target value of the SLO. A percentage below this value indicates a failure.
- Target
Warning float64 - 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 string - The description of the SLO
- Legacy
Id string - The ID of this setting when referred to by the Config REST API V1
- Metric
Name string - Metric name
- Name string
- SLO name
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - error
Budget SloBurn Rate V2Error Budget Burn Rate Error budget burn rate
- evaluation
Type String - Possible Values:
AGGREGATE
- evaluation
Window 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.
- metric
Expression String - For details, see the Metrics page.
- target
Success Double - Set the target value of the SLO. A percentage below this value indicates a failure.
- target
Warning Double - 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 String - The description of the SLO
- legacy
Id String - The ID of this setting when referred to by the Config REST API V1
- metric
Name String - Metric name
- name String
- SLO name
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - error
Budget SloBurn Rate V2Error Budget Burn Rate Error budget burn rate
- evaluation
Type string - Possible Values:
AGGREGATE
- evaluation
Window 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.
- metric
Expression string - For details, see the Metrics page.
- target
Success number - Set the target value of the SLO. A percentage below this value indicates a failure.
- target
Warning 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 string - The description of the SLO
- legacy
Id string - The ID of this setting when referred to by the Config REST API V1
- metric
Name string - Metric name
- name string
- SLO name
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - error_
budget_ Sloburn_ rate V2Error Budget Burn Rate Args 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.
- 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
- metric_
name str - Metric name
- name str
- SLO name
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - error
Budget Property MapBurn Rate Error budget burn rate
- evaluation
Type String - Possible Values:
AGGREGATE
- evaluation
Window 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.
- metric
Expression String - For details, see the Metrics page.
- target
Success Number - Set the target value of the SLO. A percentage below this value indicates a failure.
- target
Warning 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 String - The description of the SLO
- legacy
Id String - The ID of this setting when referred to by the Config REST API V1
- metric
Name 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)
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.
- Custom
Description string - The description of the SLO
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Error
Budget Pulumiverse.Burn Rate Dynatrace. Inputs. Slo V2Error Budget Burn Rate Error budget burn rate
- Evaluation
Type string - Possible Values:
AGGREGATE
- Evaluation
Window 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.
- Legacy
Id string - The ID of this setting when referred to by the Config REST API V1
- Metric
Expression string - For details, see the Metrics page.
- Metric
Name string - Metric name
- Name string
- SLO name
- Target
Success double - Set the target value of the SLO. A percentage below this value indicates a failure.
- Target
Warning double - 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 string - The description of the SLO
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Error
Budget SloBurn Rate V2Error Budget Burn Rate Args Error budget burn rate
- Evaluation
Type string - Possible Values:
AGGREGATE
- Evaluation
Window 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.
- Legacy
Id string - The ID of this setting when referred to by the Config REST API V1
- Metric
Expression string - For details, see the Metrics page.
- Metric
Name string - Metric name
- Name string
- SLO name
- Target
Success float64 - Set the target value of the SLO. A percentage below this value indicates a failure.
- Target
Warning float64 - 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 String - The description of the SLO
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - error
Budget SloBurn Rate V2Error Budget Burn Rate Error budget burn rate
- evaluation
Type String - Possible Values:
AGGREGATE
- evaluation
Window 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.
- legacy
Id String - The ID of this setting when referred to by the Config REST API V1
- metric
Expression String - For details, see the Metrics page.
- metric
Name String - Metric name
- name String
- SLO name
- target
Success Double - Set the target value of the SLO. A percentage below this value indicates a failure.
- target
Warning Double - 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 string - The description of the SLO
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - error
Budget SloBurn Rate V2Error Budget Burn Rate Error budget burn rate
- evaluation
Type string - Possible Values:
AGGREGATE
- evaluation
Window 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.
- legacy
Id string - The ID of this setting when referred to by the Config REST API V1
- metric
Expression string - For details, see the Metrics page.
- metric
Name string - Metric name
- name string
- SLO name
- target
Success number - Set the target value of the SLO. A percentage below this value indicates a failure.
- target
Warning 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_ Sloburn_ rate V2Error Budget Burn Rate Args 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.
- custom
Description String - The description of the SLO
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - error
Budget Property MapBurn Rate Error budget burn rate
- evaluation
Type String - Possible Values:
AGGREGATE
- evaluation
Window 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.
- legacy
Id String - The ID of this setting when referred to by the Config REST API V1
- metric
Expression String - For details, see the Metrics page.
- metric
Name String - Metric name
- name String
- SLO name
- target
Success Number - Set the target value of the SLO. A percentage below this value indicates a failure.
- target
Warning 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
- Burn
Rate boolVisualization Enabled - Burn rate visualization enabled
- Fast
Burn doubleThreshold - 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 boolVisualization Enabled - Burn rate visualization enabled
- Fast
Burn float64Threshold - 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 BooleanVisualization Enabled - Burn rate visualization enabled
- fast
Burn DoubleThreshold - 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 booleanVisualization Enabled - Burn rate visualization enabled
- fast
Burn numberThreshold - 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_ boolvisualization_ enabled - Burn rate visualization enabled
- fast_
burn_ floatthreshold - 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 BooleanVisualization Enabled - Burn rate visualization enabled
- fast
Burn NumberThreshold - 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.