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

# App Realtime Metrics

> Return realtime per-service metrics for an app.

CPU/memory/instance_count fields are always null — they require Cloud
Monitoring API integration which is not yet implemented.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/metrics/realtime
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/metrics/realtime:
    get:
      tags:
        - metrics
      summary: App Realtime Metrics
      description: |-
        Return realtime per-service metrics for an app.

        CPU/memory/instance_count fields are always null — they require Cloud
        Monitoring API integration which is not yet implemented.
      operationId: metrics_app_realtime_metrics
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: period
          in: query
          required: false
          schema:
            enum:
              - 5m
              - 1h
              - 24h
              - 7d
            type: string
            default: 1h
            title: Period
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RealtimeMetricsResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    RealtimeMetricsResponse:
      properties:
        app_id:
          type: string
          format: uuid
          title: App Id
        period:
          type: string
          enum:
            - 5m
            - 1h
            - 24h
            - 7d
          title: Period
        services:
          items:
            $ref: '#/components/schemas/ServiceMetrics'
          type: array
          title: Services
      type: object
      required:
        - app_id
        - period
        - services
      title: RealtimeMetricsResponse
      description: Response for realtime per-app metrics.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ServiceMetrics:
      properties:
        name:
          type: string
          title: Name
        request_count:
          type: integer
          title: Request Count
        error_count:
          type: integer
          title: Error Count
        error_rate:
          type: number
          title: Error Rate
        avg_latency_ms:
          type: number
          title: Avg Latency Ms
        p95_latency_ms:
          type: number
          title: P95 Latency Ms
        cpu_utilization:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpu Utilization
        memory_utilization:
          anyOf:
            - type: number
            - type: 'null'
          title: Memory Utilization
        instance_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Instance Count
      type: object
      required:
        - name
        - request_count
        - error_count
        - error_rate
        - avg_latency_ms
        - p95_latency_ms
        - cpu_utilization
        - memory_utilization
        - instance_count
      title: ServiceMetrics
      description: >-
        Realtime metrics for a single service within an app.


        cpu_utilization, memory_utilization, and instance_count require Cloud

        Monitoring API integration and are always null in the current
        implementation.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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