1. Packages
  2. Chronosphere
  3. API Docs
  4. RollupRule
Chronosphere v0.9.8 published on Thursday, Apr 3, 2025 by Chronosphere

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 This property is required. string
The unique name of the resource.
args This property is required. RollupRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. RollupRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RollupRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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,
});
Copy
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),
})
Copy
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());
Copy
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)
Copy
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,
});
Copy
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
Copy

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 This property is required. string
MetricType This property is required. string
Name This property is required. string
Slug
This property is required.
Changes to this property will trigger replacement.
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
StoragePolicies Chronosphere.Pulumi.Inputs.RollupRuleStoragePolicies

Deprecated: use interval instead

Filter This property is required. string
MetricType This property is required. string
Name This property is required. string
Slug
This property is required.
Changes to this property will trigger replacement.
string
Aggregation string
BucketId string
DropRaw bool
ExcludeBies []string
GraphiteLabelPolicy RollupRuleGraphiteLabelPolicyArgs
GroupBies []string
Interval string
MetricTypeTag bool
Mode string
NewMetric string
Permissive bool
StoragePolicies RollupRuleStoragePoliciesArgs

Deprecated: use interval instead

filter This property is required. String
metricType This property is required. String
name This property is required. String
slug
This property is required.
Changes to this property will trigger replacement.
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
storagePolicies RollupRuleStoragePolicies

Deprecated: use interval instead

filter This property is required. string
metricType This property is required. string
name This property is required. string
slug
This property is required.
Changes to this property will trigger replacement.
string
aggregation string
bucketId string
dropRaw boolean
excludeBies string[]
graphiteLabelPolicy RollupRuleGraphiteLabelPolicy
groupBies string[]
interval string
metricTypeTag boolean
mode string
newMetric string
permissive boolean
storagePolicies RollupRuleStoragePolicies

Deprecated: use interval instead

filter This property is required. str
metric_type This property is required. str
name This property is required. str
slug
This property is required.
Changes to this property will trigger replacement.
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
storage_policies RollupRuleStoragePoliciesArgs

Deprecated: use interval instead

filter This property is required. String
metricType This property is required. String
name This property is required. String
slug
This property is required.
Changes to this property will trigger replacement.
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
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Slug Changes to this property will trigger replacement. 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
Slug Changes to this property will trigger replacement. 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
slug Changes to this property will trigger replacement. 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
slug Changes to this property will trigger replacement. 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
slug Changes to this property will trigger replacement. 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
slug Changes to this property will trigger replacement. String
storagePolicies Property Map

Deprecated: use interval instead

Supporting Types

RollupRuleGraphiteLabelPolicy
, RollupRuleGraphiteLabelPolicyArgs

RollupRuleGraphiteLabelPolicyReplace
, RollupRuleGraphiteLabelPolicyReplaceArgs

Name This property is required. string
NewValue This property is required. string
Name This property is required. string
NewValue This property is required. string
name This property is required. String
newValue This property is required. String
name This property is required. string
newValue This property is required. string
name This property is required. str
new_value This property is required. str
name This property is required. String
newValue This property is required. String

RollupRuleStoragePolicies
, RollupRuleStoragePoliciesArgs

Resolution This property is required. string
Retention This property is required. string
Resolution This property is required. string
Retention This property is required. string
resolution This property is required. String
retention This property is required. String
resolution This property is required. string
retention This property is required. string
resolution This property is required. str
retention This property is required. str
resolution This property is required. String
retention This property is required. String

Package Details

Repository
chronosphere chronosphereio/pulumi-chronosphere
License
Apache-2.0
Notes
This Pulumi package is based on the chronosphere Terraform Provider.