> ## 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), وقت وحدة المعالجة المركزية، وحجم المواد الثابتة/الوسائط والمخازن (المشي مخبأ لمدة دقيقة)، المساحة الحرة على مستوى الصوت ومتجر الجلسات وعدد الأجهزة التي تم تسجيلها وتسجيلها وتوصيلها. لا يتطلب أي جهاز. الحقول غير معروفة على المنصة الحالية (غير لينوكس) أو غير محدودة (حد ذاكرة الحاوية). استخدام المجلد هو أفضل جهد: المدخلات المفقودة أو غير المقروءة محذوفة، والأهداف الرمزية غير متقاطعة. مقاييس الحاويات تستخدم التثبيت القياسي لـ /sys/fs/cgroup وتكون فارغة عند عدم توفرها. يتضمن وقت التحديث تهيئة العملية.




## OpenAPI

````yaml /ar/openapi.yml get /app/metrics
openapi: 3.0.0
info:
  title: واتسآب API متعدد الأجهزة
  version: 9.7.0
  description: >
    يتم استخدام هذا API لإرسال أي تطبيق عبر API.


    لوحة المعلومات هي مشروع منفصل (gowa-ui)؛ يقوم الخادم بتنزيل أحدث أصول
    الإصدار

    ويخدمه في `/` (أو يرجع لافتة JSON عندما

    APP_UI_ENABLED=false).


    تحديد الجهاز:

    - إرسال `X-Device-Id` على جميع مكالمات REST على نطاق الجهاز.

    - WebSocket: الاتصال بـ `/w?جهاز_id=<id>`.

    - مصادقة WebSocket (عندما يتم تمكين المصادقة الأساسية): المتصفحات لا يمكن
    تعيين
      رأس التفويض على اتصالات WebSocket ، كذلك اجتاز
      `&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: إرسال رسالة (نص/صورة/ملف/فيديو).
  - name: message
    description: التلاعب بالرسالة (إلغائ/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: >
        ذاكرة العملية وحاويتها (المجموعة v2, ثم v1), وقت وحدة المعالجة المركزية،
        وحجم المواد الثابتة/الوسائط والمخازن (المشي مخبأ لمدة دقيقة)، المساحة
        الحرة على مستوى الصوت ومتجر الجلسات وعدد الأجهزة التي تم تسجيلها
        وتسجيلها وتوصيلها. لا يتطلب أي جهاز. الحقول غير معروفة على المنصة
        الحالية (غير لينوكس) أو غير محدودة (حد ذاكرة الحاوية). استخدام المجلد هو
        أفضل جهد: المدخلات المفقودة أو غير المقروءة محذوفة، والأهداف الرمزية غير
        متقاطعة. مقاييس الحاويات تستخدم التثبيت القياسي لـ /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/ar/api-reference/metrics.md)
- [احصل على قائمة المحادثات](https://gowa-docs.mintlify.site/ar/api-reference/chat/احصل-على-قائمة-المحادثات.md)
- [الحصول على بيانات تعريف الخادم](https://gowa-docs.mintlify.site/ar/api-reference/app/الحصول-على-بيانات-تعريف-الخادم.md)
- [احصل على تقدم مزامنة الدردشة](https://gowa-docs.mintlify.site/ar/api-reference/chatwoot/احصل-على-تقدم-مزامنة-الدردشة.md)
- [احصل على تكوين دردشة الجهاز](https://gowa-docs.mintlify.site/ar/api-reference/chatwoot/احصل-على-تكوين-دردشة-الجهاز.md)


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