dynatrace.SiteReliabilityGuardian
Explore with Pulumi AI
Create SiteReliabilityGuardian Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SiteReliabilityGuardian(name: string, args: SiteReliabilityGuardianArgs, opts?: CustomResourceOptions);
@overload
def SiteReliabilityGuardian(resource_name: str,
args: SiteReliabilityGuardianArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SiteReliabilityGuardian(resource_name: str,
opts: Optional[ResourceOptions] = None,
objectives: Optional[SiteReliabilityGuardianObjectivesArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
variables: Optional[SiteReliabilityGuardianVariablesArgs] = None)
func NewSiteReliabilityGuardian(ctx *Context, name string, args SiteReliabilityGuardianArgs, opts ...ResourceOption) (*SiteReliabilityGuardian, error)
public SiteReliabilityGuardian(string name, SiteReliabilityGuardianArgs args, CustomResourceOptions? opts = null)
public SiteReliabilityGuardian(String name, SiteReliabilityGuardianArgs args)
public SiteReliabilityGuardian(String name, SiteReliabilityGuardianArgs args, CustomResourceOptions options)
type: dynatrace:SiteReliabilityGuardian
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 SiteReliabilityGuardianArgs
- 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 SiteReliabilityGuardianArgs
- 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 SiteReliabilityGuardianArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SiteReliabilityGuardianArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SiteReliabilityGuardianArgs
- 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 siteReliabilityGuardianResource = new Dynatrace.SiteReliabilityGuardian("siteReliabilityGuardianResource", new()
{
Objectives = new Dynatrace.Inputs.SiteReliabilityGuardianObjectivesArgs
{
Objectives = new[]
{
new Dynatrace.Inputs.SiteReliabilityGuardianObjectivesObjectiveArgs
{
ComparisonOperator = "string",
Name = "string",
ObjectiveType = "string",
AutoAdaptiveThresholdEnabled = false,
Description = "string",
DqlQuery = "string",
ReferenceSlo = "string",
Target = 0,
Warning = 0,
},
},
},
Description = "string",
Name = "string",
Tags = new[]
{
"string",
},
Variables = new Dynatrace.Inputs.SiteReliabilityGuardianVariablesArgs
{
Variables = new[]
{
new Dynatrace.Inputs.SiteReliabilityGuardianVariablesVariableArgs
{
Definition = "string",
Name = "string",
},
},
},
});
example, err := dynatrace.NewSiteReliabilityGuardian(ctx, "siteReliabilityGuardianResource", &dynatrace.SiteReliabilityGuardianArgs{
Objectives: &dynatrace.SiteReliabilityGuardianObjectivesArgs{
Objectives: dynatrace.SiteReliabilityGuardianObjectivesObjectiveArray{
&dynatrace.SiteReliabilityGuardianObjectivesObjectiveArgs{
ComparisonOperator: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectiveType: pulumi.String("string"),
AutoAdaptiveThresholdEnabled: pulumi.Bool(false),
Description: pulumi.String("string"),
DqlQuery: pulumi.String("string"),
ReferenceSlo: pulumi.String("string"),
Target: pulumi.Float64(0),
Warning: pulumi.Float64(0),
},
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Variables: &dynatrace.SiteReliabilityGuardianVariablesArgs{
Variables: dynatrace.SiteReliabilityGuardianVariablesVariableArray{
&dynatrace.SiteReliabilityGuardianVariablesVariableArgs{
Definition: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
})
var siteReliabilityGuardianResource = new SiteReliabilityGuardian("siteReliabilityGuardianResource", SiteReliabilityGuardianArgs.builder()
.objectives(SiteReliabilityGuardianObjectivesArgs.builder()
.objectives(SiteReliabilityGuardianObjectivesObjectiveArgs.builder()
.comparisonOperator("string")
.name("string")
.objectiveType("string")
.autoAdaptiveThresholdEnabled(false)
.description("string")
.dqlQuery("string")
.referenceSlo("string")
.target(0)
.warning(0)
.build())
.build())
.description("string")
.name("string")
.tags("string")
.variables(SiteReliabilityGuardianVariablesArgs.builder()
.variables(SiteReliabilityGuardianVariablesVariableArgs.builder()
.definition("string")
.name("string")
.build())
.build())
.build());
site_reliability_guardian_resource = dynatrace.SiteReliabilityGuardian("siteReliabilityGuardianResource",
objectives={
"objectives": [{
"comparison_operator": "string",
"name": "string",
"objective_type": "string",
"auto_adaptive_threshold_enabled": False,
"description": "string",
"dql_query": "string",
"reference_slo": "string",
"target": 0,
"warning": 0,
}],
},
description="string",
name="string",
tags=["string"],
variables={
"variables": [{
"definition": "string",
"name": "string",
}],
})
const siteReliabilityGuardianResource = new dynatrace.SiteReliabilityGuardian("siteReliabilityGuardianResource", {
objectives: {
objectives: [{
comparisonOperator: "string",
name: "string",
objectiveType: "string",
autoAdaptiveThresholdEnabled: false,
description: "string",
dqlQuery: "string",
referenceSlo: "string",
target: 0,
warning: 0,
}],
},
description: "string",
name: "string",
tags: ["string"],
variables: {
variables: [{
definition: "string",
name: "string",
}],
},
});
type: dynatrace:SiteReliabilityGuardian
properties:
description: string
name: string
objectives:
objectives:
- autoAdaptiveThresholdEnabled: false
comparisonOperator: string
description: string
dqlQuery: string
name: string
objectiveType: string
referenceSlo: string
target: 0
warning: 0
tags:
- string
variables:
variables:
- definition: string
name: string
SiteReliabilityGuardian 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 SiteReliabilityGuardian resource accepts the following input properties:
- Objectives
Pulumiverse.
Dynatrace. Inputs. Site Reliability Guardian Objectives - Objectives
- Description string
- Description
- Name string
- Name
- List<string>
- Define key/value pairs that further describe this guardian.
- Variables
Pulumiverse.
Dynatrace. Inputs. Site Reliability Guardian Variables - Define variables for dynamically defining DQL queries
- Objectives
Site
Reliability Guardian Objectives Args - Objectives
- Description string
- Description
- Name string
- Name
- []string
- Define key/value pairs that further describe this guardian.
- Variables
Site
Reliability Guardian Variables Args - Define variables for dynamically defining DQL queries
- objectives
Site
Reliability Guardian Objectives - Objectives
- description String
- Description
- name String
- Name
- List<String>
- Define key/value pairs that further describe this guardian.
- variables
Site
Reliability Guardian Variables - Define variables for dynamically defining DQL queries
- objectives
Site
Reliability Guardian Objectives - Objectives
- description string
- Description
- name string
- Name
- string[]
- Define key/value pairs that further describe this guardian.
- variables
Site
Reliability Guardian Variables - Define variables for dynamically defining DQL queries
- objectives
Site
Reliability Guardian Objectives Args - Objectives
- description str
- Description
- name str
- Name
- Sequence[str]
- Define key/value pairs that further describe this guardian.
- variables
Site
Reliability Guardian Variables Args - Define variables for dynamically defining DQL queries
- objectives Property Map
- Objectives
- description String
- Description
- name String
- Name
- List<String>
- Define key/value pairs that further describe this guardian.
- variables Property Map
- Define variables for dynamically defining DQL queries
Outputs
All input properties are implicitly available as output properties. Additionally, the SiteReliabilityGuardian 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 SiteReliabilityGuardian Resource
Get an existing SiteReliabilityGuardian 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?: SiteReliabilityGuardianState, opts?: CustomResourceOptions): SiteReliabilityGuardian
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
objectives: Optional[SiteReliabilityGuardianObjectivesArgs] = None,
tags: Optional[Sequence[str]] = None,
variables: Optional[SiteReliabilityGuardianVariablesArgs] = None) -> SiteReliabilityGuardian
func GetSiteReliabilityGuardian(ctx *Context, name string, id IDInput, state *SiteReliabilityGuardianState, opts ...ResourceOption) (*SiteReliabilityGuardian, error)
public static SiteReliabilityGuardian Get(string name, Input<string> id, SiteReliabilityGuardianState? state, CustomResourceOptions? opts = null)
public static SiteReliabilityGuardian get(String name, Output<String> id, SiteReliabilityGuardianState 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.
- Description string
- Description
- Name string
- Name
- Objectives
Pulumiverse.
Dynatrace. Inputs. Site Reliability Guardian Objectives - Objectives
- List<string>
- Define key/value pairs that further describe this guardian.
- Variables
Pulumiverse.
Dynatrace. Inputs. Site Reliability Guardian Variables - Define variables for dynamically defining DQL queries
- Description string
- Description
- Name string
- Name
- Objectives
Site
Reliability Guardian Objectives Args - Objectives
- []string
- Define key/value pairs that further describe this guardian.
- Variables
Site
Reliability Guardian Variables Args - Define variables for dynamically defining DQL queries
- description String
- Description
- name String
- Name
- objectives
Site
Reliability Guardian Objectives - Objectives
- List<String>
- Define key/value pairs that further describe this guardian.
- variables
Site
Reliability Guardian Variables - Define variables for dynamically defining DQL queries
- description string
- Description
- name string
- Name
- objectives
Site
Reliability Guardian Objectives - Objectives
- string[]
- Define key/value pairs that further describe this guardian.
- variables
Site
Reliability Guardian Variables - Define variables for dynamically defining DQL queries
- description str
- Description
- name str
- Name
- objectives
Site
Reliability Guardian Objectives Args - Objectives
- Sequence[str]
- Define key/value pairs that further describe this guardian.
- variables
Site
Reliability Guardian Variables Args - Define variables for dynamically defining DQL queries
- description String
- Description
- name String
- Name
- objectives Property Map
- Objectives
- List<String>
- Define key/value pairs that further describe this guardian.
- variables Property Map
- Define variables for dynamically defining DQL queries
Supporting Types
SiteReliabilityGuardianObjectives, SiteReliabilityGuardianObjectivesArgs
SiteReliabilityGuardianObjectivesObjective, SiteReliabilityGuardianObjectivesObjectiveArgs
- Comparison
Operator string - Possible Values:
GREATER_THAN_OR_EQUAL
,LESS_THAN_OR_EQUAL
- Name string
- Objective name
- Objective
Type string - Possible Values:
DQL
,REFERENCE_SLO
- Auto
Adaptive boolThreshold Enabled - Enable auto adaptive threshold
- Description string
- no documentation available
- Dql
Query string - DQL query
- Reference
Slo string - Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.'
- Target double
- no documentation available
- Warning double
- no documentation available
- Comparison
Operator string - Possible Values:
GREATER_THAN_OR_EQUAL
,LESS_THAN_OR_EQUAL
- Name string
- Objective name
- Objective
Type string - Possible Values:
DQL
,REFERENCE_SLO
- Auto
Adaptive boolThreshold Enabled - Enable auto adaptive threshold
- Description string
- no documentation available
- Dql
Query string - DQL query
- Reference
Slo string - Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.'
- Target float64
- no documentation available
- Warning float64
- no documentation available
- comparison
Operator String - Possible Values:
GREATER_THAN_OR_EQUAL
,LESS_THAN_OR_EQUAL
- name String
- Objective name
- objective
Type String - Possible Values:
DQL
,REFERENCE_SLO
- auto
Adaptive BooleanThreshold Enabled - Enable auto adaptive threshold
- description String
- no documentation available
- dql
Query String - DQL query
- reference
Slo String - Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.'
- target Double
- no documentation available
- warning Double
- no documentation available
- comparison
Operator string - Possible Values:
GREATER_THAN_OR_EQUAL
,LESS_THAN_OR_EQUAL
- name string
- Objective name
- objective
Type string - Possible Values:
DQL
,REFERENCE_SLO
- auto
Adaptive booleanThreshold Enabled - Enable auto adaptive threshold
- description string
- no documentation available
- dql
Query string - DQL query
- reference
Slo string - Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.'
- target number
- no documentation available
- warning number
- no documentation available
- comparison_
operator str - Possible Values:
GREATER_THAN_OR_EQUAL
,LESS_THAN_OR_EQUAL
- name str
- Objective name
- objective_
type str - Possible Values:
DQL
,REFERENCE_SLO
- auto_
adaptive_ boolthreshold_ enabled - Enable auto adaptive threshold
- description str
- no documentation available
- dql_
query str - DQL query
- reference_
slo str - Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.'
- target float
- no documentation available
- warning float
- no documentation available
- comparison
Operator String - Possible Values:
GREATER_THAN_OR_EQUAL
,LESS_THAN_OR_EQUAL
- name String
- Objective name
- objective
Type String - Possible Values:
DQL
,REFERENCE_SLO
- auto
Adaptive BooleanThreshold Enabled - Enable auto adaptive threshold
- description String
- no documentation available
- dql
Query String - DQL query
- reference
Slo String - Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.'
- target Number
- no documentation available
- warning Number
- no documentation available
SiteReliabilityGuardianVariables, SiteReliabilityGuardianVariablesArgs
SiteReliabilityGuardianVariablesVariable, SiteReliabilityGuardianVariablesVariableArgs
- Definition string
- Value
- Name string
- no documentation available
- Definition string
- Value
- Name string
- no documentation available
- definition String
- Value
- name String
- no documentation available
- definition string
- Value
- name string
- no documentation available
- definition str
- Value
- name str
- no documentation available
- definition String
- Value
- name String
- no documentation available
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.