1. Packages
  2. Chronosphere
  3. API Docs
  4. RollupRule
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

chronosphere.RollupRule

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 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,
                   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 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 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
    storagePolicies RollupRuleStoragePolicies

    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
    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)
    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.
    The following state arguments are supported:
    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 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 string
    storagePolicies RollupRuleStoragePolicies

    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 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.3 published on Tuesday, Oct 8, 2024 by Chronosphere