eis/eqpalg/algs/roller.h
Huamonarch 224c2c45c4 Remove irrelevant comments from eqpalg source files
Cleaned 66 files across all eqpalg subdirectories:
- Removed commented-out dead code
- Removed redundant Chinese inline comments that restate variable/function names
- Removed trailing ///< annotations on self-explanatory fields
- Removed namespace closing comments
- Preserved all file headers, Doxygen documentation, and logic explanations
- No code changes — only comment removal
2026-05-09 13:30:09 +08:00

63 lines
1.4 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
/**
* @file roller.h
* @brief 负载平衡,离群检测
* @author your name (you@domain.com)
* @version 0.1
* @date 2023-12-08
*
* Copyright: Baosight Co. Ltd.
* DO NOT COPY/USE WITHOUT PERMISSION
*
*/
#include <eqpalg/alg_base.h>
#include <eqpalg/define/public.h>
#include <array>
#include <map>
using std::string;
class Roller :public AlgBase {
public:
Roller(const string name, const mix_cc::json& rule_json, const string ruleId);
virtual ~Roller();
public:
int init() override;
AlarmInfo exec_mon() override;
std::vector<AlarmInfo> exec_task(mix_cc::time_range_t time_range) override;
const array<string, 2> BIG_SMALL = {"过大", "过小"};
private:
TimeDur interval_time_;
std::string error_content_;
double error_diff_;
std::string error_name_;
std::map<int, double> mmean_tags_;
std::vector<int> comparison_tags_;
std::map<int, int> tags_errors_;
std::array<double, 3> min_max_sum_;
int n_tags_;
private:
/**
* @brief 查询mmean_tags_ 调用ihd均值查询API
* @return int
*/
int refresh_mmean_tags_ihd();
/**
* @brief 打印载入信息
*/
void print_load_content();
/**
* @brief
* @return int 0:本次查找-没有异常 -1:本次查找-查找完成
*/
int exec_mon_base();
/**
* @brief 从vector中获取min max sum存入
* @param comparison_tags My Param doc
* @return int
*/
int minmaxsum_get(std::vector<int> comparison_tags);
};