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
- MetricType string
- Name string
- Slug string
- Aggregation string
- BucketId string
- DropRaw bool
- ExcludeBies List<string>
- GraphiteLabel Chronosphere.Policy Pulumi. Inputs. Rollup Rule Graphite Label Policy 
- GroupBies List<string>
- Interval string
- MetricType boolTag 
- Mode string
- NewMetric string
- Permissive bool
- StoragePolicies Chronosphere.Pulumi. Inputs. Rollup Rule Storage Policies 
- Filter string
- MetricType string
- Name string
- Slug string
- Aggregation string
- BucketId string
- DropRaw bool
- ExcludeBies []string
- GraphiteLabel RollupPolicy Rule Graphite Label Policy Args 
- GroupBies []string
- Interval string
- MetricType boolTag 
- Mode string
- NewMetric string
- Permissive bool
- StoragePolicies RollupRule Storage Policies Args 
- filter String
- metricType String
- name String
- slug String
- aggregation String
- bucketId String
- dropRaw Boolean
- excludeBies List<String>
- graphiteLabel RollupPolicy Rule Graphite Label Policy 
- groupBies List<String>
- interval String
- metricType BooleanTag 
- mode String
- newMetric String
- permissive Boolean
- storagePolicies RollupRule Storage Policies 
- filter string
- metricType string
- name string
- slug string
- aggregation string
- bucketId string
- dropRaw boolean
- excludeBies string[]
- graphiteLabel RollupPolicy Rule Graphite Label Policy 
- groupBies string[]
- interval string
- metricType booleanTag 
- mode string
- newMetric string
- permissive boolean
- storagePolicies 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
- metricType String
- name String
- slug String
- aggregation String
- bucketId String
- dropRaw Boolean
- excludeBies List<String>
- graphiteLabel Property MapPolicy 
- groupBies List<String>
- interval String
- metricType BooleanTag 
- mode String
- newMetric String
- permissive Boolean
- storagePolicies 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) -> RollupRulefunc 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)resources:  _:    type: chronosphere:RollupRule    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.
- Aggregation string
- BucketId string
- DropRaw bool
- ExcludeBies List<string>
- Filter string
- GraphiteLabel Chronosphere.Policy Pulumi. Inputs. Rollup Rule Graphite Label Policy 
- GroupBies List<string>
- Interval string
- MetricType string
- MetricType boolTag 
- Mode string
- Name string
- NewMetric string
- Permissive bool
- Slug string
- StoragePolicies Chronosphere.Pulumi. Inputs. Rollup Rule Storage Policies 
- Aggregation string
- BucketId string
- DropRaw bool
- ExcludeBies []string
- Filter string
- GraphiteLabel RollupPolicy Rule Graphite Label Policy Args 
- GroupBies []string
- Interval string
- MetricType string
- MetricType boolTag 
- Mode string
- Name string
- NewMetric string
- Permissive bool
- Slug string
- StoragePolicies RollupRule Storage Policies Args 
- aggregation String
- bucketId String
- dropRaw Boolean
- excludeBies List<String>
- filter String
- graphiteLabel RollupPolicy Rule Graphite Label Policy 
- groupBies List<String>
- interval String
- metricType String
- metricType BooleanTag 
- mode String
- name String
- newMetric String
- permissive Boolean
- slug String
- storagePolicies RollupRule Storage Policies 
- aggregation string
- bucketId string
- dropRaw boolean
- excludeBies string[]
- filter string
- graphiteLabel RollupPolicy Rule Graphite Label Policy 
- groupBies string[]
- interval string
- metricType string
- metricType booleanTag 
- mode string
- name string
- newMetric string
- permissive boolean
- slug string
- storagePolicies 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
- bucketId String
- dropRaw Boolean
- excludeBies List<String>
- filter String
- graphiteLabel Property MapPolicy 
- groupBies List<String>
- interval String
- metricType String
- metricType BooleanTag 
- mode String
- name String
- newMetric String
- permissive Boolean
- slug String
- storagePolicies 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 chronosphereTerraform Provider.