Add no data alarm processing.
This commit is contained in:
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
explicit CreateDynamicTagGroupResult(const std::string &payload);
|
||||
~CreateDynamicTagGroupResult();
|
||||
std::string getMessage()const;
|
||||
std::string getId()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -45,6 +46,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string id_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -39,22 +39,24 @@ namespace AlibabaCloud
|
||||
std::string escalationsInfoStatistics;
|
||||
std::string effectiveInterval;
|
||||
std::string escalationsInfoComparisonOperator;
|
||||
std::string noDataPolicy;
|
||||
std::string noEffectiveInterval;
|
||||
std::string emailSubject;
|
||||
int silenceTime;
|
||||
std::string metricName;
|
||||
int escalationsWarnTimes;
|
||||
std::string period;
|
||||
std::string compositeExpression;
|
||||
std::string escalationsWarnThreshold;
|
||||
std::string period;
|
||||
std::string escalationsCriticalStatistics;
|
||||
int escalationsInfoTimes;
|
||||
int escalationsCriticalTimes;
|
||||
std::string escalationsWarnStatistics;
|
||||
std::string escalationsInfoThreshold;
|
||||
std::string escalationsWarnStatistics;
|
||||
std::string _namespace;
|
||||
std::string interval;
|
||||
std::string category;
|
||||
std::string ruleId;
|
||||
std::string category;
|
||||
std::string escalationsCriticalComparisonOperator;
|
||||
std::string escalationsCriticalThreshold;
|
||||
std::string dimensions;
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
||||
std::string message;
|
||||
std::string ruleId;
|
||||
int code;
|
||||
std::string ruleName;
|
||||
bool success;
|
||||
std::string ruleName;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
explicit CreateMonitorGroupByResourceGroupIdResult(const std::string &payload);
|
||||
~CreateMonitorGroupByResourceGroupIdResult();
|
||||
std::string getMessage()const;
|
||||
long getId()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -45,6 +46,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
long id_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -34,6 +34,24 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Alarm
|
||||
{
|
||||
struct SendDetail
|
||||
{
|
||||
struct ChannelResult
|
||||
{
|
||||
struct Result
|
||||
{
|
||||
std::string requestId;
|
||||
std::vector<std::string> notifyTargetList;
|
||||
std::string code;
|
||||
std::string detail;
|
||||
bool success;
|
||||
};
|
||||
std::vector<ChannelResult::Result> resultList;
|
||||
std::string channel;
|
||||
};
|
||||
std::vector<ChannelResult> channelResultList;
|
||||
std::string resultCode;
|
||||
};
|
||||
struct Escalation
|
||||
{
|
||||
std::string expression;
|
||||
@@ -65,6 +83,7 @@ namespace AlibabaCloud
|
||||
std::string product;
|
||||
std::string metricName;
|
||||
std::vector<std::string> contactSMSList;
|
||||
SendDetail sendDetail;
|
||||
std::string ruleName;
|
||||
std::vector<std::string> contactGroups;
|
||||
std::vector<std::string> dingdingWebhookList;
|
||||
|
||||
@@ -37,7 +37,6 @@ namespace AlibabaCloud
|
||||
struct ConfigJson
|
||||
{
|
||||
std::string project;
|
||||
std::string as;
|
||||
std::string endpoint;
|
||||
std::string logstore;
|
||||
std::string ak;
|
||||
|
||||
@@ -55,8 +55,8 @@ namespace AlibabaCloud
|
||||
std::string _operator;
|
||||
std::string aggregate;
|
||||
};
|
||||
int notifyType;
|
||||
int silenceTime;
|
||||
int notifyType;
|
||||
int endTime;
|
||||
int startTime;
|
||||
std::string webHook;
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
std::string periods;
|
||||
std::string description;
|
||||
std::string dimensions;
|
||||
std::string _namespace;
|
||||
std::string labels;
|
||||
std::string _namespace;
|
||||
std::string unit;
|
||||
std::string statistics;
|
||||
};
|
||||
|
||||
@@ -64,23 +64,42 @@ namespace AlibabaCloud
|
||||
Info info;
|
||||
Warn warn;
|
||||
};
|
||||
struct CompositeExpression
|
||||
{
|
||||
struct ExpressionListItem
|
||||
{
|
||||
std::string metricName;
|
||||
std::string comparisonOperator;
|
||||
int period;
|
||||
std::string id;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
int times;
|
||||
std::string expressionRaw;
|
||||
std::string level;
|
||||
std::string expressionListJoin;
|
||||
std::vector<ExpressionListItem> expressionList;
|
||||
};
|
||||
std::string groupName;
|
||||
std::string noEffectiveInterval;
|
||||
int silenceTime;
|
||||
std::string contactGroups;
|
||||
std::string noEffectiveInterval;
|
||||
std::string groupBy;
|
||||
std::string mailSubject;
|
||||
std::string ruleId;
|
||||
std::string sourceType;
|
||||
std::string ruleId;
|
||||
std::string period;
|
||||
std::string dimensions;
|
||||
std::string _namespace;
|
||||
std::string effectiveInterval;
|
||||
std::string noDataPolicy;
|
||||
std::string alertState;
|
||||
std::string groupId;
|
||||
std::string metricName;
|
||||
Escalations escalations;
|
||||
bool enableState;
|
||||
CompositeExpression compositeExpression;
|
||||
std::string webhook;
|
||||
std::string resources;
|
||||
std::string ruleName;
|
||||
|
||||
@@ -93,6 +93,12 @@ namespace AlibabaCloud
|
||||
std::string instanceId;
|
||||
std::string suitInfo;
|
||||
};
|
||||
struct NAAM
|
||||
{
|
||||
std::string instanceId;
|
||||
std::string suitInfo;
|
||||
std::string effectTime;
|
||||
};
|
||||
SiteMonitorOperatorProbe siteMonitorOperatorProbe;
|
||||
std::string instanceId;
|
||||
LogMonitor logMonitor;
|
||||
@@ -103,6 +109,7 @@ namespace AlibabaCloud
|
||||
SiteMonitorTask siteMonitorTask;
|
||||
SMS sMS;
|
||||
Api api;
|
||||
NAAM nAAM;
|
||||
SiteMonitorEcsProbe siteMonitorEcsProbe;
|
||||
std::string expireTime;
|
||||
CustomMonitor customMonitor;
|
||||
|
||||
@@ -36,42 +36,45 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct OptionJson
|
||||
{
|
||||
std::string cookie;
|
||||
int ping_num;
|
||||
std::string ipv6_task;
|
||||
bool proxy_protocol;
|
||||
int ping_num;
|
||||
bool unfollow_redirect;
|
||||
long traceroute;
|
||||
float failure_rate;
|
||||
int port;
|
||||
std::string expect_value;
|
||||
std::string http_method;
|
||||
std::string response_content;
|
||||
long attempts;
|
||||
std::string dns_type;
|
||||
std::string protocol;
|
||||
std::string password;
|
||||
std::string cookie;
|
||||
bool enable_operator_dns;
|
||||
bool proxy_protocol;
|
||||
float failure_rate;
|
||||
int match_rule;
|
||||
std::string acceptable_response_code;
|
||||
std::string response_format;
|
||||
std::string expect_value;
|
||||
std::string http_method;
|
||||
long time_out;
|
||||
bool cert_verify;
|
||||
std::string header;
|
||||
std::string response_content;
|
||||
std::string username;
|
||||
int authentication;
|
||||
std::string request_content;
|
||||
std::string dns_server;
|
||||
std::string dns_type;
|
||||
std::string request_format;
|
||||
std::string password;
|
||||
};
|
||||
struct IspCity
|
||||
{
|
||||
std::string ispName;
|
||||
std::string isp;
|
||||
std::string cityName;
|
||||
std::string city;
|
||||
std::string cityName;
|
||||
};
|
||||
OptionJson optionJson;
|
||||
std::string taskId;
|
||||
std::string address;
|
||||
std::string endTime;
|
||||
std::string address;
|
||||
std::string taskName;
|
||||
std::string taskType;
|
||||
std::vector<IspCity> ispCities;
|
||||
@@ -82,8 +85,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string ruleId;
|
||||
std::string period;
|
||||
std::string evaluationCount;
|
||||
std::string period;
|
||||
std::string dimensions;
|
||||
std::string _namespace;
|
||||
std::string statistics;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct IspCity
|
||||
{
|
||||
std::string iPV4ProbeCount;
|
||||
std::string areazh_CN;
|
||||
std::string isp;
|
||||
std::string regionzh_CN;
|
||||
std::string regionen;
|
||||
@@ -45,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string ispNameen;
|
||||
std::string cityNamezh_CN;
|
||||
std::string aPIProbeCount;
|
||||
std::string areaen;
|
||||
std::string cityNameen;
|
||||
std::string countryzh_CN;
|
||||
std::string region;
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string cookie;
|
||||
int ping_num;
|
||||
bool enable_operator_dns;
|
||||
long traceroute;
|
||||
float failure_rate;
|
||||
int port;
|
||||
@@ -50,16 +51,18 @@ namespace AlibabaCloud
|
||||
std::string header;
|
||||
std::string response_content;
|
||||
std::string username;
|
||||
long attempts;
|
||||
int authentication;
|
||||
std::string request_content;
|
||||
std::string dns_server;
|
||||
std::string dns_type;
|
||||
std::string request_format;
|
||||
std::string protocol;
|
||||
std::string password;
|
||||
};
|
||||
std::string taskId;
|
||||
std::string address;
|
||||
std::string endTime;
|
||||
std::string address;
|
||||
OptionsJson optionsJson;
|
||||
std::string taskName;
|
||||
std::string taskType;
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setEffectiveInterval(const std::string& effectiveInterval);
|
||||
std::string getEscalationsInfoComparisonOperator()const;
|
||||
void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator);
|
||||
std::string getNoDataPolicy()const;
|
||||
void setNoDataPolicy(const std::string& noDataPolicy);
|
||||
std::string getNoEffectiveInterval()const;
|
||||
void setNoEffectiveInterval(const std::string& noEffectiveInterval);
|
||||
std::string getEmailSubject()const;
|
||||
@@ -57,6 +59,8 @@ namespace AlibabaCloud
|
||||
void setMetricName(const std::string& metricName);
|
||||
int getEscalationsWarnTimes()const;
|
||||
void setEscalationsWarnTimes(int escalationsWarnTimes);
|
||||
Struct getCompositeExpression()const;
|
||||
void setCompositeExpression(const Struct& compositeExpression);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getEscalationsWarnThreshold()const;
|
||||
@@ -99,11 +103,13 @@ namespace AlibabaCloud
|
||||
std::string escalationsInfoStatistics_;
|
||||
std::string effectiveInterval_;
|
||||
std::string escalationsInfoComparisonOperator_;
|
||||
std::string noDataPolicy_;
|
||||
std::string noEffectiveInterval_;
|
||||
std::string emailSubject_;
|
||||
int silenceTime_;
|
||||
std::string metricName_;
|
||||
int escalationsWarnTimes_;
|
||||
Struct compositeExpression_;
|
||||
std::string period_;
|
||||
std::string escalationsWarnThreshold_;
|
||||
std::string contactGroups_;
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setEffectiveInterval(const std::string& effectiveInterval);
|
||||
std::string getEscalationsInfoComparisonOperator()const;
|
||||
void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator);
|
||||
std::string getNoDataPolicy()const;
|
||||
void setNoDataPolicy(const std::string& noDataPolicy);
|
||||
std::string getNoEffectiveInterval()const;
|
||||
void setNoEffectiveInterval(const std::string& noEffectiveInterval);
|
||||
std::string getEmailSubject()const;
|
||||
@@ -57,6 +59,8 @@ namespace AlibabaCloud
|
||||
void setMetricName(const std::string& metricName);
|
||||
int getEscalationsWarnTimes()const;
|
||||
void setEscalationsWarnTimes(int escalationsWarnTimes);
|
||||
Struct getCompositeExpression()const;
|
||||
void setCompositeExpression(const Struct& compositeExpression);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getEscalationsWarnThreshold()const;
|
||||
@@ -65,12 +69,16 @@ namespace AlibabaCloud
|
||||
void setContactGroups(const std::string& contactGroups);
|
||||
std::string getEscalationsCriticalStatistics()const;
|
||||
void setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getResources()const;
|
||||
void setResources(const std::string& resources);
|
||||
int getEscalationsInfoTimes()const;
|
||||
void setEscalationsInfoTimes(int escalationsInfoTimes);
|
||||
std::string getGroupBy()const;
|
||||
void setGroupBy(const std::string& groupBy);
|
||||
std::string getGroupName()const;
|
||||
void setGroupName(const std::string& groupName);
|
||||
int getEscalationsCriticalTimes()const;
|
||||
void setEscalationsCriticalTimes(int escalationsCriticalTimes);
|
||||
std::string getEscalationsWarnStatistics()const;
|
||||
@@ -95,18 +103,22 @@ namespace AlibabaCloud
|
||||
std::string escalationsInfoStatistics_;
|
||||
std::string effectiveInterval_;
|
||||
std::string escalationsInfoComparisonOperator_;
|
||||
std::string noDataPolicy_;
|
||||
std::string noEffectiveInterval_;
|
||||
std::string emailSubject_;
|
||||
int silenceTime_;
|
||||
std::string metricName_;
|
||||
int escalationsWarnTimes_;
|
||||
Struct compositeExpression_;
|
||||
std::string period_;
|
||||
std::string escalationsWarnThreshold_;
|
||||
std::string contactGroups_;
|
||||
std::string escalationsCriticalStatistics_;
|
||||
std::string groupId_;
|
||||
std::string resources_;
|
||||
int escalationsInfoTimes_;
|
||||
std::string groupBy_;
|
||||
std::string groupName_;
|
||||
int escalationsCriticalTimes_;
|
||||
std::string escalationsWarnStatistics_;
|
||||
std::string escalationsInfoThreshold_;
|
||||
|
||||
@@ -39,20 +39,23 @@ namespace AlibabaCloud
|
||||
std::string escalationsInfoStatistics;
|
||||
std::string effectiveInterval;
|
||||
std::string escalationsInfoComparisonOperator;
|
||||
std::string noDataPolicy;
|
||||
std::string noEffectiveInterval;
|
||||
std::string emailSubject;
|
||||
int silenceTime;
|
||||
std::string metricName;
|
||||
int escalationsWarnTimes;
|
||||
std::string period;
|
||||
std::string compositeExpression;
|
||||
std::string escalationsWarnThreshold;
|
||||
std::string period;
|
||||
std::string contactGroups;
|
||||
std::string escalationsCriticalStatistics;
|
||||
std::string resources;
|
||||
std::string groupId;
|
||||
int escalationsInfoTimes;
|
||||
std::string resources;
|
||||
int escalationsCriticalTimes;
|
||||
std::string escalationsWarnStatistics;
|
||||
std::string escalationsInfoThreshold;
|
||||
std::string escalationsWarnStatistics;
|
||||
std::string _namespace;
|
||||
std::string interval;
|
||||
std::string ruleId;
|
||||
|
||||
Reference in New Issue
Block a user