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

# Get Compute Resource Metrics

> Get performance metrics data for compute resources



## OpenAPI

````yaml api/openapi.yaml post /projects/{id}/computes/{computeId}/metrics
openapi: 3.0.3
info:
  title: Relyt Console API
  description: >
    Relyt Console API provides organization management, project management,
    compute resource management, database management and other features.

    This is a modern API service based on Next.js, supporting OAuth2
    authentication and JWT tokens.
  version: 1.0.0
  contact:
    name: Relyt Team
    email: support@relyt.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://relytone.data.cloud/api/v1
    description: Production Environment
security:
  - OAuth2: []
  - BearerAuth: []
paths:
  /projects/{id}/computes/{computeId}/metrics:
    post:
      tags:
        - Project Resources
      summary: Get Compute Resource Metrics
      description: Get performance metrics data for compute resources
      parameters:
        - name: id
          in: path
          required: true
          description: Project identifier
          schema:
            type: string
        - name: computeId
          in: path
          required: true
          description: Compute resource identifier
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                startTime:
                  type: string
                  format: date-time
                  description: Start time
                endTime:
                  type: string
                  format: date-time
                  description: End time
                metrics:
                  type: array
                  items:
                    type: string
                    enum:
                      - cpu
                      - memory
                      - disk
                      - network
                  description: Types of metrics to retrieve
      responses:
        '200':
          description: Successfully retrieved metrics data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricsResponse'
        '401':
          description: Unauthorized access
        '404':
          description: Compute resource not found
      security:
        - BearerAuth: []
components:
  schemas:
    MetricsResponse:
      type: object
      properties:
        database:
          type: string
          description: Database name
        metrics:
          type: object
          properties:
            cpu:
              type: array
              items:
                type: object
                properties:
                  timestamp:
                    type: string
                    format: date-time
                  value:
                    type: number
            memory:
              type: array
              items:
                type: object
                properties:
                  timestamp:
                    type: string
                    format: date-time
                  value:
                    type: number
            disk:
              type: array
              items:
                type: object
                properties:
                  timestamp:
                    type: string
                    format: date-time
                  value:
                    type: number
            network:
              type: array
              items:
                type: object
                properties:
                  timestamp:
                    type: string
                    format: date-time
                  value:
                    type: number
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://relytone.data.cloud/api/auth/signin
          tokenUrl: https://relytone.data.cloud/api/auth/callback
          scopes:
            read: Read permissions
            write: Write permissions
            admin: Admin permissions
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````