package com.hw.tdengine.service;

import com.hw.tdengine.api.domain.DeviceStatus;

import java.util.List;
import java.util.Map;

public interface IDeviceStatusService {

    /**
     * @param: DeviceStatus
     * @description 获取时间范围内每天的在线设备
     * @author xins
     * @date 2023-09-05 13:23
     * @return List<DeviceStatus>
     */
    public List<DeviceStatus> getOnlineDevicesGroupByDay(DeviceStatus queryDeviceStatus);

    /**
     * @return List<Map<String, Object>>
     * @param: DeviceStatus
     * @description 获取某个事件前最新的在线设备
     * @author xins
     * @date 2023-09-05 13:23
     */
    public List<Map<String, Object>> getLastOnlineDevices(DeviceStatus queryDeviceStatus);

    /**
     * @return List<Map<String, Object>>
     * @param: DeviceStatus
     * @description 获取设备状态信息列表
     * @author xins
     * @date 2023-09-05 13:23
     */
    public List<Map<String, Object>> getDeviceStatusList(DeviceStatus queryDeviceStatus);
}
