Add data service api, including ListAnalyticsData.
This commit is contained in:
@@ -27,6 +27,17 @@ CreateProductTopicRequest::CreateProductTopicRequest() :
|
||||
CreateProductTopicRequest::~CreateProductTopicRequest()
|
||||
{}
|
||||
|
||||
std::string CreateProductTopicRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void CreateProductTopicRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void CreateProductTopicRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void CreateProductTopicRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ CreateSubscribeRelationRequest::CreateSubscribeRelationRequest() :
|
||||
CreateSubscribeRelationRequest::~CreateSubscribeRelationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSubscribeRelationRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void CreateSubscribeRelationRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
bool CreateSubscribeRelationRequest::getOtaEventFlag()const
|
||||
{
|
||||
return otaEventFlag_;
|
||||
@@ -71,6 +82,17 @@ void CreateSubscribeRelationRequest::setType(const std::string& type)
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateSubscribeRelationRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void CreateSubscribeRelationRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string CreateSubscribeRelationRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ CreateTopicRouteTableRequest::CreateTopicRouteTableRequest() :
|
||||
CreateTopicRouteTableRequest::~CreateTopicRouteTableRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void CreateTopicRouteTableRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void CreateTopicRouteTableRequest::setAccessKeyId(const std::string& accessKeyId
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void CreateTopicRouteTableRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ GenerateDeviceNameListURLRequest::GenerateDeviceNameListURLRequest() :
|
||||
GenerateDeviceNameListURLRequest::~GenerateDeviceNameListURLRequest()
|
||||
{}
|
||||
|
||||
std::string GenerateDeviceNameListURLRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GenerateDeviceNameListURLRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GenerateDeviceNameListURLRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void GenerateFileUploadURLRequest::setIotInstanceId(const std::string& iotInstan
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GenerateFileUploadURLRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void GenerateFileUploadURLRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
std::string GenerateFileUploadURLRequest::getBizCode()const
|
||||
{
|
||||
return bizCode_;
|
||||
|
||||
125
iot/src/model/ListAnalyticsDataRequest.cc
Normal file
125
iot/src/model/ListAnalyticsDataRequest.cc
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/ListAnalyticsDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::ListAnalyticsDataRequest;
|
||||
|
||||
ListAnalyticsDataRequest::ListAnalyticsDataRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "ListAnalyticsData")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAnalyticsDataRequest::~ListAnalyticsDataRequest()
|
||||
{}
|
||||
|
||||
int ListAnalyticsDataRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListAnalyticsDataRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int ListAnalyticsDataRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAnalyticsDataRequest::getIsoId()const
|
||||
{
|
||||
return isoId_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setIsoId(const std::string& isoId)
|
||||
{
|
||||
isoId_ = isoId;
|
||||
setParameter("IsoId", isoId);
|
||||
}
|
||||
|
||||
std::string ListAnalyticsDataRequest::getApiPath()const
|
||||
{
|
||||
return apiPath_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setApiPath(const std::string& apiPath)
|
||||
{
|
||||
apiPath_ = apiPath;
|
||||
setParameter("ApiPath", apiPath);
|
||||
}
|
||||
|
||||
std::vector<ListAnalyticsDataRequest::Condition> ListAnalyticsDataRequest::getCondition()const
|
||||
{
|
||||
return condition_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setCondition(const std::vector<Condition>& condition)
|
||||
{
|
||||
condition_ = condition;
|
||||
for(int dep1 = 0; dep1!= condition.size(); dep1++) {
|
||||
auto conditionObj = condition.at(dep1);
|
||||
std::string conditionObjStr = "Condition." + std::to_string(dep1 + 1);
|
||||
setParameter(conditionObjStr + ".FieldName", conditionObj.fieldName);
|
||||
setParameter(conditionObjStr + ".Operate", conditionObj.operate);
|
||||
setParameter(conditionObjStr + ".BetweenStart", conditionObj.betweenStart);
|
||||
setParameter(conditionObjStr + ".BetweenEnd", conditionObj.betweenEnd);
|
||||
setParameter(conditionObjStr + ".Value", conditionObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListAnalyticsDataRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string ListAnalyticsDataRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void ListAnalyticsDataRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
81
iot/src/model/ListAnalyticsDataResult.cc
Normal file
81
iot/src/model/ListAnalyticsDataResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/ListAnalyticsDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
ListAnalyticsDataResult::ListAnalyticsDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAnalyticsDataResult::ListAnalyticsDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAnalyticsDataResult::~ListAnalyticsDataResult()
|
||||
{}
|
||||
|
||||
void ListAnalyticsDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HasNext"].isNull())
|
||||
data_.hasNext = dataNode["HasNext"].asString() == "true";
|
||||
if(!dataNode["ResultJson"].isNull())
|
||||
data_.resultJson = dataNode["ResultJson"].asString();
|
||||
if(!dataNode["Count"].isNull())
|
||||
data_.count = std::stol(dataNode["Count"].asString());
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
ListAnalyticsDataResult::Data ListAnalyticsDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAnalyticsDataResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ListAnalyticsDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAnalyticsDataResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
128
iot/src/model/PrintByTemplateRequest.cc
Normal file
128
iot/src/model/PrintByTemplateRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/PrintByTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::PrintByTemplateRequest;
|
||||
|
||||
PrintByTemplateRequest::PrintByTemplateRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "PrintByTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PrintByTemplateRequest::~PrintByTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string PrintByTemplateRequest::getProjectCode()const
|
||||
{
|
||||
return projectCode_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setProjectCode(const std::string& projectCode)
|
||||
{
|
||||
projectCode_ = projectCode;
|
||||
setBodyParameter("ProjectCode", projectCode);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getTemplateBizCode()const
|
||||
{
|
||||
return templateBizCode_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setTemplateBizCode(const std::string& templateBizCode)
|
||||
{
|
||||
templateBizCode_ = templateBizCode;
|
||||
setBodyParameter("TemplateBizCode", templateBizCode);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setBodyParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getParamsJsonString()const
|
||||
{
|
||||
return paramsJsonString_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setParamsJsonString(const std::string& paramsJsonString)
|
||||
{
|
||||
paramsJsonString_ = paramsJsonString;
|
||||
setBodyParameter("ParamsJsonString", paramsJsonString);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string PrintByTemplateRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void PrintByTemplateRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
81
iot/src/model/PrintByTemplateResult.cc
Normal file
81
iot/src/model/PrintByTemplateResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/PrintByTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
PrintByTemplateResult::PrintByTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PrintByTemplateResult::PrintByTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PrintByTemplateResult::~PrintByTemplateResult()
|
||||
{}
|
||||
|
||||
void PrintByTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = dataNode["Success"].asString() == "true";
|
||||
if(!dataNode["DeviceErrorCode"].isNull())
|
||||
data_.deviceErrorCode = dataNode["DeviceErrorCode"].asString();
|
||||
if(!dataNode["DeviceErrorMessage"].isNull())
|
||||
data_.deviceErrorMessage = dataNode["DeviceErrorMessage"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = dataNode["Id"].asString();
|
||||
if(!dataNode["RetryCount"].isNull())
|
||||
data_.retryCount = std::stoi(dataNode["RetryCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
PrintByTemplateResult::Data PrintByTemplateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PrintByTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string PrintByTemplateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool PrintByTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,10 @@ void QueryConsumerGroupStatusResult::parse(const std::string &payload)
|
||||
clientConnectionStatusListObject.clientIpPort = valueClientConnectionStatusListConsumerGroupClientConnectionInfo["ClientIpPort"].asString();
|
||||
if(!valueClientConnectionStatusListConsumerGroupClientConnectionInfo["OnlineTime"].isNull())
|
||||
clientConnectionStatusListObject.onlineTime = std::stol(valueClientConnectionStatusListConsumerGroupClientConnectionInfo["OnlineTime"].asString());
|
||||
if(!valueClientConnectionStatusListConsumerGroupClientConnectionInfo["RealTimeConsumeCountPerMinute"].isNull())
|
||||
clientConnectionStatusListObject.realTimeConsumeCountPerMinute = std::stoi(valueClientConnectionStatusListConsumerGroupClientConnectionInfo["RealTimeConsumeCountPerMinute"].asString());
|
||||
if(!valueClientConnectionStatusListConsumerGroupClientConnectionInfo["AccumulatedConsumeCountPerMinute"].isNull())
|
||||
clientConnectionStatusListObject.accumulatedConsumeCountPerMinute = std::stoi(valueClientConnectionStatusListConsumerGroupClientConnectionInfo["AccumulatedConsumeCountPerMinute"].asString());
|
||||
clientConnectionStatusList_.push_back(clientConnectionStatusListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
@@ -63,6 +67,10 @@ void QueryConsumerGroupStatusResult::parse(const std::string &payload)
|
||||
lastConsumerTime_ = value["LastConsumerTime"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["AccumulatedConsumeCountPerMinute"].isNull())
|
||||
accumulatedConsumeCountPerMinute_ = std::stoi(value["AccumulatedConsumeCountPerMinute"].asString());
|
||||
if(!value["RealTimeConsumeCountPerMinute"].isNull())
|
||||
realTimeConsumeCountPerMinute_ = std::stoi(value["RealTimeConsumeCountPerMinute"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -76,6 +84,11 @@ std::string QueryConsumerGroupStatusResult::getLastConsumerTime()const
|
||||
return lastConsumerTime_;
|
||||
}
|
||||
|
||||
int QueryConsumerGroupStatusResult::getAccumulatedConsumeCountPerMinute()const
|
||||
{
|
||||
return accumulatedConsumeCountPerMinute_;
|
||||
}
|
||||
|
||||
std::string QueryConsumerGroupStatusResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
@@ -91,6 +104,11 @@ bool QueryConsumerGroupStatusResult::getSuccess()const
|
||||
return success_;
|
||||
}
|
||||
|
||||
int QueryConsumerGroupStatusResult::getRealTimeConsumeCountPerMinute()const
|
||||
{
|
||||
return realTimeConsumeCountPerMinute_;
|
||||
}
|
||||
|
||||
int QueryConsumerGroupStatusResult::getAccumulationCount()const
|
||||
{
|
||||
return accumulationCount_;
|
||||
|
||||
Reference in New Issue
Block a user