31 lines
772 B
C++
31 lines
772 B
C++
/**
|
|
* @file mix_cc/ihyper_db/get_tag_stats.h
|
|
* @brief 获取tag统计数据
|
|
* @author Cat (null.null.null@qq.com)
|
|
* @version 0.1
|
|
* @date 2021-06-14
|
|
*
|
|
* Company: Baosight Co. Ltd.
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|
*
|
|
*/
|
|
#pragma once
|
|
#include "mix_cc/ihyper_db/read_tag_info.h"
|
|
#include "mix_cc/ihyper_db/utility.h"
|
|
#include "mix_cc/fp.h"
|
|
#include <string>
|
|
|
|
namespace mix_cc {
|
|
namespace ihd {
|
|
/**
|
|
* @brief 获取tag的统计数据
|
|
* @param tag_name tag点名称
|
|
* @param time_range 时间范围
|
|
* @param hd3_stats_type 统计类型
|
|
* @return double
|
|
*/
|
|
maybe<double> read_data_stats_maybe(const std::string& tag_name, time_range_t time_range,
|
|
HD3_STATS_TYPE hd3_stats_type);
|
|
} // namespace ihd
|
|
} // namespace mix_cc
|