package com.gcsc.connection.statistics.dto;

import java.util.List;

/**
 * 테넌트별 통계 응답 DTO
 */
public record TenantStatsResponse(
    List<TenantRequestStats> tenantStats,
    List<DailyTenantTrend> dailyTrend,
    List<TenantApiKeyStats> apiKeyStats
) {

    public record TenantRequestStats(
        Long tenantId,
        String tenantName,
        long totalRequests,
        long activeUsers,
        double successRate,
        double avgResponseTime
    ) {}

    public record DailyTenantTrend(
        String date,
        String tenantName,
        long count
    ) {}

    public record TenantApiKeyStats(
        String tenantName,
        long totalKeys,
        long activeKeys
    ) {}
}
