chronosphere.RollupRule
Explore with Pulumi AI
Create RollupRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RollupRule(name: string, args: RollupRuleArgs, opts?: CustomResourceOptions);
@overload
def RollupRule(resource_name: str,
args: RollupRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RollupRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
metric_type: Optional[str] = None,
filter: Optional[str] = None,
slug: Optional[str] = None,
name: Optional[str] = None,
group_bies: Optional[Sequence[str]] = None,
graphite_label_policy: Optional[RollupRuleGraphiteLabelPolicyArgs] = None,
bucket_id: Optional[str] = None,
interval: Optional[str] = None,
aggregation: Optional[str] = None,
metric_type_tag: Optional[bool] = None,
mode: Optional[str] = None,
exclude_bies: Optional[Sequence[str]] = None,
new_metric: Optional[str] = None,
permissive: Optional[bool] = None,
drop_raw: Optional[bool] = None,
storage_policies: Optional[RollupRuleStoragePoliciesArgs] = None)
func NewRollupRule(ctx *Context, name string, args RollupRuleArgs, opts ...ResourceOption) (*RollupRule, error)
public RollupRule(string name, RollupRuleArgs args, CustomResourceOptions? opts = null)
public RollupRule(String name, RollupRuleArgs args)
public RollupRule(String name, RollupRuleArgs args, CustomResourceOptions options)
type: chronosphere:RollupRule
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 RollupRuleArgs
- 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 RollupRuleArgs
- 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 RollupRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RollupRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RollupRuleArgs
- 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 rollupRuleResource = new Pulumi.RollupRule("rollupRuleResource", new()
{
MetricType = "string",
Filter = "string",
Slug = "string",
Name = "string",
GroupBies = new[]
{
"string",
},
GraphiteLabelPolicy = new Pulumi.Inputs.RollupRuleGraphiteLabelPolicyArgs
{
Replaces = new[]
{
new Pulumi.Inputs.RollupRuleGraphiteLabelPolicyReplaceArgs
{
Name = "string",
NewValue = "string",
},
},
},
BucketId = "string",
Interval = "string",
Aggregation = "string",
MetricTypeTag = false,
Mode = "string",
ExcludeBies = new[]
{
"string",
},
NewMetric = "string",
Permissive = false,
DropRaw = false,
});
example, err := chronosphere.NewRollupRule(ctx, "rollupRuleResource", &chronosphere.RollupRuleArgs{
MetricType: pulumi.String("string"),
Filter: pulumi.String("string"),
Slug: pulumi.String("string"),
Name: pulumi.String("string"),
GroupBies: pulumi.StringArray{
pulumi.String("string"),
},
GraphiteLabelPolicy: &chronosphere.RollupRuleGraphiteLabelPolicyArgs{
Replaces: chronosphere.RollupRuleGraphiteLabelPolicyReplaceArray{
&chronosphere.RollupRuleGraphiteLabelPolicyReplaceArgs{
Name: pulumi.String("string"),
NewValue: pulumi.String("string"),
},
},
},
BucketId: pulumi.String("string"),
Interval: pulumi.String("string"),
Aggregation: pulumi.String("string"),
MetricTypeTag: pulumi.Bool(false),
Mode: pulumi.String("string"),
ExcludeBies: pulumi.StringArray{
pulumi.String("string"),
},
NewMetric: pulumi.String("string"),
Permissive: pulumi.Bool(false),
DropRaw: pulumi.Bool(false),
})
var rollupRuleResource = new RollupRule("rollupRuleResource", RollupRuleArgs.builder()
.metricType("string")
.filter("string")
.slug("string")
.name("string")
.groupBies("string")
.graphiteLabelPolicy(RollupRuleGraphiteLabelPolicyArgs.builder()
.replaces(RollupRuleGraphiteLabelPolicyReplaceArgs.builder()
.name("string")
.newValue("string")
.build())
.build())
.bucketId("string")
.interval("string")
.aggregation("string")
.metricTypeTag(false)
.mode("string")
.excludeBies("string")
.newMetric("string")
.permissive(false)
.dropRaw(false)
.build());
rollup_rule_resource = chronosphere.RollupRule("rollupRuleResource",
metric_type="string",
filter="string",
slug="string",
name="string",
group_bies=["string"],
graphite_label_policy={
"replaces": [{
"name": "string",
"new_value": "string",
}],
},
bucket_id="string",
interval="string",
aggregation="string",
metric_type_tag=False,
mode="string",
exclude_bies=["string"],
new_metric="string",
permissive=False,
drop_raw=False)
const rollupRuleResource = new chronosphere.RollupRule("rollupRuleResource", {
metricType: "string",
filter: "string",
slug: "string",
name: "string",
groupBies: ["string"],
graphiteLabelPolicy: {
replaces: [{
name: "string",
newValue: "string",
}],
},
bucketId: "string",
interval: "string",
aggregation: "string",
metricTypeTag: false,
mode: "string",
excludeBies: ["string"],
newMetric: "string",
permissive: false,
dropRaw: false,
});
type: chronosphere:RollupRule
properties:
aggregation: string
bucketId: string
dropRaw: false
excludeBies:
- string
filter: string
graphiteLabelPolicy:
replaces:
- name: string
newValue: string
groupBies:
- string
interval: string
metricType: string
metricTypeTag: false
mode: string
name: string
newMetric: string
permissive: false
slug: string
RollupRule 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 RollupRule resource accepts the following input properties:
- Filter string
- Metric
Type string - Name string
- Slug string
- Aggregation string
- Bucket
Id string - Drop
Raw bool - Exclude
Bies List<string> - Graphite
Label Chronosphere.Policy Pulumi. Inputs. Rollup Rule Graphite Label Policy - Group
Bies List<string> - Interval string
- Metric
Type boolTag - Mode string
- New
Metric string - Permissive bool
- Storage
Policies Chronosphere.Pulumi. Inputs. Rollup Rule Storage Policies
- Filter string
- Metric
Type string - Name string
- Slug string
- Aggregation string
- Bucket
Id string - Drop
Raw bool - Exclude
Bies []string - Graphite
Label RollupPolicy Rule Graphite Label Policy Args - Group
Bies []string - Interval string
- Metric
Type boolTag - Mode string
- New
Metric string - Permissive bool
- Storage
Policies RollupRule Storage Policies Args
- filter String
- metric
Type String - name String
- slug String
- aggregation String
- bucket
Id String - drop
Raw Boolean - exclude
Bies List<String> - graphite
Label RollupPolicy Rule Graphite Label Policy - group
Bies List<String> - interval String
- metric
Type BooleanTag - mode String
- new
Metric String - permissive Boolean
- storage
Policies RollupRule Storage Policies
- filter string
- metric
Type string - name string
- slug string
- aggregation string
- bucket
Id string - drop
Raw boolean - exclude
Bies string[] - graphite
Label RollupPolicy Rule Graphite Label Policy - group
Bies string[] - interval string
- metric
Type booleanTag - mode string
- new
Metric string - permissive boolean
- storage
Policies RollupRule Storage Policies
- filter str
- metric_
type str - name str
- slug str
- aggregation str
- bucket_
id str - drop_
raw bool - exclude_
bies Sequence[str] - graphite_
label_ Rolluppolicy Rule Graphite Label Policy Args - group_
bies Sequence[str] - interval str
- metric_
type_ booltag - mode str
- new_
metric str - permissive bool
- storage_
policies RollupRule Storage Policies Args
- filter String
- metric
Type String - name String
- slug String
- aggregation String
- bucket
Id String - drop
Raw Boolean - exclude
Bies List<String> - graphite
Label Property MapPolicy - group
Bies List<String> - interval String
- metric
Type BooleanTag - mode String
- new
Metric String - permissive Boolean
- storage
Policies Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the RollupRule 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 RollupRule Resource
Get an existing RollupRule 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?: RollupRuleState, opts?: CustomResourceOptions): RollupRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aggregation: Optional[str] = None,
bucket_id: Optional[str] = None,
drop_raw: Optional[bool] = None,
exclude_bies: Optional[Sequence[str]] = None,
filter: Optional[str] = None,
graphite_label_policy: Optional[RollupRuleGraphiteLabelPolicyArgs] = None,
group_bies: Optional[Sequence[str]] = None,
interval: Optional[str] = None,
metric_type: Optional[str] = None,
metric_type_tag: Optional[bool] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
new_metric: Optional[str] = None,
permissive: Optional[bool] = None,
slug: Optional[str] = None,
storage_policies: Optional[RollupRuleStoragePoliciesArgs] = None) -> RollupRule
func GetRollupRule(ctx *Context, name string, id IDInput, state *RollupRuleState, opts ...ResourceOption) (*RollupRule, error)
public static RollupRule Get(string name, Input<string> id, RollupRuleState? state, CustomResourceOptions? opts = null)
public static RollupRule get(String name, Output<String> id, RollupRuleState 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.
- Aggregation string
- Bucket
Id string - Drop
Raw bool - Exclude
Bies List<string> - Filter string
- Graphite
Label Chronosphere.Policy Pulumi. Inputs. Rollup Rule Graphite Label Policy - Group
Bies List<string> - Interval string
- Metric
Type string - Metric
Type boolTag - Mode string
- Name string
- New
Metric string - Permissive bool
- Slug string
- Storage
Policies Chronosphere.Pulumi. Inputs. Rollup Rule Storage Policies
- Aggregation string
- Bucket
Id string - Drop
Raw bool - Exclude
Bies []string - Filter string
- Graphite
Label RollupPolicy Rule Graphite Label Policy Args - Group
Bies []string - Interval string
- Metric
Type string - Metric
Type boolTag - Mode string
- Name string
- New
Metric string - Permissive bool
- Slug string
- Storage
Policies RollupRule Storage Policies Args
- aggregation String
- bucket
Id String - drop
Raw Boolean - exclude
Bies List<String> - filter String
- graphite
Label RollupPolicy Rule Graphite Label Policy - group
Bies List<String> - interval String
- metric
Type String - metric
Type BooleanTag - mode String
- name String
- new
Metric String - permissive Boolean
- slug String
- storage
Policies RollupRule Storage Policies
- aggregation string
- bucket
Id string - drop
Raw boolean - exclude
Bies string[] - filter string
- graphite
Label RollupPolicy Rule Graphite Label Policy - group
Bies string[] - interval string
- metric
Type string - metric
Type booleanTag - mode string
- name string
- new
Metric string - permissive boolean
- slug string
- storage
Policies RollupRule Storage Policies
- aggregation str
- bucket_
id str - drop_
raw bool - exclude_
bies Sequence[str] - filter str
- graphite_
label_ Rolluppolicy Rule Graphite Label Policy Args - group_
bies Sequence[str] - interval str
- metric_
type str - metric_
type_ booltag - mode str
- name str
- new_
metric str - permissive bool
- slug str
- storage_
policies RollupRule Storage Policies Args
- aggregation String
- bucket
Id String - drop
Raw Boolean - exclude
Bies List<String> - filter String
- graphite
Label Property MapPolicy - group
Bies List<String> - interval String
- metric
Type String - metric
Type BooleanTag - mode String
- name String
- new
Metric String - permissive Boolean
- slug String
- storage
Policies Property Map
Supporting Types
RollupRuleGraphiteLabelPolicy, RollupRuleGraphiteLabelPolicyArgs
RollupRuleGraphiteLabelPolicyReplace, RollupRuleGraphiteLabelPolicyReplaceArgs
RollupRuleStoragePolicies, RollupRuleStoragePoliciesArgs
- Resolution string
- Retention string
- Resolution string
- Retention string
- resolution String
- retention String
- resolution string
- retention string
- resolution str
- retention str
- resolution String
- retention String
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.