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

# Get Application Statistics Charts

> Retrieves historical charts for an application over a specified time period: CPU, RAM, traffic and ephemeral storage usage and limit per pod with the pod's region, instances in total and per region, active regions, usage and capacity per volume with the volume's region and pods, and the rolling updates of the period per region.



## OpenAPI

````yaml https://api-mc.opsbunny.net/docs/public/swagger.json get /apps/{appId}/statistics/charts
openapi: 3.0.4
info:
  title: Public API
  description: 'Public API endpoints for user consumption. Release version: v1.12.1.0'
  version: '1.0'
servers:
  - url: https://api.bunny.net/mc
security:
  - AccessKey: []
paths:
  /apps/{appId}/statistics/charts:
    get:
      tags:
        - Applications
      summary: Get Application Statistics Charts
      description: >-
        Retrieves historical charts for an application over a specified time
        period: CPU, RAM, traffic and ephemeral storage usage and limit per pod
        with the pod's region, instances in total and per region, active
        regions, usage and capacity per volume with the volume's region and
        pods, and the rolling updates of the period per region.
      operationId: GetApplicationStatisticsCharts
      parameters:
        - name: appId
          in: path
          required: true
          schema:
            type: string
        - name: fromDate
          in: query
          required: true
          schema:
            type: string
            format: date-time
          example: '2025-01-01T00:00:00Z'
        - name: toDate
          in: query
          schema:
            type: string
            format: date-time
          example: '2025-01-31T23:59:59Z'
        - name: granularity
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/DataGranularity'
          example: Hourly
      responses:
        '200':
          description: Application statistics charts were successfully retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatisticsCharts'
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
        '401':
          description: User is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Application is not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
components:
  schemas:
    DataGranularity:
      enum:
        - Daily
        - Hourly
        - Minute
      type: string
    StatisticsCharts:
      type: object
      properties:
        activeRegionsChart:
          type: object
          additionalProperties:
            type: integer
            format: int32
        instancesChart:
          type: object
          additionalProperties:
            type: integer
            format: int32
        instancesSplitChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsRegionalChart'
        cpuUsageSplitChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsRegionalChart'
        ramUsageSplitChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsRegionalChart'
        trafficSplitChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsRegionalChart'
        ephemeralStorageSplitUsageChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsRegionalChart'
        ephemeralStorageSplitLimitChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsRegionalChart'
        volumesSplitUsageChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsVolumeChart'
        volumesSplitCapacityChart:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StatisticsVolumeChart'
        releases:
          type: array
          items:
            $ref: '#/components/schemas/StatisticsRelease'
      additionalProperties: false
    ErrorDetails:
      type: object
      properties:
        title:
          type: string
          description: A short, human-readable summary of the problem type.
          readOnly: true
        status:
          type: integer
          description: The HTTP status code.
          format: int32
          readOnly: true
        detail:
          type: string
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          nullable: true
          readOnly: true
        instance:
          type: string
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          nullable: true
          readOnly: true
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
          description: Additional validation errors for field-specific issues.
          nullable: true
          readOnly: true
        id:
          type: string
          description: >-
            The application ID, returned as an RFC 7807 extension field when
            relevant (e.g. partial save errors).

            Matches the "id" field from successful create response for
            consistency.
          nullable: true
          readOnly: true
      additionalProperties: false
      description: RFC 7807 Problem Details response model.
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    StatisticsRegionalChart:
      type: object
      properties:
        region:
          type: string
        chart:
          type: object
          additionalProperties:
            type: number
            format: double
      additionalProperties: false
      description: One pod's or volume's chart and the region it is in.
    StatisticsVolumeChart:
      type: object
      properties:
        region:
          type: string
        chart:
          type: object
          additionalProperties:
            type: number
            format: double
        pods:
          type: array
          items:
            $ref: '#/components/schemas/StatisticsVolumePod'
      additionalProperties: false
      description: >-
        One volume's chart, the region it lives in and the pods it was attached
        to.
    StatisticsRelease:
      type: object
      properties:
        time:
          type: string
          format: date-time
        region:
          type: string
        operationType:
          type: string
        rolledBack:
          type: boolean
        images:
          type: array
          items:
            $ref: '#/components/schemas/StatisticsReleaseImage'
      additionalProperties: false
      description: >-
        A rolling update of a deploy that finished in a region, or was rolled
        back there, with the images the

        region runs from then on; none for rolling updates recorded before the
        images were.
    ValidationError:
      required:
        - message
      type: object
      properties:
        field:
          type: string
          nullable: true
        message:
          type: string
      additionalProperties: false
    StatisticsVolumePod:
      type: object
      properties:
        podId:
          type: string
        from:
          type: string
          format: date-time
        to:
          type: string
          format: date-time
      additionalProperties: false
      description: >-
        A pod a volume was attached to, from the first to the last stamp of the
        chart it held the volume in.
    StatisticsReleaseImage:
      type: object
      properties:
        container:
          type: string
        image:
          type: string
        tag:
          type: string
        digest:
          type: string
      additionalProperties: false
      description: >-
        One container's image: namespace/name, tag and digest, the digest empty
        when it was not resolved.
  securitySchemes:
    AccessKey:
      type: apiKey
      description: Please enter a valid personal API key.
      name: AccessKey
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.