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>
- Activated
Drop stringDuration - Active bool
- Conditional
Drop bool - Drop
Nan boolValue - Rate
Limit doubleThreshold - Slug string
- Value
Based Chronosphere.Drop Pulumi. Inputs. Drop Rule Value Based Drop
- Name string
- Queries []string
- Activated
Drop stringDuration - Active bool
- Conditional
Drop bool - Drop
Nan boolValue - Rate
Limit float64Threshold - Slug string
- Value
Based DropDrop Rule Value Based Drop Args
- name String
- queries List<String>
- activated
Drop StringDuration - active Boolean
- conditional
Drop Boolean - drop
Nan BooleanValue - rate
Limit DoubleThreshold - slug String
- value
Based DropDrop Rule Value Based Drop
- name string
- queries string[]
- activated
Drop stringDuration - active boolean
- conditional
Drop boolean - drop
Nan booleanValue - rate
Limit numberThreshold - slug string
- value
Based 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>
- activated
Drop StringDuration - active Boolean
- conditional
Drop Boolean - drop
Nan BooleanValue - rate
Limit NumberThreshold - slug String
- value
Based 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) -> 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.
- Activated
Drop stringDuration - Active bool
- Conditional
Drop bool - Drop
Nan boolValue - Name string
- Queries List<string>
- Rate
Limit doubleThreshold - Slug string
- Value
Based Chronosphere.Drop Pulumi. Inputs. Drop Rule Value Based Drop
- Activated
Drop stringDuration - Active bool
- Conditional
Drop bool - Drop
Nan boolValue - Name string
- Queries []string
- Rate
Limit float64Threshold - Slug string
- Value
Based DropDrop Rule Value Based Drop Args
- activated
Drop StringDuration - active Boolean
- conditional
Drop Boolean - drop
Nan BooleanValue - name String
- queries List<String>
- rate
Limit DoubleThreshold - slug String
- value
Based DropDrop Rule Value Based Drop
- activated
Drop stringDuration - active boolean
- conditional
Drop boolean - drop
Nan booleanValue - name string
- queries string[]
- rate
Limit numberThreshold - slug string
- value
Based 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
- activated
Drop StringDuration - active Boolean
- conditional
Drop Boolean - drop
Nan BooleanValue - name String
- queries List<String>
- rate
Limit NumberThreshold - slug String
- value
Based Property MapDrop
Supporting Types
DropRuleValueBasedDrop, DropRuleValueBasedDropArgs
- Target
Drop doubleValue
- Target
Drop float64Value
- target
Drop DoubleValue
- target
Drop numberValue
- target_
drop_ floatvalue
- target
Drop NumberValue
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.