Fix parameter issues for label synchronization group.
This commit is contained in:
@@ -82,7 +82,6 @@ void CreateDynamicTagGroupRequest::setMatchExpress(const std::vector<MatchExpres
|
||||
for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) {
|
||||
auto matchExpressObj = matchExpress.at(dep1);
|
||||
std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1);
|
||||
setCoreParameter(matchExpressObjStr + ".TagName", matchExpressObj.tagName);
|
||||
setCoreParameter(matchExpressObjStr + ".TagValue", matchExpressObj.tagValue);
|
||||
setCoreParameter(matchExpressObjStr + ".TagValueMatchFunction", matchExpressObj.tagValueMatchFunction);
|
||||
}
|
||||
|
||||
@@ -27,14 +27,14 @@ DeleteDynamicTagGroupRequest::DeleteDynamicTagGroupRequest() :
|
||||
DeleteDynamicTagGroupRequest::~DeleteDynamicTagGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDynamicTagGroupRequest::getDynamicTagGroupId()const
|
||||
std::string DeleteDynamicTagGroupRequest::getDynamicTagRuleId()const
|
||||
{
|
||||
return dynamicTagGroupId_;
|
||||
return dynamicTagRuleId_;
|
||||
}
|
||||
|
||||
void DeleteDynamicTagGroupRequest::setDynamicTagGroupId(const std::string& dynamicTagGroupId)
|
||||
void DeleteDynamicTagGroupRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId)
|
||||
{
|
||||
dynamicTagGroupId_ = dynamicTagGroupId;
|
||||
setCoreParameter("DynamicTagGroupId", dynamicTagGroupId);
|
||||
dynamicTagRuleId_ = dynamicTagRuleId;
|
||||
setCoreParameter("DynamicTagRuleId", dynamicTagRuleId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ void DescribeDynamicTagRuleListResult::parse(const std::string &payload)
|
||||
for (auto valueTagGroupListTagGroup : allTagGroupListNode)
|
||||
{
|
||||
TagGroup tagGroupListObject;
|
||||
if(!valueTagGroupListTagGroup["DynamicTagGroupId"].isNull())
|
||||
tagGroupListObject.dynamicTagGroupId = valueTagGroupListTagGroup["DynamicTagGroupId"].asString();
|
||||
if(!valueTagGroupListTagGroup["DynamicTagRuleId"].isNull())
|
||||
tagGroupListObject.dynamicTagRuleId = valueTagGroupListTagGroup["DynamicTagRuleId"].asString();
|
||||
if(!valueTagGroupListTagGroup["TagKey"].isNull())
|
||||
tagGroupListObject.tagKey = valueTagGroupListTagGroup["TagKey"].asString();
|
||||
if(!valueTagGroupListTagGroup["RegionId"].isNull())
|
||||
@@ -57,8 +57,6 @@ void DescribeDynamicTagRuleListResult::parse(const std::string &payload)
|
||||
for (auto allTagGroupListNodeMatchExpressMatchExpressItem : allMatchExpressNode)
|
||||
{
|
||||
TagGroup::MatchExpressItem matchExpressObject;
|
||||
if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagName"].isNull())
|
||||
matchExpressObject.tagName = allTagGroupListNodeMatchExpressMatchExpressItem["TagName"].asString();
|
||||
if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagValueMatchFunction"].isNull())
|
||||
matchExpressObject.tagValueMatchFunction = allTagGroupListNodeMatchExpressMatchExpressItem["TagValueMatchFunction"].asString();
|
||||
if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagValue"].isNull())
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeMonitorGroupsRequest::setIncludeTemplateHistory(bool includeTemplat
|
||||
setCoreParameter("IncludeTemplateHistory", includeTemplateHistory ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeMonitorGroupsRequest::getDynamicTagRuleId()const
|
||||
{
|
||||
return dynamicTagRuleId_;
|
||||
}
|
||||
|
||||
void DescribeMonitorGroupsRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId)
|
||||
{
|
||||
dynamicTagRuleId_ = dynamicTagRuleId;
|
||||
setCoreParameter("DynamicTagRuleId", dynamicTagRuleId);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorGroupsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
@@ -142,14 +153,3 @@ void DescribeMonitorGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorGroupsRequest::getDynamicTagGroupId()const
|
||||
{
|
||||
return dynamicTagGroupId_;
|
||||
}
|
||||
|
||||
void DescribeMonitorGroupsRequest::setDynamicTagGroupId(const std::string& dynamicTagGroupId)
|
||||
{
|
||||
dynamicTagGroupId_ = dynamicTagGroupId;
|
||||
setCoreParameter("DynamicTagGroupId", dynamicTagGroupId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user