1. Packages
  2. Chronosphere
  3. API Docs
  4. RollupRule
Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere

chronosphere.RollupRule

Get Started
chronosphere logo
Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere

    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,
                   metric_type_tag: Optional[bool] = None,
                   graphite_label_policy: Optional[RollupRuleGraphiteLabelPolicyArgs] = None,
                   bucket_id: Optional[str] = None,
                   group_bies: Optional[Sequence[str]] = None,
                   aggregation: Optional[str] = None,
                   interval: Optional[str] = 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",
        MetricTypeTag = false,
        GraphiteLabelPolicy = new Pulumi.Inputs.RollupRuleGraphiteLabelPolicyArgs
        {
            Replaces = new[]
            {
                new Pulumi.Inputs.RollupRuleGraphiteLabelPolicyReplaceArgs
                {
                    Name = "string",
                    NewValue = "string",
                },
            },
        },
        BucketId = "string",
        GroupBies = new[]
        {
            "string",
        },
        Aggregation = "string",
        Interval = "string",
        Mode = "string",
        ExcludeBies = new[]
        {
            "string",
        },
        NewMetric = "string",
        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"),
    	MetricTypeTag: pulumi.Bool(false),
    	GraphiteLabelPolicy: &chronosphere.RollupRuleGraphiteLabelPolicyArgs{
    		Replaces: chronosphere.RollupRuleGraphiteLabelPolicyReplaceArray{
    			&chronosphere.RollupRuleGraphiteLabelPolicyReplaceArgs{
    				Name:     pulumi.String("string"),
    				NewValue: pulumi.String("string"),
    			},
    		},
    	},
    	BucketId: pulumi.String("string"),
    	GroupBies: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Aggregation: pulumi.String("string"),
    	Interval:    pulumi.String("string"),
    	Mode:        pulumi.String("string"),
    	ExcludeBies: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NewMetric: pulumi.String("string"),
    	DropRaw:   pulumi.Bool(false),
    })
    
    var rollupRuleResource = new RollupRule("rollupRuleResource", RollupRuleArgs.builder()
        .metricType("string")
        .filter("string")
        .slug("string")
        .name("string")
        .metricTypeTag(false)
        .graphiteLabelPolicy(RollupRuleGraphiteLabelPolicyArgs.builder()
            .replaces(RollupRuleGraphiteLabelPolicyReplaceArgs.builder()
                .name("string")
                .newValue("string")
                .build())
            .build())
        .bucketId("string")
        .groupBies("string")
        .aggregation("string")
        .interval("string")
        .mode("string")
        .excludeBies("string")
        .newMetric("string")
        .dropRaw(false)
        .build());
    
    rollup_rule_resource = chronosphere.RollupRule("rollupRuleResource",
        metric_type="string",
        filter="string",
        slug="string",
        name="string",
        metric_type_tag=False,
        graphite_label_policy={
            "replaces": [{
                "name": "string",
                "new_value": "string",
            }],
        },
        bucket_id="string",
        group_bies=["string"],
        aggregation="string",
        interval="string",
        mode="string",
        exclude_bies=["string"],
        new_metric="string",
        drop_raw=False)
    
    const rollupRuleResource = new chronosphere.RollupRule("rollupRuleResource", {
        metricType: "string",
        filter: "string",
        slug: "string",
        name: "string",
        metricTypeTag: false,
        graphiteLabelPolicy: {
            replaces: [{
                name: "string",
                newValue: "string",
            }],
        },
        bucketId: "string",
        groupBies: ["string"],
        aggregation: "string",
        interval: "string",
        mode: "string",
        excludeBies: ["string"],
        newMetric: "string",
        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
        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>
    GraphiteLabelPolicy Chronosphere.Pulumi.Inputs.RollupRuleGraphiteLabelPolicy
    GroupBies List<string>
    Interval string
    MetricTypeTag bool
    Mode string
    NewMetric string
    Permissive bool

    Deprecated: permissive is no longer supported

    StoragePolicies Chronosphere.Pulumi.Inputs.RollupRuleStoragePolicies

    Deprecated: use interval instead

    Filter string
    MetricType string
    Name string
    Slug string
    Aggregation string
    BucketId string
    DropRaw bool
    ExcludeBies []string
    GraphiteLabelPolicy RollupRuleGraphiteLabelPolicyArgs
    GroupBies []string
    Interval string
    MetricTypeTag bool
    Mode string
    NewMetric string
    Permissive bool

    Deprecated: permissive is no longer supported

    StoragePolicies RollupRuleStoragePoliciesArgs

    Deprecated: use interval instead

    filter String
    metricType String
    name String
    slug String
    aggregation String
    bucketId String
    dropRaw Boolean
    excludeBies List<String>
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    groupBies List<String>
    interval String
    metricTypeTag Boolean
    mode String
    newMetric String
    permissive Boolean

    Deprecated: permissive is no longer supported

    storagePolicies RollupRuleStoragePolicies

    Deprecated: use interval instead

    filter string
    metricType string
    name string
    slug string
    aggregation string
    bucketId string
    dropRaw boolean
    excludeBies string[]
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    groupBies string[]
    interval string
    metricTypeTag boolean
    mode string
    newMetric string
    permissive boolean

    Deprecated: permissive is no longer supported

    storagePolicies RollupRuleStoragePolicies

    Deprecated: use interval instead

    filter str
    metric_type str
    name str
    slug str
    aggregation str
    bucket_id str
    drop_raw bool
    exclude_bies Sequence[str]
    graphite_label_policy RollupRuleGraphiteLabelPolicyArgs
    group_bies Sequence[str]
    interval str
    metric_type_tag bool
    mode str
    new_metric str
    permissive bool

    Deprecated: permissive is no longer supported

    storage_policies RollupRuleStoragePoliciesArgs

    Deprecated: use interval instead

    filter String
    metricType String
    name String
    slug String
    aggregation String
    bucketId String
    dropRaw Boolean
    excludeBies List<String>
    graphiteLabelPolicy Property Map
    groupBies List<String>
    interval String
    metricTypeTag Boolean
    mode String
    newMetric String
    permissive Boolean

    Deprecated: permissive is no longer supported

    storagePolicies Property Map

    Deprecated: use interval instead

    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)
    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.
    The following state arguments are supported:
    Aggregation string
    BucketId string
    DropRaw bool
    ExcludeBies List<string>
    Filter string
    GraphiteLabelPolicy Chronosphere.Pulumi.Inputs.RollupRuleGraphiteLabelPolicy
    GroupBies List<string>
    Interval string
    MetricType string
    MetricTypeTag bool
    Mode string
    Name string
    NewMetric string
    Permissive bool

    Deprecated: permissive is no longer supported

    Slug string
    StoragePolicies Chronosphere.Pulumi.Inputs.RollupRuleStoragePolicies

    Deprecated: use interval instead

    Aggregation string
    BucketId string
    DropRaw bool
    ExcludeBies []string
    Filter string
    GraphiteLabelPolicy RollupRuleGraphiteLabelPolicyArgs
    GroupBies []string
    Interval string
    MetricType string
    MetricTypeTag bool
    Mode string
    Name string
    NewMetric string
    Permissive bool

    Deprecated: permissive is no longer supported

    Slug string
    StoragePolicies RollupRuleStoragePoliciesArgs

    Deprecated: use interval instead

    aggregation String
    bucketId String
    dropRaw Boolean
    excludeBies List<String>
    filter String
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    groupBies List<String>
    interval String
    metricType String
    metricTypeTag Boolean
    mode String
    name String
    newMetric String
    permissive Boolean

    Deprecated: permissive is no longer supported

    slug String
    storagePolicies RollupRuleStoragePolicies

    Deprecated: use interval instead

    aggregation string
    bucketId string
    dropRaw boolean
    excludeBies string[]
    filter string
    graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
    groupBies string[]
    interval string
    metricType string
    metricTypeTag boolean
    mode string
    name string
    newMetric string
    permissive boolean

    Deprecated: permissive is no longer supported

    slug string
    storagePolicies RollupRuleStoragePolicies

    Deprecated: use interval instead

    aggregation str
    bucket_id str
    drop_raw bool
    exclude_bies Sequence[str]
    filter str
    graphite_label_policy RollupRuleGraphiteLabelPolicyArgs
    group_bies Sequence[str]
    interval str
    metric_type str
    metric_type_tag bool
    mode str
    name str
    new_metric str
    permissive bool

    Deprecated: permissive is no longer supported

    slug str
    storage_policies RollupRuleStoragePoliciesArgs

    Deprecated: use interval instead

    aggregation String
    bucketId String
    dropRaw Boolean
    excludeBies List<String>
    filter String
    graphiteLabelPolicy Property Map
    groupBies List<String>
    interval String
    metricType String
    metricTypeTag Boolean
    mode String
    name String
    newMetric String
    permissive Boolean

    Deprecated: permissive is no longer supported

    slug String
    storagePolicies Property Map

    Deprecated: use interval instead

    Supporting Types

    RollupRuleGraphiteLabelPolicy, RollupRuleGraphiteLabelPolicyArgs

    RollupRuleGraphiteLabelPolicyReplace, RollupRuleGraphiteLabelPolicyReplaceArgs

    Name string
    NewValue string
    Name string
    NewValue string
    name String
    newValue String
    name string
    newValue string
    name String
    newValue String

    RollupRuleStoragePolicies, RollupRuleStoragePoliciesArgs

    Resolution string
    Retention string
    Resolution string
    Retention string
    resolution String
    retention String
    resolution string
    retention string
    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.
    chronosphere logo
    Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere
      Meet Neo: Your AI Platform Teammate