Fix the return SDK of describealertloglist API.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-07-21 Version: 1.36.822
|
||||
- Fix the return SDK of describealertloglist API.
|
||||
|
||||
2021-07-21 Version: 1.36.821
|
||||
- Support HealthCheckMethod for HTTP and HTTPS listener.
|
||||
|
||||
|
||||
@@ -50,6 +50,12 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct WebhookListItem
|
||||
{
|
||||
std::string message;
|
||||
std::string code;
|
||||
std::string url;
|
||||
};
|
||||
std::string groupName;
|
||||
std::vector<std::string> contactALIIWWList;
|
||||
std::string message;
|
||||
@@ -63,8 +69,10 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> contactGroups;
|
||||
std::vector<std::string> dingdingWebhookList;
|
||||
std::string instanceId;
|
||||
std::string blackListName;
|
||||
std::vector<Alarm::DimensionsItem> dimensions;
|
||||
std::string levelChange;
|
||||
std::string blackListUUID;
|
||||
std::vector<std::string> contactOnCallList;
|
||||
std::string _namespace;
|
||||
std::vector<std::string> contactDingList;
|
||||
@@ -73,7 +81,8 @@ namespace AlibabaCloud
|
||||
std::string alertTime;
|
||||
std::string groupId;
|
||||
std::string instanceName;
|
||||
std::vector<std::string> webhookList;
|
||||
std::vector<Alarm::WebhookListItem> webhookList;
|
||||
std::string blackListDetail;
|
||||
std::vector<std::string> contactMailList;
|
||||
std::string level;
|
||||
};
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setPage(int page);
|
||||
std::string getRuleId()const;
|
||||
void setRuleId(const std::string& ruleId);
|
||||
std::string getDimensions()const;
|
||||
void setDimensions(const std::string& dimensions);
|
||||
|
||||
private:
|
||||
std::string groupId_;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string _namespace_;
|
||||
int page_;
|
||||
std::string ruleId_;
|
||||
std::string dimensions_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,23 @@ namespace AlibabaCloud
|
||||
DescribeDynamicTagRuleListRequest();
|
||||
~DescribeDynamicTagRuleListRequest();
|
||||
|
||||
std::string getTagValue()const;
|
||||
void setTagValue(const std::string& tagValue);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
std::string getTagKey()const;
|
||||
void setTagKey(const std::string& tagKey);
|
||||
std::string getTagRegionId()const;
|
||||
void setTagRegionId(const std::string& tagRegionId);
|
||||
|
||||
private:
|
||||
std::string tagValue_;
|
||||
std::string pageNumber_;
|
||||
std::string pageSize_;
|
||||
std::string tagKey_;
|
||||
std::string tagRegionId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -72,9 +72,12 @@ namespace AlibabaCloud
|
||||
std::string selector;
|
||||
};
|
||||
std::vector<AlertTemplate> alertTemplates;
|
||||
std::string hostAvailabilityTemplates;
|
||||
std::string description;
|
||||
std::string systemEventTemplates;
|
||||
std::string restVersion;
|
||||
std::string templateId;
|
||||
std::string processMonitorTemplates;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
@@ -53,10 +53,14 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getGroupFounderTagKey()const;
|
||||
void setGroupFounderTagKey(const std::string& groupFounderTagKey);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getGroupFounderTagValue()const;
|
||||
void setGroupFounderTagValue(const std::string& groupFounderTagValue);
|
||||
std::string getKeyword()const;
|
||||
void setKeyword(const std::string& keyword);
|
||||
std::string getGroupId()const;
|
||||
@@ -75,8 +79,10 @@ namespace AlibabaCloud
|
||||
std::string type_;
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
std::string groupFounderTagKey_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string groupFounderTagValue_;
|
||||
std::string keyword_;
|
||||
std::string groupId_;
|
||||
std::string groupName_;
|
||||
|
||||
@@ -38,14 +38,19 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string cookie;
|
||||
int ping_num;
|
||||
std::string ipv6_task;
|
||||
bool proxy_protocol;
|
||||
bool unfollow_redirect;
|
||||
long traceroute;
|
||||
float failure_rate;
|
||||
int port;
|
||||
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;
|
||||
|
||||
@@ -73,6 +73,12 @@ void DescribeAlertLogListResult::parse(const std::string &payload)
|
||||
alertLogListObject.alertTime = valueAlertLogListAlarm["AlertTime"].asString();
|
||||
if(!valueAlertLogListAlarm["Message"].isNull())
|
||||
alertLogListObject.message = valueAlertLogListAlarm["Message"].asString();
|
||||
if(!valueAlertLogListAlarm["BlackListUUID"].isNull())
|
||||
alertLogListObject.blackListUUID = valueAlertLogListAlarm["BlackListUUID"].asString();
|
||||
if(!valueAlertLogListAlarm["BlackListName"].isNull())
|
||||
alertLogListObject.blackListName = valueAlertLogListAlarm["BlackListName"].asString();
|
||||
if(!valueAlertLogListAlarm["BlackListDetail"].isNull())
|
||||
alertLogListObject.blackListDetail = valueAlertLogListAlarm["BlackListDetail"].asString();
|
||||
auto allExtendedInfoNode = valueAlertLogListAlarm["ExtendedInfo"]["ExtInfo"];
|
||||
for (auto valueAlertLogListAlarmExtendedInfoExtInfo : allExtendedInfoNode)
|
||||
{
|
||||
@@ -93,6 +99,18 @@ void DescribeAlertLogListResult::parse(const std::string &payload)
|
||||
dimensionsObject.value = valueAlertLogListAlarmDimensionsDimensionsItem["Value"].asString();
|
||||
alertLogListObject.dimensions.push_back(dimensionsObject);
|
||||
}
|
||||
auto allWebhookListNode = valueAlertLogListAlarm["WebhookList"]["WebhookListItem"];
|
||||
for (auto valueAlertLogListAlarmWebhookListWebhookListItem : allWebhookListNode)
|
||||
{
|
||||
Alarm::WebhookListItem webhookListObject;
|
||||
if(!valueAlertLogListAlarmWebhookListWebhookListItem["url"].isNull())
|
||||
webhookListObject.url = valueAlertLogListAlarmWebhookListWebhookListItem["url"].asString();
|
||||
if(!valueAlertLogListAlarmWebhookListWebhookListItem["code"].isNull())
|
||||
webhookListObject.code = valueAlertLogListAlarmWebhookListWebhookListItem["code"].asString();
|
||||
if(!valueAlertLogListAlarmWebhookListWebhookListItem["message"].isNull())
|
||||
webhookListObject.message = valueAlertLogListAlarmWebhookListWebhookListItem["message"].asString();
|
||||
alertLogListObject.webhookList.push_back(webhookListObject);
|
||||
}
|
||||
auto escalationNode = value["Escalation"];
|
||||
if(!escalationNode["Times"].isNull())
|
||||
alertLogListObject.escalation.times = std::stoi(escalationNode["Times"].asString());
|
||||
@@ -103,9 +121,6 @@ void DescribeAlertLogListResult::parse(const std::string &payload)
|
||||
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
|
||||
for (auto value : allContactGroups)
|
||||
alertLogListObject.contactGroups.push_back(value.asString());
|
||||
auto allWebhookList = value["WebhookList"]["WebhookList"];
|
||||
for (auto value : allWebhookList)
|
||||
alertLogListObject.webhookList.push_back(value.asString());
|
||||
auto allContactALIIWWList = value["ContactALIIWWList"]["ContactALIIMs"];
|
||||
for (auto value : allContactALIIWWList)
|
||||
alertLogListObject.contactALIIWWList.push_back(value.asString());
|
||||
|
||||
@@ -82,3 +82,14 @@ void DescribeAlertingMetricRuleResourcesRequest::setRuleId(const std::string& ru
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertingMetricRuleResourcesRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void DescribeAlertingMetricRuleResourcesRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeDynamicTagRuleListRequest::DescribeDynamicTagRuleListRequest() :
|
||||
DescribeDynamicTagRuleListRequest::~DescribeDynamicTagRuleListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDynamicTagRuleListRequest::getTagValue()const
|
||||
{
|
||||
return tagValue_;
|
||||
}
|
||||
|
||||
void DescribeDynamicTagRuleListRequest::setTagValue(const std::string& tagValue)
|
||||
{
|
||||
tagValue_ = tagValue;
|
||||
setParameter("TagValue", tagValue);
|
||||
}
|
||||
|
||||
std::string DescribeDynamicTagRuleListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,3 +71,14 @@ void DescribeDynamicTagRuleListRequest::setTagKey(const std::string& tagKey)
|
||||
setParameter("TagKey", tagKey);
|
||||
}
|
||||
|
||||
std::string DescribeDynamicTagRuleListRequest::getTagRegionId()const
|
||||
{
|
||||
return tagRegionId_;
|
||||
}
|
||||
|
||||
void DescribeDynamicTagRuleListRequest::setTagRegionId(const std::string& tagRegionId)
|
||||
{
|
||||
tagRegionId_ = tagRegionId;
|
||||
setParameter("TagRegionId", tagRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,12 @@ void DescribeMetricRuleTemplateAttributeResult::parse(const std::string &payload
|
||||
resource_.restVersion = resourceNode["RestVersion"].asString();
|
||||
if(!resourceNode["Description"].isNull())
|
||||
resource_.description = resourceNode["Description"].asString();
|
||||
if(!resourceNode["SystemEventTemplates"].isNull())
|
||||
resource_.systemEventTemplates = resourceNode["SystemEventTemplates"].asString();
|
||||
if(!resourceNode["ProcessMonitorTemplates"].isNull())
|
||||
resource_.processMonitorTemplates = resourceNode["ProcessMonitorTemplates"].asString();
|
||||
if(!resourceNode["HostAvailabilityTemplates"].isNull())
|
||||
resource_.hostAvailabilityTemplates = resourceNode["HostAvailabilityTemplates"].asString();
|
||||
auto allAlertTemplatesNode = resourceNode["AlertTemplates"]["AlertTemplate"];
|
||||
for (auto resourceNodeAlertTemplatesAlertTemplate : allAlertTemplatesNode)
|
||||
{
|
||||
|
||||
@@ -93,6 +93,17 @@ void DescribeMonitorGroupsRequest::setResourceGroupId(const std::string& resourc
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorGroupsRequest::getGroupFounderTagKey()const
|
||||
{
|
||||
return groupFounderTagKey_;
|
||||
}
|
||||
|
||||
void DescribeMonitorGroupsRequest::setGroupFounderTagKey(const std::string& groupFounderTagKey)
|
||||
{
|
||||
groupFounderTagKey_ = groupFounderTagKey;
|
||||
setParameter("GroupFounderTagKey", groupFounderTagKey);
|
||||
}
|
||||
|
||||
int DescribeMonitorGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -120,6 +131,17 @@ void DescribeMonitorGroupsRequest::setTag(const std::vector<Tag>& tag)
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeMonitorGroupsRequest::getGroupFounderTagValue()const
|
||||
{
|
||||
return groupFounderTagValue_;
|
||||
}
|
||||
|
||||
void DescribeMonitorGroupsRequest::setGroupFounderTagValue(const std::string& groupFounderTagValue)
|
||||
{
|
||||
groupFounderTagValue_ = groupFounderTagValue;
|
||||
setParameter("GroupFounderTagValue", groupFounderTagValue);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorGroupsRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
|
||||
@@ -145,6 +145,16 @@ void DescribeSiteMonitorAttributeResult::parse(const std::string &payload)
|
||||
siteMonitors_.optionJson.authentication = std::stoi(optionJsonNode["authentication"].asString());
|
||||
if(!optionJsonNode["traceroute"].isNull())
|
||||
siteMonitors_.optionJson.traceroute = std::stol(optionJsonNode["traceroute"].asString());
|
||||
if(!optionJsonNode["cert_verify"].isNull())
|
||||
siteMonitors_.optionJson.cert_verify = optionJsonNode["cert_verify"].asString() == "true";
|
||||
if(!optionJsonNode["unfollow_redirect"].isNull())
|
||||
siteMonitors_.optionJson.unfollow_redirect = optionJsonNode["unfollow_redirect"].asString() == "true";
|
||||
if(!optionJsonNode["proxy_protocol"].isNull())
|
||||
siteMonitors_.optionJson.proxy_protocol = optionJsonNode["proxy_protocol"].asString() == "true";
|
||||
if(!optionJsonNode["acceptable_response_code"].isNull())
|
||||
siteMonitors_.optionJson.acceptable_response_code = optionJsonNode["acceptable_response_code"].asString();
|
||||
if(!optionJsonNode["ipv6_task"].isNull())
|
||||
siteMonitors_.optionJson.ipv6_task = optionJsonNode["ipv6_task"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user