1. Packages
  2. Chronosphere
  3. API Docs
  4. DropRule
Chronosphere v0.9.8 published on Thursday, Apr 3, 2025 by Chronosphere

chronosphere.DropRule

Explore with Pulumi AI

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 This property is required. string
The unique name of the resource.
args This property is required. DropRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DropRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DropRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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,
    },
});
Copy
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),
	},
})
Copy
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());
Copy
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,
    })
Copy
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,
    },
});
Copy
type: chronosphere:DropRule
properties:
    activatedDropDuration: string
    active: false
    conditionalDrop: false
    dropNanValue: false
    name: string
    queries:
        - string
    rateLimitThreshold: 0
    slug: string
    valueBasedDrop:
        targetDropValue: 0
Copy

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:

Name This property is required. string
Queries This property is required. List<string>
ActivatedDropDuration string
Active bool
ConditionalDrop bool
DropNanValue bool
RateLimitThreshold double
Slug Changes to this property will trigger replacement. string
ValueBasedDrop Chronosphere.Pulumi.Inputs.DropRuleValueBasedDrop
Name This property is required. string
Queries This property is required. []string
ActivatedDropDuration string
Active bool
ConditionalDrop bool
DropNanValue bool
RateLimitThreshold float64
Slug Changes to this property will trigger replacement. string
ValueBasedDrop DropRuleValueBasedDropArgs
name This property is required. String
queries This property is required. List<String>
activatedDropDuration String
active Boolean
conditionalDrop Boolean
dropNanValue Boolean
rateLimitThreshold Double
slug Changes to this property will trigger replacement. String
valueBasedDrop DropRuleValueBasedDrop
name This property is required. string
queries This property is required. string[]
activatedDropDuration string
active boolean
conditionalDrop boolean
dropNanValue boolean
rateLimitThreshold number
slug Changes to this property will trigger replacement. string
valueBasedDrop DropRuleValueBasedDrop
name This property is required. str
queries This property is required. Sequence[str]
activated_drop_duration str
active bool
conditional_drop bool
drop_nan_value bool
rate_limit_threshold float
slug Changes to this property will trigger replacement. str
value_based_drop DropRuleValueBasedDropArgs
name This property is required. String
queries This property is required. List<String>
activatedDropDuration String
active Boolean
conditionalDrop Boolean
dropNanValue Boolean
rateLimitThreshold Number
slug Changes to this property will trigger replacement. String
valueBasedDrop Property Map

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)
resources:  _:    type: chronosphere:DropRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ActivatedDropDuration string
Active bool
ConditionalDrop bool
DropNanValue bool
Name string
Queries List<string>
RateLimitThreshold double
Slug Changes to this property will trigger replacement. string
ValueBasedDrop Chronosphere.Pulumi.Inputs.DropRuleValueBasedDrop
ActivatedDropDuration string
Active bool
ConditionalDrop bool
DropNanValue bool
Name string
Queries []string
RateLimitThreshold float64
Slug Changes to this property will trigger replacement. string
ValueBasedDrop DropRuleValueBasedDropArgs
activatedDropDuration String
active Boolean
conditionalDrop Boolean
dropNanValue Boolean
name String
queries List<String>
rateLimitThreshold Double
slug Changes to this property will trigger replacement. String
valueBasedDrop DropRuleValueBasedDrop
activatedDropDuration string
active boolean
conditionalDrop boolean
dropNanValue boolean
name string
queries string[]
rateLimitThreshold number
slug Changes to this property will trigger replacement. string
valueBasedDrop DropRuleValueBasedDrop
activated_drop_duration str
active bool
conditional_drop bool
drop_nan_value bool
name str
queries Sequence[str]
rate_limit_threshold float
slug Changes to this property will trigger replacement. str
value_based_drop DropRuleValueBasedDropArgs
activatedDropDuration String
active Boolean
conditionalDrop Boolean
dropNanValue Boolean
name String
queries List<String>
rateLimitThreshold Number
slug Changes to this property will trigger replacement. String
valueBasedDrop Property Map

Supporting Types

DropRuleValueBasedDrop
, DropRuleValueBasedDropArgs

TargetDropValue This property is required. double
TargetDropValue This property is required. float64
targetDropValue This property is required. Double
targetDropValue This property is required. number
target_drop_value This property is required. float
targetDropValue This property is required. Number

Package Details

Repository
chronosphere chronosphereio/pulumi-chronosphere
License
Apache-2.0
Notes
This Pulumi package is based on the chronosphere Terraform Provider.