package com.microservices.mon.k8s.service;

import com.alibaba.fastjson2.JSONObject;
import com.microservices.mon.k8s.domain.*;
import com.microservices.mon.k8s.domain.vo.PrometheusResultVo;

import java.util.Date;
import java.util.List;

/**
 * 运维监控Service异步接口
 */
public interface IMonCommonAsyncService {

    K8sClusterStatus getClusterStatus(String query);

    List<K8sNamespace> getNamespaceDetailList(boolean needPod, String search);

    List<K8sApplicationPod> getPodList();

    K8sPodContainerMetricOverview getPodStatus(String podName, Long step);

    List<K8SResourceUsage> getResourceUsageList(List<JSONObject> metricList, Date[] startAndEndDates, Long step);
}
