1. Packages
  2. Dynatrace
  3. API Docs
  4. SiteReliabilityGuardian
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.SiteReliabilityGuardian

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    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.SiteReliabilityGuardianObjectives
    Objectives
    Description string
    Description
    Name string
    Name
    Tags List<string>
    Define key/value pairs that further describe this guardian.
    Variables Pulumiverse.Dynatrace.Inputs.SiteReliabilityGuardianVariables
    Define variables for dynamically defining DQL queries
    Objectives SiteReliabilityGuardianObjectivesArgs
    Objectives
    Description string
    Description
    Name string
    Name
    Tags []string
    Define key/value pairs that further describe this guardian.
    Variables SiteReliabilityGuardianVariablesArgs
    Define variables for dynamically defining DQL queries
    objectives SiteReliabilityGuardianObjectives
    Objectives
    description String
    Description
    name String
    Name
    tags List<String>
    Define key/value pairs that further describe this guardian.
    variables SiteReliabilityGuardianVariables
    Define variables for dynamically defining DQL queries
    objectives SiteReliabilityGuardianObjectives
    Objectives
    description string
    Description
    name string
    Name
    tags string[]
    Define key/value pairs that further describe this guardian.
    variables SiteReliabilityGuardianVariables
    Define variables for dynamically defining DQL queries
    objectives SiteReliabilityGuardianObjectivesArgs
    Objectives
    description str
    Description
    name str
    Name
    tags Sequence[str]
    Define key/value pairs that further describe this guardian.
    variables SiteReliabilityGuardianVariablesArgs
    Define variables for dynamically defining DQL queries
    objectives Property Map
    Objectives
    description String
    Description
    name String
    Name
    tags 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.
    The following state arguments are supported:
    Description string
    Description
    Name string
    Name
    Objectives Pulumiverse.Dynatrace.Inputs.SiteReliabilityGuardianObjectives
    Objectives
    Tags List<string>
    Define key/value pairs that further describe this guardian.
    Variables Pulumiverse.Dynatrace.Inputs.SiteReliabilityGuardianVariables
    Define variables for dynamically defining DQL queries
    Description string
    Description
    Name string
    Name
    Objectives SiteReliabilityGuardianObjectivesArgs
    Objectives
    Tags []string
    Define key/value pairs that further describe this guardian.
    Variables SiteReliabilityGuardianVariablesArgs
    Define variables for dynamically defining DQL queries
    description String
    Description
    name String
    Name
    objectives SiteReliabilityGuardianObjectives
    Objectives
    tags List<String>
    Define key/value pairs that further describe this guardian.
    variables SiteReliabilityGuardianVariables
    Define variables for dynamically defining DQL queries
    description string
    Description
    name string
    Name
    objectives SiteReliabilityGuardianObjectives
    Objectives
    tags string[]
    Define key/value pairs that further describe this guardian.
    variables SiteReliabilityGuardianVariables
    Define variables for dynamically defining DQL queries
    description str
    Description
    name str
    Name
    objectives SiteReliabilityGuardianObjectivesArgs
    Objectives
    tags Sequence[str]
    Define key/value pairs that further describe this guardian.
    variables SiteReliabilityGuardianVariablesArgs
    Define variables for dynamically defining DQL queries
    description String
    Description
    name String
    Name
    objectives Property Map
    Objectives
    tags 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

    ComparisonOperator string
    Possible Values: GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL
    Name string
    Objective name
    ObjectiveType string
    Possible Values: DQL, REFERENCE_SLO
    AutoAdaptiveThresholdEnabled bool
    Enable auto adaptive threshold
    Description string
    no documentation available
    DqlQuery string
    DQL query
    ReferenceSlo 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
    ComparisonOperator string
    Possible Values: GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL
    Name string
    Objective name
    ObjectiveType string
    Possible Values: DQL, REFERENCE_SLO
    AutoAdaptiveThresholdEnabled bool
    Enable auto adaptive threshold
    Description string
    no documentation available
    DqlQuery string
    DQL query
    ReferenceSlo 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
    comparisonOperator String
    Possible Values: GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL
    name String
    Objective name
    objectiveType String
    Possible Values: DQL, REFERENCE_SLO
    autoAdaptiveThresholdEnabled Boolean
    Enable auto adaptive threshold
    description String
    no documentation available
    dqlQuery String
    DQL query
    referenceSlo 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
    comparisonOperator string
    Possible Values: GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL
    name string
    Objective name
    objectiveType string
    Possible Values: DQL, REFERENCE_SLO
    autoAdaptiveThresholdEnabled boolean
    Enable auto adaptive threshold
    description string
    no documentation available
    dqlQuery string
    DQL query
    referenceSlo 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_threshold_enabled bool
    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
    comparisonOperator String
    Possible Values: GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL
    name String
    Objective name
    objectiveType String
    Possible Values: DQL, REFERENCE_SLO
    autoAdaptiveThresholdEnabled Boolean
    Enable auto adaptive threshold
    description String
    no documentation available
    dqlQuery String
    DQL query
    referenceSlo 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.
    dynatrace logo
    Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse