package com.arms.api.admin.indexadmin.service;

import com.arms.api.admin.indexadmin.model.vo.IndexStatusSumVO;
import com.arms.api.admin.almissue.service.AlmIssueIndexAdminService;
import com.arms.api.admin.fluentd.service.FluentdIndexAdminService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@AllArgsConstructor
@Service
public class IndexAdminServiceImpl implements IndexAdminService {

    private final AlmIssueIndexAdminService almIssueIndexAdminService;

    private final FluentdIndexAdminService fluentdIndexAdminService;

    @Override
    public List<IndexStatusSumVO> esIndexSumList() {
        return List.of(almIssueIndexAdminService.almIssueIndexSumList()
                ,fluentdIndexAdminService.fluentDIndexSumList());
    }
}
