TopicThrottledMetricsDao.java 1.0 KB
Newer Older
Z
zengqiao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
package com.xiaojukeji.kafka.manager.dao;

import com.xiaojukeji.kafka.manager.common.entity.pojo.*;

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

/**
 * @author zhongyuankai
 * @date 20/4/3
 */
public interface TopicThrottledMetricsDao {

    /**
     * 批量插入限流信息
     */
    int insertBatch(List<TopicThrottledMetricsDO> topicThrottleDOList);

    /**
     * 查询topic限流历史信息
     */
    List<TopicThrottledMetricsDO> getTopicThrottle(long clusterId,
                                                   String topicName,
                                                   String appId,
                                                   Date startTime,
                                                   Date endTime);

    /**
     * 查询appId限流历史
     */
    List<TopicThrottledMetricsDO> getAppIdThrottle(long clusterId, String appId, Date startTime, Date endTime);

    List<TopicThrottledMetricsDO> getLatestTopicThrottledMetrics(Long clusterId, Date afterTime);
Z
zengqiao 已提交
34

Z
zengqiao 已提交
35
    int deleteBeforeTime(Date endTime, Integer limitSize);
Z
zengqiao 已提交
36
}