> ## 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.

# サーバーの健全性指標を取得する

> プロセスとコンテナのメモリ (cgroup v2, then v1), CPU時間, static/mediaおよびストレージのサイズ (散歩は1分間キャッシュされます) ボリュームの空き領域セッションストアと、登録、ログイン、接続されているデバイスの数。 デバイスは必要ありません。 Nullableフィールドは現在のプラットフォーム(Linux以外)または無制限(コンテナメモリ制限)で不明です。 フォルダの使用は最善の努力です：不足しているか読めないエントリが省略され、シンボリックリンクのターゲットが横断されません。 コンテナメトリックは標準の /sys/fs/cgroup mount を使用し、使用できない場合は null です。 稼働時間にはプロセスの初期化が含まれています。




## OpenAPI

````yaml /ja/openapi.yml get /app/metrics
openapi: 3.0.0
info:
  title: WhatsApp API マルチデバイス
  version: 9.7.0
  description: |
    この API は API 経由で whatsapp を送信するために使用されます。

    Web ダッシュボードは別のプロジェクトです (gowa-ui); サーバーは
    最新のリリースアセットをダウンロードし、`/`で動作します（または、
    APP_UI_ENABLED=falseの場合はJSONバナーを返します）。

    デバイススコープ:
    - すべてのデバイススコープの REST コールで `X-Device-Id` を送信します。
    - WebSocket: `/wsに接続しますか？device_id=<id> ` 。
    - WebSocket 認証（Basic Auth が有効な場合）: ブラウザーは WebSocket 接続で
      Authorization ヘッダーを設定できないため、クエリ文字列にも
      `&authorization=<base64(user:pass)>` を渡してください。 認証情報が URL に表示されるため、本番環境では
      TLS を使用してください。
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: Whatsappサーバーへの初期接続
  - name: device
    description: マルチデバイスサポートのためのデバイス管理
  - name: user
    description: 情報の取得
  - name: send
    description: メッセージ (テキスト/イメージ/ファイル/ビデオ) を送信します。
  - name: message
    description: メッセージ操作 (revoke/react/update)
  - name: call
    description: 通話管理 (着信拒否)
  - name: chat
    description: チャットとメッセージ
  - name: group
    description: グループ設定
  - name: newsletter
    description: ニュースレターの設定
  - name: chatwoot
    description: カスタマーサポートのためのChatwoot統合
paths:
  /app/metrics:
    get:
      tags:
        - app
      summary: サーバーの健全性指標を取得する
      description: >
        プロセスとコンテナのメモリ (cgroup v2, then v1), CPU時間, static/mediaおよびストレージのサイズ
        (散歩は1分間キャッシュされます) ボリュームの空き領域セッションストアと、登録、ログイン、接続されているデバイスの数。
        デバイスは必要ありません。 Nullableフィールドは現在のプラットフォーム(Linux以外)または無制限(コンテナメモリ制限)で不明です。
        フォルダの使用は最善の努力です：不足しているか読めないエントリが省略され、シンボリックリンクのターゲットが横断されません。
        コンテナメトリックは標準の /sys/fs/cgroup mount を使用し、使用できない場合は null です。
        稼働時間にはプロセスの初期化が含まれています。
      operationId: appMetrics
      responses:
        '200':
          description: OK
          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/ja/api-reference/app/サーバーのメタデータを取得する.md)
- [ユーザーの連絡先のリストを取得する](https://gowa-docs.mintlify.site/ja/api-reference/user/ユーザーの連絡先のリストを取得する.md)
- [最新のニュースレター（チャンネル）メッセージを取得する](https://gowa-docs.mintlify.site/ja/api-reference/newsletter/最新のニュースレター（チャンネル）メッセージを取得する.md)
- [接続状況を取得する](https://gowa-docs.mintlify.site/ja/api-reference/app/接続状況を取得する.md)
- [接続されているデバイスのリストを取得する](https://gowa-docs.mintlify.site/ja/api-reference/app/接続されているデバイスのリストを取得する.md)


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