{
  "_schema_version": "3.0.0",
  "_description": "راهنمای وضعیت ۲۰ چراغ نشانگر - الگوی ردیفی یکسان",
  "_pattern": "ردیف ۱: همه سبز | ردیف ۲: همه زرد | ردیف ۳: همه قرمز | ردیف ۴: ترکیبی",
  "meta": {
    "updated": "2025-08-05 20:00:00",
    "version": "4.0.0",
    "total_lights": 20,
    "refresh_interval_seconds": 30
  },
  "lights": [
    {
      "id": 1,
      "label": "سرور اصلی",
      "status": 1,
      "group": "زیرساخت - ردیف ۱ (سبز)",
      "description": "ردیف اول: همه چراغ‌ها فعال و سالم",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "443",
        "location": "دیتاسنتر تهران",
        "admin_contact": "مدیر فنی - داخلی ۱۰۱",
        "last_maintenance": "2025-08-05"
      },
      "metrics": {
        "response_time_ms": "45",
        "uptime_percent": "99.9",
        "error_count": "0",
        "throughput": "1200 req/min"
      },
      "notes": "ردیف ۱: وضعیت عالی - همه سیستم‌ها فعال",
      "tags": ["ردیف۱", "سبز", "فعال", "سرور"],
      "custom_fields": {
        "row": 1,
        "color": "green",
        "status_text": "فعال",
        "priority": "بالا"
      }
    },
    {
      "id": 2,
      "label": "دیتابیس اصلی",
      "status": 1,
      "group": "زیرساخت - ردیف ۱ (سبز)",
      "description": "ردیف اول: دیتابیس اصلی فعال و پاسخگو",
      "details": {
        "ip_address": "localhost",
        "port": "3306",
        "location": "سرور اصلی",
        "admin_contact": "مدیر دیتابیس - داخلی ۱۰۲",
        "last_maintenance": "2025-08-05"
      },
      "metrics": {
        "response_time_ms": "12",
        "uptime_percent": "99.9",
        "error_count": "0",
        "throughput": "4500 query/min"
      },
      "notes": "ردیف ۱: عملکرد بهینه - بدون خطا",
      "tags": ["ردیف۱", "سبز", "فعال", "دیتابیس"],
      "custom_fields": {
        "row": 1,
        "color": "green",
        "status_text": "فعال",
        "connections": 45
      }
    },
    {
      "id": 3,
      "label": "فایروال",
      "status": 1,
      "group": "امنیت - ردیف ۱ (سبز)",
      "description": "ردیف اول: دیوار آتش فعال و بروز",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "0",
        "location": "لبه شبکه",
        "admin_contact": "مسئول امنیت - داخلی ۱۰۳",
        "last_maintenance": "2025-08-05"
      },
      "metrics": {
        "response_time_ms": "1",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "نامحدود"
      },
      "notes": "ردیف ۱: امنیت کامل - بدون حمله موفق",
      "tags": ["ردیف۱", "سبز", "فعال", "امنیت"],
      "custom_fields": {
        "row": 1,
        "color": "green",
        "status_text": "فعال",
        "blocked_attacks": 12
      }
    },
    {
      "id": 4,
      "label": "SSL Certificate",
      "status": 1,
      "group": "امنیت - ردیف ۱ (سبز)",
      "description": "ردیف اول: گواهی امنیتی معتبر",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "443",
        "location": "سرور اصلی",
        "admin_contact": "مدیر امنیت - داخلی ۱۰۳",
        "last_maintenance": "2025-08-01"
      },
      "metrics": {
        "response_time_ms": "5",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "N/A"
      },
      "notes": "ردیف ۱: گواهی معتبر تا شهریور ۱۴۰۴",
      "tags": ["ردیف۱", "سبز", "فعال", "SSL"],
      "custom_fields": {
        "row": 1,
        "color": "green",
        "status_text": "فعال",
        "expiry": "2025-09-06"
      }
    },
    {
      "id": 5,
      "label": "DNS Resolver",
      "status": 1,
      "group": "زیرساخت - ردیف ۱ (سبز)",
      "description": "ردیف اول: تحلیل DNS سریع و پایدار",
      "details": {
        "ip_address": "1.1.1.1",
        "port": "53",
        "location": "Cloudflare Global",
        "admin_contact": "مدیر دامنه - داخلی ۲۰۴",
        "last_maintenance": "2025-08-01"
      },
      "metrics": {
        "response_time_ms": "8",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "N/A"
      },
      "notes": "ردیف ۱: DNS بدون قطعی - پاسخ زیر ۱۰ms",
      "tags": ["ردیف۱", "سبز", "فعال", "DNS"],
      "custom_fields": {
        "row": 1,
        "color": "green",
        "status_text": "فعال",
        "provider": "Cloudflare"
      }
    },
    {
      "id": 6,
      "label": "CDN Edge",
      "status": 2,
      "group": "زیرساخت - ردیف ۲ (زرد)",
      "description": "ردیف دوم: گره شیراز با تأخیر - نیاز به بررسی",
      "details": {
        "ip_address": "185.143.234.121",
        "port": "443",
        "location": "چندگانه (تهران، مشهد، شیراز، تبریز)",
        "admin_contact": "مدیر شبکه - داخلی ۱۰۴",
        "last_maintenance": "2025-07-20"
      },
      "metrics": {
        "response_time_ms": "85",
        "uptime_percent": "97.2",
        "error_count": "3",
        "throughput": "45 GB/day"
      },
      "notes": "ردیف ۲: گره شیراز با تأخیر ۲۰۰ms - در حال بررسی",
      "tags": ["ردیف۲", "زرد", "هشدار", "CDN"],
      "custom_fields": {
        "row": 2,
        "color": "yellow",
        "status_text": "هشدار",
        "problem_node": "Shiraz-03"
      }
    },
    {
      "id": 7,
      "label": "پهنای باند",
      "status": 2,
      "group": "عملکرد - ردیف ۲ (زرد)",
      "description": "ردیف دوم: مصرف بالای پهنای باند در ساعات اوج",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "0",
        "location": "ارتباطات زیرساخت",
        "admin_contact": "مدیر شبکه - داخلی ۱۰۴",
        "last_maintenance": "2025-07-01"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "99.5",
        "error_count": "0",
        "throughput": "78 Mbps"
      },
      "notes": "ردیف ۲: مصرف ۷۸٪ - نزدیک به سقف ۱۰۰ Mbps",
      "tags": ["ردیف۲", "زرد", "هشدار", "پهنای باند"],
      "custom_fields": {
        "row": 2,
        "color": "yellow",
        "status_text": "هشدار",
        "usage_percent": 78
      }
    },
    {
      "id": 8,
      "label": "CPU Load",
      "status": 2,
      "group": "عملکرد - ردیف ۲ (زرد)",
      "description": "ردیف دوم: بار پردازنده بالاتر از حد نرمال",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "0",
        "location": "سرور اصلی",
        "admin_contact": "مدیر سیستم - داخلی ۱۰۵",
        "last_maintenance": "2025-07-15"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "72% utilization"
      },
      "notes": "ردیف ۲: مصرف CPU بالای ۷۰٪ - بررسی فرآیندها",
      "tags": ["ردیف۲", "زرد", "هشدار", "CPU"],
      "custom_fields": {
        "row": 2,
        "color": "yellow",
        "status_text": "هشدار",
        "temp_celsius": 58
      }
    },
    {
      "id": 9,
      "label": "Disk Space",
      "status": 2,
      "group": "عملکرد - ردیف ۲ (زرد)",
      "description": "ردیف دوم: فضای ذخیره‌سازی رو به اتمام",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "0",
        "location": "سرور اصلی",
        "admin_contact": "مدیر سیستم - داخلی ۱۰۵",
        "last_maintenance": "2025-06-01"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "420 GB used"
      },
      "notes": "ردیف ۲: ۸۴٪ پر - ۸۰ گیگابایت آزاد",
      "tags": ["ردیف۲", "زرد", "هشدار", "Disk"],
      "custom_fields": {
        "row": 2,
        "color": "yellow",
        "status_text": "هشدار",
        "free_gb": 80
      }
    },
    {
      "id": 10,
      "label": "Backup System",
      "status": 2,
      "group": "امنیت - ردیف ۲ (زرد)",
      "description": "ردیف دوم: تأخیر در بکاپ‌گیری امروز",
      "details": {
        "ip_address": "backup.local",
        "port": "0",
        "location": "ذخیره‌سازی ابری",
        "admin_contact": "مدیر سیستم - داخلی ۱۰۵",
        "last_maintenance": "2025-08-04"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "96",
        "error_count": "2",
        "throughput": "8 GB/day"
      },
      "notes": "ردیف ۲: بکاپ امروز با ۲ ساعت تأخیر انجام شد",
      "tags": ["ردیف۲", "زرد", "هشدار", "بکاپ"],
      "custom_fields": {
        "row": 2,
        "color": "yellow",
        "status_text": "هشدار",
        "delay_hours": 2
      }
    },
    {
      "id": 11,
      "label": "API Gateway",
      "status": 3,
      "group": "سرویس‌ها - ردیف ۳ (قرمز)",
      "description": "ردیف سوم: API از دسترس خارج شده",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "8080",
        "location": "سرور اصلی",
        "admin_contact": "توسعه‌دهنده ارشد - داخلی ۲۰۱",
        "last_maintenance": "2025-08-04"
      },
      "metrics": {
        "response_time_ms": "5000",
        "uptime_percent": "72",
        "error_count": "89",
        "throughput": "30 req/min"
      },
      "notes": "ردیف ۳: خطای ۵۰۰ - نیاز به راه‌اندازی مجدد",
      "tags": ["ردیف۳", "قرمز", "خطا", "API", "فوری"],
      "custom_fields": {
        "row": 3,
        "color": "red",
        "status_text": "خطا",
        "error_code": 500,
        "downtime_minutes": 45
      }
    },
    {
      "id": 12,
      "label": "FTP Server",
      "status": 3,
      "group": "سرویس‌ها - ردیف ۳ (قرمز)",
      "description": "ردیف سوم: سرویس FTP کاملاً قطع است",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "21",
        "location": "سرور اصلی",
        "admin_contact": "مدیر سیستم - داخلی ۱۰۵",
        "last_maintenance": "2025-08-04"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "55",
        "error_count": "23",
        "throughput": "0"
      },
      "notes": "ردیف ۳: احراز هویت ناموفق - بررسی رمز عبور",
      "tags": ["ردیف۳", "قرمز", "خطا", "FTP", "فوری"],
      "custom_fields": {
        "row": 3,
        "color": "red",
        "status_text": "خطا",
        "last_success": "2025-08-03"
      }
    },
    {
      "id": 13,
      "label": "Logger Service",
      "status": 3,
      "group": "پردازش - ردیف ۳ (قرمز)",
      "description": "ردیف سوم: سیستم لاگ از کار افتاده",
      "details": {
        "ip_address": "localhost",
        "port": "0",
        "location": "سرور اصلی",
        "admin_contact": "مدیر سیستم - داخلی ۱۰۵",
        "last_maintenance": "2025-08-05"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "40",
        "error_count": "34",
        "throughput": "0"
      },
      "notes": "ردیف ۳: دیسک پر شده - لاگ‌ها نوشته نمی‌شوند",
      "tags": ["ردیف۳", "قرمز", "خطا", "Logger", "فوری"],
      "custom_fields": {
        "row": 3,
        "color": "red",
        "status_text": "خطا",
        "disk_usage": "100%"
      }
    },
    {
      "id": 14,
      "label": "Email Service",
      "status": 3,
      "group": "سرویس‌ها - ردیف ۳ (قرمز)",
      "description": "ردیف سوم: ارسال ایمیل مختل شده",
      "details": {
        "ip_address": "mail.nassabeh.ir",
        "port": "587",
        "location": "سرور ایمیل",
        "admin_contact": "مدیر ارتباطات - داخلی ۲۰۳",
        "last_maintenance": "2025-08-01"
      },
      "metrics": {
        "response_time_ms": "3500",
        "uptime_percent": "68",
        "error_count": "56",
        "throughput": "50/day"
      },
      "notes": "ردیف ۳: صف ایمیل پر شده - ۲۴۰ ایمیل معوق",
      "tags": ["ردیف۳", "قرمز", "خطا", "Email", "فوری"],
      "custom_fields": {
        "row": 3,
        "color": "red",
        "status_text": "خطا",
        "queue_size": 240
      }
    },
    {
      "id": 15,
      "label": "Cron Scheduler",
      "status": 3,
      "group": "پردازش - ردیف ۳ (قرمز)",
      "description": "ردیف سوم: وظایف زمان‌بندی متوقف شده",
      "details": {
        "ip_address": "localhost",
        "port": "0",
        "location": "سرور اصلی",
        "admin_contact": "مدیر سیستم - داخلی ۱۰۵",
        "last_maintenance": "2025-08-04"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "50",
        "error_count": "15",
        "throughput": "5/15 jobs"
      },
      "notes": "ردیف ۳: ۱۰ وظیفه از ۱۵ وظیفه با خطا متوقف شده",
      "tags": ["ردیف۳", "قرمز", "خطا", "Cron", "فوری"],
      "custom_fields": {
        "row": 3,
        "color": "red",
        "status_text": "خطا",
        "failed_jobs": 10
      }
    },
    {
      "id": 16,
      "label": "RSS Feed",
      "status": 1,
      "group": "محتوا - ردیف ۴ (سبز)",
      "description": "ردیف چهارم: فید پادکست فعال و بروز",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "443",
        "location": "سرور اصلی",
        "admin_contact": "مدیر محتوا - داخلی ۲۰۲",
        "last_maintenance": "2025-08-05"
      },
      "metrics": {
        "response_time_ms": "30",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "2300 subscriber"
      },
      "notes": "ردیف ۴: فید Podcast 2.0 فعال - ۴۵۰ قسمت",
      "tags": ["ردیف۴", "سبز", "فعال", "RSS", "پادکست"],
      "custom_fields": {
        "row": 4,
        "color": "green",
        "status_text": "فعال",
        "episodes": 450
      }
    },
    {
      "id": 17,
      "label": "RAM Usage",
      "status": 1,
      "group": "عملکرد - ردیف ۴ (سبز)",
      "description": "ردیف چهارم: مصرف حافظه در حد نرمال",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "0",
        "location": "سرور اصلی",
        "admin_contact": "مدیر سیستم - داخلی ۱۰۵",
        "last_maintenance": "2025-07-15"
      },
      "metrics": {
        "response_time_ms": "0",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "14 GB used"
      },
      "notes": "ردیف ۴: ۴۵٪ مصرف - ۱۸ گیگابایت آزاد",
      "tags": ["ردیف۴", "سبز", "فعال", "RAM"],
      "custom_fields": {
        "row": 4,
        "color": "green",
        "status_text": "فعال",
        "free_gb": 18
      }
    },
    {
      "id": 18,
      "label": "SSH Access",
      "status": 1,
      "group": "امنیت - ردیف ۴ (سبز)",
      "description": "ردیف چهارم: دسترسی امن و پایدار",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "2222",
        "location": "سرور اصلی",
        "admin_contact": "مدیر امنیت - داخلی ۱۰۳",
        "last_maintenance": "2025-08-01"
      },
      "metrics": {
        "response_time_ms": "8",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "2 active sessions"
      },
      "notes": "ردیف ۴: احراز هویت با کلید عمومی - امن",
      "tags": ["ردیف۴", "سبز", "فعال", "SSH"],
      "custom_fields": {
        "row": 4,
        "color": "green",
        "status_text": "فعال",
        "auth_method": "Public Key"
      }
    },
    {
      "id": 19,
      "label": "WebSocket",
      "status": 1,
      "group": "سرویس‌ها - ردیف ۴ (سبز)",
      "description": "ردیف چهارم: اتصالات بلادرنگ فعال",
      "details": {
        "ip_address": "185.143.234.120",
        "port": "8080",
        "location": "سرور اصلی",
        "admin_contact": "توسعه‌دهنده ارشد - داخلی ۲۰۱",
        "last_maintenance": "2025-08-01"
      },
      "metrics": {
        "response_time_ms": "5",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "52 connections"
      },
      "notes": "ردیف ۴: ۵۲ اتصال فعال - بدون قطعی",
      "tags": ["ردیف۴", "سبز", "فعال", "WebSocket"],
      "custom_fields": {
        "row": 4,
        "color": "green",
        "status_text": "فعال",
        "connections": 52
      }
    },
    {
      "id": 20,
      "label": "Cache Layer",
      "status": 1,
      "group": "عملکرد - ردیف ۴ (سبز)",
      "description": "ردیف چهارم: کش Redis با کارایی عالی",
      "details": {
        "ip_address": "localhost",
        "port": "6379",
        "location": "سرور اصلی",
        "admin_contact": "توسعه‌دهنده ارشد - داخلی ۲۰۱",
        "last_maintenance": "2025-08-01"
      },
      "metrics": {
        "response_time_ms": "1",
        "uptime_percent": "100",
        "error_count": "0",
        "throughput": "9200 ops/sec"
      },
      "notes": "ردیف ۴: hit rate ۹۶٪ - عملکرد عالی",
      "tags": ["ردیف۴", "سبز", "فعال", "Cache", "Redis"],
      "custom_fields": {
        "row": 4,
        "color": "green",
        "status_text": "فعال",
        "hit_rate": 96
      }
    }
  ]
}