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

# List CI workloads

> Every workflow job and pipeline step that ran in the range, with its figures. meta.nextCursor reads the next page and is absent on the last one.



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /ci/analytics/workloads
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: FeatureFlags
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: AwsAmp
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: Integrations
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: EksPrometheus
  - name: EksLoki
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleCategories
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: GitHub Actions
  - name: CI Analytics
  - name: Alerts
  - name: Gitlab
  - name: Slack
  - name: Git
  - name: MergeQueues
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Domains
  - name: AcmCertificates
  - name: NotificationDestinations
  - name: NotificationDispatches
  - name: NotificationEvents
  - name: NotificationRules
  - name: Activity
  - name: Describe
  - name: Reports
  - name: Support
  - name: BillingPlans
  - name: BillingAccounts
  - name: BillingCycles
  - name: BillingUsageSummaries
  - name: BillingAddOns
  - name: BillingInvoices
  - name: Authorization
  - name: Sandboxes
  - name: SandboxCommands
  - name: SandboxPorts
  - name: Apps
paths:
  /ci/analytics/workloads:
    get:
      tags:
        - CI Analytics
      summary: List CI workloads
      description: >-
        Every workflow job and pipeline step that ran in the range, with its
        figures. `meta.nextCursor` reads the next page and is absent on the last
        one. Returns 503 when CI analytics are not configured.
      operationId: ListCIAnalyticsWorkloads
      parameters:
        - $ref: '#/components/parameters/CIAnalytics.Filters.from'
        - $ref: '#/components/parameters/CIAnalytics.Filters.to'
        - $ref: '#/components/parameters/CIAnalytics.Filters.executionEnvironmentId'
        - $ref: '#/components/parameters/CIAnalytics.Filters.codeSourceId'
        - $ref: '#/components/parameters/CIAnalytics.Filters.pipelineId'
        - $ref: '#/components/parameters/CIAnalytics.Filters.source'
        - $ref: '#/components/parameters/CIAnalytics.Filters.runnerSize'
        - $ref: '#/components/parameters/CIAnalytics.Filters.conclusion'
        - $ref: '#/components/parameters/CIAnalytics.Filters.scopeId'
        - $ref: '#/components/parameters/CIAnalytics.Filters.name'
        - $ref: '#/components/parameters/CIAnalytics.Compare'
        - description: Only names or repositories containing this text, ignoring case.
          in: query
          name: q
          schema:
            nullable: true
            type: string
        - description: Defaults to runs.
          in: query
          name: sort
          schema:
            allOf:
              - $ref: '#/components/schemas/CIAnalytics.WorkloadSort'
            nullable: true
        - description: Defaults to desc.
          in: query
          name: order
          schema:
            allOf:
              - $ref: '#/components/schemas/CIAnalytics.SortOrder'
            nullable: true
        - description: How many rows to return, 1 to 100. Defaults to 25.
          in: query
          name: limit
          schema:
            format: int32
            maximum: 100
            minimum: 1
            nullable: true
            type: integer
        - description: The nextCursor of the previous page.
          in: query
          name: cursor
          schema:
            nullable: true
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/CIAnalytics.Workload'
                    type: array
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
                required:
                  - data
                  - meta
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The request is invalid or malformed.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You are not authenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You do not have permission to access this resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Server error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Service unavailable.
components:
  parameters:
    CIAnalytics.Filters.from:
      description: First day of the range (UTC), inclusive.
      in: query
      name: from
      required: true
      schema:
        format: date
        type: string
    CIAnalytics.Filters.to:
      description: >-
        Last day of the range (UTC), inclusive. Must be on or after from; the
        range covers at most 400 days.
      in: query
      name: to
      required: true
      schema:
        format: date
        type: string
    CIAnalytics.Filters.executionEnvironmentId:
      description: Only jobs that ran in this execution environment.
      in: query
      name: executionEnvironmentId
      schema:
        nullable: true
        type: string
    CIAnalytics.Filters.codeSourceId:
      description: >-
        Only GitHub Actions jobs of this code source (repository). Returns 403
        when the caller cannot read it.
      in: query
      name: codeSourceId
      schema:
        nullable: true
        type: string
    CIAnalytics.Filters.pipelineId:
      description: Only steps of this pipeline. Returns 403 when the caller cannot read it.
      in: query
      name: pipelineId
      schema:
        nullable: true
        type: string
    CIAnalytics.Filters.source:
      description: Only jobs from this source.
      in: query
      name: source
      schema:
        allOf:
          - $ref: '#/components/schemas/CIAnalytics.Source'
        nullable: true
    CIAnalytics.Filters.runnerSize:
      description: >-
        Only jobs booked at this runner size, as Job.runnerSize labels it (for
        example "8 vCPU / 32 GiB").
      in: query
      name: runnerSize
      schema:
        nullable: true
        type: string
    CIAnalytics.Filters.conclusion:
      description: Only jobs that ended this way.
      in: query
      name: conclusion
      schema:
        allOf:
          - $ref: '#/components/schemas/CIAnalytics.Conclusion'
        nullable: true
    CIAnalytics.Filters.scopeId:
      description: >-
        With name (and source), only one workflow job or pipeline step: the code
        source ID for GitHub Actions jobs, the pipeline ID for pipeline steps.
      in: query
      name: scopeId
      schema:
        nullable: true
        type: string
    CIAnalytics.Filters.name:
      description: >-
        With scopeId, only the workflow job or pipeline step of this name, as
        Workload.name gives it.
      in: query
      name: name
      schema:
        nullable: true
        type: string
    CIAnalytics.Compare:
      description: Also return the previous period's figures as previous.
      in: query
      name: compare
      schema:
        nullable: true
        type: boolean
  schemas:
    CIAnalytics.WorkloadSort:
      description: Column /ci/analytics/workloads sorts by.
      enum:
        - name
        - runs
        - failureRate
        - runMsP50
        - runMsP90
        - runMinutes
        - vcpuMinutes
        - lastRunAt
      type: string
    CIAnalytics.SortOrder:
      enum:
        - asc
        - desc
      type: string
    CIAnalytics.Workload:
      additionalProperties: false
      description: One workflow job or pipeline step, aggregated over the range.
      properties:
        aws:
          allOf:
            - $ref: '#/components/schemas/CIAnalytics.AwsCost'
          description: >-
            Estimated AWS spend of its runs in the range, as /ci/analytics/costs
            reports it. Absent when no cost has settled for it yet or costs are
            not available.
        cacheHitRate:
          description: >-
            Its Actions cache hit rate in the range: hits / (hits + misses) of
            its restores, as /ci/analytics/caches/hit-rates reports it. Absent
            when it made no restores (only sandbox-pool runners use Ravion's
            caches) or cache figures are not available.
          format: double
          type: number
        failureRate:
          description: failures / runs.
          format: double
          type: number
        failures:
          format: int64
          type: integer
        lastRunAt:
          description: When its newest run finished.
          format: date-time
          type: string
        name:
          description: >-
            "workflow / job" for GitHub Actions jobs, the step ID for pipeline
            steps.
          type: string
        previous:
          allOf:
            - $ref: '#/components/schemas/CIAnalytics.WorkloadFigures'
          description: >-
            Present with `compare=true`; absent when it did not run in the
            previous period.
        runMinutes:
          format: double
          type: number
        runMsP50:
          format: double
          type: number
        runMsP90:
          format: double
          type: number
        runnerSizes:
          description: Runner sizes its runs booked in the range, most used first.
          items:
            type: string
          type: array
        runs:
          format: int64
          type: integer
        scopeId:
          description: >-
            The code source ID for GitHub Actions jobs, the pipeline ID for
            pipeline steps.
          type: string
        scopeLabel:
          description: The repository for GitHub Actions jobs; empty for pipeline steps.
          type: string
        source:
          $ref: '#/components/schemas/CIAnalytics.Source'
        vcpuMinutes:
          format: double
          type: number
      required:
        - source
        - scopeId
        - scopeLabel
        - name
        - runs
        - failures
        - failureRate
        - runMsP50
        - runMsP90
        - runMinutes
        - vcpuMinutes
        - lastRunAt
        - runnerSizes
      type: object
    PaginationMeta:
      additionalProperties: false
      properties:
        limit:
          format: int32
          type: integer
        nextCursor:
          type: string
        totalCount:
          format: int32
          type: integer
      required:
        - limit
      type: object
    Errors.UserFacingErrorData:
      additionalProperties: false
      description: |-
        User-facing error presentation data.
        This is what the API returns to the frontend after formatting ErrorData
        using CEL templates from the error registry.

        Used for both:
        - Error fields on domain models (e.g., PipelineRun.error)
        - API error response bodies (HTTP 4xx/5xx responses)
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Errors.Action'
          description: Optional action to help resolve the error
        code:
          description: Full error code, e.g., "Ravion:Pipeline:NOT_FOUND"
          type: string
        description:
          description: Additional description with more details
          type: string
        details:
          description: Structured details rendered as user-facing sections.
          items:
            $ref: '#/components/schemas/Errors.UserFacingErrorDetailSection'
          type: array
        isInternal:
          description: >-
            Indicates whether this error is internal (only set when
            ShowInternal=true).

            This allows Ravion staff to identify internal errors while viewing
            full details.
          type: boolean
        message:
          description: Main error message (required)
          type: string
        metadata:
          additionalProperties: {}
          description: >-
            Error params/metadata. Internal error details are visible only to
            Ravion staff.
          type: object
        requestId:
          description: Request ID for correlating errors with server logs.
          type: string
      required:
        - code
        - message
      type: object
    CIAnalytics.Source:
      description: >-
        Where a job ran from: a GitHub Actions job on a Ravion runner, or a
        pipeline step.
      enum:
        - github_actions
        - pipeline
      type: string
    CIAnalytics.Conclusion:
      description: How a job ended.
      enum:
        - success
        - failure
        - cancelled
        - timed_out
        - skipped
      type: string
    CIAnalytics.AwsCost:
      additionalProperties: false
      description: >-
        Estimated AWS spend: compute, disks, network and storage in the
        organization's own AWS account, priced at list price or the Spot price
        at launch. Ravion does not bill it.
      properties:
        onDemandUsd:
          description: >-
            What the same usage would cost on-demand: Spot time at the on-demand
            price, everything else as `usd`.
          format: double
          type: number
        usd:
          description: Estimated dollars.
          format: double
          type: number
      required:
        - usd
        - onDemandUsd
      type: object
    CIAnalytics.WorkloadFigures:
      additionalProperties: false
      description: Figures for one workflow job or pipeline step over a period.
      properties:
        failureRate:
          description: failures / runs.
          format: double
          type: number
        failures:
          format: int64
          type: integer
        runMinutes:
          format: double
          type: number
        runMsP50:
          format: double
          type: number
        runMsP90:
          format: double
          type: number
        runs:
          format: int64
          type: integer
        vcpuMinutes:
          format: double
          type: number
      required:
        - runs
        - failures
        - failureRate
        - runMsP50
        - runMsP90
        - runMinutes
        - vcpuMinutes
      type: object
    Errors.Action:
      additionalProperties: false
      description: Action to help user resolve the error
      properties:
        label:
          description: Button/link label text
          type: string
        url:
          description: URL to navigate to for resolution
          type: string
      required:
        - label
        - url
      type: object
    Errors.UserFacingErrorDetailSection:
      additionalProperties: false
      description: Structured user-facing error detail section.
      properties:
        items:
          description: List of detail values for this section.
          items:
            type: string
          type: array
        object:
          additionalProperties: {}
          description: Structured detail payload for object rendering.
          type: object
        render:
          description: Rendering hint for clients. Valid values are list or object.
          type: string
        title:
          description: Detail section title shown in the UI.
          type: string
      required:
        - title
        - render
      type: object
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````

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