1. Packages
  2. Packages
  3. Chronosphere
  4. API Docs
  5. ConsumptionBudget
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere

    A per-partition quota on a consumption_config partition with thresholds that trigger drop, alert, or pause actions when metric or log usage breaches them.

    Create ConsumptionBudget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConsumptionBudget(name: string, args: ConsumptionBudgetArgs, opts?: CustomResourceOptions);
    @overload
    def ConsumptionBudget(resource_name: str,
                          args: ConsumptionBudgetArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConsumptionBudget(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          consumption_config_id: Optional[str] = None,
                          name: Optional[str] = None,
                          alert_action_config: Optional[ConsumptionBudgetAlertActionConfigArgs] = None,
                          default_priority: Optional[int] = None,
                          notification_policy_id: Optional[str] = None,
                          partition_slug_path: Optional[str] = None,
                          priorities: Optional[Sequence[ConsumptionBudgetPriorityArgs]] = None,
                          resource: Optional[str] = None,
                          slug: Optional[str] = None,
                          thresholds: Optional[Sequence[ConsumptionBudgetThresholdArgs]] = None)
    func NewConsumptionBudget(ctx *Context, name string, args ConsumptionBudgetArgs, opts ...ResourceOption) (*ConsumptionBudget, error)
    public ConsumptionBudget(string name, ConsumptionBudgetArgs args, CustomResourceOptions? opts = null)
    public ConsumptionBudget(String name, ConsumptionBudgetArgs args)
    public ConsumptionBudget(String name, ConsumptionBudgetArgs args, CustomResourceOptions options)
    
    type: chronosphere:ConsumptionBudget
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "chronosphere_consumptionbudget" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ConsumptionBudgetArgs
    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 ConsumptionBudgetArgs
    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 ConsumptionBudgetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConsumptionBudgetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConsumptionBudgetArgs
    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 consumptionBudgetResource = new Pulumi.ConsumptionBudget("consumptionBudgetResource", new()
    {
        ConsumptionConfigId = "string",
        Name = "string",
        AlertActionConfig = new Pulumi.Inputs.ConsumptionBudgetAlertActionConfigArgs
        {
            Annotations = 
            {
                { "string", "string" },
            },
            InstantRateSustainSecs = 0,
            Labels = 
            {
                { "string", "string" },
            },
        },
        DefaultPriority = 0,
        NotificationPolicyId = "string",
        PartitionSlugPath = "string",
        Priorities = new[]
        {
            new Pulumi.Inputs.ConsumptionBudgetPriorityArgs
            {
                Filters = new[]
                {
                    new Pulumi.Inputs.ConsumptionBudgetPriorityFilterArgs
                    {
                        DatasetId = "string",
                        LogFilter = new Pulumi.Inputs.ConsumptionBudgetPriorityFilterLogFilterArgs
                        {
                            Query = "string",
                        },
                    },
                },
                Priority = 0,
            },
        },
        Slug = "string",
        Thresholds = new[]
        {
            new Pulumi.Inputs.ConsumptionBudgetThresholdArgs
            {
                Action = "string",
                InstantRate = new Pulumi.Inputs.ConsumptionBudgetThresholdInstantRateArgs
                {
                    FixedValuePerSec = 0,
                },
                ResourceGroup = "string",
                Type = "string",
                Unit = "string",
                Volume = new Pulumi.Inputs.ConsumptionBudgetThresholdVolumeArgs
                {
                    FixedValue = 0,
                },
            },
        },
    });
    
    example, err := chronosphere.NewConsumptionBudget(ctx, "consumptionBudgetResource", &chronosphere.ConsumptionBudgetArgs{
    	ConsumptionConfigId: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	AlertActionConfig: &chronosphere.ConsumptionBudgetAlertActionConfigArgs{
    		Annotations: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		InstantRateSustainSecs: pulumi.Int(0),
    		Labels: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	DefaultPriority:      pulumi.Int(0),
    	NotificationPolicyId: pulumi.String("string"),
    	PartitionSlugPath:    pulumi.String("string"),
    	Priorities: chronosphere.ConsumptionBudgetPriorityArray{
    		&chronosphere.ConsumptionBudgetPriorityArgs{
    			Filters: chronosphere.ConsumptionBudgetPriorityFilterArray{
    				&chronosphere.ConsumptionBudgetPriorityFilterArgs{
    					DatasetId: pulumi.String("string"),
    					LogFilter: &chronosphere.ConsumptionBudgetPriorityFilterLogFilterArgs{
    						Query: pulumi.String("string"),
    					},
    				},
    			},
    			Priority: pulumi.Int(0),
    		},
    	},
    	Slug: pulumi.String("string"),
    	Thresholds: chronosphere.ConsumptionBudgetThresholdArray{
    		&chronosphere.ConsumptionBudgetThresholdArgs{
    			Action: pulumi.String("string"),
    			InstantRate: &chronosphere.ConsumptionBudgetThresholdInstantRateArgs{
    				FixedValuePerSec: pulumi.Int(0),
    			},
    			ResourceGroup: pulumi.String("string"),
    			Type:          pulumi.String("string"),
    			Unit:          pulumi.String("string"),
    			Volume: &chronosphere.ConsumptionBudgetThresholdVolumeArgs{
    				FixedValue: pulumi.Int(0),
    			},
    		},
    	},
    })
    
    resource "chronosphere_consumptionbudget" "consumptionBudgetResource" {
      consumption_config_id = "string"
      name                  = "string"
      alert_action_config = {
        annotations = {
          "string" = "string"
        }
        instant_rate_sustain_secs = 0
        labels = {
          "string" = "string"
        }
      }
      default_priority       = 0
      notification_policy_id = "string"
      partition_slug_path    = "string"
      priorities {
        filters {
          dataset_id = "string"
          log_filter = {
            query = "string"
          }
        }
        priority = 0
      }
      slug = "string"
      thresholds {
        action = "string"
        instant_rate = {
          fixed_value_per_sec = 0
        }
        resource_group = "string"
        type           = "string"
        unit           = "string"
        volume = {
          fixed_value = 0
        }
      }
    }
    
    var consumptionBudgetResource = new ConsumptionBudget("consumptionBudgetResource", ConsumptionBudgetArgs.builder()
        .consumptionConfigId("string")
        .name("string")
        .alertActionConfig(ConsumptionBudgetAlertActionConfigArgs.builder()
            .annotations(Map.of("string", "string"))
            .instantRateSustainSecs(0)
            .labels(Map.of("string", "string"))
            .build())
        .defaultPriority(0)
        .notificationPolicyId("string")
        .partitionSlugPath("string")
        .priorities(ConsumptionBudgetPriorityArgs.builder()
            .filters(ConsumptionBudgetPriorityFilterArgs.builder()
                .datasetId("string")
                .logFilter(ConsumptionBudgetPriorityFilterLogFilterArgs.builder()
                    .query("string")
                    .build())
                .build())
            .priority(0)
            .build())
        .slug("string")
        .thresholds(ConsumptionBudgetThresholdArgs.builder()
            .action("string")
            .instantRate(ConsumptionBudgetThresholdInstantRateArgs.builder()
                .fixedValuePerSec(0)
                .build())
            .resourceGroup("string")
            .type("string")
            .unit("string")
            .volume(ConsumptionBudgetThresholdVolumeArgs.builder()
                .fixedValue(0)
                .build())
            .build())
        .build());
    
    consumption_budget_resource = chronosphere.ConsumptionBudget("consumptionBudgetResource",
        consumption_config_id="string",
        name="string",
        alert_action_config={
            "annotations": {
                "string": "string",
            },
            "instant_rate_sustain_secs": 0,
            "labels": {
                "string": "string",
            },
        },
        default_priority=0,
        notification_policy_id="string",
        partition_slug_path="string",
        priorities=[{
            "filters": [{
                "dataset_id": "string",
                "log_filter": {
                    "query": "string",
                },
            }],
            "priority": 0,
        }],
        slug="string",
        thresholds=[{
            "action": "string",
            "instant_rate": {
                "fixed_value_per_sec": 0,
            },
            "resource_group": "string",
            "type": "string",
            "unit": "string",
            "volume": {
                "fixed_value": 0,
            },
        }])
    
    const consumptionBudgetResource = new chronosphere.ConsumptionBudget("consumptionBudgetResource", {
        consumptionConfigId: "string",
        name: "string",
        alertActionConfig: {
            annotations: {
                string: "string",
            },
            instantRateSustainSecs: 0,
            labels: {
                string: "string",
            },
        },
        defaultPriority: 0,
        notificationPolicyId: "string",
        partitionSlugPath: "string",
        priorities: [{
            filters: [{
                datasetId: "string",
                logFilter: {
                    query: "string",
                },
            }],
            priority: 0,
        }],
        slug: "string",
        thresholds: [{
            action: "string",
            instantRate: {
                fixedValuePerSec: 0,
            },
            resourceGroup: "string",
            type: "string",
            unit: "string",
            volume: {
                fixedValue: 0,
            },
        }],
    });
    
    type: chronosphere:ConsumptionBudget
    properties:
        alertActionConfig:
            annotations:
                string: string
            instantRateSustainSecs: 0
            labels:
                string: string
        consumptionConfigId: string
        defaultPriority: 0
        name: string
        notificationPolicyId: string
        partitionSlugPath: string
        priorities:
            - filters:
                - datasetId: string
                  logFilter:
                    query: string
              priority: 0
        slug: string
        thresholds:
            - action: string
              instantRate:
                fixedValuePerSec: 0
              resourceGroup: string
              type: string
              unit: string
              volume:
                fixedValue: 0
    

    ConsumptionBudget 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 ConsumptionBudget resource accepts the following input properties:

    ConsumptionConfigId string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    Name string
    Display name of the consumption budget. Can be changed after creation.
    AlertActionConfig Chronosphere.Pulumi.Inputs.ConsumptionBudgetAlertActionConfig
    Optional configuration applied to monitors generated by alerting thresholds.
    DefaultPriority int
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    NotificationPolicyId string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    PartitionSlugPath string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    Priorities List<Chronosphere.Pulumi.Inputs.ConsumptionBudgetPriority>
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    Resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    Slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    Thresholds List<Chronosphere.Pulumi.Inputs.ConsumptionBudgetThreshold>
    Threshold actions to take when budget consumption crosses configured levels.
    ConsumptionConfigId string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    Name string
    Display name of the consumption budget. Can be changed after creation.
    AlertActionConfig ConsumptionBudgetAlertActionConfigArgs
    Optional configuration applied to monitors generated by alerting thresholds.
    DefaultPriority int
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    NotificationPolicyId string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    PartitionSlugPath string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    Priorities []ConsumptionBudgetPriorityArgs
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    Resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    Slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    Thresholds []ConsumptionBudgetThresholdArgs
    Threshold actions to take when budget consumption crosses configured levels.
    consumption_config_id string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    name string
    Display name of the consumption budget. Can be changed after creation.
    alert_action_config object
    Optional configuration applied to monitors generated by alerting thresholds.
    default_priority number
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    notification_policy_id string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partition_slug_path string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities list(object)
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds list(object)
    Threshold actions to take when budget consumption crosses configured levels.
    consumptionConfigId String
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    name String
    Display name of the consumption budget. Can be changed after creation.
    alertActionConfig ConsumptionBudgetAlertActionConfig
    Optional configuration applied to monitors generated by alerting thresholds.
    defaultPriority Integer
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    notificationPolicyId String
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partitionSlugPath String
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities List<ConsumptionBudgetPriority>
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource String
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug String
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds List<ConsumptionBudgetThreshold>
    Threshold actions to take when budget consumption crosses configured levels.
    consumptionConfigId string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    name string
    Display name of the consumption budget. Can be changed after creation.
    alertActionConfig ConsumptionBudgetAlertActionConfig
    Optional configuration applied to monitors generated by alerting thresholds.
    defaultPriority number
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    notificationPolicyId string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partitionSlugPath string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities ConsumptionBudgetPriority[]
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds ConsumptionBudgetThreshold[]
    Threshold actions to take when budget consumption crosses configured levels.
    consumption_config_id str
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    name str
    Display name of the consumption budget. Can be changed after creation.
    alert_action_config ConsumptionBudgetAlertActionConfigArgs
    Optional configuration applied to monitors generated by alerting thresholds.
    default_priority int
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    notification_policy_id str
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partition_slug_path str
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities Sequence[ConsumptionBudgetPriorityArgs]
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource str
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug str
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds Sequence[ConsumptionBudgetThresholdArgs]
    Threshold actions to take when budget consumption crosses configured levels.
    consumptionConfigId String
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    name String
    Display name of the consumption budget. Can be changed after creation.
    alertActionConfig Property Map
    Optional configuration applied to monitors generated by alerting thresholds.
    defaultPriority Number
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    notificationPolicyId String
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partitionSlugPath String
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities List<Property Map>
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource String
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug String
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds List<Property Map>
    Threshold actions to take when budget consumption crosses configured levels.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConsumptionBudget 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 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 ConsumptionBudget Resource

    Get an existing ConsumptionBudget 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?: ConsumptionBudgetState, opts?: CustomResourceOptions): ConsumptionBudget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_action_config: Optional[ConsumptionBudgetAlertActionConfigArgs] = None,
            consumption_config_id: Optional[str] = None,
            default_priority: Optional[int] = None,
            name: Optional[str] = None,
            notification_policy_id: Optional[str] = None,
            partition_slug_path: Optional[str] = None,
            priorities: Optional[Sequence[ConsumptionBudgetPriorityArgs]] = None,
            resource: Optional[str] = None,
            slug: Optional[str] = None,
            thresholds: Optional[Sequence[ConsumptionBudgetThresholdArgs]] = None) -> ConsumptionBudget
    func GetConsumptionBudget(ctx *Context, name string, id IDInput, state *ConsumptionBudgetState, opts ...ResourceOption) (*ConsumptionBudget, error)
    public static ConsumptionBudget Get(string name, Input<string> id, ConsumptionBudgetState? state, CustomResourceOptions? opts = null)
    public static ConsumptionBudget get(String name, Output<String> id, ConsumptionBudgetState state, CustomResourceOptions options)
    resources:  _:    type: chronosphere:ConsumptionBudget    get:      id: ${id}
    import {
      to = chronosphere_consumptionbudget.example
      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:
    AlertActionConfig Chronosphere.Pulumi.Inputs.ConsumptionBudgetAlertActionConfig
    Optional configuration applied to monitors generated by alerting thresholds.
    ConsumptionConfigId string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    DefaultPriority int
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    Name string
    Display name of the consumption budget. Can be changed after creation.
    NotificationPolicyId string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    PartitionSlugPath string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    Priorities List<Chronosphere.Pulumi.Inputs.ConsumptionBudgetPriority>
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    Resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    Slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    Thresholds List<Chronosphere.Pulumi.Inputs.ConsumptionBudgetThreshold>
    Threshold actions to take when budget consumption crosses configured levels.
    AlertActionConfig ConsumptionBudgetAlertActionConfigArgs
    Optional configuration applied to monitors generated by alerting thresholds.
    ConsumptionConfigId string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    DefaultPriority int
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    Name string
    Display name of the consumption budget. Can be changed after creation.
    NotificationPolicyId string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    PartitionSlugPath string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    Priorities []ConsumptionBudgetPriorityArgs
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    Resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    Slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    Thresholds []ConsumptionBudgetThresholdArgs
    Threshold actions to take when budget consumption crosses configured levels.
    alert_action_config object
    Optional configuration applied to monitors generated by alerting thresholds.
    consumption_config_id string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    default_priority number
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    name string
    Display name of the consumption budget. Can be changed after creation.
    notification_policy_id string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partition_slug_path string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities list(object)
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds list(object)
    Threshold actions to take when budget consumption crosses configured levels.
    alertActionConfig ConsumptionBudgetAlertActionConfig
    Optional configuration applied to monitors generated by alerting thresholds.
    consumptionConfigId String
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    defaultPriority Integer
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    name String
    Display name of the consumption budget. Can be changed after creation.
    notificationPolicyId String
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partitionSlugPath String
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities List<ConsumptionBudgetPriority>
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource String
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug String
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds List<ConsumptionBudgetThreshold>
    Threshold actions to take when budget consumption crosses configured levels.
    alertActionConfig ConsumptionBudgetAlertActionConfig
    Optional configuration applied to monitors generated by alerting thresholds.
    consumptionConfigId string
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    defaultPriority number
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    name string
    Display name of the consumption budget. Can be changed after creation.
    notificationPolicyId string
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partitionSlugPath string
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities ConsumptionBudgetPriority[]
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource string
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug string
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds ConsumptionBudgetThreshold[]
    Threshold actions to take when budget consumption crosses configured levels.
    alert_action_config ConsumptionBudgetAlertActionConfigArgs
    Optional configuration applied to monitors generated by alerting thresholds.
    consumption_config_id str
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    default_priority int
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    name str
    Display name of the consumption budget. Can be changed after creation.
    notification_policy_id str
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partition_slug_path str
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities Sequence[ConsumptionBudgetPriorityArgs]
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource str
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug str
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds Sequence[ConsumptionBudgetThresholdArgs]
    Threshold actions to take when budget consumption crosses configured levels.
    alertActionConfig Property Map
    Optional configuration applied to monitors generated by alerting thresholds.
    consumptionConfigId String
    ID of the singleton chronosphere.ConsumptionConfig resource this budget depends on. Acts as an explicit dependency pointer; the actual partition is selected via partition_slug_path.
    defaultPriority Number
    Priority assigned to requests that do not match any entry in priority. Defaults to 10 (dropped first) if unset.
    name String
    Display name of the consumption budget. Can be changed after creation.
    notificationPolicyId String
    ID of the notification policy used to route alerts generated by ALERT_WARN/ALERT_CRITICAL thresholds. Required only if such thresholds are configured.
    partitionSlugPath String
    Forward-slash-delimited path identifying the partition the budget applies to (e.g. global/gateway/dev). Must start with the global partition slug.
    priorities List<Property Map>
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    resource String
    Deprecated: use threshold.sku_group and threshold.unit instead. Identifies the resource type the budget governs.

    Deprecated: use threshold.sku_group and threshold.unit instead

    slug String
    Stable identifier for the consumption budget. Generated from name if omitted. Immutable after creation.
    thresholds List<Property Map>
    Threshold actions to take when budget consumption crosses configured levels.

    Supporting Types

    ConsumptionBudgetAlertActionConfig, ConsumptionBudgetAlertActionConfigArgs

    Annotations Dictionary<string, string>
    Additional annotations to set on the generated monitor. Overrides the default description, dashboard, resource, consumption_budget_slug, threshold_type, and partition annotations when keys collide.
    InstantRateSustainSecs int
    How long instant-rate consumption must remain above the threshold before an alert fires, in seconds. Defaults to 0 (alert immediately on any breach).
    Labels Dictionary<string, string>
    Additional labels to set on the generated monitor, usable for notification routing. The resource, partition, and threshold_type labels are reserved and cannot be overridden.
    Annotations map[string]string
    Additional annotations to set on the generated monitor. Overrides the default description, dashboard, resource, consumption_budget_slug, threshold_type, and partition annotations when keys collide.
    InstantRateSustainSecs int
    How long instant-rate consumption must remain above the threshold before an alert fires, in seconds. Defaults to 0 (alert immediately on any breach).
    Labels map[string]string
    Additional labels to set on the generated monitor, usable for notification routing. The resource, partition, and threshold_type labels are reserved and cannot be overridden.
    annotations map(string)
    Additional annotations to set on the generated monitor. Overrides the default description, dashboard, resource, consumption_budget_slug, threshold_type, and partition annotations when keys collide.
    instant_rate_sustain_secs number
    How long instant-rate consumption must remain above the threshold before an alert fires, in seconds. Defaults to 0 (alert immediately on any breach).
    labels map(string)
    Additional labels to set on the generated monitor, usable for notification routing. The resource, partition, and threshold_type labels are reserved and cannot be overridden.
    annotations Map<String,String>
    Additional annotations to set on the generated monitor. Overrides the default description, dashboard, resource, consumption_budget_slug, threshold_type, and partition annotations when keys collide.
    instantRateSustainSecs Integer
    How long instant-rate consumption must remain above the threshold before an alert fires, in seconds. Defaults to 0 (alert immediately on any breach).
    labels Map<String,String>
    Additional labels to set on the generated monitor, usable for notification routing. The resource, partition, and threshold_type labels are reserved and cannot be overridden.
    annotations {[key: string]: string}
    Additional annotations to set on the generated monitor. Overrides the default description, dashboard, resource, consumption_budget_slug, threshold_type, and partition annotations when keys collide.
    instantRateSustainSecs number
    How long instant-rate consumption must remain above the threshold before an alert fires, in seconds. Defaults to 0 (alert immediately on any breach).
    labels {[key: string]: string}
    Additional labels to set on the generated monitor, usable for notification routing. The resource, partition, and threshold_type labels are reserved and cannot be overridden.
    annotations Mapping[str, str]
    Additional annotations to set on the generated monitor. Overrides the default description, dashboard, resource, consumption_budget_slug, threshold_type, and partition annotations when keys collide.
    instant_rate_sustain_secs int
    How long instant-rate consumption must remain above the threshold before an alert fires, in seconds. Defaults to 0 (alert immediately on any breach).
    labels Mapping[str, str]
    Additional labels to set on the generated monitor, usable for notification routing. The resource, partition, and threshold_type labels are reserved and cannot be overridden.
    annotations Map<String>
    Additional annotations to set on the generated monitor. Overrides the default description, dashboard, resource, consumption_budget_slug, threshold_type, and partition annotations when keys collide.
    instantRateSustainSecs Number
    How long instant-rate consumption must remain above the threshold before an alert fires, in seconds. Defaults to 0 (alert immediately on any breach).
    labels Map<String>
    Additional labels to set on the generated monitor, usable for notification routing. The resource, partition, and threshold_type labels are reserved and cannot be overridden.

    ConsumptionBudgetPriority, ConsumptionBudgetPriorityArgs

    Filters List<Chronosphere.Pulumi.Inputs.ConsumptionBudgetPriorityFilter>
    Filters identifying which data matches this priority. Filters are AND-ed together: a request must match every filter to be assigned this priority.
    Priority int
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    Filters []ConsumptionBudgetPriorityFilter
    Filters identifying which data matches this priority. Filters are AND-ed together: a request must match every filter to be assigned this priority.
    Priority int
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    filters list(object)
    Filters identifying which data matches this priority. Filters are AND-ed together: a request must match every filter to be assigned this priority.
    priority number
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    filters List<ConsumptionBudgetPriorityFilter>
    Filters identifying which data matches this priority. Filters are AND-ed together: a request must match every filter to be assigned this priority.
    priority Integer
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    filters ConsumptionBudgetPriorityFilter[]
    Filters identifying which data matches this priority. Filters are AND-ed together: a request must match every filter to be assigned this priority.
    priority number
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    filters Sequence[ConsumptionBudgetPriorityFilter]
    Filters identifying which data matches this priority. Filters are AND-ed together: a request must match every filter to be assigned this priority.
    priority int
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.
    filters List<Property Map>
    Filters identifying which data matches this priority. Filters are AND-ed together: a request must match every filter to be assigned this priority.
    priority Number
    Priority order used when dropping data. Priority 10 is dropped first; priority 1 is dropped last.

    ConsumptionBudgetPriorityFilter, ConsumptionBudgetPriorityFilterArgs

    DatasetId string
    Deprecated: use log_filter instead. Slug of the dataset to match against.
    LogFilter Chronosphere.Pulumi.Inputs.ConsumptionBudgetPriorityFilterLogFilter
    Log search filter that matches log data for this priority.
    DatasetId string
    Deprecated: use log_filter instead. Slug of the dataset to match against.
    LogFilter ConsumptionBudgetPriorityFilterLogFilter
    Log search filter that matches log data for this priority.
    dataset_id string
    Deprecated: use log_filter instead. Slug of the dataset to match against.
    log_filter object
    Log search filter that matches log data for this priority.
    datasetId String
    Deprecated: use log_filter instead. Slug of the dataset to match against.
    logFilter ConsumptionBudgetPriorityFilterLogFilter
    Log search filter that matches log data for this priority.
    datasetId string
    Deprecated: use log_filter instead. Slug of the dataset to match against.
    logFilter ConsumptionBudgetPriorityFilterLogFilter
    Log search filter that matches log data for this priority.
    dataset_id str
    Deprecated: use log_filter instead. Slug of the dataset to match against.
    log_filter ConsumptionBudgetPriorityFilterLogFilter
    Log search filter that matches log data for this priority.
    datasetId String
    Deprecated: use log_filter instead. Slug of the dataset to match against.
    logFilter Property Map
    Log search filter that matches log data for this priority.

    ConsumptionBudgetPriorityFilterLogFilter, ConsumptionBudgetPriorityFilterLogFilterArgs

    Query string
    Log search query that selects matching logs. Supports only top-level operations; nested clauses are not allowed and only one type of AND or OR operator can be used.
    Query string
    Log search query that selects matching logs. Supports only top-level operations; nested clauses are not allowed and only one type of AND or OR operator can be used.
    query string
    Log search query that selects matching logs. Supports only top-level operations; nested clauses are not allowed and only one type of AND or OR operator can be used.
    query String
    Log search query that selects matching logs. Supports only top-level operations; nested clauses are not allowed and only one type of AND or OR operator can be used.
    query string
    Log search query that selects matching logs. Supports only top-level operations; nested clauses are not allowed and only one type of AND or OR operator can be used.
    query str
    Log search query that selects matching logs. Supports only top-level operations; nested clauses are not allowed and only one type of AND or OR operator can be used.
    query String
    Log search query that selects matching logs. Supports only top-level operations; nested clauses are not allowed and only one type of AND or OR operator can be used.

    ConsumptionBudgetThreshold, ConsumptionBudgetThresholdArgs

    Action string
    Action to take when this threshold is exceeded (e.g. drop traffic, fire warning/critical alert).
    InstantRate Chronosphere.Pulumi.Inputs.ConsumptionBudgetThresholdInstantRate
    Configures an instant-rate threshold value. Set when type is an instant-rate type.
    ResourceGroup string
    Resource group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.
    SkuGroup string
    SKU group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.

    Deprecated: use resource_group instead

    Type string
    Measurement window over which the threshold is evaluated (e.g. instant rate vs. rolling volume).
    Unit string
    Unit in which the threshold value is denominated (e.g. bytes, datapoints).
    Volume Chronosphere.Pulumi.Inputs.ConsumptionBudgetThresholdVolume
    Configures a volume threshold value. Set when type is a volume type.
    Action string
    Action to take when this threshold is exceeded (e.g. drop traffic, fire warning/critical alert).
    InstantRate ConsumptionBudgetThresholdInstantRate
    Configures an instant-rate threshold value. Set when type is an instant-rate type.
    ResourceGroup string
    Resource group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.
    SkuGroup string
    SKU group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.

    Deprecated: use resource_group instead

    Type string
    Measurement window over which the threshold is evaluated (e.g. instant rate vs. rolling volume).
    Unit string
    Unit in which the threshold value is denominated (e.g. bytes, datapoints).
    Volume ConsumptionBudgetThresholdVolume
    Configures a volume threshold value. Set when type is a volume type.
    action string
    Action to take when this threshold is exceeded (e.g. drop traffic, fire warning/critical alert).
    instant_rate object
    Configures an instant-rate threshold value. Set when type is an instant-rate type.
    resource_group string
    Resource group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.
    sku_group string
    SKU group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.

    Deprecated: use resource_group instead

    type string
    Measurement window over which the threshold is evaluated (e.g. instant rate vs. rolling volume).
    unit string
    Unit in which the threshold value is denominated (e.g. bytes, datapoints).
    volume object
    Configures a volume threshold value. Set when type is a volume type.
    action String
    Action to take when this threshold is exceeded (e.g. drop traffic, fire warning/critical alert).
    instantRate ConsumptionBudgetThresholdInstantRate
    Configures an instant-rate threshold value. Set when type is an instant-rate type.
    resourceGroup String
    Resource group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.
    skuGroup String
    SKU group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.

    Deprecated: use resource_group instead

    type String
    Measurement window over which the threshold is evaluated (e.g. instant rate vs. rolling volume).
    unit String
    Unit in which the threshold value is denominated (e.g. bytes, datapoints).
    volume ConsumptionBudgetThresholdVolume
    Configures a volume threshold value. Set when type is a volume type.
    action string
    Action to take when this threshold is exceeded (e.g. drop traffic, fire warning/critical alert).
    instantRate ConsumptionBudgetThresholdInstantRate
    Configures an instant-rate threshold value. Set when type is an instant-rate type.
    resourceGroup string
    Resource group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.
    skuGroup string
    SKU group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.

    Deprecated: use resource_group instead

    type string
    Measurement window over which the threshold is evaluated (e.g. instant rate vs. rolling volume).
    unit string
    Unit in which the threshold value is denominated (e.g. bytes, datapoints).
    volume ConsumptionBudgetThresholdVolume
    Configures a volume threshold value. Set when type is a volume type.
    action str
    Action to take when this threshold is exceeded (e.g. drop traffic, fire warning/critical alert).
    instant_rate ConsumptionBudgetThresholdInstantRate
    Configures an instant-rate threshold value. Set when type is an instant-rate type.
    resource_group str
    Resource group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.
    sku_group str
    SKU group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.

    Deprecated: use resource_group instead

    type str
    Measurement window over which the threshold is evaluated (e.g. instant rate vs. rolling volume).
    unit str
    Unit in which the threshold value is denominated (e.g. bytes, datapoints).
    volume ConsumptionBudgetThresholdVolume
    Configures a volume threshold value. Set when type is a volume type.
    action String
    Action to take when this threshold is exceeded (e.g. drop traffic, fire warning/critical alert).
    instantRate Property Map
    Configures an instant-rate threshold value. Set when type is an instant-rate type.
    resourceGroup String
    Resource group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.
    skuGroup String
    SKU group the threshold applies to (e.g. metrics, logs, traces). Replaces the deprecated top-level resource field.

    Deprecated: use resource_group instead

    type String
    Measurement window over which the threshold is evaluated (e.g. instant rate vs. rolling volume).
    unit String
    Unit in which the threshold value is denominated (e.g. bytes, datapoints).
    volume Property Map
    Configures a volume threshold value. Set when type is a volume type.

    ConsumptionBudgetThresholdInstantRate, ConsumptionBudgetThresholdInstantRateArgs

    FixedValuePerSec int
    Fixed per-second rate threshold value, expressed in the threshold's unit.
    FixedValuePerSec int
    Fixed per-second rate threshold value, expressed in the threshold's unit.
    fixed_value_per_sec number
    Fixed per-second rate threshold value, expressed in the threshold's unit.
    fixedValuePerSec Integer
    Fixed per-second rate threshold value, expressed in the threshold's unit.
    fixedValuePerSec number
    Fixed per-second rate threshold value, expressed in the threshold's unit.
    fixed_value_per_sec int
    Fixed per-second rate threshold value, expressed in the threshold's unit.
    fixedValuePerSec Number
    Fixed per-second rate threshold value, expressed in the threshold's unit.

    ConsumptionBudgetThresholdVolume, ConsumptionBudgetThresholdVolumeArgs

    FixedValue int
    Fixed volume threshold value, expressed in the threshold's unit.
    FixedValue int
    Fixed volume threshold value, expressed in the threshold's unit.
    fixed_value number
    Fixed volume threshold value, expressed in the threshold's unit.
    fixedValue Integer
    Fixed volume threshold value, expressed in the threshold's unit.
    fixedValue number
    Fixed volume threshold value, expressed in the threshold's unit.
    fixed_value int
    Fixed volume threshold value, expressed in the threshold's unit.
    fixedValue Number
    Fixed volume threshold value, expressed in the threshold's unit.

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    Viewing docs for Chronosphere v0.9.16
    published on Friday, Jun 5, 2026 by Chronosphere

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial