1. Packages
  2. Chronosphere
  3. API Docs
  4. DropRule
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

chronosphere.DropRule

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

    Create DropRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DropRule(name: string, args: DropRuleArgs, opts?: CustomResourceOptions);
    @overload
    def DropRule(resource_name: str,
                 args: DropRuleArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DropRule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 name: Optional[str] = None,
                 queries: Optional[Sequence[str]] = None,
                 activated_drop_duration: Optional[str] = None,
                 active: Optional[bool] = None,
                 conditional_drop: Optional[bool] = None,
                 drop_nan_value: Optional[bool] = None,
                 rate_limit_threshold: Optional[float] = None,
                 slug: Optional[str] = None,
                 value_based_drop: Optional[DropRuleValueBasedDropArgs] = None)
    func NewDropRule(ctx *Context, name string, args DropRuleArgs, opts ...ResourceOption) (*DropRule, error)
    public DropRule(string name, DropRuleArgs args, CustomResourceOptions? opts = null)
    public DropRule(String name, DropRuleArgs args)
    public DropRule(String name, DropRuleArgs args, CustomResourceOptions options)
    
    type: chronosphere:DropRule
    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 DropRuleArgs
    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 DropRuleArgs
    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 DropRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DropRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DropRuleArgs
    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 dropRuleResource = new Pulumi.DropRule("dropRuleResource", new()
    {
        Name = "string",
        Queries = new[]
        {
            "string",
        },
        ActivatedDropDuration = "string",
        Active = false,
        ConditionalDrop = false,
        DropNanValue = false,
        RateLimitThreshold = 0,
        Slug = "string",
        ValueBasedDrop = new Pulumi.Inputs.DropRuleValueBasedDropArgs
        {
            TargetDropValue = 0,
        },
    });
    
    example, err := chronosphere.NewDropRule(ctx, "dropRuleResource", &chronosphere.DropRuleArgs{
    	Name: pulumi.String("string"),
    	Queries: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ActivatedDropDuration: pulumi.String("string"),
    	Active:                pulumi.Bool(false),
    	ConditionalDrop:       pulumi.Bool(false),
    	DropNanValue:          pulumi.Bool(false),
    	RateLimitThreshold:    pulumi.Float64(0),
    	Slug:                  pulumi.String("string"),
    	ValueBasedDrop: &chronosphere.DropRuleValueBasedDropArgs{
    		TargetDropValue: pulumi.Float64(0),
    	},
    })
    
    var dropRuleResource = new DropRule("dropRuleResource", DropRuleArgs.builder()
        .name("string")
        .queries("string")
        .activatedDropDuration("string")
        .active(false)
        .conditionalDrop(false)
        .dropNanValue(false)
        .rateLimitThreshold(0)
        .slug("string")
        .valueBasedDrop(DropRuleValueBasedDropArgs.builder()
            .targetDropValue(0)
            .build())
        .build());
    
    drop_rule_resource = chronosphere.DropRule("dropRuleResource",
        name="string",
        queries=["string"],
        activated_drop_duration="string",
        active=False,
        conditional_drop=False,
        drop_nan_value=False,
        rate_limit_threshold=0,
        slug="string",
        value_based_drop={
            "target_drop_value": 0,
        })
    
    const dropRuleResource = new chronosphere.DropRule("dropRuleResource", {
        name: "string",
        queries: ["string"],
        activatedDropDuration: "string",
        active: false,
        conditionalDrop: false,
        dropNanValue: false,
        rateLimitThreshold: 0,
        slug: "string",
        valueBasedDrop: {
            targetDropValue: 0,
        },
    });
    
    type: chronosphere:DropRule
    properties:
        activatedDropDuration: string
        active: false
        conditionalDrop: false
        dropNanValue: false
        name: string
        queries:
            - string
        rateLimitThreshold: 0
        slug: string
        valueBasedDrop:
            targetDropValue: 0
    

    DropRule 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 DropRule resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DropRule 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 DropRule Resource

    Get an existing DropRule 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?: DropRuleState, opts?: CustomResourceOptions): DropRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            activated_drop_duration: Optional[str] = None,
            active: Optional[bool] = None,
            conditional_drop: Optional[bool] = None,
            drop_nan_value: Optional[bool] = None,
            name: Optional[str] = None,
            queries: Optional[Sequence[str]] = None,
            rate_limit_threshold: Optional[float] = None,
            slug: Optional[str] = None,
            value_based_drop: Optional[DropRuleValueBasedDropArgs] = None) -> DropRule
    func GetDropRule(ctx *Context, name string, id IDInput, state *DropRuleState, opts ...ResourceOption) (*DropRule, error)
    public static DropRule Get(string name, Input<string> id, DropRuleState? state, CustomResourceOptions? opts = null)
    public static DropRule get(String name, Output<String> id, DropRuleState 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:

    Supporting Types

    DropRuleValueBasedDrop, DropRuleValueBasedDropArgs

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    chronosphere logo
    Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere