> ## 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 multiple current metric values

> Retrieves the latest values for multiple metrics simultaneously



## OpenAPI

````yaml /api-reference/endpoint/monitoring/openapi.json post /monitoring/metrics/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/current:
    post:
      tags:
        - metrics
      summary: Get multiple current metric values
      description: Retrieves the latest values for multiple metrics simultaneously
      operationId: getCurrentMetrics
      requestBody:
        description: Metrics request parameters
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetMetricsCurrentRequest'
            example:
              metrics:
                - messages_per_second
                - memory_usage
                - error_rate
              account: acme
              stream: events
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MultipleMetricsResponse'
              example:
                message: success
                data:
                  - ts: 1715241600000
                    value: 152.3
                  - ts: 1715241600000
                    value: 78.5
                  - error: no data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: metrics are required
                data: null
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: oops
                data: null
components:
  schemas:
    GetMetricsCurrentRequest:
      type: object
      required:
        - metrics
      properties:
        metrics:
          type: array
          items:
            type: string
          description: Array of metric names to retrieve
          minItems: 1
        node:
          type: string
          description: Node identifier
        account:
          type: string
          description: Account identifier (required if node not provided)
        stream:
          type: string
          description: Stream name
        consumer:
          type: string
          description: Consumer name (requires stream to be specified)
    MultipleMetricsResponse:
      type: object
      properties:
        message:
          type: string
          description: Response message
        data:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/MetricPoint'
              - $ref: '#/components/schemas/MetricErrorPoint'
          description: Array of metric data points or error messages
        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
    MetricErrorPoint:
      type: object
      properties:
        error:
          type: string
          description: Error message

````