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

# 获取服务器健康度量表

> 流程及其容器的内存(组 v2, 然后是 v1), CPU 时间、静态/介质大小和存储空间(步行缓存一分钟) 音量上的空闲空间、会话存储以及多少设备已注册、登录和连接。 无需设备。 在当前平台(非 Linux) 或无限(容器内存限制)上未知字段。 文件夹的使用是最佳努力：丢失或不可读条目，符号链接目标不会被穿过. 容器指标使用标准 /sys/fs/cgroup 挂载，如果不可用则为空。 运行时间包括流程初始化。




## OpenAPI

````yaml /zh/openapi.yml get /app/metrics
openapi: 3.0.0
info:
  title: WhatsApp API 多设备
  version: 9.7.0
  description: |
    此 API 用于通过 API 发送什么应用。

    Web 仪表板是一个单独的项目(gowa-ui)； 服务器下载它的
    最新版本资产并在 `/` 处服务(或在
    APP_UI_ENABLED=false时返回一个 JSON 横幅)。

    设备范围：
    - 在所有设备范围的REST 调用上发送 `X-Device-Id` 。
    - WebSocket: 连接到"/w?device_id=<id>`.
    - WebSocket 身份验证（启用基本身份验证时）：浏览器无法为
      WebSocket 连接设置 Authorization 请求头，因此还需在
      查询字符串中传入 `&authorization=<base64(user:pass)>`。 在
      生产中使用TLS ，因为凭据在 URL 中可见。
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: 初始连接到 Whatsapp 服务器
  - name: device
    description: 多设备支持的设备管理
  - name: user
    description: 获取信息
  - name: send
    description: 发送消息 (Text/Image/File/Video)。
  - name: message
    description: 消息操作 (撤销/react/update)。
  - name: call
    description: 通话管理 (拒绝来电)
  - name: chat
    description: 聊天对话和消息
  - name: group
    description: 组设置
  - name: newsletter
    description: 通讯设置
  - name: chatwoot
    description: 客户支持的聊天窗口集成
paths:
  /app/metrics:
    get:
      tags:
        - app
      summary: 获取服务器健康度量表
      description: >
        流程及其容器的内存(组 v2, 然后是 v1), CPU 时间、静态/介质大小和存储空间(步行缓存一分钟)
        音量上的空闲空间、会话存储以及多少设备已注册、登录和连接。 无需设备。 在当前平台(非 Linux) 或无限(容器内存限制)上未知字段。
        文件夹的使用是最佳努力：丢失或不可读条目，符号链接目标不会被穿过. 容器指标使用标准 /sys/fs/cgroup 挂载，如果不可用则为空。
        运行时间包括流程初始化。
      operationId: appMetrics
      responses:
        '200':
          description: 好的
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                  code:
                    type: string
                    example: SUCCESS
                  message:
                    type: string
                    example: Fetch app metrics success
                  results:
                    type: object
                    properties:
                      version:
                        type: string
                        example: v9.6.0
                      session_store:
                        type: string
                        enum:
                          - sqlite
                          - postgres
                      devices:
                        type: object
                        properties:
                          total:
                            type: integer
                            example: 5
                          logged_in:
                            type: integer
                            example: 3
                          connected:
                            type: integer
                            example: 3
                      system:
                        type: object
                        properties:
                          started_at:
                            type: string
                            format: date-time
                          uptime_seconds:
                            type: integer
                            example: 3600
                          go_version:
                            type: string
                            example: go1.26.9
                          cpu_seconds:
                            type: number
                            nullable: true
                            example: 17.9
                          memory:
                            type: object
                            properties:
                              heap_alloc_bytes:
                                type: integer
                                format: int64
                              runtime_sys_bytes:
                                type: integer
                                format: int64
                              process_rss_bytes:
                                type: integer
                                format: int64
                                nullable: true
                              container_bytes:
                                type: integer
                                format: int64
                                nullable: true
                              container_limit_bytes:
                                type: integer
                                format: int64
                                nullable: true
                              goroutines:
                                type: integer
                              gc_cycles:
                                type: integer
                          folders:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                bytes:
                                  type: integer
                                  format: int64
                                files:
                                  type: integer
                                  format: int64
                          filesystem:
                            type: object
                            properties:
                              total_bytes:
                                type: integer
                                format: int64
                                nullable: true
                              free_bytes:
                                type: integer
                                format: int64
                                nullable: true
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [获取服务器元数据](https://gowa-docs.mintlify.site/zh/api-reference/app/获取服务器元数据.md)
- [获取最新消息(通道)](https://gowa-docs.mintlify.site/zh/api-reference/newsletter/获取最新消息通道.md)
- [服务器指标](https://gowa-docs.mintlify.site/zh/api-reference/metrics.md)
- [MCP 服务器](https://gowa-docs.mintlify.site/zh/integrations/mcp.md)
- [媒体处理](https://gowa-docs.mintlify.site/zh/examples/media-handling.md)


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