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 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:
- Name string
- Queries List<string>
- ActivatedDrop stringDuration 
- Active bool
- ConditionalDrop bool
- DropNan boolValue 
- RateLimit doubleThreshold 
- Slug string
- ValueBased Chronosphere.Drop Pulumi. Inputs. Drop Rule Value Based Drop 
- Name string
- Queries []string
- ActivatedDrop stringDuration 
- Active bool
- ConditionalDrop bool
- DropNan boolValue 
- RateLimit float64Threshold 
- Slug string
- ValueBased DropDrop Rule Value Based Drop Args 
- name String
- queries List<String>
- activatedDrop StringDuration 
- active Boolean
- conditionalDrop Boolean
- dropNan BooleanValue 
- rateLimit DoubleThreshold 
- slug String
- valueBased DropDrop Rule Value Based Drop 
- name string
- queries string[]
- activatedDrop stringDuration 
- active boolean
- conditionalDrop boolean
- dropNan booleanValue 
- rateLimit numberThreshold 
- slug string
- valueBased DropDrop Rule Value Based Drop 
- name str
- queries Sequence[str]
- activated_drop_ strduration 
- active bool
- conditional_drop bool
- drop_nan_ boolvalue 
- rate_limit_ floatthreshold 
- slug str
- value_based_ Dropdrop Rule Value Based Drop Args 
- name String
- queries List<String>
- activatedDrop StringDuration 
- active Boolean
- conditionalDrop Boolean
- dropNan BooleanValue 
- rateLimit NumberThreshold 
- slug String
- valueBased Property MapDrop 
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) -> DropRulefunc 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
- 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.
- ActivatedDrop stringDuration 
- Active bool
- ConditionalDrop bool
- DropNan boolValue 
- Name string
- Queries List<string>
- RateLimit doubleThreshold 
- Slug string
- ValueBased Chronosphere.Drop Pulumi. Inputs. Drop Rule Value Based Drop 
- ActivatedDrop stringDuration 
- Active bool
- ConditionalDrop bool
- DropNan boolValue 
- Name string
- Queries []string
- RateLimit float64Threshold 
- Slug string
- ValueBased DropDrop Rule Value Based Drop Args 
- activatedDrop StringDuration 
- active Boolean
- conditionalDrop Boolean
- dropNan BooleanValue 
- name String
- queries List<String>
- rateLimit DoubleThreshold 
- slug String
- valueBased DropDrop Rule Value Based Drop 
- activatedDrop stringDuration 
- active boolean
- conditionalDrop boolean
- dropNan booleanValue 
- name string
- queries string[]
- rateLimit numberThreshold 
- slug string
- valueBased DropDrop Rule Value Based Drop 
- activated_drop_ strduration 
- active bool
- conditional_drop bool
- drop_nan_ boolvalue 
- name str
- queries Sequence[str]
- rate_limit_ floatthreshold 
- slug str
- value_based_ Dropdrop Rule Value Based Drop Args 
- activatedDrop StringDuration 
- active Boolean
- conditionalDrop Boolean
- dropNan BooleanValue 
- name String
- queries List<String>
- rateLimit NumberThreshold 
- slug String
- valueBased Property MapDrop 
Supporting Types
DropRuleValueBasedDrop, DropRuleValueBasedDropArgs          
- TargetDrop doubleValue 
- TargetDrop float64Value 
- targetDrop DoubleValue 
- targetDrop numberValue 
- target_drop_ floatvalue 
- targetDrop NumberValue 
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the chronosphereTerraform Provider.