Supported adjust PTS scene speed.

This commit is contained in:
sdk-team
2023-01-09 12:21:35 +00:00
parent dc54a90aee
commit 3951dffc62
165 changed files with 13148 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
/*
* 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/pts/model/AdjustJMeterSceneSpeedRequest.h>
using AlibabaCloud::PTS::Model::AdjustJMeterSceneSpeedRequest;
AdjustJMeterSceneSpeedRequest::AdjustJMeterSceneSpeedRequest()
: RpcServiceRequest("pts", "2020-10-20", "AdjustJMeterSceneSpeed") {
setMethod(HttpRequest::Method::Post);
}
AdjustJMeterSceneSpeedRequest::~AdjustJMeterSceneSpeedRequest() {}
std::string AdjustJMeterSceneSpeedRequest::getReportId() const {
return reportId_;
}
void AdjustJMeterSceneSpeedRequest::setReportId(const std::string &reportId) {
reportId_ = reportId;
setParameter(std::string("ReportId"), reportId);
}
int AdjustJMeterSceneSpeedRequest::getSpeed() const {
return speed_;
}
void AdjustJMeterSceneSpeedRequest::setSpeed(int speed) {
speed_ = speed;
setParameter(std::string("Speed"), std::to_string(speed));
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/AdjustJMeterSceneSpeedResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
AdjustJMeterSceneSpeedResult::AdjustJMeterSceneSpeedResult() :
ServiceResult()
{}
AdjustJMeterSceneSpeedResult::AdjustJMeterSceneSpeedResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AdjustJMeterSceneSpeedResult::~AdjustJMeterSceneSpeedResult()
{}
void AdjustJMeterSceneSpeedResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ReportId"].isNull())
reportId_ = value["ReportId"].asString();
}
std::string AdjustJMeterSceneSpeedResult::getMessage()const
{
return message_;
}
int AdjustJMeterSceneSpeedResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string AdjustJMeterSceneSpeedResult::getReportId()const
{
return reportId_;
}
std::string AdjustJMeterSceneSpeedResult::getCode()const
{
return code_;
}
bool AdjustJMeterSceneSpeedResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/pts/model/CreatePtsSceneBaseLineFromReportRequest.h>
using AlibabaCloud::PTS::Model::CreatePtsSceneBaseLineFromReportRequest;
CreatePtsSceneBaseLineFromReportRequest::CreatePtsSceneBaseLineFromReportRequest()
: RpcServiceRequest("pts", "2020-10-20", "CreatePtsSceneBaseLineFromReport") {
setMethod(HttpRequest::Method::Post);
}
CreatePtsSceneBaseLineFromReportRequest::~CreatePtsSceneBaseLineFromReportRequest() {}
std::string CreatePtsSceneBaseLineFromReportRequest::getReportId() const {
return reportId_;
}
void CreatePtsSceneBaseLineFromReportRequest::setReportId(const std::string &reportId) {
reportId_ = reportId;
setParameter(std::string("ReportId"), reportId);
}
std::string CreatePtsSceneBaseLineFromReportRequest::getSceneId() const {
return sceneId_;
}
void CreatePtsSceneBaseLineFromReportRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/CreatePtsSceneBaseLineFromReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
CreatePtsSceneBaseLineFromReportResult::CreatePtsSceneBaseLineFromReportResult() :
ServiceResult()
{}
CreatePtsSceneBaseLineFromReportResult::CreatePtsSceneBaseLineFromReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePtsSceneBaseLineFromReportResult::~CreatePtsSceneBaseLineFromReportResult()
{}
void CreatePtsSceneBaseLineFromReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreatePtsSceneBaseLineFromReportResult::getMessage()const
{
return message_;
}
int CreatePtsSceneBaseLineFromReportResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreatePtsSceneBaseLineFromReportResult::getCode()const
{
return code_;
}
bool CreatePtsSceneBaseLineFromReportResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/CreatePtsSceneRequest.h>
using AlibabaCloud::PTS::Model::CreatePtsSceneRequest;
CreatePtsSceneRequest::CreatePtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "CreatePtsScene") {
setMethod(HttpRequest::Method::Post);
}
CreatePtsSceneRequest::~CreatePtsSceneRequest() {}
std::string CreatePtsSceneRequest::getScene() const {
return scene_;
}
void CreatePtsSceneRequest::setScene(const std::string &scene) {
scene_ = scene;
setParameter(std::string("Scene"), scene);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/CreatePtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
CreatePtsSceneResult::CreatePtsSceneResult() :
ServiceResult()
{}
CreatePtsSceneResult::CreatePtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePtsSceneResult::~CreatePtsSceneResult()
{}
void CreatePtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SceneId"].isNull())
sceneId_ = value["SceneId"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreatePtsSceneResult::getSceneId()const
{
return sceneId_;
}
std::string CreatePtsSceneResult::getMessage()const
{
return message_;
}
int CreatePtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreatePtsSceneResult::getCode()const
{
return code_;
}
bool CreatePtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/DeletePtsSceneBaseLineRequest.h>
using AlibabaCloud::PTS::Model::DeletePtsSceneBaseLineRequest;
DeletePtsSceneBaseLineRequest::DeletePtsSceneBaseLineRequest()
: RpcServiceRequest("pts", "2020-10-20", "DeletePtsSceneBaseLine") {
setMethod(HttpRequest::Method::Post);
}
DeletePtsSceneBaseLineRequest::~DeletePtsSceneBaseLineRequest() {}
std::string DeletePtsSceneBaseLineRequest::getSceneId() const {
return sceneId_;
}
void DeletePtsSceneBaseLineRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/DeletePtsSceneBaseLineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
DeletePtsSceneBaseLineResult::DeletePtsSceneBaseLineResult() :
ServiceResult()
{}
DeletePtsSceneBaseLineResult::DeletePtsSceneBaseLineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePtsSceneBaseLineResult::~DeletePtsSceneBaseLineResult()
{}
void DeletePtsSceneBaseLineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeletePtsSceneBaseLineResult::getMessage()const
{
return message_;
}
int DeletePtsSceneBaseLineResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeletePtsSceneBaseLineResult::getCode()const
{
return code_;
}
bool DeletePtsSceneBaseLineResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/DeletePtsSceneRequest.h>
using AlibabaCloud::PTS::Model::DeletePtsSceneRequest;
DeletePtsSceneRequest::DeletePtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "DeletePtsScene") {
setMethod(HttpRequest::Method::Post);
}
DeletePtsSceneRequest::~DeletePtsSceneRequest() {}
std::string DeletePtsSceneRequest::getSceneId() const {
return sceneId_;
}
void DeletePtsSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/DeletePtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
DeletePtsSceneResult::DeletePtsSceneResult() :
ServiceResult()
{}
DeletePtsSceneResult::DeletePtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePtsSceneResult::~DeletePtsSceneResult()
{}
void DeletePtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeletePtsSceneResult::getMessage()const
{
return message_;
}
int DeletePtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeletePtsSceneResult::getCode()const
{
return code_;
}
bool DeletePtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/DeletePtsScenesRequest.h>
using AlibabaCloud::PTS::Model::DeletePtsScenesRequest;
DeletePtsScenesRequest::DeletePtsScenesRequest()
: RpcServiceRequest("pts", "2020-10-20", "DeletePtsScenes") {
setMethod(HttpRequest::Method::Post);
}
DeletePtsScenesRequest::~DeletePtsScenesRequest() {}
std::string DeletePtsScenesRequest::getSceneIds() const {
return sceneIds_;
}
void DeletePtsScenesRequest::setSceneIds(const std::string &sceneIds) {
sceneIds_ = sceneIds;
setParameter(std::string("SceneIds"), sceneIds);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/DeletePtsScenesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
DeletePtsScenesResult::DeletePtsScenesResult() :
ServiceResult()
{}
DeletePtsScenesResult::DeletePtsScenesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePtsScenesResult::~DeletePtsScenesResult()
{}
void DeletePtsScenesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeletePtsScenesResult::getMessage()const
{
return message_;
}
int DeletePtsScenesResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeletePtsScenesResult::getCode()const
{
return code_;
}
bool DeletePtsScenesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/pts/model/GetAllRegionsRequest.h>
using AlibabaCloud::PTS::Model::GetAllRegionsRequest;
GetAllRegionsRequest::GetAllRegionsRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetAllRegions") {
setMethod(HttpRequest::Method::Post);
}
GetAllRegionsRequest::~GetAllRegionsRequest() {}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/GetAllRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetAllRegionsResult::GetAllRegionsResult() :
ServiceResult()
{}
GetAllRegionsResult::GetAllRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAllRegionsResult::~GetAllRegionsResult()
{}
void GetAllRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["AllRegions"].isNull())
allRegions_ = value["AllRegions"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetAllRegionsResult::getMessage()const
{
return message_;
}
std::string GetAllRegionsResult::getAllRegions()const
{
return allRegions_;
}
int GetAllRegionsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetAllRegionsResult::getCode()const
{
return code_;
}
bool GetAllRegionsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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/pts/model/GetJMeterLogsRequest.h>
using AlibabaCloud::PTS::Model::GetJMeterLogsRequest;
GetJMeterLogsRequest::GetJMeterLogsRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetJMeterLogs") {
setMethod(HttpRequest::Method::Post);
}
GetJMeterLogsRequest::~GetJMeterLogsRequest() {}
int GetJMeterLogsRequest::getAgentIndex() const {
return agentIndex_;
}
void GetJMeterLogsRequest::setAgentIndex(int agentIndex) {
agentIndex_ = agentIndex;
setParameter(std::string("AgentIndex"), std::to_string(agentIndex));
}
std::string GetJMeterLogsRequest::getReportId() const {
return reportId_;
}
void GetJMeterLogsRequest::setReportId(const std::string &reportId) {
reportId_ = reportId;
setParameter(std::string("ReportId"), reportId);
}
std::string GetJMeterLogsRequest::getLevel() const {
return level_;
}
void GetJMeterLogsRequest::setLevel(const std::string &level) {
level_ = level;
setParameter(std::string("Level"), level);
}
long GetJMeterLogsRequest::getEndTime() const {
return endTime_;
}
void GetJMeterLogsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
long GetJMeterLogsRequest::getBeginTime() const {
return beginTime_;
}
void GetJMeterLogsRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
std::string GetJMeterLogsRequest::getThread() const {
return thread_;
}
void GetJMeterLogsRequest::setThread(const std::string &thread) {
thread_ = thread;
setParameter(std::string("Thread"), thread);
}
int GetJMeterLogsRequest::getPageNumber() const {
return pageNumber_;
}
void GetJMeterLogsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
int GetJMeterLogsRequest::getPageSize() const {
return pageSize_;
}
void GetJMeterLogsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string GetJMeterLogsRequest::getKeyword() const {
return keyword_;
}
void GetJMeterLogsRequest::setKeyword(const std::string &keyword) {
keyword_ = keyword;
setParameter(std::string("Keyword"), keyword);
}

View File

@@ -0,0 +1,101 @@
/*
* 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/pts/model/GetJMeterLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetJMeterLogsResult::GetJMeterLogsResult() :
ServiceResult()
{}
GetJMeterLogsResult::GetJMeterLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJMeterLogsResult::~GetJMeterLogsResult()
{}
void GetJMeterLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLogs = value["Logs"]["JMeterLogItem"];
for (const auto &item : allLogs)
logs_.push_back(item.asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["AgentCount"].isNull())
agentCount_ = std::stoi(value["AgentCount"].asString());
}
long GetJMeterLogsResult::getTotalCount()const
{
return totalCount_;
}
int GetJMeterLogsResult::getAgentCount()const
{
return agentCount_;
}
std::string GetJMeterLogsResult::getMessage()const
{
return message_;
}
int GetJMeterLogsResult::getPageSize()const
{
return pageSize_;
}
int GetJMeterLogsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<std::string> GetJMeterLogsResult::getLogs()const
{
return logs_;
}
std::string GetJMeterLogsResult::getCode()const
{
return code_;
}
bool GetJMeterLogsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/pts/model/GetJMeterSampleMetricsRequest.h>
using AlibabaCloud::PTS::Model::GetJMeterSampleMetricsRequest;
GetJMeterSampleMetricsRequest::GetJMeterSampleMetricsRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetJMeterSampleMetrics") {
setMethod(HttpRequest::Method::Post);
}
GetJMeterSampleMetricsRequest::~GetJMeterSampleMetricsRequest() {}
std::string GetJMeterSampleMetricsRequest::getReportId() const {
return reportId_;
}
void GetJMeterSampleMetricsRequest::setReportId(const std::string &reportId) {
reportId_ = reportId;
setParameter(std::string("ReportId"), reportId);
}
int GetJMeterSampleMetricsRequest::getSamplerId() const {
return samplerId_;
}
void GetJMeterSampleMetricsRequest::setSamplerId(int samplerId) {
samplerId_ = samplerId;
setParameter(std::string("SamplerId"), std::to_string(samplerId));
}
long GetJMeterSampleMetricsRequest::getEndTime() const {
return endTime_;
}
void GetJMeterSampleMetricsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
long GetJMeterSampleMetricsRequest::getBeginTime() const {
return beginTime_;
}
void GetJMeterSampleMetricsRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}

View File

@@ -0,0 +1,80 @@
/*
* 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/pts/model/GetJMeterSampleMetricsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetJMeterSampleMetricsResult::GetJMeterSampleMetricsResult() :
ServiceResult()
{}
GetJMeterSampleMetricsResult::GetJMeterSampleMetricsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJMeterSampleMetricsResult::~GetJMeterSampleMetricsResult()
{}
void GetJMeterSampleMetricsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSampleMetricList = value["SampleMetricList"]["BaseMetricVO"];
for (const auto &item : allSampleMetricList)
sampleMetricList_.push_back(item.asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["SamplerMap"].isNull())
samplerMap_ = value["SamplerMap"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetJMeterSampleMetricsResult::getSamplerMap()const
{
return samplerMap_;
}
std::string GetJMeterSampleMetricsResult::getMessage()const
{
return message_;
}
std::vector<std::string> GetJMeterSampleMetricsResult::getSampleMetricList()const
{
return sampleMetricList_;
}
std::string GetJMeterSampleMetricsResult::getCode()const
{
return code_;
}
bool GetJMeterSampleMetricsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,144 @@
/*
* 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/pts/model/GetJMeterSamplingLogsRequest.h>
using AlibabaCloud::PTS::Model::GetJMeterSamplingLogsRequest;
GetJMeterSamplingLogsRequest::GetJMeterSamplingLogsRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetJMeterSamplingLogs") {
setMethod(HttpRequest::Method::Post);
}
GetJMeterSamplingLogsRequest::~GetJMeterSamplingLogsRequest() {}
std::string GetJMeterSamplingLogsRequest::getResponseCode() const {
return responseCode_;
}
void GetJMeterSamplingLogsRequest::setResponseCode(const std::string &responseCode) {
responseCode_ = responseCode;
setParameter(std::string("ResponseCode"), responseCode);
}
long GetJMeterSamplingLogsRequest::getAgentId() const {
return agentId_;
}
void GetJMeterSamplingLogsRequest::setAgentId(long agentId) {
agentId_ = agentId;
setParameter(std::string("AgentId"), std::to_string(agentId));
}
std::string GetJMeterSamplingLogsRequest::getReportId() const {
return reportId_;
}
void GetJMeterSamplingLogsRequest::setReportId(const std::string &reportId) {
reportId_ = reportId;
setParameter(std::string("ReportId"), reportId);
}
int GetJMeterSamplingLogsRequest::getMinRT() const {
return minRT_;
}
void GetJMeterSamplingLogsRequest::setMinRT(int minRT) {
minRT_ = minRT;
setParameter(std::string("MinRT"), std::to_string(minRT));
}
long GetJMeterSamplingLogsRequest::getEndTime() const {
return endTime_;
}
void GetJMeterSamplingLogsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
long GetJMeterSamplingLogsRequest::getBeginTime() const {
return beginTime_;
}
void GetJMeterSamplingLogsRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
std::string GetJMeterSamplingLogsRequest::getThread() const {
return thread_;
}
void GetJMeterSamplingLogsRequest::setThread(const std::string &thread) {
thread_ = thread;
setParameter(std::string("Thread"), thread);
}
int GetJMeterSamplingLogsRequest::getMaxRT() const {
return maxRT_;
}
void GetJMeterSamplingLogsRequest::setMaxRT(int maxRT) {
maxRT_ = maxRT;
setParameter(std::string("MaxRT"), std::to_string(maxRT));
}
int GetJMeterSamplingLogsRequest::getPageNumber() const {
return pageNumber_;
}
void GetJMeterSamplingLogsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
int GetJMeterSamplingLogsRequest::getSamplerId() const {
return samplerId_;
}
void GetJMeterSamplingLogsRequest::setSamplerId(int samplerId) {
samplerId_ = samplerId;
setParameter(std::string("SamplerId"), std::to_string(samplerId));
}
bool GetJMeterSamplingLogsRequest::getSuccess() const {
return success_;
}
void GetJMeterSamplingLogsRequest::setSuccess(bool success) {
success_ = success;
setParameter(std::string("Success"), success ? "true" : "false");
}
int GetJMeterSamplingLogsRequest::getPageSize() const {
return pageSize_;
}
void GetJMeterSamplingLogsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string GetJMeterSamplingLogsRequest::getKeyword() const {
return keyword_;
}
void GetJMeterSamplingLogsRequest::setKeyword(const std::string &keyword) {
keyword_ = keyword;
setParameter(std::string("Keyword"), keyword);
}

View File

@@ -0,0 +1,101 @@
/*
* 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/pts/model/GetJMeterSamplingLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetJMeterSamplingLogsResult::GetJMeterSamplingLogsResult() :
ServiceResult()
{}
GetJMeterSamplingLogsResult::GetJMeterSamplingLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJMeterSamplingLogsResult::~GetJMeterSamplingLogsResult()
{}
void GetJMeterSamplingLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSampleResults = value["SampleResults"]["JMeterSampleResult"];
for (const auto &item : allSampleResults)
sampleResults_.push_back(item.asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
long GetJMeterSamplingLogsResult::getTotalCount()const
{
return totalCount_;
}
std::string GetJMeterSamplingLogsResult::getMessage()const
{
return message_;
}
int GetJMeterSamplingLogsResult::getPageSize()const
{
return pageSize_;
}
int GetJMeterSamplingLogsResult::getPageNumber()const
{
return pageNumber_;
}
int GetJMeterSamplingLogsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<std::string> GetJMeterSamplingLogsResult::getSampleResults()const
{
return sampleResults_;
}
std::string GetJMeterSamplingLogsResult::getCode()const
{
return code_;
}
bool GetJMeterSamplingLogsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/GetJMeterSceneRunningDataRequest.h>
using AlibabaCloud::PTS::Model::GetJMeterSceneRunningDataRequest;
GetJMeterSceneRunningDataRequest::GetJMeterSceneRunningDataRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetJMeterSceneRunningData") {
setMethod(HttpRequest::Method::Post);
}
GetJMeterSceneRunningDataRequest::~GetJMeterSceneRunningDataRequest() {}
std::string GetJMeterSceneRunningDataRequest::getSceneId() const {
return sceneId_;
}
void GetJMeterSceneRunningDataRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,115 @@
/*
* 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/pts/model/GetJMeterSceneRunningDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetJMeterSceneRunningDataResult::GetJMeterSceneRunningDataResult() :
ServiceResult()
{}
GetJMeterSceneRunningDataResult::GetJMeterSceneRunningDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJMeterSceneRunningDataResult::~GetJMeterSceneRunningDataResult()
{}
void GetJMeterSceneRunningDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto runningDataNode = value["RunningData"];
if(!runningDataNode["SceneId"].isNull())
runningData_.sceneId = runningDataNode["SceneId"].asString();
if(!runningDataNode["SceneName"].isNull())
runningData_.sceneName = runningDataNode["SceneName"].asString();
if(!runningDataNode["HoldFor"].isNull())
runningData_.holdFor = std::stoi(runningDataNode["HoldFor"].asString());
if(!runningDataNode["AgentCount"].isNull())
runningData_.agentCount = std::stoi(runningDataNode["AgentCount"].asString());
if(!runningDataNode["Concurrency"].isNull())
runningData_.concurrency = std::stoi(runningDataNode["Concurrency"].asString());
if(!runningDataNode["HasReport"].isNull())
runningData_.hasReport = runningDataNode["HasReport"].asString() == "true";
if(!runningDataNode["IsDebugging"].isNull())
runningData_.isDebugging = runningDataNode["IsDebugging"].asString() == "true";
if(!runningDataNode["Status"].isNull())
runningData_.status = runningDataNode["Status"].asString();
if(!runningDataNode["Vum"].isNull())
runningData_.vum = std::stol(runningDataNode["Vum"].asString());
if(!runningDataNode["StartTimeTS"].isNull())
runningData_.startTimeTS = std::stol(runningDataNode["StartTimeTS"].asString());
if(!runningDataNode["StageName"].isNull())
runningData_.stageName = runningDataNode["StageName"].asString();
if(!runningDataNode["AllSampleStat"].isNull())
runningData_.allSampleStat = runningDataNode["AllSampleStat"].asString();
auto allAgentIdList = runningDataNode["AgentIdList"]["agentIdList"];
for (auto value : allAgentIdList)
runningData_.agentIdList.push_back(value.asString());
auto allSampleStatList = runningDataNode["SampleStatList"]["sampleStatList"];
for (auto value : allSampleStatList)
runningData_.sampleStatList.push_back(value.asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["DocumentUrl"].isNull())
documentUrl_ = value["DocumentUrl"].asString();
}
GetJMeterSceneRunningDataResult::RunningData GetJMeterSceneRunningDataResult::getRunningData()const
{
return runningData_;
}
std::string GetJMeterSceneRunningDataResult::getMessage()const
{
return message_;
}
int GetJMeterSceneRunningDataResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetJMeterSceneRunningDataResult::getDocumentUrl()const
{
return documentUrl_;
}
std::string GetJMeterSceneRunningDataResult::getCode()const
{
return code_;
}
bool GetJMeterSceneRunningDataResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/GetOpenJMeterSceneRequest.h>
using AlibabaCloud::PTS::Model::GetOpenJMeterSceneRequest;
GetOpenJMeterSceneRequest::GetOpenJMeterSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetOpenJMeterScene") {
setMethod(HttpRequest::Method::Post);
}
GetOpenJMeterSceneRequest::~GetOpenJMeterSceneRequest() {}
std::string GetOpenJMeterSceneRequest::getSceneId() const {
return sceneId_;
}
void GetOpenJMeterSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,161 @@
/*
* 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/pts/model/GetOpenJMeterSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetOpenJMeterSceneResult::GetOpenJMeterSceneResult() :
ServiceResult()
{}
GetOpenJMeterSceneResult::GetOpenJMeterSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOpenJMeterSceneResult::~GetOpenJMeterSceneResult()
{}
void GetOpenJMeterSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto sceneNode = value["Scene"];
if(!sceneNode["SceneName"].isNull())
scene_.sceneName = sceneNode["SceneName"].asString();
if(!sceneNode["SceneId"].isNull())
scene_.sceneId = sceneNode["SceneId"].asString();
if(!sceneNode["EnvironmentId"].isNull())
scene_.environmentId = sceneNode["EnvironmentId"].asString();
if(!sceneNode["TestFile"].isNull())
scene_.testFile = sceneNode["TestFile"].asString();
if(!sceneNode["IsVpcTest"].isNull())
scene_.isVpcTest = sceneNode["IsVpcTest"].asString() == "true";
if(!sceneNode["Duration"].isNull())
scene_.duration = std::stoi(sceneNode["Duration"].asString());
if(!sceneNode["Concurrency"].isNull())
scene_.concurrency = std::stoi(sceneNode["Concurrency"].asString());
if(!sceneNode["AgentCount"].isNull())
scene_.agentCount = std::stoi(sceneNode["AgentCount"].asString());
if(!sceneNode["RampUp"].isNull())
scene_.rampUp = std::stoi(sceneNode["RampUp"].asString());
if(!sceneNode["Steps"].isNull())
scene_.steps = std::stoi(sceneNode["Steps"].asString());
if(!sceneNode["RegionId"].isNull())
scene_.regionId = sceneNode["RegionId"].asString();
if(!sceneNode["VpcId"].isNull())
scene_.vpcId = sceneNode["VpcId"].asString();
if(!sceneNode["SecurityGroupId"].isNull())
scene_.securityGroupId = sceneNode["SecurityGroupId"].asString();
if(!sceneNode["VSwitchId"].isNull())
scene_.vSwitchId = sceneNode["VSwitchId"].asString();
if(!sceneNode["SyncTimerType"].isNull())
scene_.syncTimerType = sceneNode["SyncTimerType"].asString();
if(!sceneNode["ConstantThroughputTimerType"].isNull())
scene_.constantThroughputTimerType = sceneNode["ConstantThroughputTimerType"].asString();
if(!sceneNode["Pool"].isNull())
scene_.pool = sceneNode["Pool"].asString();
if(!sceneNode["Mode"].isNull())
scene_.mode = sceneNode["Mode"].asString();
if(!sceneNode["StartRps"].isNull())
scene_.startRps = std::stoi(sceneNode["StartRps"].asString());
if(!sceneNode["MaxRps"].isNull())
scene_.maxRps = std::stoi(sceneNode["MaxRps"].asString());
if(!sceneNode["StartConcurrency"].isNull())
scene_.startConcurrency = std::stoi(sceneNode["StartConcurrency"].asString());
auto allFileListNode = sceneNode["FileList"]["fileListItem"];
for (auto sceneNodeFileListfileListItem : allFileListNode)
{
Scene::FileListItem fileListItemObject;
if(!sceneNodeFileListfileListItem["Id"].isNull())
fileListItemObject.id = std::stol(sceneNodeFileListfileListItem["Id"].asString());
if(!sceneNodeFileListfileListItem["FileName"].isNull())
fileListItemObject.fileName = sceneNodeFileListfileListItem["FileName"].asString();
if(!sceneNodeFileListfileListItem["FileOssAddress"].isNull())
fileListItemObject.fileOssAddress = sceneNodeFileListfileListItem["FileOssAddress"].asString();
if(!sceneNodeFileListfileListItem["SplitCsv"].isNull())
fileListItemObject.splitCsv = sceneNodeFileListfileListItem["SplitCsv"].asString() == "true";
if(!sceneNodeFileListfileListItem["Md5"].isNull())
fileListItemObject.md5 = sceneNodeFileListfileListItem["Md5"].asString();
if(!sceneNodeFileListfileListItem["FileSize"].isNull())
fileListItemObject.fileSize = std::stol(sceneNodeFileListfileListItem["FileSize"].asString());
if(!sceneNodeFileListfileListItem["FileType"].isNull())
fileListItemObject.fileType = sceneNodeFileListfileListItem["FileType"].asString();
scene_.fileList.push_back(fileListItemObject);
}
auto baseInfoNode = sceneNode["BaseInfo"];
if(!baseInfoNode["Remark"].isNull())
scene_.baseInfo.remark = baseInfoNode["Remark"].asString();
if(!baseInfoNode["Principal"].isNull())
scene_.baseInfo.principal = baseInfoNode["Principal"].asString();
if(!baseInfoNode["Resource"].isNull())
scene_.baseInfo.resource = baseInfoNode["Resource"].asString();
if(!baseInfoNode["CreateName"].isNull())
scene_.baseInfo.createName = baseInfoNode["CreateName"].asString();
if(!baseInfoNode["ModifyName"].isNull())
scene_.baseInfo.modifyName = baseInfoNode["ModifyName"].asString();
if(!baseInfoNode["OperateType"].isNull())
scene_.baseInfo.operateType = baseInfoNode["OperateType"].asString();
auto dnsCacheConfigNode = sceneNode["DnsCacheConfig"];
if(!dnsCacheConfigNode["ClearCacheEachIteration"].isNull())
scene_.dnsCacheConfig.clearCacheEachIteration = dnsCacheConfigNode["ClearCacheEachIteration"].asString() == "true";
if(!dnsCacheConfigNode["HostTable"].isNull())
scene_.dnsCacheConfig.hostTable = dnsCacheConfigNode["HostTable"].asString();
auto allDnsServers = dnsCacheConfigNode["DnsServers"]["dnsServers"];
for (auto value : allDnsServers)
scene_.dnsCacheConfig.dnsServers.push_back(value.asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetOpenJMeterSceneResult::getMessage()const
{
return message_;
}
int GetOpenJMeterSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetOpenJMeterSceneResult::Scene GetOpenJMeterSceneResult::getScene()const
{
return scene_;
}
std::string GetOpenJMeterSceneResult::getCode()const
{
return code_;
}
bool GetOpenJMeterSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/pts/model/GetPtsReportDetailsRequest.h>
using AlibabaCloud::PTS::Model::GetPtsReportDetailsRequest;
GetPtsReportDetailsRequest::GetPtsReportDetailsRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetPtsReportDetails") {
setMethod(HttpRequest::Method::Post);
}
GetPtsReportDetailsRequest::~GetPtsReportDetailsRequest() {}
std::string GetPtsReportDetailsRequest::getSceneId() const {
return sceneId_;
}
void GetPtsReportDetailsRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}
std::string GetPtsReportDetailsRequest::getPlanId() const {
return planId_;
}
void GetPtsReportDetailsRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View File

@@ -0,0 +1,328 @@
/*
* 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/pts/model/GetPtsReportDetailsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetPtsReportDetailsResult::GetPtsReportDetailsResult() :
ServiceResult()
{}
GetPtsReportDetailsResult::GetPtsReportDetailsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPtsReportDetailsResult::~GetPtsReportDetailsResult()
{}
void GetPtsReportDetailsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiMetricsListNode = value["ApiMetricsList"]["ApiMetrics"];
for (auto valueApiMetricsListApiMetrics : allApiMetricsListNode)
{
ApiMetrics apiMetricsListObject;
if(!valueApiMetricsListApiMetrics["FailCountBiz"].isNull())
apiMetricsListObject.failCountBiz = std::stol(valueApiMetricsListApiMetrics["FailCountBiz"].asString());
if(!valueApiMetricsListApiMetrics["Seg75Rt"].isNull())
apiMetricsListObject.seg75Rt = std::stof(valueApiMetricsListApiMetrics["Seg75Rt"].asString());
if(!valueApiMetricsListApiMetrics["AllCount"].isNull())
apiMetricsListObject.allCount = std::stol(valueApiMetricsListApiMetrics["AllCount"].asString());
if(!valueApiMetricsListApiMetrics["AvgTps"].isNull())
apiMetricsListObject.avgTps = std::stof(valueApiMetricsListApiMetrics["AvgTps"].asString());
if(!valueApiMetricsListApiMetrics["MinRt"].isNull())
apiMetricsListObject.minRt = std::stof(valueApiMetricsListApiMetrics["MinRt"].asString());
if(!valueApiMetricsListApiMetrics["Seg99Rt"].isNull())
apiMetricsListObject.seg99Rt = std::stof(valueApiMetricsListApiMetrics["Seg99Rt"].asString());
if(!valueApiMetricsListApiMetrics["Seg50Rt"].isNull())
apiMetricsListObject.seg50Rt = std::stof(valueApiMetricsListApiMetrics["Seg50Rt"].asString());
if(!valueApiMetricsListApiMetrics["MaxRt"].isNull())
apiMetricsListObject.maxRt = std::stof(valueApiMetricsListApiMetrics["MaxRt"].asString());
if(!valueApiMetricsListApiMetrics["Seg90Rt"].isNull())
apiMetricsListObject.seg90Rt = std::stof(valueApiMetricsListApiMetrics["Seg90Rt"].asString());
if(!valueApiMetricsListApiMetrics["SuccessRateBiz"].isNull())
apiMetricsListObject.successRateBiz = std::stof(valueApiMetricsListApiMetrics["SuccessRateBiz"].asString());
if(!valueApiMetricsListApiMetrics["AvgRt"].isNull())
apiMetricsListObject.avgRt = std::stof(valueApiMetricsListApiMetrics["AvgRt"].asString());
if(!valueApiMetricsListApiMetrics["FailCountReq"].isNull())
apiMetricsListObject.failCountReq = std::stol(valueApiMetricsListApiMetrics["FailCountReq"].asString());
if(!valueApiMetricsListApiMetrics["SuccessRateReq"].isNull())
apiMetricsListObject.successRateReq = std::stof(valueApiMetricsListApiMetrics["SuccessRateReq"].asString());
if(!valueApiMetricsListApiMetrics["ApiName"].isNull())
apiMetricsListObject.apiName = valueApiMetricsListApiMetrics["ApiName"].asString();
apiMetricsList_.push_back(apiMetricsListObject);
}
auto reportOverViewNode = value["ReportOverView"];
if(!reportOverViewNode["ReportName"].isNull())
reportOverView_.reportName = reportOverViewNode["ReportName"].asString();
if(!reportOverViewNode["EndTime"].isNull())
reportOverView_.endTime = reportOverViewNode["EndTime"].asString();
if(!reportOverViewNode["StartTime"].isNull())
reportOverView_.startTime = reportOverViewNode["StartTime"].asString();
if(!reportOverViewNode["AgentCount"].isNull())
reportOverView_.agentCount = std::stoi(reportOverViewNode["AgentCount"].asString());
if(!reportOverViewNode["ReportId"].isNull())
reportOverView_.reportId = reportOverViewNode["ReportId"].asString();
if(!reportOverViewNode["Vum"].isNull())
reportOverView_.vum = std::stol(reportOverViewNode["Vum"].asString());
auto sceneMetricsNode = value["SceneMetrics"];
if(!sceneMetricsNode["FailCountBiz"].isNull())
sceneMetrics_.failCountBiz = std::stol(sceneMetricsNode["FailCountBiz"].asString());
if(!sceneMetricsNode["AllCount"].isNull())
sceneMetrics_.allCount = std::stol(sceneMetricsNode["AllCount"].asString());
if(!sceneMetricsNode["SuccessRateBiz"].isNull())
sceneMetrics_.successRateBiz = std::stof(sceneMetricsNode["SuccessRateBiz"].asString());
if(!sceneMetricsNode["AvgRt"].isNull())
sceneMetrics_.avgRt = std::stof(sceneMetricsNode["AvgRt"].asString());
if(!sceneMetricsNode["FailCountReq"].isNull())
sceneMetrics_.failCountReq = std::stol(sceneMetricsNode["FailCountReq"].asString());
if(!sceneMetricsNode["AvgTps"].isNull())
sceneMetrics_.avgTps = std::stof(sceneMetricsNode["AvgTps"].asString());
if(!sceneMetricsNode["Seg99Rt"].isNull())
sceneMetrics_.seg99Rt = std::stof(sceneMetricsNode["Seg99Rt"].asString());
if(!sceneMetricsNode["SuccessRateReq"].isNull())
sceneMetrics_.successRateReq = std::stof(sceneMetricsNode["SuccessRateReq"].asString());
if(!sceneMetricsNode["Seg90Rt"].isNull())
sceneMetrics_.seg90Rt = std::stof(sceneMetricsNode["Seg90Rt"].asString());
auto sceneSnapShotNode = value["SceneSnapShot"];
if(!sceneSnapShotNode["Status"].isNull())
sceneSnapShot_.status = sceneSnapShotNode["Status"].asString();
if(!sceneSnapShotNode["ModifiedTime"].isNull())
sceneSnapShot_.modifiedTime = sceneSnapShotNode["ModifiedTime"].asString();
if(!sceneSnapShotNode["CreateTime"].isNull())
sceneSnapShot_.createTime = sceneSnapShotNode["CreateTime"].asString();
if(!sceneSnapShotNode["SceneName"].isNull())
sceneSnapShot_.sceneName = sceneSnapShotNode["SceneName"].asString();
if(!sceneSnapShotNode["SceneId"].isNull())
sceneSnapShot_.sceneId = sceneSnapShotNode["SceneId"].asString();
auto allFileParameterListNode = sceneSnapShotNode["FileParameterList"]["FileParameter"];
for (auto sceneSnapShotNodeFileParameterListFileParameter : allFileParameterListNode)
{
SceneSnapShot::FileParameter fileParameterObject;
if(!sceneSnapShotNodeFileParameterListFileParameter["FileOssAddress"].isNull())
fileParameterObject.fileOssAddress = sceneSnapShotNodeFileParameterListFileParameter["FileOssAddress"].asString();
if(!sceneSnapShotNodeFileParameterListFileParameter["FileName"].isNull())
fileParameterObject.fileName = sceneSnapShotNodeFileParameterListFileParameter["FileName"].asString();
sceneSnapShot_.fileParameterList.push_back(fileParameterObject);
}
auto allRelationListNode = sceneSnapShotNode["RelationList"]["Relation"];
for (auto sceneSnapShotNodeRelationListRelation : allRelationListNode)
{
SceneSnapShot::Relation relationObject;
if(!sceneSnapShotNodeRelationListRelation["RelationName"].isNull())
relationObject.relationName = sceneSnapShotNodeRelationListRelation["RelationName"].asString();
if(!sceneSnapShotNodeRelationListRelation["RelationId"].isNull())
relationObject.relationId = sceneSnapShotNodeRelationListRelation["RelationId"].asString();
auto allFileParameterExplainListNode = sceneSnapShotNodeRelationListRelation["FileParameterExplainList"]["FileParameterExplain"];
for (auto sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain : allFileParameterExplainListNode)
{
SceneSnapShot::Relation::FileParameterExplain fileParameterExplainListObject;
if(!sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["CycleOnce"].isNull())
fileParameterExplainListObject.cycleOnce = sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["CycleOnce"].asString() == "true";
if(!sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileParamName"].isNull())
fileParameterExplainListObject.fileParamName = sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileParamName"].asString();
if(!sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileName"].isNull())
fileParameterExplainListObject.fileName = sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileName"].asString();
if(!sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["BaseFile"].isNull())
fileParameterExplainListObject.baseFile = sceneSnapShotNodeRelationListRelationFileParameterExplainListFileParameterExplain["BaseFile"].asString() == "true";
relationObject.fileParameterExplainList.push_back(fileParameterExplainListObject);
}
auto allApiListNode = sceneSnapShotNodeRelationListRelation["ApiList"]["Api"];
for (auto sceneSnapShotNodeRelationListRelationApiListApi : allApiListNode)
{
SceneSnapShot::Relation::Api apiListObject;
if(!sceneSnapShotNodeRelationListRelationApiListApi["ApiId"].isNull())
apiListObject.apiId = sceneSnapShotNodeRelationListRelationApiListApi["ApiId"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApi["TimeoutInSecond"].isNull())
apiListObject.timeoutInSecond = std::stoi(sceneSnapShotNodeRelationListRelationApiListApi["TimeoutInSecond"].asString());
if(!sceneSnapShotNodeRelationListRelationApiListApi["Url"].isNull())
apiListObject.url = sceneSnapShotNodeRelationListRelationApiListApi["Url"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApi["Method"].isNull())
apiListObject.method = sceneSnapShotNodeRelationListRelationApiListApi["Method"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApi["RedirectCountLimit"].isNull())
apiListObject.redirectCountLimit = std::stoi(sceneSnapShotNodeRelationListRelationApiListApi["RedirectCountLimit"].asString());
if(!sceneSnapShotNodeRelationListRelationApiListApi["ApiName"].isNull())
apiListObject.apiName = sceneSnapShotNodeRelationListRelationApiListApi["ApiName"].asString();
auto allCheckPointListNode = sceneSnapShotNodeRelationListRelationApiListApi["CheckPointList"]["CheckPoint"];
for (auto sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint : allCheckPointListNode)
{
SceneSnapShot::Relation::Api::CheckPoint checkPointListObject;
if(!sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckType"].isNull())
checkPointListObject.checkType = sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckType"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["Operator"].isNull())
checkPointListObject._operator = sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["Operator"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["ExpectValue"].isNull())
checkPointListObject.expectValue = sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["ExpectValue"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckPoint"].isNull())
checkPointListObject.checkPoint = sceneSnapShotNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckPoint"].asString();
apiListObject.checkPointList.push_back(checkPointListObject);
}
auto allHeaderListNode = sceneSnapShotNodeRelationListRelationApiListApi["HeaderList"]["Header"];
for (auto sceneSnapShotNodeRelationListRelationApiListApiHeaderListHeader : allHeaderListNode)
{
SceneSnapShot::Relation::Api::Header headerListObject;
if(!sceneSnapShotNodeRelationListRelationApiListApiHeaderListHeader["HeaderValue"].isNull())
headerListObject.headerValue = sceneSnapShotNodeRelationListRelationApiListApiHeaderListHeader["HeaderValue"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApiHeaderListHeader["HeaderName"].isNull())
headerListObject.headerName = sceneSnapShotNodeRelationListRelationApiListApiHeaderListHeader["HeaderName"].asString();
apiListObject.headerList.push_back(headerListObject);
}
auto allExportListNode = sceneSnapShotNodeRelationListRelationApiListApi["ExportList"]["Export"];
for (auto sceneSnapShotNodeRelationListRelationApiListApiExportListExport : allExportListNode)
{
SceneSnapShot::Relation::Api::Export exportListObject;
if(!sceneSnapShotNodeRelationListRelationApiListApiExportListExport["ExportType"].isNull())
exportListObject.exportType = sceneSnapShotNodeRelationListRelationApiListApiExportListExport["ExportType"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApiExportListExport["ExportValue"].isNull())
exportListObject.exportValue = sceneSnapShotNodeRelationListRelationApiListApiExportListExport["ExportValue"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApiExportListExport["ExportName"].isNull())
exportListObject.exportName = sceneSnapShotNodeRelationListRelationApiListApiExportListExport["ExportName"].asString();
if(!sceneSnapShotNodeRelationListRelationApiListApiExportListExport["Count"].isNull())
exportListObject.count = sceneSnapShotNodeRelationListRelationApiListApiExportListExport["Count"].asString();
apiListObject.exportList.push_back(exportListObject);
}
auto bodyNode = value["Body"];
if(!bodyNode["BodyValue"].isNull())
apiListObject.body.bodyValue = bodyNode["BodyValue"].asString();
if(!bodyNode["ContentType"].isNull())
apiListObject.body.contentType = bodyNode["ContentType"].asString();
relationObject.apiList.push_back(apiListObject);
}
sceneSnapShot_.relationList.push_back(relationObject);
}
auto allGlobalParameterListNode = sceneSnapShotNode["GlobalParameterList"]["GlobalParameter"];
for (auto sceneSnapShotNodeGlobalParameterListGlobalParameter : allGlobalParameterListNode)
{
SceneSnapShot::GlobalParameter globalParameterObject;
if(!sceneSnapShotNodeGlobalParameterListGlobalParameter["ParamName"].isNull())
globalParameterObject.paramName = sceneSnapShotNodeGlobalParameterListGlobalParameter["ParamName"].asString();
if(!sceneSnapShotNodeGlobalParameterListGlobalParameter["ParamValue"].isNull())
globalParameterObject.paramValue = sceneSnapShotNodeGlobalParameterListGlobalParameter["ParamValue"].asString();
sceneSnapShot_.globalParameterList.push_back(globalParameterObject);
}
auto loadConfigNode = sceneSnapShotNode["LoadConfig"];
if(!loadConfigNode["MaxRunningTime"].isNull())
sceneSnapShot_.loadConfig.maxRunningTime = std::stoi(loadConfigNode["MaxRunningTime"].asString());
if(!loadConfigNode["AgentCount"].isNull())
sceneSnapShot_.loadConfig.agentCount = std::stoi(loadConfigNode["AgentCount"].asString());
if(!loadConfigNode["TestMode"].isNull())
sceneSnapShot_.loadConfig.testMode = loadConfigNode["TestMode"].asString();
auto allApiLoadConfigListNode = loadConfigNode["ApiLoadConfigList"]["ApiLoadConfig"];
for (auto loadConfigNodeApiLoadConfigListApiLoadConfig : allApiLoadConfigListNode)
{
SceneSnapShot::LoadConfig::ApiLoadConfig apiLoadConfigObject;
if(!loadConfigNodeApiLoadConfigListApiLoadConfig["RpsBegin"].isNull())
apiLoadConfigObject.rpsBegin = std::stoi(loadConfigNodeApiLoadConfigListApiLoadConfig["RpsBegin"].asString());
if(!loadConfigNodeApiLoadConfigListApiLoadConfig["RpsLimit"].isNull())
apiLoadConfigObject.rpsLimit = std::stoi(loadConfigNodeApiLoadConfigListApiLoadConfig["RpsLimit"].asString());
sceneSnapShot_.loadConfig.apiLoadConfigList.push_back(apiLoadConfigObject);
}
auto allRelationLoadConfigListNode = loadConfigNode["RelationLoadConfigList"]["RelationLoadConfig"];
for (auto loadConfigNodeRelationLoadConfigListRelationLoadConfig : allRelationLoadConfigListNode)
{
SceneSnapShot::LoadConfig::RelationLoadConfig relationLoadConfigObject;
if(!loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyBegin"].isNull())
relationLoadConfigObject.concurrencyBegin = std::stoi(loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyBegin"].asString());
if(!loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyLimit"].isNull())
relationLoadConfigObject.concurrencyLimit = std::stoi(loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyLimit"].asString());
sceneSnapShot_.loadConfig.relationLoadConfigList.push_back(relationLoadConfigObject);
}
auto configurationNode = loadConfigNode["Configuration"];
if(!configurationNode["AllRpsBegin"].isNull())
sceneSnapShot_.loadConfig.configuration.allRpsBegin = std::stoi(configurationNode["AllRpsBegin"].asString());
if(!configurationNode["AllConcurrencyBegin"].isNull())
sceneSnapShot_.loadConfig.configuration.allConcurrencyBegin = std::stoi(configurationNode["AllConcurrencyBegin"].asString());
if(!configurationNode["AllConcurrencyLimit"].isNull())
sceneSnapShot_.loadConfig.configuration.allConcurrencyLimit = std::stoi(configurationNode["AllConcurrencyLimit"].asString());
if(!configurationNode["AllRpsLimit"].isNull())
sceneSnapShot_.loadConfig.configuration.allRpsLimit = std::stoi(configurationNode["AllRpsLimit"].asString());
auto advanceSettingNode = sceneSnapShotNode["AdvanceSetting"];
if(!advanceSettingNode["LogRate"].isNull())
sceneSnapShot_.advanceSetting.logRate = std::stoi(advanceSettingNode["LogRate"].asString());
if(!advanceSettingNode["ConnectionTimeoutInSecond"].isNull())
sceneSnapShot_.advanceSetting.connectionTimeoutInSecond = std::stoi(advanceSettingNode["ConnectionTimeoutInSecond"].asString());
if(!advanceSettingNode["SuccessCode"].isNull())
sceneSnapShot_.advanceSetting.successCode = advanceSettingNode["SuccessCode"].asString();
auto allDomainBindingListNode = advanceSettingNode["DomainBindingList"]["DomainBinding"];
for (auto advanceSettingNodeDomainBindingListDomainBinding : allDomainBindingListNode)
{
SceneSnapShot::AdvanceSetting::DomainBinding domainBindingObject;
if(!advanceSettingNodeDomainBindingListDomainBinding["Domain"].isNull())
domainBindingObject.domain = advanceSettingNodeDomainBindingListDomainBinding["Domain"].asString();
auto allIps = value["Ips"]["String"];
for (auto value : allIps)
domainBindingObject.ips.push_back(value.asString());
sceneSnapShot_.advanceSetting.domainBindingList.push_back(domainBindingObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetPtsReportDetailsResult::ReportOverView GetPtsReportDetailsResult::getReportOverView()const
{
return reportOverView_;
}
GetPtsReportDetailsResult::SceneMetrics GetPtsReportDetailsResult::getSceneMetrics()const
{
return sceneMetrics_;
}
std::string GetPtsReportDetailsResult::getMessage()const
{
return message_;
}
std::vector<GetPtsReportDetailsResult::ApiMetrics> GetPtsReportDetailsResult::getApiMetricsList()const
{
return apiMetricsList_;
}
int GetPtsReportDetailsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetPtsReportDetailsResult::SceneSnapShot GetPtsReportDetailsResult::getSceneSnapShot()const
{
return sceneSnapShot_;
}
std::string GetPtsReportDetailsResult::getCode()const
{
return code_;
}
bool GetPtsReportDetailsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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/pts/model/GetPtsReportsBySceneIdRequest.h>
using AlibabaCloud::PTS::Model::GetPtsReportsBySceneIdRequest;
GetPtsReportsBySceneIdRequest::GetPtsReportsBySceneIdRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetPtsReportsBySceneId") {
setMethod(HttpRequest::Method::Post);
}
GetPtsReportsBySceneIdRequest::~GetPtsReportsBySceneIdRequest() {}
std::string GetPtsReportsBySceneIdRequest::getSceneId() const {
return sceneId_;
}
void GetPtsReportsBySceneIdRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}
int GetPtsReportsBySceneIdRequest::getPageSize() const {
return pageSize_;
}
void GetPtsReportsBySceneIdRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
int GetPtsReportsBySceneIdRequest::getPageNumber() const {
return pageNumber_;
}
void GetPtsReportsBySceneIdRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -0,0 +1,95 @@
/*
* 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/pts/model/GetPtsReportsBySceneIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetPtsReportsBySceneIdResult::GetPtsReportsBySceneIdResult() :
ServiceResult()
{}
GetPtsReportsBySceneIdResult::GetPtsReportsBySceneIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPtsReportsBySceneIdResult::~GetPtsReportsBySceneIdResult()
{}
void GetPtsReportsBySceneIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allReportOverViewListNode = value["ReportOverViewList"]["ReportOverView"];
for (auto valueReportOverViewListReportOverView : allReportOverViewListNode)
{
ReportOverView reportOverViewListObject;
if(!valueReportOverViewListReportOverView["ReportName"].isNull())
reportOverViewListObject.reportName = valueReportOverViewListReportOverView["ReportName"].asString();
if(!valueReportOverViewListReportOverView["EndTime"].isNull())
reportOverViewListObject.endTime = valueReportOverViewListReportOverView["EndTime"].asString();
if(!valueReportOverViewListReportOverView["StartTime"].isNull())
reportOverViewListObject.startTime = valueReportOverViewListReportOverView["StartTime"].asString();
if(!valueReportOverViewListReportOverView["AgentCount"].isNull())
reportOverViewListObject.agentCount = std::stoi(valueReportOverViewListReportOverView["AgentCount"].asString());
if(!valueReportOverViewListReportOverView["ReportId"].isNull())
reportOverViewListObject.reportId = valueReportOverViewListReportOverView["ReportId"].asString();
if(!valueReportOverViewListReportOverView["Vum"].isNull())
reportOverViewListObject.vum = std::stol(valueReportOverViewListReportOverView["Vum"].asString());
reportOverViewList_.push_back(reportOverViewListObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetPtsReportsBySceneIdResult::getMessage()const
{
return message_;
}
std::vector<GetPtsReportsBySceneIdResult::ReportOverView> GetPtsReportsBySceneIdResult::getReportOverViewList()const
{
return reportOverViewList_;
}
int GetPtsReportsBySceneIdResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetPtsReportsBySceneIdResult::getCode()const
{
return code_;
}
bool GetPtsReportsBySceneIdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/GetPtsSceneBaseLineRequest.h>
using AlibabaCloud::PTS::Model::GetPtsSceneBaseLineRequest;
GetPtsSceneBaseLineRequest::GetPtsSceneBaseLineRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetPtsSceneBaseLine") {
setMethod(HttpRequest::Method::Post);
}
GetPtsSceneBaseLineRequest::~GetPtsSceneBaseLineRequest() {}
std::string GetPtsSceneBaseLineRequest::getSceneId() const {
return sceneId_;
}
void GetPtsSceneBaseLineRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,134 @@
/*
* 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/pts/model/GetPtsSceneBaseLineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetPtsSceneBaseLineResult::GetPtsSceneBaseLineResult() :
ServiceResult()
{}
GetPtsSceneBaseLineResult::GetPtsSceneBaseLineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPtsSceneBaseLineResult::~GetPtsSceneBaseLineResult()
{}
void GetPtsSceneBaseLineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto baselineNode = value["Baseline"];
if(!baselineNode["Name"].isNull())
baseline_.name = baselineNode["Name"].asString();
auto allApiBaselinesNode = baselineNode["ApiBaselines"]["ChainBaselineData"];
for (auto baselineNodeApiBaselinesChainBaselineData : allApiBaselinesNode)
{
Baseline::ChainBaselineData chainBaselineDataObject;
if(!baselineNodeApiBaselinesChainBaselineData["FailCountBiz"].isNull())
chainBaselineDataObject.failCountBiz = std::stol(baselineNodeApiBaselinesChainBaselineData["FailCountBiz"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["AvgTps"].isNull())
chainBaselineDataObject.avgTps = std::stof(baselineNodeApiBaselinesChainBaselineData["AvgTps"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["MinRt"].isNull())
chainBaselineDataObject.minRt = std::stoi(baselineNodeApiBaselinesChainBaselineData["MinRt"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["Seg99Rt"].isNull())
chainBaselineDataObject.seg99Rt = std::stof(baselineNodeApiBaselinesChainBaselineData["Seg99Rt"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["MaxRt"].isNull())
chainBaselineDataObject.maxRt = std::stoi(baselineNodeApiBaselinesChainBaselineData["MaxRt"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["Seg90Rt"].isNull())
chainBaselineDataObject.seg90Rt = std::stof(baselineNodeApiBaselinesChainBaselineData["Seg90Rt"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["SuccessRateBiz"].isNull())
chainBaselineDataObject.successRateBiz = std::stof(baselineNodeApiBaselinesChainBaselineData["SuccessRateBiz"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["AvgRt"].isNull())
chainBaselineDataObject.avgRt = std::stof(baselineNodeApiBaselinesChainBaselineData["AvgRt"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["FailCountReq"].isNull())
chainBaselineDataObject.failCountReq = std::stol(baselineNodeApiBaselinesChainBaselineData["FailCountReq"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["Name"].isNull())
chainBaselineDataObject.name = baselineNodeApiBaselinesChainBaselineData["Name"].asString();
if(!baselineNodeApiBaselinesChainBaselineData["SuccessRateReq"].isNull())
chainBaselineDataObject.successRateReq = std::stof(baselineNodeApiBaselinesChainBaselineData["SuccessRateReq"].asString());
if(!baselineNodeApiBaselinesChainBaselineData["Id"].isNull())
chainBaselineDataObject.id = std::stol(baselineNodeApiBaselinesChainBaselineData["Id"].asString());
baseline_.apiBaselines.push_back(chainBaselineDataObject);
}
auto sceneBaselineNode = baselineNode["SceneBaseline"];
if(!sceneBaselineNode["FailCountBiz"].isNull())
baseline_.sceneBaseline.failCountBiz = std::stol(sceneBaselineNode["FailCountBiz"].asString());
if(!sceneBaselineNode["SuccessRateBiz"].isNull())
baseline_.sceneBaseline.successRateBiz = std::stof(sceneBaselineNode["SuccessRateBiz"].asString());
if(!sceneBaselineNode["AvgRt"].isNull())
baseline_.sceneBaseline.avgRt = std::stof(sceneBaselineNode["AvgRt"].asString());
if(!sceneBaselineNode["FailCountReq"].isNull())
baseline_.sceneBaseline.failCountReq = std::stol(sceneBaselineNode["FailCountReq"].asString());
if(!sceneBaselineNode["AvgTps"].isNull())
baseline_.sceneBaseline.avgTps = std::stof(sceneBaselineNode["AvgTps"].asString());
if(!sceneBaselineNode["Seg99Rt"].isNull())
baseline_.sceneBaseline.seg99Rt = std::stof(sceneBaselineNode["Seg99Rt"].asString());
if(!sceneBaselineNode["SuccessRateReq"].isNull())
baseline_.sceneBaseline.successRateReq = std::stof(sceneBaselineNode["SuccessRateReq"].asString());
if(!sceneBaselineNode["Seg90Rt"].isNull())
baseline_.sceneBaseline.seg90Rt = std::stof(sceneBaselineNode["Seg90Rt"].asString());
if(!value["SceneId"].isNull())
sceneId_ = value["SceneId"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetPtsSceneBaseLineResult::getSceneId()const
{
return sceneId_;
}
std::string GetPtsSceneBaseLineResult::getMessage()const
{
return message_;
}
int GetPtsSceneBaseLineResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetPtsSceneBaseLineResult::Baseline GetPtsSceneBaseLineResult::getBaseline()const
{
return baseline_;
}
std::string GetPtsSceneBaseLineResult::getCode()const
{
return code_;
}
bool GetPtsSceneBaseLineResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/GetPtsSceneRequest.h>
using AlibabaCloud::PTS::Model::GetPtsSceneRequest;
GetPtsSceneRequest::GetPtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetPtsScene") {
setMethod(HttpRequest::Method::Post);
}
GetPtsSceneRequest::~GetPtsSceneRequest() {}
std::string GetPtsSceneRequest::getSceneId() const {
return sceneId_;
}
void GetPtsSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,266 @@
/*
* 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/pts/model/GetPtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetPtsSceneResult::GetPtsSceneResult() :
ServiceResult()
{}
GetPtsSceneResult::GetPtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPtsSceneResult::~GetPtsSceneResult()
{}
void GetPtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto sceneNode = value["Scene"];
if(!sceneNode["Status"].isNull())
scene_.status = sceneNode["Status"].asString();
if(!sceneNode["ModifiedTime"].isNull())
scene_.modifiedTime = sceneNode["ModifiedTime"].asString();
if(!sceneNode["CreateTime"].isNull())
scene_.createTime = sceneNode["CreateTime"].asString();
if(!sceneNode["SceneName"].isNull())
scene_.sceneName = sceneNode["SceneName"].asString();
if(!sceneNode["SceneId"].isNull())
scene_.sceneId = sceneNode["SceneId"].asString();
auto allFileParameterListNode = sceneNode["FileParameterList"]["FileParameter"];
for (auto sceneNodeFileParameterListFileParameter : allFileParameterListNode)
{
Scene::FileParameter fileParameterObject;
if(!sceneNodeFileParameterListFileParameter["FileOssAddress"].isNull())
fileParameterObject.fileOssAddress = sceneNodeFileParameterListFileParameter["FileOssAddress"].asString();
if(!sceneNodeFileParameterListFileParameter["FileName"].isNull())
fileParameterObject.fileName = sceneNodeFileParameterListFileParameter["FileName"].asString();
scene_.fileParameterList.push_back(fileParameterObject);
}
auto allRelationListNode = sceneNode["RelationList"]["Relation"];
for (auto sceneNodeRelationListRelation : allRelationListNode)
{
Scene::Relation relationObject;
if(!sceneNodeRelationListRelation["RelationName"].isNull())
relationObject.relationName = sceneNodeRelationListRelation["RelationName"].asString();
if(!sceneNodeRelationListRelation["RelationId"].isNull())
relationObject.relationId = sceneNodeRelationListRelation["RelationId"].asString();
auto allFileParameterExplainListNode = sceneNodeRelationListRelation["FileParameterExplainList"]["FileParameterExplain"];
for (auto sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain : allFileParameterExplainListNode)
{
Scene::Relation::FileParameterExplain fileParameterExplainListObject;
if(!sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["CycleOnce"].isNull())
fileParameterExplainListObject.cycleOnce = sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["CycleOnce"].asString() == "true";
if(!sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileParamName"].isNull())
fileParameterExplainListObject.fileParamName = sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileParamName"].asString();
if(!sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileName"].isNull())
fileParameterExplainListObject.fileName = sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["FileName"].asString();
if(!sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["BaseFile"].isNull())
fileParameterExplainListObject.baseFile = sceneNodeRelationListRelationFileParameterExplainListFileParameterExplain["BaseFile"].asString() == "true";
relationObject.fileParameterExplainList.push_back(fileParameterExplainListObject);
}
auto allApiListNode = sceneNodeRelationListRelation["ApiList"]["Api"];
for (auto sceneNodeRelationListRelationApiListApi : allApiListNode)
{
Scene::Relation::Api apiListObject;
if(!sceneNodeRelationListRelationApiListApi["ApiId"].isNull())
apiListObject.apiId = sceneNodeRelationListRelationApiListApi["ApiId"].asString();
if(!sceneNodeRelationListRelationApiListApi["TimeoutInSecond"].isNull())
apiListObject.timeoutInSecond = std::stoi(sceneNodeRelationListRelationApiListApi["TimeoutInSecond"].asString());
if(!sceneNodeRelationListRelationApiListApi["Url"].isNull())
apiListObject.url = sceneNodeRelationListRelationApiListApi["Url"].asString();
if(!sceneNodeRelationListRelationApiListApi["Method"].isNull())
apiListObject.method = sceneNodeRelationListRelationApiListApi["Method"].asString();
if(!sceneNodeRelationListRelationApiListApi["RedirectCountLimit"].isNull())
apiListObject.redirectCountLimit = std::stoi(sceneNodeRelationListRelationApiListApi["RedirectCountLimit"].asString());
if(!sceneNodeRelationListRelationApiListApi["ApiName"].isNull())
apiListObject.apiName = sceneNodeRelationListRelationApiListApi["ApiName"].asString();
auto allCheckPointListNode = sceneNodeRelationListRelationApiListApi["CheckPointList"]["CheckPoint"];
for (auto sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint : allCheckPointListNode)
{
Scene::Relation::Api::CheckPoint checkPointListObject;
if(!sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckType"].isNull())
checkPointListObject.checkType = sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckType"].asString();
if(!sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["Operator"].isNull())
checkPointListObject._operator = sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["Operator"].asString();
if(!sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["ExpectValue"].isNull())
checkPointListObject.expectValue = sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["ExpectValue"].asString();
if(!sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckPoint"].isNull())
checkPointListObject.checkPoint = sceneNodeRelationListRelationApiListApiCheckPointListCheckPoint["CheckPoint"].asString();
apiListObject.checkPointList.push_back(checkPointListObject);
}
auto allHeaderListNode = sceneNodeRelationListRelationApiListApi["HeaderList"]["Header"];
for (auto sceneNodeRelationListRelationApiListApiHeaderListHeader : allHeaderListNode)
{
Scene::Relation::Api::Header headerListObject;
if(!sceneNodeRelationListRelationApiListApiHeaderListHeader["HeaderValue"].isNull())
headerListObject.headerValue = sceneNodeRelationListRelationApiListApiHeaderListHeader["HeaderValue"].asString();
if(!sceneNodeRelationListRelationApiListApiHeaderListHeader["HeaderName"].isNull())
headerListObject.headerName = sceneNodeRelationListRelationApiListApiHeaderListHeader["HeaderName"].asString();
apiListObject.headerList.push_back(headerListObject);
}
auto allExportListNode = sceneNodeRelationListRelationApiListApi["ExportList"]["Export"];
for (auto sceneNodeRelationListRelationApiListApiExportListExport : allExportListNode)
{
Scene::Relation::Api::Export exportListObject;
if(!sceneNodeRelationListRelationApiListApiExportListExport["ExportType"].isNull())
exportListObject.exportType = sceneNodeRelationListRelationApiListApiExportListExport["ExportType"].asString();
if(!sceneNodeRelationListRelationApiListApiExportListExport["ExportValue"].isNull())
exportListObject.exportValue = sceneNodeRelationListRelationApiListApiExportListExport["ExportValue"].asString();
if(!sceneNodeRelationListRelationApiListApiExportListExport["ExportName"].isNull())
exportListObject.exportName = sceneNodeRelationListRelationApiListApiExportListExport["ExportName"].asString();
if(!sceneNodeRelationListRelationApiListApiExportListExport["Count"].isNull())
exportListObject.count = sceneNodeRelationListRelationApiListApiExportListExport["Count"].asString();
apiListObject.exportList.push_back(exportListObject);
}
auto bodyNode = value["Body"];
if(!bodyNode["BodyValue"].isNull())
apiListObject.body.bodyValue = bodyNode["BodyValue"].asString();
if(!bodyNode["ContentType"].isNull())
apiListObject.body.contentType = bodyNode["ContentType"].asString();
relationObject.apiList.push_back(apiListObject);
}
scene_.relationList.push_back(relationObject);
}
auto allGlobalParameterListNode = sceneNode["GlobalParameterList"]["GlobalParameter"];
for (auto sceneNodeGlobalParameterListGlobalParameter : allGlobalParameterListNode)
{
Scene::GlobalParameter globalParameterObject;
if(!sceneNodeGlobalParameterListGlobalParameter["ParamName"].isNull())
globalParameterObject.paramName = sceneNodeGlobalParameterListGlobalParameter["ParamName"].asString();
if(!sceneNodeGlobalParameterListGlobalParameter["ParamValue"].isNull())
globalParameterObject.paramValue = sceneNodeGlobalParameterListGlobalParameter["ParamValue"].asString();
scene_.globalParameterList.push_back(globalParameterObject);
}
auto loadConfigNode = sceneNode["LoadConfig"];
if(!loadConfigNode["MaxRunningTime"].isNull())
scene_.loadConfig.maxRunningTime = std::stoi(loadConfigNode["MaxRunningTime"].asString());
if(!loadConfigNode["AgentCount"].isNull())
scene_.loadConfig.agentCount = std::stoi(loadConfigNode["AgentCount"].asString());
if(!loadConfigNode["TestMode"].isNull())
scene_.loadConfig.testMode = loadConfigNode["TestMode"].asString();
if(!loadConfigNode["AutoStep"].isNull())
scene_.loadConfig.autoStep = loadConfigNode["AutoStep"].asString() == "true";
if(!loadConfigNode["Increment"].isNull())
scene_.loadConfig.increment = std::stoi(loadConfigNode["Increment"].asString());
if(!loadConfigNode["KeepTime"].isNull())
scene_.loadConfig.keepTime = std::stoi(loadConfigNode["KeepTime"].asString());
auto allApiLoadConfigListNode = loadConfigNode["ApiLoadConfigList"]["ApiLoadConfig"];
for (auto loadConfigNodeApiLoadConfigListApiLoadConfig : allApiLoadConfigListNode)
{
Scene::LoadConfig::ApiLoadConfig apiLoadConfigObject;
if(!loadConfigNodeApiLoadConfigListApiLoadConfig["RpsBegin"].isNull())
apiLoadConfigObject.rpsBegin = std::stoi(loadConfigNodeApiLoadConfigListApiLoadConfig["RpsBegin"].asString());
if(!loadConfigNodeApiLoadConfigListApiLoadConfig["RpsLimit"].isNull())
apiLoadConfigObject.rpsLimit = std::stoi(loadConfigNodeApiLoadConfigListApiLoadConfig["RpsLimit"].asString());
if(!loadConfigNodeApiLoadConfigListApiLoadConfig["ApiId"].isNull())
apiLoadConfigObject.apiId = loadConfigNodeApiLoadConfigListApiLoadConfig["ApiId"].asString();
scene_.loadConfig.apiLoadConfigList.push_back(apiLoadConfigObject);
}
auto allRelationLoadConfigListNode = loadConfigNode["RelationLoadConfigList"]["RelationLoadConfig"];
for (auto loadConfigNodeRelationLoadConfigListRelationLoadConfig : allRelationLoadConfigListNode)
{
Scene::LoadConfig::RelationLoadConfig relationLoadConfigObject;
if(!loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyBegin"].isNull())
relationLoadConfigObject.concurrencyBegin = std::stoi(loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyBegin"].asString());
if(!loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyLimit"].isNull())
relationLoadConfigObject.concurrencyLimit = std::stoi(loadConfigNodeRelationLoadConfigListRelationLoadConfig["ConcurrencyLimit"].asString());
if(!loadConfigNodeRelationLoadConfigListRelationLoadConfig["RelationId"].isNull())
relationLoadConfigObject.relationId = loadConfigNodeRelationLoadConfigListRelationLoadConfig["RelationId"].asString();
scene_.loadConfig.relationLoadConfigList.push_back(relationLoadConfigObject);
}
auto configurationNode = loadConfigNode["Configuration"];
if(!configurationNode["AllRpsBegin"].isNull())
scene_.loadConfig.configuration.allRpsBegin = std::stoi(configurationNode["AllRpsBegin"].asString());
if(!configurationNode["AllConcurrencyBegin"].isNull())
scene_.loadConfig.configuration.allConcurrencyBegin = std::stoi(configurationNode["AllConcurrencyBegin"].asString());
if(!configurationNode["AllConcurrencyLimit"].isNull())
scene_.loadConfig.configuration.allConcurrencyLimit = std::stoi(configurationNode["AllConcurrencyLimit"].asString());
if(!configurationNode["AllRpsLimit"].isNull())
scene_.loadConfig.configuration.allRpsLimit = std::stoi(configurationNode["AllRpsLimit"].asString());
auto vpcLoadConfigNode = loadConfigNode["VpcLoadConfig"];
if(!vpcLoadConfigNode["VpcId"].isNull())
scene_.loadConfig.vpcLoadConfig.vpcId = vpcLoadConfigNode["VpcId"].asString();
if(!vpcLoadConfigNode["VSwitchId"].isNull())
scene_.loadConfig.vpcLoadConfig.vSwitchId = vpcLoadConfigNode["VSwitchId"].asString();
if(!vpcLoadConfigNode["SecurityGroupId"].isNull())
scene_.loadConfig.vpcLoadConfig.securityGroupId = vpcLoadConfigNode["SecurityGroupId"].asString();
if(!vpcLoadConfigNode["RegionId"].isNull())
scene_.loadConfig.vpcLoadConfig.regionId = vpcLoadConfigNode["RegionId"].asString();
auto advanceSettingNode = sceneNode["AdvanceSetting"];
if(!advanceSettingNode["LogRate"].isNull())
scene_.advanceSetting.logRate = std::stoi(advanceSettingNode["LogRate"].asString());
if(!advanceSettingNode["ConnectionTimeoutInSecond"].isNull())
scene_.advanceSetting.connectionTimeoutInSecond = std::stoi(advanceSettingNode["ConnectionTimeoutInSecond"].asString());
if(!advanceSettingNode["SuccessCode"].isNull())
scene_.advanceSetting.successCode = advanceSettingNode["SuccessCode"].asString();
auto allDomainBindingListNode = advanceSettingNode["DomainBindingList"]["DomainBinding"];
for (auto advanceSettingNodeDomainBindingListDomainBinding : allDomainBindingListNode)
{
Scene::AdvanceSetting::DomainBinding domainBindingObject;
if(!advanceSettingNodeDomainBindingListDomainBinding["Domain"].isNull())
domainBindingObject.domain = advanceSettingNodeDomainBindingListDomainBinding["Domain"].asString();
auto allIps = value["Ips"]["String"];
for (auto value : allIps)
domainBindingObject.ips.push_back(value.asString());
scene_.advanceSetting.domainBindingList.push_back(domainBindingObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetPtsSceneResult::getMessage()const
{
return message_;
}
int GetPtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetPtsSceneResult::Scene GetPtsSceneResult::getScene()const
{
return scene_;
}
std::string GetPtsSceneResult::getCode()const
{
return code_;
}
bool GetPtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/pts/model/GetPtsSceneRunningDataRequest.h>
using AlibabaCloud::PTS::Model::GetPtsSceneRunningDataRequest;
GetPtsSceneRunningDataRequest::GetPtsSceneRunningDataRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetPtsSceneRunningData") {
setMethod(HttpRequest::Method::Post);
}
GetPtsSceneRunningDataRequest::~GetPtsSceneRunningDataRequest() {}
std::string GetPtsSceneRunningDataRequest::getSceneId() const {
return sceneId_;
}
void GetPtsSceneRunningDataRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}
std::string GetPtsSceneRunningDataRequest::getPlanId() const {
return planId_;
}
void GetPtsSceneRunningDataRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View File

@@ -0,0 +1,258 @@
/*
* 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/pts/model/GetPtsSceneRunningDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetPtsSceneRunningDataResult::GetPtsSceneRunningDataResult() :
ServiceResult()
{}
GetPtsSceneRunningDataResult::GetPtsSceneRunningDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPtsSceneRunningDataResult::~GetPtsSceneRunningDataResult()
{}
void GetPtsSceneRunningDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAgentLocationNode = value["AgentLocation"]["Location"];
for (auto valueAgentLocationLocation : allAgentLocationNode)
{
Location agentLocationObject;
if(!valueAgentLocationLocation["Region"].isNull())
agentLocationObject.region = valueAgentLocationLocation["Region"].asString();
if(!valueAgentLocationLocation["Isp"].isNull())
agentLocationObject.isp = valueAgentLocationLocation["Isp"].asString();
if(!valueAgentLocationLocation["Count"].isNull())
agentLocationObject.count = std::stoi(valueAgentLocationLocation["Count"].asString());
if(!valueAgentLocationLocation["Province"].isNull())
agentLocationObject.province = valueAgentLocationLocation["Province"].asString();
agentLocation_.push_back(agentLocationObject);
}
auto allChainMonitorDataListNode = value["ChainMonitorDataList"]["ChainMonitorData"];
for (auto valueChainMonitorDataListChainMonitorData : allChainMonitorDataListNode)
{
ChainMonitorData chainMonitorDataListObject;
if(!valueChainMonitorDataListChainMonitorData["TimePoint"].isNull())
chainMonitorDataListObject.timePoint = std::stol(valueChainMonitorDataListChainMonitorData["TimePoint"].asString());
if(!valueChainMonitorDataListChainMonitorData["ApiId"].isNull())
chainMonitorDataListObject.apiId = valueChainMonitorDataListChainMonitorData["ApiId"].asString();
if(!valueChainMonitorDataListChainMonitorData["MinRt"].isNull())
chainMonitorDataListObject.minRt = std::stoi(valueChainMonitorDataListChainMonitorData["MinRt"].asString());
if(!valueChainMonitorDataListChainMonitorData["Qps2XX"].isNull())
chainMonitorDataListObject.qps2XX = std::stof(valueChainMonitorDataListChainMonitorData["Qps2XX"].asString());
if(!valueChainMonitorDataListChainMonitorData["MaxRt"].isNull())
chainMonitorDataListObject.maxRt = std::stoi(valueChainMonitorDataListChainMonitorData["MaxRt"].asString());
if(!valueChainMonitorDataListChainMonitorData["ConfigQps"].isNull())
chainMonitorDataListObject.configQps = std::stoi(valueChainMonitorDataListChainMonitorData["ConfigQps"].asString());
if(!valueChainMonitorDataListChainMonitorData["FailedCount"].isNull())
chainMonitorDataListObject.failedCount = std::stol(valueChainMonitorDataListChainMonitorData["FailedCount"].asString());
if(!valueChainMonitorDataListChainMonitorData["FailedQps"].isNull())
chainMonitorDataListObject.failedQps = std::stof(valueChainMonitorDataListChainMonitorData["FailedQps"].asString());
if(!valueChainMonitorDataListChainMonitorData["AverageRt"].isNull())
chainMonitorDataListObject.averageRt = std::stoi(valueChainMonitorDataListChainMonitorData["AverageRt"].asString());
if(!valueChainMonitorDataListChainMonitorData["Count2XX"].isNull())
chainMonitorDataListObject.count2XX = std::stol(valueChainMonitorDataListChainMonitorData["Count2XX"].asString());
if(!valueChainMonitorDataListChainMonitorData["RealQps"].isNull())
chainMonitorDataListObject.realQps = std::stof(valueChainMonitorDataListChainMonitorData["RealQps"].asString());
if(!valueChainMonitorDataListChainMonitorData["ApiName"].isNull())
chainMonitorDataListObject.apiName = valueChainMonitorDataListChainMonitorData["ApiName"].asString();
if(!valueChainMonitorDataListChainMonitorData["NodeId"].isNull())
chainMonitorDataListObject.nodeId = std::stol(valueChainMonitorDataListChainMonitorData["NodeId"].asString());
if(!valueChainMonitorDataListChainMonitorData["Concurrency"].isNull())
chainMonitorDataListObject.concurrency = std::stof(valueChainMonitorDataListChainMonitorData["Concurrency"].asString());
auto checkPointResultNode = value["CheckPointResult"];
if(!checkPointResultNode["SucceedBusinessCount"].isNull())
chainMonitorDataListObject.checkPointResult.succeedBusinessCount = std::stol(checkPointResultNode["SucceedBusinessCount"].asString());
if(!checkPointResultNode["SucceedBusinessQps"].isNull())
chainMonitorDataListObject.checkPointResult.succeedBusinessQps = std::stof(checkPointResultNode["SucceedBusinessQps"].asString());
if(!checkPointResultNode["FailedBusinessCount"].isNull())
chainMonitorDataListObject.checkPointResult.failedBusinessCount = std::stol(checkPointResultNode["FailedBusinessCount"].asString());
if(!checkPointResultNode["FailedBusinessQps"].isNull())
chainMonitorDataListObject.checkPointResult.failedBusinessQps = std::stof(checkPointResultNode["FailedBusinessQps"].asString());
chainMonitorDataList_.push_back(chainMonitorDataListObject);
}
if(!value["Status"].isNull())
status_ = std::stoi(value["Status"].asString());
if(!value["TotalRequestCount"].isNull())
totalRequestCount_ = std::stol(value["TotalRequestCount"].asString());
if(!value["HasReport"].isNull())
hasReport_ = value["HasReport"].asString() == "true";
if(!value["ConcurrencyLimit"].isNull())
concurrencyLimit_ = std::stoi(value["ConcurrencyLimit"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["BeginTime"].isNull())
beginTime_ = std::stol(value["BeginTime"].asString());
if(!value["Seg90Rt"].isNull())
seg90Rt_ = std::stol(value["Seg90Rt"].asString());
if(!value["ResponseBps"].isNull())
responseBps_ = value["ResponseBps"].asString();
if(!value["TotalAgents"].isNull())
totalAgents_ = std::stoi(value["TotalAgents"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Vum"].isNull())
vum_ = std::stol(value["Vum"].asString());
if(!value["AverageRt"].isNull())
averageRt_ = std::stol(value["AverageRt"].asString());
if(!value["RequestBps"].isNull())
requestBps_ = value["RequestBps"].asString();
if(!value["FailedBusinessCount"].isNull())
failedBusinessCount_ = std::stol(value["FailedBusinessCount"].asString());
if(!value["Concurrency"].isNull())
concurrency_ = std::stoi(value["Concurrency"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["FailedRequestCount"].isNull())
failedRequestCount_ = std::stol(value["FailedRequestCount"].asString());
if(!value["TpsLimit"].isNull())
tpsLimit_ = std::stoi(value["TpsLimit"].asString());
if(!value["AliveAgents"].isNull())
aliveAgents_ = std::stoi(value["AliveAgents"].asString());
if(!value["TotalRealQps"].isNull())
totalRealQps_ = std::stoi(value["TotalRealQps"].asString());
}
int GetPtsSceneRunningDataResult::getStatus()const
{
return status_;
}
long GetPtsSceneRunningDataResult::getTotalRequestCount()const
{
return totalRequestCount_;
}
bool GetPtsSceneRunningDataResult::getHasReport()const
{
return hasReport_;
}
int GetPtsSceneRunningDataResult::getConcurrencyLimit()const
{
return concurrencyLimit_;
}
std::string GetPtsSceneRunningDataResult::getMessage()const
{
return message_;
}
std::vector<GetPtsSceneRunningDataResult::Location> GetPtsSceneRunningDataResult::getAgentLocation()const
{
return agentLocation_;
}
long GetPtsSceneRunningDataResult::getBeginTime()const
{
return beginTime_;
}
long GetPtsSceneRunningDataResult::getSeg90Rt()const
{
return seg90Rt_;
}
std::string GetPtsSceneRunningDataResult::getResponseBps()const
{
return responseBps_;
}
int GetPtsSceneRunningDataResult::getTotalAgents()const
{
return totalAgents_;
}
std::string GetPtsSceneRunningDataResult::getCode()const
{
return code_;
}
bool GetPtsSceneRunningDataResult::getSuccess()const
{
return success_;
}
long GetPtsSceneRunningDataResult::getVum()const
{
return vum_;
}
std::vector<GetPtsSceneRunningDataResult::ChainMonitorData> GetPtsSceneRunningDataResult::getChainMonitorDataList()const
{
return chainMonitorDataList_;
}
long GetPtsSceneRunningDataResult::getAverageRt()const
{
return averageRt_;
}
std::string GetPtsSceneRunningDataResult::getRequestBps()const
{
return requestBps_;
}
long GetPtsSceneRunningDataResult::getFailedBusinessCount()const
{
return failedBusinessCount_;
}
int GetPtsSceneRunningDataResult::getConcurrency()const
{
return concurrency_;
}
int GetPtsSceneRunningDataResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int GetPtsSceneRunningDataResult::getTotalRealQps()const
{
return totalRealQps_;
}
long GetPtsSceneRunningDataResult::getFailedRequestCount()const
{
return failedRequestCount_;
}
int GetPtsSceneRunningDataResult::getTpsLimit()const
{
return tpsLimit_;
}
int GetPtsSceneRunningDataResult::getAliveAgents()const
{
return aliveAgents_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/GetPtsSceneRunningStatusRequest.h>
using AlibabaCloud::PTS::Model::GetPtsSceneRunningStatusRequest;
GetPtsSceneRunningStatusRequest::GetPtsSceneRunningStatusRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetPtsSceneRunningStatus") {
setMethod(HttpRequest::Method::Post);
}
GetPtsSceneRunningStatusRequest::~GetPtsSceneRunningStatusRequest() {}
std::string GetPtsSceneRunningStatusRequest::getSceneId() const {
return sceneId_;
}
void GetPtsSceneRunningStatusRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/pts/model/GetPtsSceneRunningStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetPtsSceneRunningStatusResult::GetPtsSceneRunningStatusResult() :
ServiceResult()
{}
GetPtsSceneRunningStatusResult::GetPtsSceneRunningStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPtsSceneRunningStatusResult::~GetPtsSceneRunningStatusResult()
{}
void GetPtsSceneRunningStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["ModifiedTime"].isNull())
modifiedTime_ = value["ModifiedTime"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["SceneName"].isNull())
sceneName_ = value["SceneName"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetPtsSceneRunningStatusResult::getStatus()const
{
return status_;
}
std::string GetPtsSceneRunningStatusResult::getModifiedTime()const
{
return modifiedTime_;
}
std::string GetPtsSceneRunningStatusResult::getMessage()const
{
return message_;
}
std::string GetPtsSceneRunningStatusResult::getSceneName()const
{
return sceneName_;
}
std::string GetPtsSceneRunningStatusResult::getCreateTime()const
{
return createTime_;
}
int GetPtsSceneRunningStatusResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetPtsSceneRunningStatusResult::getCode()const
{
return code_;
}
bool GetPtsSceneRunningStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/pts/model/GetUserVpcSecurityGroupRequest.h>
using AlibabaCloud::PTS::Model::GetUserVpcSecurityGroupRequest;
GetUserVpcSecurityGroupRequest::GetUserVpcSecurityGroupRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetUserVpcSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
GetUserVpcSecurityGroupRequest::~GetUserVpcSecurityGroupRequest() {}
std::string GetUserVpcSecurityGroupRequest::getRegionId() const {
return regionId_;
}
void GetUserVpcSecurityGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string GetUserVpcSecurityGroupRequest::getVpcId() const {
return vpcId_;
}
void GetUserVpcSecurityGroupRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
int GetUserVpcSecurityGroupRequest::getPageSize() const {
return pageSize_;
}
void GetUserVpcSecurityGroupRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
int GetUserVpcSecurityGroupRequest::getPageNumber() const {
return pageNumber_;
}
void GetUserVpcSecurityGroupRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -0,0 +1,112 @@
/*
* 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/pts/model/GetUserVpcSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetUserVpcSecurityGroupResult::GetUserVpcSecurityGroupResult() :
ServiceResult()
{}
GetUserVpcSecurityGroupResult::GetUserVpcSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserVpcSecurityGroupResult::~GetUserVpcSecurityGroupResult()
{}
void GetUserVpcSecurityGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSecurityGroupListNode = value["SecurityGroupList"]["SecurityGroup"];
for (auto valueSecurityGroupListSecurityGroup : allSecurityGroupListNode)
{
SecurityGroup securityGroupListObject;
if(!valueSecurityGroupListSecurityGroup["VpcId"].isNull())
securityGroupListObject.vpcId = valueSecurityGroupListSecurityGroup["VpcId"].asString();
if(!valueSecurityGroupListSecurityGroup["Description"].isNull())
securityGroupListObject.description = valueSecurityGroupListSecurityGroup["Description"].asString();
if(!valueSecurityGroupListSecurityGroup["SecurityGroupId"].isNull())
securityGroupListObject.securityGroupId = valueSecurityGroupListSecurityGroup["SecurityGroupId"].asString();
if(!valueSecurityGroupListSecurityGroup["SecurityGroupName"].isNull())
securityGroupListObject.securityGroupName = valueSecurityGroupListSecurityGroup["SecurityGroupName"].asString();
securityGroupList_.push_back(securityGroupListObject);
}
if(!value["SecurityGroupCount"].isNull())
securityGroupCount_ = std::stoi(value["SecurityGroupCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<GetUserVpcSecurityGroupResult::SecurityGroup> GetUserVpcSecurityGroupResult::getSecurityGroupList()const
{
return securityGroupList_;
}
int GetUserVpcSecurityGroupResult::getSecurityGroupCount()const
{
return securityGroupCount_;
}
std::string GetUserVpcSecurityGroupResult::getMessage()const
{
return message_;
}
int GetUserVpcSecurityGroupResult::getPageSize()const
{
return pageSize_;
}
int GetUserVpcSecurityGroupResult::getPageNumber()const
{
return pageNumber_;
}
int GetUserVpcSecurityGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetUserVpcSecurityGroupResult::getCode()const
{
return code_;
}
bool GetUserVpcSecurityGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/pts/model/GetUserVpcVSwitchRequest.h>
using AlibabaCloud::PTS::Model::GetUserVpcVSwitchRequest;
GetUserVpcVSwitchRequest::GetUserVpcVSwitchRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetUserVpcVSwitch") {
setMethod(HttpRequest::Method::Post);
}
GetUserVpcVSwitchRequest::~GetUserVpcVSwitchRequest() {}
std::string GetUserVpcVSwitchRequest::getRegionId() const {
return regionId_;
}
void GetUserVpcVSwitchRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string GetUserVpcVSwitchRequest::getVpcId() const {
return vpcId_;
}
void GetUserVpcVSwitchRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
int GetUserVpcVSwitchRequest::getPageSize() const {
return pageSize_;
}
void GetUserVpcVSwitchRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
int GetUserVpcVSwitchRequest::getPageNumber() const {
return pageNumber_;
}
void GetUserVpcVSwitchRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -0,0 +1,114 @@
/*
* 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/pts/model/GetUserVpcVSwitchResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetUserVpcVSwitchResult::GetUserVpcVSwitchResult() :
ServiceResult()
{}
GetUserVpcVSwitchResult::GetUserVpcVSwitchResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserVpcVSwitchResult::~GetUserVpcVSwitchResult()
{}
void GetUserVpcVSwitchResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVSwitchListNode = value["VSwitchList"]["VSwitch"];
for (auto valueVSwitchListVSwitch : allVSwitchListNode)
{
VSwitch vSwitchListObject;
if(!valueVSwitchListVSwitch["VpcId"].isNull())
vSwitchListObject.vpcId = valueVSwitchListVSwitch["VpcId"].asString();
if(!valueVSwitchListVSwitch["MaxAgentCount"].isNull())
vSwitchListObject.maxAgentCount = std::stoi(valueVSwitchListVSwitch["MaxAgentCount"].asString());
if(!valueVSwitchListVSwitch["AvailableIpAddressCount"].isNull())
vSwitchListObject.availableIpAddressCount = std::stol(valueVSwitchListVSwitch["AvailableIpAddressCount"].asString());
if(!valueVSwitchListVSwitch["VSwitchId"].isNull())
vSwitchListObject.vSwitchId = valueVSwitchListVSwitch["VSwitchId"].asString();
if(!valueVSwitchListVSwitch["VSwitchName"].isNull())
vSwitchListObject.vSwitchName = valueVSwitchListVSwitch["VSwitchName"].asString();
vSwitchList_.push_back(vSwitchListObject);
}
if(!value["VSwitchCount"].isNull())
vSwitchCount_ = std::stoi(value["VSwitchCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetUserVpcVSwitchResult::getVSwitchCount()const
{
return vSwitchCount_;
}
std::string GetUserVpcVSwitchResult::getMessage()const
{
return message_;
}
int GetUserVpcVSwitchResult::getPageSize()const
{
return pageSize_;
}
int GetUserVpcVSwitchResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<GetUserVpcVSwitchResult::VSwitch> GetUserVpcVSwitchResult::getVSwitchList()const
{
return vSwitchList_;
}
int GetUserVpcVSwitchResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetUserVpcVSwitchResult::getCode()const
{
return code_;
}
bool GetUserVpcVSwitchResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/pts/model/GetUserVpcsRequest.h>
using AlibabaCloud::PTS::Model::GetUserVpcsRequest;
GetUserVpcsRequest::GetUserVpcsRequest()
: RpcServiceRequest("pts", "2020-10-20", "GetUserVpcs") {
setMethod(HttpRequest::Method::Post);
}
GetUserVpcsRequest::~GetUserVpcsRequest() {}
std::string GetUserVpcsRequest::getRegionId() const {
return regionId_;
}
void GetUserVpcsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string GetUserVpcsRequest::getVpcId() const {
return vpcId_;
}
void GetUserVpcsRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
int GetUserVpcsRequest::getPageSize() const {
return pageSize_;
}
void GetUserVpcsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
int GetUserVpcsRequest::getPageNumber() const {
return pageNumber_;
}
void GetUserVpcsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -0,0 +1,122 @@
/*
* 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/pts/model/GetUserVpcsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
GetUserVpcsResult::GetUserVpcsResult() :
ServiceResult()
{}
GetUserVpcsResult::GetUserVpcsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserVpcsResult::~GetUserVpcsResult()
{}
void GetUserVpcsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVpcsNode = value["Vpcs"]["Vpc"];
for (auto valueVpcsVpc : allVpcsNode)
{
Vpc vpcsObject;
if(!valueVpcsVpc["VpcId"].isNull())
vpcsObject.vpcId = valueVpcsVpc["VpcId"].asString();
if(!valueVpcsVpc["RegionId"].isNull())
vpcsObject.regionId = valueVpcsVpc["RegionId"].asString();
if(!valueVpcsVpc["VpcName"].isNull())
vpcsObject.vpcName = valueVpcsVpc["VpcName"].asString();
if(!valueVpcsVpc["CidrBlock"].isNull())
vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString();
if(!valueVpcsVpc["Description"].isNull())
vpcsObject.description = valueVpcsVpc["Description"].asString();
if(!valueVpcsVpc["ResourceGroupId"].isNull())
vpcsObject.resourceGroupId = valueVpcsVpc["ResourceGroupId"].asString();
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];
for (auto value : allVSwitchIds)
vpcsObject.vSwitchIds.push_back(value.asString());
auto allRouterTableIds = value["RouterTableIds"]["RouterTableId"];
for (auto value : allRouterTableIds)
vpcsObject.routerTableIds.push_back(value.asString());
vpcs_.push_back(vpcsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<GetUserVpcsResult::Vpc> GetUserVpcsResult::getVpcs()const
{
return vpcs_;
}
long GetUserVpcsResult::getTotalCount()const
{
return totalCount_;
}
std::string GetUserVpcsResult::getMessage()const
{
return message_;
}
int GetUserVpcsResult::getPageSize()const
{
return pageSize_;
}
int GetUserVpcsResult::getPageNumber()const
{
return pageNumber_;
}
int GetUserVpcsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetUserVpcsResult::getCode()const
{
return code_;
}
bool GetUserVpcsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/pts/model/ListEnvsRequest.h>
using AlibabaCloud::PTS::Model::ListEnvsRequest;
ListEnvsRequest::ListEnvsRequest()
: RpcServiceRequest("pts", "2020-10-20", "ListEnvs") {
setMethod(HttpRequest::Method::Post);
}
ListEnvsRequest::~ListEnvsRequest() {}
std::string ListEnvsRequest::getEnvName() const {
return envName_;
}
void ListEnvsRequest::setEnvName(const std::string &envName) {
envName_ = envName;
setParameter(std::string("EnvName"), envName);
}
int ListEnvsRequest::getPageSize() const {
return pageSize_;
}
void ListEnvsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListEnvsRequest::getEnvId() const {
return envId_;
}
void ListEnvsRequest::setEnvId(const std::string &envId) {
envId_ = envId;
setParameter(std::string("EnvId"), envId);
}
int ListEnvsRequest::getPageNumber() const {
return pageNumber_;
}
void ListEnvsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -0,0 +1,150 @@
/*
* 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/pts/model/ListEnvsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
ListEnvsResult::ListEnvsResult() :
ServiceResult()
{}
ListEnvsResult::ListEnvsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListEnvsResult::~ListEnvsResult()
{}
void ListEnvsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEnvsNode = value["Envs"]["Env"];
for (auto valueEnvsEnv : allEnvsNode)
{
Env envsObject;
if(!valueEnvsEnv["CreateTime"].isNull())
envsObject.createTime = std::stol(valueEnvsEnv["CreateTime"].asString());
if(!valueEnvsEnv["EnvVersion"].isNull())
envsObject.envVersion = valueEnvsEnv["EnvVersion"].asString();
if(!valueEnvsEnv["ModifiedTime"].isNull())
envsObject.modifiedTime = std::stol(valueEnvsEnv["ModifiedTime"].asString());
if(!valueEnvsEnv["UsedCapacity"].isNull())
envsObject.usedCapacity = std::stol(valueEnvsEnv["UsedCapacity"].asString());
if(!valueEnvsEnv["EnvName"].isNull())
envsObject.envName = valueEnvsEnv["EnvName"].asString();
if(!valueEnvsEnv["EnvId"].isNull())
envsObject.envId = valueEnvsEnv["EnvId"].asString();
auto allFilesNode = valueEnvsEnv["Files"]["File"];
for (auto valueEnvsEnvFilesFile : allFilesNode)
{
Env::File filesObject;
if(!valueEnvsEnvFilesFile["FileSize"].isNull())
filesObject.fileSize = std::stol(valueEnvsEnvFilesFile["FileSize"].asString());
if(!valueEnvsEnvFilesFile["Md5"].isNull())
filesObject.md5 = valueEnvsEnvFilesFile["Md5"].asString();
if(!valueEnvsEnvFilesFile["FileName"].isNull())
filesObject.fileName = valueEnvsEnvFilesFile["FileName"].asString();
if(!valueEnvsEnvFilesFile["FileOssAddress"].isNull())
filesObject.fileOssAddress = valueEnvsEnvFilesFile["FileOssAddress"].asString();
if(!valueEnvsEnvFilesFile["FileId"].isNull())
filesObject.fileId = std::stol(valueEnvsEnvFilesFile["FileId"].asString());
envsObject.files.push_back(filesObject);
}
auto allPropertiesNode = valueEnvsEnv["Properties"]["propertiesItem"];
for (auto valueEnvsEnvPropertiespropertiesItem : allPropertiesNode)
{
Env::PropertiesItem propertiesObject;
if(!valueEnvsEnvPropertiespropertiesItem["Name"].isNull())
propertiesObject.name = valueEnvsEnvPropertiespropertiesItem["Name"].asString();
if(!valueEnvsEnvPropertiespropertiesItem["Value"].isNull())
propertiesObject.value = valueEnvsEnvPropertiespropertiesItem["Value"].asString();
if(!valueEnvsEnvPropertiespropertiesItem["Description"].isNull())
propertiesObject.description = valueEnvsEnvPropertiespropertiesItem["Description"].asString();
envsObject.properties.push_back(propertiesObject);
}
auto allRunningScenes = value["RunningScenes"]["RunningScene"];
for (auto value : allRunningScenes)
envsObject.runningScenes.push_back(value.asString());
auto allRelatedScenes = value["RelatedScenes"]["RelatedScene"];
for (auto value : allRelatedScenes)
envsObject.relatedScenes.push_back(value.asString());
envs_.push_back(envsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
long ListEnvsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListEnvsResult::getMessage()const
{
return message_;
}
int ListEnvsResult::getPageSize()const
{
return pageSize_;
}
int ListEnvsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListEnvsResult::Env> ListEnvsResult::getEnvs()const
{
return envs_;
}
int ListEnvsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListEnvsResult::getCode()const
{
return code_;
}
bool ListEnvsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/pts/model/ListJMeterReportsRequest.h>
using AlibabaCloud::PTS::Model::ListJMeterReportsRequest;
ListJMeterReportsRequest::ListJMeterReportsRequest()
: RpcServiceRequest("pts", "2020-10-20", "ListJMeterReports") {
setMethod(HttpRequest::Method::Post);
}
ListJMeterReportsRequest::~ListJMeterReportsRequest() {}
std::string ListJMeterReportsRequest::getReportId() const {
return reportId_;
}
void ListJMeterReportsRequest::setReportId(const std::string &reportId) {
reportId_ = reportId;
setParameter(std::string("ReportId"), reportId);
}
long ListJMeterReportsRequest::getEndTime() const {
return endTime_;
}
void ListJMeterReportsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
long ListJMeterReportsRequest::getBeginTime() const {
return beginTime_;
}
void ListJMeterReportsRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
int ListJMeterReportsRequest::getPageNumber() const {
return pageNumber_;
}
void ListJMeterReportsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
int ListJMeterReportsRequest::getPageSize() const {
return pageSize_;
}
void ListJMeterReportsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListJMeterReportsRequest::getSceneId() const {
return sceneId_;
}
void ListJMeterReportsRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}
std::string ListJMeterReportsRequest::getKeyword() const {
return keyword_;
}
void ListJMeterReportsRequest::setKeyword(const std::string &keyword) {
keyword_ = keyword;
setParameter(std::string("Keyword"), keyword);
}

View File

@@ -0,0 +1,114 @@
/*
* 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/pts/model/ListJMeterReportsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
ListJMeterReportsResult::ListJMeterReportsResult() :
ServiceResult()
{}
ListJMeterReportsResult::ListJMeterReportsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListJMeterReportsResult::~ListJMeterReportsResult()
{}
void ListJMeterReportsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allReportsNode = value["Reports"]["JMeterReportView"];
for (auto valueReportsJMeterReportView : allReportsNode)
{
JMeterReportView reportsObject;
if(!valueReportsJMeterReportView["ReportName"].isNull())
reportsObject.reportName = valueReportsJMeterReportView["ReportName"].asString();
if(!valueReportsJMeterReportView["Duration"].isNull())
reportsObject.duration = valueReportsJMeterReportView["Duration"].asString();
if(!valueReportsJMeterReportView["ReportId"].isNull())
reportsObject.reportId = valueReportsJMeterReportView["ReportId"].asString();
if(!valueReportsJMeterReportView["Vum"].isNull())
reportsObject.vum = std::stol(valueReportsJMeterReportView["Vum"].asString());
if(!valueReportsJMeterReportView["ActualStartTime"].isNull())
reportsObject.actualStartTime = std::stol(valueReportsJMeterReportView["ActualStartTime"].asString());
reports_.push_back(reportsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
long ListJMeterReportsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListJMeterReportsResult::getMessage()const
{
return message_;
}
int ListJMeterReportsResult::getPageSize()const
{
return pageSize_;
}
int ListJMeterReportsResult::getPageNumber()const
{
return pageNumber_;
}
int ListJMeterReportsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListJMeterReportsResult::JMeterReportView> ListJMeterReportsResult::getReports()const
{
return reports_;
}
std::string ListJMeterReportsResult::getCode()const
{
return code_;
}
bool ListJMeterReportsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/pts/model/ListOpenJMeterScenesRequest.h>
using AlibabaCloud::PTS::Model::ListOpenJMeterScenesRequest;
ListOpenJMeterScenesRequest::ListOpenJMeterScenesRequest()
: RpcServiceRequest("pts", "2020-10-20", "ListOpenJMeterScenes") {
setMethod(HttpRequest::Method::Post);
}
ListOpenJMeterScenesRequest::~ListOpenJMeterScenesRequest() {}
int ListOpenJMeterScenesRequest::getPageSize() const {
return pageSize_;
}
void ListOpenJMeterScenesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListOpenJMeterScenesRequest::getSceneId() const {
return sceneId_;
}
void ListOpenJMeterScenesRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}
std::string ListOpenJMeterScenesRequest::getSceneName() const {
return sceneName_;
}
void ListOpenJMeterScenesRequest::setSceneName(const std::string &sceneName) {
sceneName_ = sceneName;
setParameter(std::string("SceneName"), sceneName);
}
int ListOpenJMeterScenesRequest::getPageNumber() const {
return pageNumber_;
}
void ListOpenJMeterScenesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -0,0 +1,110 @@
/*
* 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/pts/model/ListOpenJMeterScenesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
ListOpenJMeterScenesResult::ListOpenJMeterScenesResult() :
ServiceResult()
{}
ListOpenJMeterScenesResult::ListOpenJMeterScenesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListOpenJMeterScenesResult::~ListOpenJMeterScenesResult()
{}
void ListOpenJMeterScenesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJMeterSceneNode = value["JMeterScene"]["jMeterSceneItem"];
for (auto valueJMeterScenejMeterSceneItem : allJMeterSceneNode)
{
JMeterSceneItem jMeterSceneObject;
if(!valueJMeterScenejMeterSceneItem["DurationStr"].isNull())
jMeterSceneObject.durationStr = valueJMeterScenejMeterSceneItem["DurationStr"].asString();
if(!valueJMeterScenejMeterSceneItem["SceneId"].isNull())
jMeterSceneObject.sceneId = valueJMeterScenejMeterSceneItem["SceneId"].asString();
if(!valueJMeterScenejMeterSceneItem["SceneName"].isNull())
jMeterSceneObject.sceneName = valueJMeterScenejMeterSceneItem["SceneName"].asString();
jMeterScene_.push_back(jMeterSceneObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListOpenJMeterScenesResult::getTotalCount()const
{
return totalCount_;
}
std::string ListOpenJMeterScenesResult::getMessage()const
{
return message_;
}
int ListOpenJMeterScenesResult::getPageSize()const
{
return pageSize_;
}
std::vector<ListOpenJMeterScenesResult::JMeterSceneItem> ListOpenJMeterScenesResult::getJMeterScene()const
{
return jMeterScene_;
}
int ListOpenJMeterScenesResult::getPageNumber()const
{
return pageNumber_;
}
int ListOpenJMeterScenesResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListOpenJMeterScenesResult::getCode()const
{
return code_;
}
bool ListOpenJMeterScenesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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/pts/model/ListPtsSceneRequest.h>
using AlibabaCloud::PTS::Model::ListPtsSceneRequest;
ListPtsSceneRequest::ListPtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "ListPtsScene") {
setMethod(HttpRequest::Method::Post);
}
ListPtsSceneRequest::~ListPtsSceneRequest() {}
int ListPtsSceneRequest::getPageSize() const {
return pageSize_;
}
void ListPtsSceneRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListPtsSceneRequest::getKeyWord() const {
return keyWord_;
}
void ListPtsSceneRequest::setKeyWord(const std::string &keyWord) {
keyWord_ = keyWord;
setParameter(std::string("KeyWord"), keyWord);
}
int ListPtsSceneRequest::getPageNumber() const {
return pageNumber_;
}
void ListPtsSceneRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -0,0 +1,89 @@
/*
* 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/pts/model/ListPtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
ListPtsSceneResult::ListPtsSceneResult() :
ServiceResult()
{}
ListPtsSceneResult::ListPtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPtsSceneResult::~ListPtsSceneResult()
{}
void ListPtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSceneViewListNode = value["SceneViewList"]["SceneView"];
for (auto valueSceneViewListSceneView : allSceneViewListNode)
{
SceneView sceneViewListObject;
if(!valueSceneViewListSceneView["CreateTime"].isNull())
sceneViewListObject.createTime = valueSceneViewListSceneView["CreateTime"].asString();
if(!valueSceneViewListSceneView["SceneId"].isNull())
sceneViewListObject.sceneId = valueSceneViewListSceneView["SceneId"].asString();
if(!valueSceneViewListSceneView["SceneName"].isNull())
sceneViewListObject.sceneName = valueSceneViewListSceneView["SceneName"].asString();
sceneViewList_.push_back(sceneViewListObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ListPtsSceneResult::getMessage()const
{
return message_;
}
int ListPtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListPtsSceneResult::SceneView> ListPtsSceneResult::getSceneViewList()const
{
return sceneViewList_;
}
std::string ListPtsSceneResult::getCode()const
{
return code_;
}
bool ListPtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/ModifyPtsSceneRequest.h>
using AlibabaCloud::PTS::Model::ModifyPtsSceneRequest;
ModifyPtsSceneRequest::ModifyPtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "ModifyPtsScene") {
setMethod(HttpRequest::Method::Post);
}
ModifyPtsSceneRequest::~ModifyPtsSceneRequest() {}
std::string ModifyPtsSceneRequest::getScene() const {
return scene_;
}
void ModifyPtsSceneRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/ModifyPtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
ModifyPtsSceneResult::ModifyPtsSceneResult() :
ServiceResult()
{}
ModifyPtsSceneResult::ModifyPtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyPtsSceneResult::~ModifyPtsSceneResult()
{}
void ModifyPtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ModifyPtsSceneResult::getMessage()const
{
return message_;
}
int ModifyPtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ModifyPtsSceneResult::getCode()const
{
return code_;
}
bool ModifyPtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/RemoveEnvRequest.h>
using AlibabaCloud::PTS::Model::RemoveEnvRequest;
RemoveEnvRequest::RemoveEnvRequest()
: RpcServiceRequest("pts", "2020-10-20", "RemoveEnv") {
setMethod(HttpRequest::Method::Post);
}
RemoveEnvRequest::~RemoveEnvRequest() {}
std::string RemoveEnvRequest::getEnvId() const {
return envId_;
}
void RemoveEnvRequest::setEnvId(const std::string &envId) {
envId_ = envId;
setParameter(std::string("EnvId"), envId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/RemoveEnvResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
RemoveEnvResult::RemoveEnvResult() :
ServiceResult()
{}
RemoveEnvResult::RemoveEnvResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveEnvResult::~RemoveEnvResult()
{}
void RemoveEnvResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string RemoveEnvResult::getMessage()const
{
return message_;
}
int RemoveEnvResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string RemoveEnvResult::getCode()const
{
return code_;
}
bool RemoveEnvResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/RemoveOpenJMeterSceneRequest.h>
using AlibabaCloud::PTS::Model::RemoveOpenJMeterSceneRequest;
RemoveOpenJMeterSceneRequest::RemoveOpenJMeterSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "RemoveOpenJMeterScene") {
setMethod(HttpRequest::Method::Post);
}
RemoveOpenJMeterSceneRequest::~RemoveOpenJMeterSceneRequest() {}
std::string RemoveOpenJMeterSceneRequest::getSceneId() const {
return sceneId_;
}
void RemoveOpenJMeterSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/RemoveOpenJMeterSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
RemoveOpenJMeterSceneResult::RemoveOpenJMeterSceneResult() :
ServiceResult()
{}
RemoveOpenJMeterSceneResult::RemoveOpenJMeterSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveOpenJMeterSceneResult::~RemoveOpenJMeterSceneResult()
{}
void RemoveOpenJMeterSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string RemoveOpenJMeterSceneResult::getMessage()const
{
return message_;
}
int RemoveOpenJMeterSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string RemoveOpenJMeterSceneResult::getCode()const
{
return code_;
}
bool RemoveOpenJMeterSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,47 @@
/*
* 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/pts/model/SaveEnvRequest.h>
using AlibabaCloud::PTS::Model::SaveEnvRequest;
SaveEnvRequest::SaveEnvRequest()
: RpcServiceRequest("pts", "2020-10-20", "SaveEnv") {
setMethod(HttpRequest::Method::Post);
}
SaveEnvRequest::~SaveEnvRequest() {}
SaveEnvRequest::Env SaveEnvRequest::getEnv() const {
return env_;
}
void SaveEnvRequest::setEnv(const SaveEnvRequest::Env &env) {
env_ = env;
setParameter(std::string("Env") + ".EnvName", env.envName);
for(int dep1 = 0; dep1 != env.files.size(); dep1++) {
setParameter(std::string("Env") + ".Files." + std::to_string(dep1 + 1) + ".FileName", env.files[dep1].fileName);
setParameter(std::string("Env") + ".Files." + std::to_string(dep1 + 1) + ".FileOssAddress", env.files[dep1].fileOssAddress);
}
setParameter(std::string("Env") + ".JmeterPluginLabel", env.jmeterPluginLabel);
setParameter(std::string("Env") + ".EnvId", env.envId);
for(int dep1 = 0; dep1 != env.properties.size(); dep1++) {
setParameter(std::string("Env") + ".Properties." + std::to_string(dep1 + 1) + ".Name", env.properties[dep1].name);
setParameter(std::string("Env") + ".Properties." + std::to_string(dep1 + 1) + ".Description", env.properties[dep1].description);
setParameter(std::string("Env") + ".Properties." + std::to_string(dep1 + 1) + ".Value", env.properties[dep1].value);
}
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/SaveEnvResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
SaveEnvResult::SaveEnvResult() :
ServiceResult()
{}
SaveEnvResult::SaveEnvResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveEnvResult::~SaveEnvResult()
{}
void SaveEnvResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["EnvId"].isNull())
envId_ = value["EnvId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string SaveEnvResult::getMessage()const
{
return message_;
}
int SaveEnvResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string SaveEnvResult::getEnvId()const
{
return envId_;
}
std::string SaveEnvResult::getCode()const
{
return code_;
}
bool SaveEnvResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,76 @@
/*
* 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/pts/model/SaveOpenJMeterSceneRequest.h>
using AlibabaCloud::PTS::Model::SaveOpenJMeterSceneRequest;
SaveOpenJMeterSceneRequest::SaveOpenJMeterSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "SaveOpenJMeterScene") {
setMethod(HttpRequest::Method::Post);
}
SaveOpenJMeterSceneRequest::~SaveOpenJMeterSceneRequest() {}
SaveOpenJMeterSceneRequest::OpenJMeterScene SaveOpenJMeterSceneRequest::getOpenJMeterScene() const {
return openJMeterScene_;
}
void SaveOpenJMeterSceneRequest::setOpenJMeterScene(const SaveOpenJMeterSceneRequest::OpenJMeterScene &openJMeterScene) {
openJMeterScene_ = openJMeterScene;
setParameter(std::string("OpenJMeterScene") + ".StartConcurrency", std::to_string(openJMeterScene.startConcurrency));
setParameter(std::string("OpenJMeterScene") + ".TestFile", openJMeterScene.testFile);
setParameter(std::string("OpenJMeterScene") + ".ConstantThroughputTimerType", openJMeterScene.constantThroughputTimerType);
setParameter(std::string("OpenJMeterScene") + ".SceneName", openJMeterScene.sceneName);
setParameter(std::string("OpenJMeterScene") + ".SecurityGroupId", openJMeterScene.securityGroupId);
for(int dep1 = 0; dep1 != openJMeterScene.fileList.size(); dep1++) {
setParameter(std::string("OpenJMeterScene") + ".FileList." + std::to_string(dep1 + 1) + ".FileName", openJMeterScene.fileList[dep1].fileName);
setParameter(std::string("OpenJMeterScene") + ".FileList." + std::to_string(dep1 + 1) + ".SplitCsv", openJMeterScene.fileList[dep1].splitCsv ? "true" : "false");
setParameter(std::string("OpenJMeterScene") + ".FileList." + std::to_string(dep1 + 1) + ".FileSize", std::to_string(openJMeterScene.fileList[dep1].fileSize));
setParameter(std::string("OpenJMeterScene") + ".FileList." + std::to_string(dep1 + 1) + ".FileOssAddress", openJMeterScene.fileList[dep1].fileOssAddress);
setParameter(std::string("OpenJMeterScene") + ".FileList." + std::to_string(dep1 + 1) + ".Md5", openJMeterScene.fileList[dep1].md5);
setParameter(std::string("OpenJMeterScene") + ".FileList." + std::to_string(dep1 + 1) + ".FileId", std::to_string(openJMeterScene.fileList[dep1].fileId));
setParameter(std::string("OpenJMeterScene") + ".FileList." + std::to_string(dep1 + 1) + ".Tags", openJMeterScene.fileList[dep1].tags);
}
setParameter(std::string("OpenJMeterScene") + ".Steps", std::to_string(openJMeterScene.steps));
setParameter(std::string("OpenJMeterScene") + ".StartRps", std::to_string(openJMeterScene.startRps));
setParameter(std::string("OpenJMeterScene") + ".Concurrency", std::to_string(openJMeterScene.concurrency));
setParameter(std::string("OpenJMeterScene") + ".Duration", std::to_string(openJMeterScene.duration));
setParameter(std::string("OpenJMeterScene") + ".AgentCount", std::to_string(openJMeterScene.agentCount));
setParameter(std::string("OpenJMeterScene") + ".VSwitchId", openJMeterScene.vSwitchId);
setParameter(std::string("OpenJMeterScene") + ".Mode", openJMeterScene.mode);
setParameter(std::string("OpenJMeterScene") + ".IsVpcTest", openJMeterScene.isVpcTest ? "true" : "false");
setParameter(std::string("OpenJMeterScene") + ".EnvironmentId", openJMeterScene.environmentId);
setParameter(std::string("OpenJMeterScene") + ".RegionId", openJMeterScene.regionId);
setParameter(std::string("OpenJMeterScene") + ".VpcId", openJMeterScene.vpcId);
setParameter(std::string("OpenJMeterScene") + ".SceneId", openJMeterScene.sceneId);
setParameter(std::string("OpenJMeterScene") + ".JmeterPluginLabel", openJMeterScene.jmeterPluginLabel);
setParameter(std::string("OpenJMeterScene") + ".DnsCacheConfig.ClearCacheEachIteration", openJMeterScene.dnsCacheConfig.clearCacheEachIteration ? "true" : "false");
for(int dep1 = 0; dep1 != openJMeterScene.dnsCacheConfig.dnsServers.size(); dep1++) {
setParameter(std::string("OpenJMeterScene") + ".DnsCacheConfig.DnsServers." + std::to_string(dep1 + 1), openJMeterScene.dnsCacheConfig.dnsServers[dep1]);
}
for(auto const &iter1 : openJMeterScene.dnsCacheConfig.hostTable) {
setParameter(std::string("OpenJMeterScene") + ".DnsCacheConfig.HostTable." + iter1.first, iter1.second);
}
for(int dep1 = 0; dep1 != openJMeterScene.jMeterProperties.size(); dep1++) {
setParameter(std::string("OpenJMeterScene") + ".JMeterProperties." + std::to_string(dep1 + 1) + ".Name", openJMeterScene.jMeterProperties[dep1].name);
setParameter(std::string("OpenJMeterScene") + ".JMeterProperties." + std::to_string(dep1 + 1) + ".Value", openJMeterScene.jMeterProperties[dep1].value);
}
setParameter(std::string("OpenJMeterScene") + ".SyncTimerType", openJMeterScene.syncTimerType);
setParameter(std::string("OpenJMeterScene") + ".MaxRps", std::to_string(openJMeterScene.maxRps));
setParameter(std::string("OpenJMeterScene") + ".RampUp", std::to_string(openJMeterScene.rampUp));
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/SaveOpenJMeterSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
SaveOpenJMeterSceneResult::SaveOpenJMeterSceneResult() :
ServiceResult()
{}
SaveOpenJMeterSceneResult::SaveOpenJMeterSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveOpenJMeterSceneResult::~SaveOpenJMeterSceneResult()
{}
void SaveOpenJMeterSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SceneId"].isNull())
sceneId_ = value["SceneId"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string SaveOpenJMeterSceneResult::getSceneId()const
{
return sceneId_;
}
std::string SaveOpenJMeterSceneResult::getMessage()const
{
return message_;
}
int SaveOpenJMeterSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string SaveOpenJMeterSceneResult::getCode()const
{
return code_;
}
bool SaveOpenJMeterSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/SavePtsSceneRequest.h>
using AlibabaCloud::PTS::Model::SavePtsSceneRequest;
SavePtsSceneRequest::SavePtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "SavePtsScene") {
setMethod(HttpRequest::Method::Post);
}
SavePtsSceneRequest::~SavePtsSceneRequest() {}
std::string SavePtsSceneRequest::getScene() const {
return scene_;
}
void SavePtsSceneRequest::setScene(const std::string &scene) {
scene_ = scene;
setParameter(std::string("Scene"), scene);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/SavePtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
SavePtsSceneResult::SavePtsSceneResult() :
ServiceResult()
{}
SavePtsSceneResult::SavePtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SavePtsSceneResult::~SavePtsSceneResult()
{}
void SavePtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["SceneId"].isNull())
sceneId_ = value["SceneId"].asString();
}
std::string SavePtsSceneResult::getSceneId()const
{
return sceneId_;
}
std::string SavePtsSceneResult::getMessage()const
{
return message_;
}
int SavePtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string SavePtsSceneResult::getCode()const
{
return code_;
}
bool SavePtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/StartDebugPtsSceneRequest.h>
using AlibabaCloud::PTS::Model::StartDebugPtsSceneRequest;
StartDebugPtsSceneRequest::StartDebugPtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StartDebugPtsScene") {
setMethod(HttpRequest::Method::Post);
}
StartDebugPtsSceneRequest::~StartDebugPtsSceneRequest() {}
std::string StartDebugPtsSceneRequest::getSceneId() const {
return sceneId_;
}
void StartDebugPtsSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/StartDebugPtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StartDebugPtsSceneResult::StartDebugPtsSceneResult() :
ServiceResult()
{}
StartDebugPtsSceneResult::StartDebugPtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartDebugPtsSceneResult::~StartDebugPtsSceneResult()
{}
void StartDebugPtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PlanId"].isNull())
planId_ = value["PlanId"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StartDebugPtsSceneResult::getMessage()const
{
return message_;
}
std::string StartDebugPtsSceneResult::getPlanId()const
{
return planId_;
}
int StartDebugPtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StartDebugPtsSceneResult::getCode()const
{
return code_;
}
bool StartDebugPtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/StartDebuggingJMeterSceneRequest.h>
using AlibabaCloud::PTS::Model::StartDebuggingJMeterSceneRequest;
StartDebuggingJMeterSceneRequest::StartDebuggingJMeterSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StartDebuggingJMeterScene") {
setMethod(HttpRequest::Method::Post);
}
StartDebuggingJMeterSceneRequest::~StartDebuggingJMeterSceneRequest() {}
std::string StartDebuggingJMeterSceneRequest::getSceneId() const {
return sceneId_;
}
void StartDebuggingJMeterSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/StartDebuggingJMeterSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StartDebuggingJMeterSceneResult::StartDebuggingJMeterSceneResult() :
ServiceResult()
{}
StartDebuggingJMeterSceneResult::StartDebuggingJMeterSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartDebuggingJMeterSceneResult::~StartDebuggingJMeterSceneResult()
{}
void StartDebuggingJMeterSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ReportId"].isNull())
reportId_ = value["ReportId"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StartDebuggingJMeterSceneResult::getMessage()const
{
return message_;
}
int StartDebuggingJMeterSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StartDebuggingJMeterSceneResult::getReportId()const
{
return reportId_;
}
std::string StartDebuggingJMeterSceneResult::getCode()const
{
return code_;
}
bool StartDebuggingJMeterSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/StartPtsSceneRequest.h>
using AlibabaCloud::PTS::Model::StartPtsSceneRequest;
StartPtsSceneRequest::StartPtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StartPtsScene") {
setMethod(HttpRequest::Method::Post);
}
StartPtsSceneRequest::~StartPtsSceneRequest() {}
std::string StartPtsSceneRequest::getSceneId() const {
return sceneId_;
}
void StartPtsSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/StartPtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StartPtsSceneResult::StartPtsSceneResult() :
ServiceResult()
{}
StartPtsSceneResult::StartPtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartPtsSceneResult::~StartPtsSceneResult()
{}
void StartPtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PlanId"].isNull())
planId_ = value["PlanId"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StartPtsSceneResult::getMessage()const
{
return message_;
}
std::string StartPtsSceneResult::getPlanId()const
{
return planId_;
}
int StartPtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StartPtsSceneResult::getCode()const
{
return code_;
}
bool StartPtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/StartTestingJMeterSceneRequest.h>
using AlibabaCloud::PTS::Model::StartTestingJMeterSceneRequest;
StartTestingJMeterSceneRequest::StartTestingJMeterSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StartTestingJMeterScene") {
setMethod(HttpRequest::Method::Post);
}
StartTestingJMeterSceneRequest::~StartTestingJMeterSceneRequest() {}
std::string StartTestingJMeterSceneRequest::getSceneId() const {
return sceneId_;
}
void StartTestingJMeterSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/pts/model/StartTestingJMeterSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StartTestingJMeterSceneResult::StartTestingJMeterSceneResult() :
ServiceResult()
{}
StartTestingJMeterSceneResult::StartTestingJMeterSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartTestingJMeterSceneResult::~StartTestingJMeterSceneResult()
{}
void StartTestingJMeterSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ReportId"].isNull())
reportId_ = value["ReportId"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StartTestingJMeterSceneResult::getMessage()const
{
return message_;
}
int StartTestingJMeterSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StartTestingJMeterSceneResult::getReportId()const
{
return reportId_;
}
std::string StartTestingJMeterSceneResult::getCode()const
{
return code_;
}
bool StartTestingJMeterSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/pts/model/StopDebugPtsSceneRequest.h>
using AlibabaCloud::PTS::Model::StopDebugPtsSceneRequest;
StopDebugPtsSceneRequest::StopDebugPtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StopDebugPtsScene") {
setMethod(HttpRequest::Method::Post);
}
StopDebugPtsSceneRequest::~StopDebugPtsSceneRequest() {}
std::string StopDebugPtsSceneRequest::getSceneId() const {
return sceneId_;
}
void StopDebugPtsSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}
std::string StopDebugPtsSceneRequest::getPlanId() const {
return planId_;
}
void StopDebugPtsSceneRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/StopDebugPtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StopDebugPtsSceneResult::StopDebugPtsSceneResult() :
ServiceResult()
{}
StopDebugPtsSceneResult::StopDebugPtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopDebugPtsSceneResult::~StopDebugPtsSceneResult()
{}
void StopDebugPtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StopDebugPtsSceneResult::getMessage()const
{
return message_;
}
int StopDebugPtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StopDebugPtsSceneResult::getCode()const
{
return code_;
}
bool StopDebugPtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/StopDebuggingJMeterSceneRequest.h>
using AlibabaCloud::PTS::Model::StopDebuggingJMeterSceneRequest;
StopDebuggingJMeterSceneRequest::StopDebuggingJMeterSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StopDebuggingJMeterScene") {
setMethod(HttpRequest::Method::Post);
}
StopDebuggingJMeterSceneRequest::~StopDebuggingJMeterSceneRequest() {}
std::string StopDebuggingJMeterSceneRequest::getSceneId() const {
return sceneId_;
}
void StopDebuggingJMeterSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/StopDebuggingJMeterSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StopDebuggingJMeterSceneResult::StopDebuggingJMeterSceneResult() :
ServiceResult()
{}
StopDebuggingJMeterSceneResult::StopDebuggingJMeterSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopDebuggingJMeterSceneResult::~StopDebuggingJMeterSceneResult()
{}
void StopDebuggingJMeterSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StopDebuggingJMeterSceneResult::getMessage()const
{
return message_;
}
int StopDebuggingJMeterSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StopDebuggingJMeterSceneResult::getCode()const
{
return code_;
}
bool StopDebuggingJMeterSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/StopPtsSceneRequest.h>
using AlibabaCloud::PTS::Model::StopPtsSceneRequest;
StopPtsSceneRequest::StopPtsSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StopPtsScene") {
setMethod(HttpRequest::Method::Post);
}
StopPtsSceneRequest::~StopPtsSceneRequest() {}
std::string StopPtsSceneRequest::getSceneId() const {
return sceneId_;
}
void StopPtsSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/StopPtsSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StopPtsSceneResult::StopPtsSceneResult() :
ServiceResult()
{}
StopPtsSceneResult::StopPtsSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopPtsSceneResult::~StopPtsSceneResult()
{}
void StopPtsSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StopPtsSceneResult::getMessage()const
{
return message_;
}
int StopPtsSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StopPtsSceneResult::getCode()const
{
return code_;
}
bool StopPtsSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/pts/model/StopTestingJMeterSceneRequest.h>
using AlibabaCloud::PTS::Model::StopTestingJMeterSceneRequest;
StopTestingJMeterSceneRequest::StopTestingJMeterSceneRequest()
: RpcServiceRequest("pts", "2020-10-20", "StopTestingJMeterScene") {
setMethod(HttpRequest::Method::Post);
}
StopTestingJMeterSceneRequest::~StopTestingJMeterSceneRequest() {}
std::string StopTestingJMeterSceneRequest::getSceneId() const {
return sceneId_;
}
void StopTestingJMeterSceneRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/StopTestingJMeterSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
StopTestingJMeterSceneResult::StopTestingJMeterSceneResult() :
ServiceResult()
{}
StopTestingJMeterSceneResult::StopTestingJMeterSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopTestingJMeterSceneResult::~StopTestingJMeterSceneResult()
{}
void StopTestingJMeterSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string StopTestingJMeterSceneResult::getMessage()const
{
return message_;
}
int StopTestingJMeterSceneResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StopTestingJMeterSceneResult::getCode()const
{
return code_;
}
bool StopTestingJMeterSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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/pts/model/UpdatePtsSceneBaseLineRequest.h>
using AlibabaCloud::PTS::Model::UpdatePtsSceneBaseLineRequest;
UpdatePtsSceneBaseLineRequest::UpdatePtsSceneBaseLineRequest()
: RpcServiceRequest("pts", "2020-10-20", "UpdatePtsSceneBaseLine") {
setMethod(HttpRequest::Method::Post);
}
UpdatePtsSceneBaseLineRequest::~UpdatePtsSceneBaseLineRequest() {}
std::string UpdatePtsSceneBaseLineRequest::getSceneBaseline() const {
return sceneBaseline_;
}
void UpdatePtsSceneBaseLineRequest::setSceneBaseline(const std::string &sceneBaseline) {
sceneBaseline_ = sceneBaseline;
setParameter(std::string("SceneBaseline"), sceneBaseline);
}
std::string UpdatePtsSceneBaseLineRequest::getSceneId() const {
return sceneId_;
}
void UpdatePtsSceneBaseLineRequest::setSceneId(const std::string &sceneId) {
sceneId_ = sceneId;
setParameter(std::string("SceneId"), sceneId);
}
std::string UpdatePtsSceneBaseLineRequest::getApiBaselines() const {
return apiBaselines_;
}
void UpdatePtsSceneBaseLineRequest::setApiBaselines(const std::string &apiBaselines) {
apiBaselines_ = apiBaselines;
setParameter(std::string("ApiBaselines"), apiBaselines);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/pts/model/UpdatePtsSceneBaseLineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::PTS;
using namespace AlibabaCloud::PTS::Model;
UpdatePtsSceneBaseLineResult::UpdatePtsSceneBaseLineResult() :
ServiceResult()
{}
UpdatePtsSceneBaseLineResult::UpdatePtsSceneBaseLineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdatePtsSceneBaseLineResult::~UpdatePtsSceneBaseLineResult()
{}
void UpdatePtsSceneBaseLineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdatePtsSceneBaseLineResult::getMessage()const
{
return message_;
}
int UpdatePtsSceneBaseLineResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string UpdatePtsSceneBaseLineResult::getCode()const
{
return code_;
}
bool UpdatePtsSceneBaseLineResult::getSuccess()const
{
return success_;
}