> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ListConsumptionBudgets



## OpenAPI

````yaml openapi/api_v1_config_openapi3_DOCUMENTATION_ONLY.json GET /api/v1/config/consumption-budgets
openapi: 3.0.3
info:
  description: >

    The Config API provides standard HTTP/JSON REST endpoints for creating,
    reading,

    updating, deleting, and listing configurable Chronosphere resources.


    Use this link to download the raw Swagger specification:

    <a href="/api/v1/config/swagger.json">/api/v1/config/swagger.json</a>
  title: Config V1 API
  version: v1
servers:
  - url: https://{tenant}.chronosphere.io
    variables:
      tenant:
        default: tenant
        description: tenant ID assigned by the service provider
security:
  - ApiKeyAuth: []
tags:
  - name: ConfigV1
paths:
  /api/v1/config/consumption-budgets:
    get:
      tags:
        - ConsumptionBudget
      operationId: ListConsumptionBudgets
      parameters:
        - description: >-
            Sets the preferred number of items to return per page. If set to
            `0`, the

            server will use its default value. Regardless of the value
            specified, clients

            must never assume how many items will be returned.
          in: query
          name: page.max_size
          schema:
            format: int64
            type: integer
        - description: >-
            An opaque page token that identifies which page the client should
            request.

            An empty value indicates the first page.
          in: query
          name: page.token
          schema:
            type: string
        - description: >-
            Filters results by slug, where any ConsumptionBudget with a matching
            slug in the given list (and matches all other filters) will be
            returned.
          in: query
          name: slugs
          schema:
            items:
              type: string
            type: array
        - description: >-
            Filters results by name, where any ConsumptionBudget with a matching
            name in the given list (and matches all other filters) will be
            returned.
          in: query
          name: names
          schema:
            items:
              type: string
            type: array
        - description: >-
            Filters results by partition_slug_path, where any ConsumptionBudget
            with a matching partition_slug_path in the given list (and matches
            all other filters) will be returned.
          in: query
          name: partition_slug_paths
          schema:
            items:
              type: string
            type: array
        - description: >-
            Filters results by resource, where any ConsumptionBudget with a
            matching resource in the given list (and matches all other filters)
            will be returned.
          in: query
          name: resources
          schema:
            items:
              enum:
                - LOG_PERSISTED_BYTES
                - LOG_PROCESSED_BYTES
                - METRIC_PERSISTED_SERIES
                - METRIC_ALL
                - LOG_ALL
                - TRACE_PROCESSED_BYTES
                - TRACE_PERSISTED_BYTES
                - TRACE_ALL
                - ALL
              type: string
            type: array
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/configv1ListConsumptionBudgetsResponse'
          description: A successful response.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: An unexpected error response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/genericError'
          description: An undefined error response.
components:
  schemas:
    configv1ListConsumptionBudgetsResponse:
      properties:
        consumption_budgets:
          items:
            $ref: '#/components/schemas/configv1ConsumptionBudget'
          type: array
        page:
          $ref: '#/components/schemas/configv1PageResult'
      type: object
    apiError:
      properties:
        message:
          description: An error message describing what went wrong.
          type: string
      type: object
    genericError:
      additionalProperties: true
      type: object
    configv1ConsumptionBudget:
      properties:
        alert_action_config:
          allOf:
            - $ref: '#/components/schemas/ConsumptionBudgetAlertActionConfig'
          description: >-
            Optional. Configures all `ALERT_WARN` & `ALERT_CRITICAL` actions for
            this budget.
        created_at:
          description: >-
            Timestamp of when the ConsumptionBudget was created. Cannot be set
            by clients.
          format: date-time
          readOnly: true
          type: string
        default_priority:
          description: >-
            Optional. The default priority for requests that don't match any
            priority in the

            `priorities` list. If not set, then `priority=10` (dropped first) is
            used as the

            default.
          format: int32
          type: integer
        name:
          description: >-
            The name of the ConsumptionBudget. You can modify this value after
            the ConsumptionBudget is created.
          type: string
        notification_policy_slug:
          description: >-
            Notification policy slug for routing alerts. Required only if
            `ALERT_WARN` or

            `ALERT_CRITICAL` actions are configured.
          type: string
        partition_slug_path:
          description: >-
            Path of the budget's partition, delimited by forward slashes (`/`),
            in the

            format `global/SLUG1/SLUG2`, where `SLUG1` is a top-level partition,
            and `SLUG2`

            is a child partition of `SLUG1`.


            A well-formed partition path always starts with the `global`
            partition slug, and

            has no leading or trailing forward slashes.
          type: string
        priorities:
          description: >-
            Optional. Controls the order in which data is dropped when a drop
            action is

            applied. For example, a priority of 10 is dropped first, and a
            priority of 1 is

            dropped last. Priorities are evaluated in match order, and the first
            priority to

            match is applied. All other priorities are ignored. If a request
            does not match

            any priority, then it is assigned the `default_priority`.
          items:
            $ref: '#/components/schemas/ConsumptionBudgetPriority'
          type: array
        resource:
          allOf:
            - $ref: '#/components/schemas/ConsumptionBudgetResourceGroup'
          description: |-
            Resource of the budget.
            Deprecated: use thresholds.resource_group and unit instead.
        slug:
          description: >-
            The unique identifier of the ConsumptionBudget. If a `slug` isn't
            provided, one is generated based on the `name` field. You can't
            modify this field after the ConsumptionBudget is created.
          type: string
        thresholds:
          description: >-
            Optional. Defines which actions to take when a threshold is
            exceeded.
          items:
            $ref: '#/components/schemas/configv1ConsumptionBudgetThreshold'
          type: array
        updated_at:
          description: >-
            Timestamp of when the ConsumptionBudget was last updated. Cannot be
            set by clients.
          format: date-time
          readOnly: true
          type: string
      required:
        - name
        - partition_slug_path
      type: object
    configv1PageResult:
      properties:
        next_token:
          description: |-
            An opaque page token that identifies the next page of items that the
            client should request. An empty value indicates that there are no
            more items to return.
          type: string
      type: object
    ConsumptionBudgetAlertActionConfig:
      properties:
        annotations:
          additionalProperties:
            type: string
          description: >-
            Additional annotations to set on the generated monitor. By default,
            the

            monitors already contain "description", "dashboard", "resource",

            "consumption_budget_slug", "threshold_type", and "partition"
            annotations.

            Setting any of these annotations will override its default value.
          type: object
        instant_rate_sustain_secs:
          description: >-
            How long instant rate consumption must sustain above the threshold
            in

            order to fire an alert. By default, the sustain is 0: any
            consumption

            over the threshold will fire an alert.
          format: int32
          type: integer
        labels:
          additionalProperties:
            type: string
          description: >-
            Additional labels to set on the generated monitor, which can be used
            for

            notification routing. The following labels are reserved and cannot
            be

            override: "resource", "partition", and "threshold_type".
          type: object
      type: object
    ConsumptionBudgetPriority:
      properties:
        filters:
          description: >-
            Criteria that defines which data matches the `priority`. Filters are

            concatenated together as implied `AND` operators. A request must
            match every

            filter to match the `priority`.
          items:
            $ref: '#/components/schemas/ConsumptionBudgetPriorityFilter'
          type: array
        priority:
          description: >-
            Priority order that determines when to drop data. A priority of `10`
            is

            dropped first, and a priority of `1` is dropped last.
          format: int32
          type: integer
      required:
        - filters
        - priority
      type: object
    ConsumptionBudgetResourceGroup:
      enum:
        - LOG_PERSISTED_BYTES
        - LOG_PROCESSED_BYTES
        - METRIC_PERSISTED_SERIES
        - METRIC_ALL
        - LOG_ALL
        - TRACE_PROCESSED_BYTES
        - TRACE_PERSISTED_BYTES
        - TRACE_ALL
        - ALL
      type: string
    configv1ConsumptionBudgetThreshold:
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/ConsumptionBudgetThresholdAction'
          description: The specified action to take when the threshold is exceeded.
        instant_rate:
          allOf:
            - $ref: '#/components/schemas/ThresholdInstantRate'
          description: Configures the `INSTANT_RATE` threshold type.
        resource_group:
          allOf:
            - $ref: '#/components/schemas/ConsumptionBudgetResourceGroup'
          description: Specifies which resource group this threshold applies to.
        type:
          allOf:
            - $ref: '#/components/schemas/ConsumptionBudgetThresholdType'
          description: >-
            Specifies the threshold type, which can be one of the following
            values.


            `INSTANT_RATE` sets an instantaneous rate threshold. The configured
            action

            triggers when consumption exceeds the configured rate threshold,
            defined by

            the `instant_rate` field. The `DROP` action accepts requests up to
            the

            threshold, and drops any data over the threshold in priority order.


            `ROLLING_30_MINUTE_VOLUME`, `ROLLING_1_HOUR_VOLUME`,

            `ROLLING_3_HOUR_VOLUME`, `ROLLING_1_DAY_VOLUME`, and

            `ROLLING_7_DAY_VOLUME` set a volume threshold over a rolling time

            period. The configured action triggers when consumption over the
            last

            time period (30 minutes, 1 hour, 3 hours, 1 day, or 7 days) exceeds

            the configured threshold, defined by the `volume` field.


            `HOURLY_VOLUME`, `DAILY_VOLUME`, `WEEKLY_VOLUME`, and
            `MONTHLY_VOLUME` set a volume threshold

            over a fixed, non-overlapping time period. The configured action
            triggers when consumption

            over the specified time period (hourly, daily, weekly, or monthly)
            exceeds the

            configured threshold, defined by the `volume` field. Volumes reset

            to zero at the start of each time period. The `DROP` action drops
            all requests

            when a volume threshold is exceeded, regardless of priority.


            - `HOURLY_VOLUME` sums the consumption volume from `00:00:00` UTC`
            to `00:59:59` UTC
              every hour.
            - `DAILY_VOLUME` sums the consumption volume from `00:00:00` UTC to
            `23:59:59` UTC
              every day.
            - `WEEKLY_VOLUME` sums the consumption volume from `00:00:00` UTC
            Monday morning
              to `23:59:59` UTC Sunday night.
            - `MONTHLY_VOLUME` sums the consumption volume from `00:00:00` UTC
            on the first
              day of the month to `23:59:59` UTC on the last day of the month. For example,
              `Jan 1 00:00:00` to `Jan 31 23:59:59`. Month thresholds are evaluated equally,
              regardless of how many days are in the month. For example, thresholds for
              January and February are the same, even though February has fewer days.
        unit:
          allOf:
            - $ref: '#/components/schemas/ConsumptionBudgetUnit'
          description: >-
            Specifies the unit of the threshold value. `NATIVE` uses the native

            unit of the resource group, e.g. bytes for `LOG_PERSISTED_BYTES`.
            `CREDITS`

            uses the credits cost of the resource group, if available.
        volume:
          allOf:
            - $ref: '#/components/schemas/ThresholdVolume'
          description: Configures the `VOLUME` threshold type.
      required:
        - action
        - type
      type: object
    ConsumptionBudgetPriorityFilter:
      properties:
        dataset_slug:
          description: Deprecated. Use `log_filter` instead.
          type: string
        log_filter:
          allOf:
            - $ref: '#/components/schemas/configv1LogSearchFilter'
          description: If set, matches incoming log data by log query.
      type: object
    ConsumptionBudgetThresholdAction:
      enum:
        - ALERT_WARN
        - ALERT_CRITICAL
        - DROP
      type: string
    ThresholdInstantRate:
      properties:
        fixed_value_per_sec:
          description: Value of the fixed rate threshold.
          format: int64
          type: string
      required:
        - fixed_value_per_sec
      type: object
    ConsumptionBudgetThresholdType:
      enum:
        - DAILY_VOLUME
        - INSTANT_RATE
        - WEEKLY_VOLUME
        - MONTHLY_VOLUME
        - HOURLY_VOLUME
        - ROLLING_1_HOUR_VOLUME
        - ROLLING_3_HOUR_VOLUME
        - ROLLING_1_DAY_VOLUME
        - ROLLING_7_DAY_VOLUME
        - ROLLING_30_MINUTE_VOLUME
      type: string
    ConsumptionBudgetUnit:
      enum:
        - NATIVE
        - CREDITS
      type: string
    ThresholdVolume:
      properties:
        fixed_value:
          description: Value of the volume threshold.
          format: int64
          type: string
      required:
        - fixed_value
      type: object
    configv1LogSearchFilter:
      properties:
        query:
          description: >-
            Returns logs that match this query. The query can include only
            top-level

            operations. Nested clauses aren't supported. Only one type of `AND`
            or `OR`

            operator is allowed.
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````