> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current metric value

> Retrieves the latest value for a specific metric



## OpenAPI

````yaml /api-reference/endpoint/monitoring/openapi.json get /monitoring/metrics/{metric}/current
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: API for managing quiva.ai platform
  version: 1.0.0
  contact:
    name: quiva.ai Support
    url: https://app.quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: metrics
    description: Operations for retrieving metric data
paths:
  /monitoring/metrics/{metric}/current:
    get:
      tags:
        - metrics
      summary: Get current metric value
      description: Retrieves the latest value for a specific metric
      operationId: getCurrentMetric
      parameters:
        - name: metric
          in: path
          required: true
          description: Name of the metric to retrieve
          schema:
            type: string
            enum:
              - connections
              - totalConnections
              - numberOfSubscriptions
              - sentMessages
              - sentBytes
              - receivedMessages
              - receivedBytes
              - slowConsumers
              - memory
              - storage
              - accounts
              - haAssets
              - apiTotal
              - apiErrors
              - apiInflight
              - streams
              - consumers
              - totalMessages
              - totalBytes
              - numberOfSubjects
              - numberOfDeleted
              - lostMessages
              - lostBytes
              - numberOfAckPending
              - numberOfRedelivered
              - numberOfWaiting
              - numberOfPending
              - pushBound
              - paused
              - deliveredConsumerSequence
              - deliveredStreamSequence
              - deliveredLastActive
              - ackFloorConsumerSequence
              - ackFloorStreamSequence
              - ackFloorLastActive
              - ram
              - cpu
              - slowConsumersClients
              - slowConsumersRoutes
              - slowConsumersGateways
              - slowConsumersMeshs
              - sentMessagesRate
              - sentBytesRate
              - receivedMessagesRate
              - receivedBytesRate
          example: cpu
        - name: node
          in: query
          required: false
          description: Node identifier
          schema:
            type: string
          example: node-a1b2c3
        - name: account
          in: query
          required: false
          description: Account identifier (required if node not provided)
          schema:
            type: string
          example: acme
        - name: stream
          in: query
          required: false
          description: Stream name
          schema:
            type: string
          example: events
        - name: consumer
          in: query
          required: false
          description: Consumer name (requires stream to be specified)
          schema:
            type: string
          example: processor
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentMetricResponse'
              example:
                message: success
                data:
                  ts: 1715241600000
                  value: 65.7
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: account is required
                data: null
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: no data
                data:
                  error: no data
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: oops
                data: null
components:
  schemas:
    CurrentMetricResponse:
      type: object
      properties:
        message:
          type: string
          description: Response message
        data:
          $ref: '#/components/schemas/MetricPoint'
          description: Current metric data point
        metadata:
          type: object
          additionalProperties: true
          description: Optional metadata
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Error message
        data:
          type: object
          nullable: true
          additionalProperties: true
          description: Additional error details
        metadata:
          type: object
          nullable: true
          additionalProperties: true
          description: Optional metadata
    MetricPoint:
      type: object
      properties:
        ts:
          type: integer
          format: int64
          description: Timestamp in milliseconds since epoch
        value:
          type: number
          format: double
          description: Metric value

````