CSB SDK Auto Released By yaolan.lt,Version:1.24.1
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
@@ -31,21 +31,21 @@ CSBClient::CSBClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CSB");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CSBClient::CSBClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CSB");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CSBClient::CSBClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CSB");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CSBClient::~CSBClient()
|
||||
@@ -987,6 +987,42 @@ CSBClient::DeleteCredentialsListOutcomeCallable CSBClient::deleteCredentialsList
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::FindServiceStatisticalDataOutcome CSBClient::findServiceStatisticalData(const FindServiceStatisticalDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FindServiceStatisticalDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FindServiceStatisticalDataOutcome(FindServiceStatisticalDataResult(outcome.result()));
|
||||
else
|
||||
return FindServiceStatisticalDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSBClient::findServiceStatisticalDataAsync(const FindServiceStatisticalDataRequest& request, const FindServiceStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, findServiceStatisticalData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSBClient::FindServiceStatisticalDataOutcomeCallable CSBClient::findServiceStatisticalDataCallable(const FindServiceStatisticalDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FindServiceStatisticalDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->findServiceStatisticalData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSBClient::CreateServiceOutcome CSBClient::createService(const CreateServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -25,17 +25,6 @@ CheckServiceExistRequest::CheckServiceExistRequest() :
|
||||
CheckServiceExistRequest::~CheckServiceExistRequest()
|
||||
{}
|
||||
|
||||
long CheckServiceExistRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CheckServiceExistRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CheckServiceExistRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -47,6 +36,17 @@ void CheckServiceExistRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long CheckServiceExistRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CheckServiceExistRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CheckServiceExistRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
|
||||
@@ -36,17 +36,6 @@ void CreateCredentialsRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string CreateCredentialsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateCredentialsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long CreateCredentialsRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
@@ -58,3 +47,14 @@ void CreateCredentialsRequest::setCsbId(long csbId)
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CreateCredentialsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateCredentialsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,17 +36,6 @@ void CreateServiceRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long CreateServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CreateServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void CreateServiceRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long CreateServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -36,17 +36,6 @@ void DeleteProjectListRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long DeleteProjectListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteProjectListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string DeleteProjectListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void DeleteProjectListRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteProjectListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteProjectListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,17 +25,6 @@ DeleteProjectRequest::DeleteProjectRequest() :
|
||||
DeleteProjectRequest::~DeleteProjectRequest()
|
||||
{}
|
||||
|
||||
long DeleteProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -47,6 +36,17 @@ void DeleteProjectRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
long DeleteProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
|
||||
@@ -36,17 +36,6 @@ void DeleteServiceListRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long DeleteServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteServiceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string DeleteServiceListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void DeleteServiceListRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteServiceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -69,17 +69,6 @@ void FindApprovalOrderListRequest::setServiceName(const std::string& serviceName
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long FindApprovalOrderListRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
int FindApprovalOrderListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
@@ -91,6 +80,17 @@ void FindApprovalOrderListRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long FindApprovalOrderListRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
bool FindApprovalOrderListRequest::getOnlyPending()const
|
||||
{
|
||||
return onlyPending_;
|
||||
|
||||
@@ -25,17 +25,6 @@ FindApproveServiceListRequest::FindApproveServiceListRequest() :
|
||||
FindApproveServiceListRequest::~FindApproveServiceListRequest()
|
||||
{}
|
||||
|
||||
std::string FindApproveServiceListRequest::getApproveLevel()const
|
||||
{
|
||||
return approveLevel_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel)
|
||||
{
|
||||
approveLevel_ = approveLevel;
|
||||
setParameter("ApproveLevel", approveLevel);
|
||||
}
|
||||
|
||||
std::string FindApproveServiceListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
@@ -47,6 +36,17 @@ void FindApproveServiceListRequest::setProjectName(const std::string& projectNam
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string FindApproveServiceListRequest::getApproveLevel()const
|
||||
{
|
||||
return approveLevel_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel)
|
||||
{
|
||||
approveLevel_ = approveLevel;
|
||||
setParameter("ApproveLevel", approveLevel);
|
||||
}
|
||||
|
||||
bool FindApproveServiceListRequest::getShowDelService()const
|
||||
{
|
||||
return showDelService_;
|
||||
|
||||
@@ -25,17 +25,6 @@ FindCredentialsListRequest::FindCredentialsListRequest() :
|
||||
FindCredentialsListRequest::~FindCredentialsListRequest()
|
||||
{}
|
||||
|
||||
long FindCredentialsListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindCredentialsListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindCredentialsListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -47,6 +36,17 @@ void FindCredentialsListRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long FindCredentialsListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindCredentialsListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
int FindCredentialsListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
|
||||
@@ -25,17 +25,6 @@ FindInstanceListRequest::FindInstanceListRequest() :
|
||||
FindInstanceListRequest::~FindInstanceListRequest()
|
||||
{}
|
||||
|
||||
std::string FindInstanceListRequest::getSearchTxt()const
|
||||
{
|
||||
return searchTxt_;
|
||||
}
|
||||
|
||||
void FindInstanceListRequest::setSearchTxt(const std::string& searchTxt)
|
||||
{
|
||||
searchTxt_ = searchTxt;
|
||||
setParameter("SearchTxt", searchTxt);
|
||||
}
|
||||
|
||||
std::string FindInstanceListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -47,6 +36,17 @@ void FindInstanceListRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string FindInstanceListRequest::getSearchTxt()const
|
||||
{
|
||||
return searchTxt_;
|
||||
}
|
||||
|
||||
void FindInstanceListRequest::setSearchTxt(const std::string& searchTxt)
|
||||
{
|
||||
searchTxt_ = searchTxt;
|
||||
setParameter("SearchTxt", searchTxt);
|
||||
}
|
||||
|
||||
long FindInstanceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
|
||||
@@ -36,17 +36,6 @@ void FindProjectListRequest::setProjectName(const std::string& projectName)
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long FindProjectListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindProjectListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindProjectListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,6 +47,17 @@ void FindProjectListRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long FindProjectListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindProjectListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
int FindProjectListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
|
||||
@@ -36,17 +36,6 @@ void FindProjectsNameListRequest::setOperationFlag(const std::string& operationF
|
||||
setParameter("OperationFlag", operationFlag);
|
||||
}
|
||||
|
||||
long FindProjectsNameListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindProjectsNameListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindProjectsNameListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void FindProjectsNameListRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long FindProjectsNameListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindProjectsNameListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -36,17 +36,6 @@ void FindServiceListRequest::setProjectName(const std::string& projectName)
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
int FindServiceListRequest::getCasShowType()const
|
||||
{
|
||||
return casShowType_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setCasShowType(int casShowType)
|
||||
{
|
||||
casShowType_ = casShowType;
|
||||
setParameter("CasShowType", std::to_string(casShowType));
|
||||
}
|
||||
|
||||
bool FindServiceListRequest::getShowDelService()const
|
||||
{
|
||||
return showDelService_;
|
||||
@@ -58,6 +47,17 @@ void FindServiceListRequest::setShowDelService(bool showDelService)
|
||||
setParameter("ShowDelService", std::to_string(showDelService));
|
||||
}
|
||||
|
||||
int FindServiceListRequest::getCasShowType()const
|
||||
{
|
||||
return casShowType_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setCasShowType(int casShowType)
|
||||
{
|
||||
casShowType_ = casShowType;
|
||||
setParameter("CasShowType", std::to_string(casShowType));
|
||||
}
|
||||
|
||||
long FindServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
|
||||
82
csb/src/model/FindServiceStatisticalDataRequest.cc
Normal file
82
csb/src/model/FindServiceStatisticalDataRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/csb/model/FindServiceStatisticalDataRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindServiceStatisticalDataRequest;
|
||||
|
||||
FindServiceStatisticalDataRequest::FindServiceStatisticalDataRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindServiceStatisticalData")
|
||||
{}
|
||||
|
||||
FindServiceStatisticalDataRequest::~FindServiceStatisticalDataRequest()
|
||||
{}
|
||||
|
||||
long FindServiceStatisticalDataRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindServiceStatisticalDataRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindServiceStatisticalDataRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindServiceStatisticalDataRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long FindServiceStatisticalDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void FindServiceStatisticalDataRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string FindServiceStatisticalDataRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindServiceStatisticalDataRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long FindServiceStatisticalDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void FindServiceStatisticalDataRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
92
csb/src/model/FindServiceStatisticalDataResult.cc
Normal file
92
csb/src/model/FindServiceStatisticalDataResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/csb/model/FindServiceStatisticalDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindServiceStatisticalDataResult::FindServiceStatisticalDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindServiceStatisticalDataResult::FindServiceStatisticalDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindServiceStatisticalDataResult::~FindServiceStatisticalDataResult()
|
||||
{}
|
||||
|
||||
void FindServiceStatisticalDataResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allMonitorStatisticData = value["MonitorStatisticData"]["ServiceStatisticData"];
|
||||
for (auto value : allMonitorStatisticData)
|
||||
{
|
||||
Data::ServiceStatisticData serviceStatisticDataObject;
|
||||
if(!value["AvgRt"].isNull())
|
||||
serviceStatisticDataObject.avgRt = std::stof(value["AvgRt"].asString());
|
||||
if(!value["MaxRt"].isNull())
|
||||
serviceStatisticDataObject.maxRt = std::stof(value["MaxRt"].asString());
|
||||
if(!value["MinRt"].isNull())
|
||||
serviceStatisticDataObject.minRt = std::stof(value["MinRt"].asString());
|
||||
if(!value["RequestTime"].isNull())
|
||||
serviceStatisticDataObject.requestTime = std::stol(value["RequestTime"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceStatisticDataObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
serviceStatisticDataObject.userId = value["UserId"].asString();
|
||||
auto totalNode = value["Total"];
|
||||
if(!totalNode["ErrorNum"].isNull())
|
||||
serviceStatisticDataObject.total.errorNum = std::stoi(totalNode["ErrorNum"].asString());
|
||||
if(!totalNode["Total"].isNull())
|
||||
serviceStatisticDataObject.total.total = std::stoi(totalNode["Total"].asString());
|
||||
data_.monitorStatisticData.push_back(serviceStatisticDataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindServiceStatisticalDataResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindServiceStatisticalDataResult::Data FindServiceStatisticalDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindServiceStatisticalDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -25,17 +25,6 @@ GetOrderRequest::GetOrderRequest() :
|
||||
GetOrderRequest::~GetOrderRequest()
|
||||
{}
|
||||
|
||||
long GetOrderRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetOrderRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
}
|
||||
|
||||
std::string GetOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -47,6 +36,17 @@ void GetOrderRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetOrderRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetOrderRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
}
|
||||
|
||||
std::string GetOrderRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
|
||||
@@ -36,17 +36,6 @@ void GetProjectRequest::setProjectName(const std::string& projectName)
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string GetProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void GetProjectRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,17 +25,6 @@ GetServiceRequest::GetServiceRequest() :
|
||||
GetServiceRequest::~GetServiceRequest()
|
||||
{}
|
||||
|
||||
long GetServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string GetServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -47,6 +36,17 @@ void GetServiceRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
long GetServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
|
||||
@@ -36,17 +36,6 @@ void UpdateOrderRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateOrderRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateOrderRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void UpdateOrderRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long UpdateOrderRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateOrderRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -36,17 +36,6 @@ void UpdateProjectListStatusRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateProjectListStatusRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateProjectListStatusRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateProjectListStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void UpdateProjectListStatusRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long UpdateProjectListStatusRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateProjectListStatusRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -36,17 +36,6 @@ void UpdateProjectRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void UpdateProjectRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long UpdateProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -36,17 +36,6 @@ void UpdateServiceListStatusRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateServiceListStatusRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateServiceListStatusRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateServiceListStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void UpdateServiceListStatusRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long UpdateServiceListStatusRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateServiceListStatusRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,17 +25,6 @@ UpdateServiceQPSRequest::UpdateServiceQPSRequest() :
|
||||
UpdateServiceQPSRequest::~UpdateServiceQPSRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateServiceQPSRequest::getQps()const
|
||||
{
|
||||
return qps_;
|
||||
}
|
||||
|
||||
void UpdateServiceQPSRequest::setQps(const std::string& qps)
|
||||
{
|
||||
qps_ = qps;
|
||||
setParameter("Qps", qps);
|
||||
}
|
||||
|
||||
std::string UpdateServiceQPSRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -47,6 +36,17 @@ void UpdateServiceQPSRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateServiceQPSRequest::getQps()const
|
||||
{
|
||||
return qps_;
|
||||
}
|
||||
|
||||
void UpdateServiceQPSRequest::setQps(const std::string& qps)
|
||||
{
|
||||
qps_ = qps;
|
||||
setParameter("Qps", qps);
|
||||
}
|
||||
|
||||
long UpdateServiceQPSRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
|
||||
@@ -36,17 +36,6 @@ void UpdateServiceRequest::setData(const std::string& data)
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -58,3 +47,14 @@ void UpdateServiceRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long UpdateServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user