Sfoglia il codice sorgente

Edit ListRetcodeApps.

sdk-team 5 anni fa
parent
commit
f3e060235c

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+2021-06-28 Version: 1.36.803
+- Edit ListRetcodeApps.
+- Edit SearchRetcodeAppByPage.
+
 2021-06-28 Version: 1.36.802
 - Support GetSQLReviewOptimizeDetail,ListSQLReviewOriginSQL Order API.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.802
+1.36.803

+ 3 - 0
arms/include/alibabacloud/arms/model/DescribeDispatchRuleResult.h

@@ -54,6 +54,7 @@ namespace AlibabaCloud
 						std::vector<std::string> groupingFields;
 						long groupWaitTime;
 						long groupId;
+						long repeatInterval;
 					};
 					struct NotifyRule
 					{
@@ -66,7 +67,9 @@ namespace AlibabaCloud
 						std::vector<std::string> notifyChannels;
 						std::vector<NotifyRule::NotifyObject> notifyObjects;
 					};
+					bool isRecover;
 					std::vector<GroupRule> groupRules;
+					std::string dispatchType;
 					std::string state;
 					long ruleId;
 					LabelMatchExpressionGrid labelMatchExpressionGrid;

+ 1 - 0
arms/include/alibabacloud/arms/model/ListRetcodeAppsResult.h

@@ -34,6 +34,7 @@ namespace AlibabaCloud
 			public:
 				struct RetcodeApp
 				{
+					std::string retcodeAppType;
 					long appId;
 					std::string pid;
 					std::string appName;

+ 1 - 0
arms/include/alibabacloud/arms/model/SearchAlertRulesResult.h

@@ -79,6 +79,7 @@ namespace AlibabaCloud
 							long noticeEndTime;
 						};
 						std::string status;
+						bool hostByAlertManager;
 						MetricParam metricParam;
 						int alertVersion;
 						long taskId;

+ 1 - 0
arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageResult.h

@@ -36,6 +36,7 @@ namespace AlibabaCloud
 				{
 					struct RetcodeApp
 					{
+						std::string retcodeAppType;
 						std::string type;
 						long appId;
 						std::string userId;

+ 6 - 0
arms/src/model/DescribeDispatchRuleResult.cc

@@ -46,6 +46,10 @@ void DescribeDispatchRuleResult::parse(const std::string &payload)
 		dispatchRule_.name = dispatchRuleNode["Name"].asString();
 	if(!dispatchRuleNode["State"].isNull())
 		dispatchRule_.state = dispatchRuleNode["State"].asString();
+	if(!dispatchRuleNode["DispatchType"].isNull())
+		dispatchRule_.dispatchType = dispatchRuleNode["DispatchType"].asString();
+	if(!dispatchRuleNode["IsRecover"].isNull())
+		dispatchRule_.isRecover = dispatchRuleNode["IsRecover"].asString() == "true";
 	auto allGroupRulesNode = dispatchRuleNode["GroupRules"]["GroupRule"];
 	for (auto dispatchRuleNodeGroupRulesGroupRule : allGroupRulesNode)
 	{
@@ -56,6 +60,8 @@ void DescribeDispatchRuleResult::parse(const std::string &payload)
 			groupRuleObject.groupWaitTime = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupWaitTime"].asString());
 		if(!dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].isNull())
 			groupRuleObject.groupInterval = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].asString());
+		if(!dispatchRuleNodeGroupRulesGroupRule["RepeatInterval"].isNull())
+			groupRuleObject.repeatInterval = std::stol(dispatchRuleNodeGroupRulesGroupRule["RepeatInterval"].asString());
 		auto allGroupingFields = value["GroupingFields"]["GroupingField"];
 		for (auto value : allGroupingFields)
 			groupRuleObject.groupingFields.push_back(value.asString());

+ 2 - 0
arms/src/model/ListRetcodeAppsResult.cc

@@ -49,6 +49,8 @@ void ListRetcodeAppsResult::parse(const std::string &payload)
 			retcodeAppsObject.pid = valueRetcodeAppsRetcodeApp["Pid"].asString();
 		if(!valueRetcodeAppsRetcodeApp["AppName"].isNull())
 			retcodeAppsObject.appName = valueRetcodeAppsRetcodeApp["AppName"].asString();
+		if(!valueRetcodeAppsRetcodeApp["RetcodeAppType"].isNull())
+			retcodeAppsObject.retcodeAppType = valueRetcodeAppsRetcodeApp["RetcodeAppType"].asString();
 		retcodeApps_.push_back(retcodeAppsObject);
 	}
 

+ 2 - 0
arms/src/model/SearchAlertRulesResult.cc

@@ -82,6 +82,8 @@ void SearchAlertRulesResult::parse(const std::string &payload)
 			alertRuleEntityObject.title = pageBeanNodeAlertRulesAlertRuleEntity["Title"].asString();
 		if(!pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIds"].isNull())
 			alertRuleEntityObject.contactGroupIds = pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIds"].asString();
+		if(!pageBeanNodeAlertRulesAlertRuleEntity["HostByAlertManager"].isNull())
+			alertRuleEntityObject.hostByAlertManager = pageBeanNodeAlertRulesAlertRuleEntity["HostByAlertManager"].asString() == "true";
 		auto alarmContextNode = value["AlarmContext"];
 		if(!alarmContextNode["AlarmContentTemplate"].isNull())
 			alertRuleEntityObject.alarmContext.alarmContentTemplate = alarmContextNode["AlarmContentTemplate"].asString();

+ 2 - 0
arms/src/model/SearchRetcodeAppByPageResult.cc

@@ -66,6 +66,8 @@ void SearchRetcodeAppByPageResult::parse(const std::string &payload)
 			retcodeAppObject.createTime = std::stol(pageBeanNodeRetcodeAppsRetcodeApp["CreateTime"].asString());
 		if(!pageBeanNodeRetcodeAppsRetcodeApp["UpdateTime"].isNull())
 			retcodeAppObject.updateTime = std::stol(pageBeanNodeRetcodeAppsRetcodeApp["UpdateTime"].asString());
+		if(!pageBeanNodeRetcodeAppsRetcodeApp["RetcodeAppType"].isNull())
+			retcodeAppObject.retcodeAppType = pageBeanNodeRetcodeAppsRetcodeApp["RetcodeAppType"].asString();
 		pageBean_.retcodeApps.push_back(retcodeAppObject);
 	}