dynatrace.Slo
Create Slo Resource
new Slo(name: string, args: SloArgs, opts?: CustomResourceOptions);
@overload
def Slo(resource_name: 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)
@overload
def Slo(resource_name: str,
args: SloArgs,
opts: Optional[ResourceOptions] = None)
func NewSlo(ctx *Context, name string, args SloArgs, opts ...ResourceOption) (*Slo, error)
public Slo(string name, SloArgs args, CustomResourceOptions? opts = null)
type: dynatrace:Slo
properties: # The arguments to resource properties.
options: # 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.
- 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.
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
- Metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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
- Metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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
- metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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
- metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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)
numerator
anddenominator
have been replaced bymetric_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
- metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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.
- 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
- Metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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
- Metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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
- metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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
- metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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)
numerator
anddenominator
have been replaced bymetric_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
- metric
Expression 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)
numerator
anddenominator
have been replaced bymetric_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.