using System;
using System.Text.Json;

namespace OpsDeskPro;

internal static class CliDemo
{
    public static string BuildJson()
    {
        var payload = new
        {
            app = "opsdesk-career-suite-dotnet",
            status = "ok",
            generatedAt = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
            modules = new[]
            {
                "Audit Perangkat",
                "Pemeriksaan Jaringan",
                "Manajemen Ticket",
                "Inventaris Aset",
                "Role Match",
                "Interview Guide"
            },
            metrics = new
            {
                tickets = 4,
                openTickets = 2,
                assets = 5,
                reachableHosts = 2
            },
            note = "Mode CLI aktif. Gunakan open.ps1 untuk membuka UI WinForms penuh."
        };

        return JsonSerializer.Serialize(payload, new JsonSerializerOptions
        {
            WriteIndented = true
        });
    }
}
