package com.microservices.mon.k8s.service;

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

import java.util.List;

public interface IK8sDashboardService {
    List<K8sNamespace> getNamespaceDetailList(boolean needPod, String search);

    List<K8sClusterNode> getClusterNodeList();

    List<String> getApplicationPodIdList(String kind, String namespace,String applicationName);

    K8sClusterStatus getClusterStatus();

    List<MetricCommonData> getClusterQps();

    List<ApplicationRequestCountData> getApplicationRequestCount();

    K8sPodContainerStatus getPodContainerStatus(String podName);

    K8sNodeStatus getNodeStatus(String nodeIp);

    List<ApplicationFunction> getApplicationFunction(String kind, String namespace, String applicationName, String podIpList);

    List<K8sNamespace> getK8sNamespaceList();

    List<MetricCommonData> getMetricCommonDataList(JSONObject metricResJson);

    JSONArray getSentinelAppList();
}
