From 5e0a06b53be8c61b0e275456196cbaa7e58ab339 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 9 Jun 2021 02:01:55 +0000 Subject: [PATCH] Edit GetTrace. --- CHANGELOG | 3 + VERSION | 2 +- arms/CMakeLists.txt | 8 ++ arms/include/alibabacloud/arms/ARMSClient.h | 16 ++++ .../arms/model/GetArmsConsoleUrlRequest.h | 48 ++++++++++++ .../arms/model/GetArmsConsoleUrlResult.h | 51 +++++++++++++ .../arms/model/GetExploreUrlRequest.h | 57 +++++++++++++++ .../arms/model/GetExploreUrlResult.h | 51 +++++++++++++ .../alibabacloud/arms/model/GetTraceRequest.h | 6 ++ .../arms/model/ListDashboardsResult.h | 2 + arms/src/ARMSClient.cc | 72 ++++++++++++++++++ arms/src/model/GetArmsConsoleUrlRequest.cc | 40 ++++++++++ arms/src/model/GetArmsConsoleUrlResult.cc | 51 +++++++++++++ arms/src/model/GetExploreUrlRequest.cc | 73 +++++++++++++++++++ arms/src/model/GetExploreUrlResult.cc | 51 +++++++++++++ arms/src/model/GetTraceRequest.cc | 22 ++++++ arms/src/model/ListDashboardsResult.cc | 4 + 17 files changed, 556 insertions(+), 1 deletion(-) create mode 100644 arms/include/alibabacloud/arms/model/GetArmsConsoleUrlRequest.h create mode 100644 arms/include/alibabacloud/arms/model/GetArmsConsoleUrlResult.h create mode 100644 arms/include/alibabacloud/arms/model/GetExploreUrlRequest.h create mode 100644 arms/include/alibabacloud/arms/model/GetExploreUrlResult.h create mode 100644 arms/src/model/GetArmsConsoleUrlRequest.cc create mode 100644 arms/src/model/GetArmsConsoleUrlResult.cc create mode 100644 arms/src/model/GetExploreUrlRequest.cc create mode 100644 arms/src/model/GetExploreUrlResult.cc diff --git a/CHANGELOG b/CHANGELOG index db1d2cf8c..2b701ad47 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-06-09 Version: 1.36.774 +- Edit GetTrace. + 2021-06-08 Version: 1.36.773 - Support Aliyun Workorder OpenAPI. diff --git a/VERSION b/VERSION index 3e28e18c7..9c8b73c36 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.773 \ No newline at end of file +1.36.774 \ No newline at end of file diff --git a/arms/CMakeLists.txt b/arms/CMakeLists.txt index cf7d1a1b8..67e90361c 100644 --- a/arms/CMakeLists.txt +++ b/arms/CMakeLists.txt @@ -89,8 +89,12 @@ set(arms_public_header_model include/alibabacloud/arms/model/GetAgentDownloadUrlResult.h include/alibabacloud/arms/model/GetAppApiByPageRequest.h include/alibabacloud/arms/model/GetAppApiByPageResult.h + include/alibabacloud/arms/model/GetArmsConsoleUrlRequest.h + include/alibabacloud/arms/model/GetArmsConsoleUrlResult.h include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h include/alibabacloud/arms/model/GetConsistencySnapshotResult.h + include/alibabacloud/arms/model/GetExploreUrlRequest.h + include/alibabacloud/arms/model/GetExploreUrlResult.h include/alibabacloud/arms/model/GetIntegrationTokenRequest.h include/alibabacloud/arms/model/GetIntegrationTokenResult.h include/alibabacloud/arms/model/GetMultipleTraceRequest.h @@ -268,8 +272,12 @@ set(arms_src src/model/GetAgentDownloadUrlResult.cc src/model/GetAppApiByPageRequest.cc src/model/GetAppApiByPageResult.cc + src/model/GetArmsConsoleUrlRequest.cc + src/model/GetArmsConsoleUrlResult.cc src/model/GetConsistencySnapshotRequest.cc src/model/GetConsistencySnapshotResult.cc + src/model/GetExploreUrlRequest.cc + src/model/GetExploreUrlResult.cc src/model/GetIntegrationTokenRequest.cc src/model/GetIntegrationTokenResult.cc src/model/GetMultipleTraceRequest.cc diff --git a/arms/include/alibabacloud/arms/ARMSClient.h b/arms/include/alibabacloud/arms/ARMSClient.h index 9a68cf76f..8073aa2ce 100644 --- a/arms/include/alibabacloud/arms/ARMSClient.h +++ b/arms/include/alibabacloud/arms/ARMSClient.h @@ -90,8 +90,12 @@ #include "model/GetAgentDownloadUrlResult.h" #include "model/GetAppApiByPageRequest.h" #include "model/GetAppApiByPageResult.h" +#include "model/GetArmsConsoleUrlRequest.h" +#include "model/GetArmsConsoleUrlResult.h" #include "model/GetConsistencySnapshotRequest.h" #include "model/GetConsistencySnapshotResult.h" +#include "model/GetExploreUrlRequest.h" +#include "model/GetExploreUrlResult.h" #include "model/GetIntegrationTokenRequest.h" #include "model/GetIntegrationTokenResult.h" #include "model/GetMultipleTraceRequest.h" @@ -309,9 +313,15 @@ namespace AlibabaCloud typedef Outcome GetAppApiByPageOutcome; typedef std::future GetAppApiByPageOutcomeCallable; typedef std::function&)> GetAppApiByPageAsyncHandler; + typedef Outcome GetArmsConsoleUrlOutcome; + typedef std::future GetArmsConsoleUrlOutcomeCallable; + typedef std::function&)> GetArmsConsoleUrlAsyncHandler; typedef Outcome GetConsistencySnapshotOutcome; typedef std::future GetConsistencySnapshotOutcomeCallable; typedef std::function&)> GetConsistencySnapshotAsyncHandler; + typedef Outcome GetExploreUrlOutcome; + typedef std::future GetExploreUrlOutcomeCallable; + typedef std::function&)> GetExploreUrlAsyncHandler; typedef Outcome GetIntegrationTokenOutcome; typedef std::future GetIntegrationTokenOutcomeCallable; typedef std::function&)> GetIntegrationTokenAsyncHandler; @@ -578,9 +588,15 @@ namespace AlibabaCloud GetAppApiByPageOutcome getAppApiByPage(const Model::GetAppApiByPageRequest &request)const; void getAppApiByPageAsync(const Model::GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAppApiByPageOutcomeCallable getAppApiByPageCallable(const Model::GetAppApiByPageRequest& request) const; + GetArmsConsoleUrlOutcome getArmsConsoleUrl(const Model::GetArmsConsoleUrlRequest &request)const; + void getArmsConsoleUrlAsync(const Model::GetArmsConsoleUrlRequest& request, const GetArmsConsoleUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetArmsConsoleUrlOutcomeCallable getArmsConsoleUrlCallable(const Model::GetArmsConsoleUrlRequest& request) const; GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const; void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const; + GetExploreUrlOutcome getExploreUrl(const Model::GetExploreUrlRequest &request)const; + void getExploreUrlAsync(const Model::GetExploreUrlRequest& request, const GetExploreUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetExploreUrlOutcomeCallable getExploreUrlCallable(const Model::GetExploreUrlRequest& request) const; GetIntegrationTokenOutcome getIntegrationToken(const Model::GetIntegrationTokenRequest &request)const; void getIntegrationTokenAsync(const Model::GetIntegrationTokenRequest& request, const GetIntegrationTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetIntegrationTokenOutcomeCallable getIntegrationTokenCallable(const Model::GetIntegrationTokenRequest& request) const; diff --git a/arms/include/alibabacloud/arms/model/GetArmsConsoleUrlRequest.h b/arms/include/alibabacloud/arms/model/GetArmsConsoleUrlRequest.h new file mode 100644 index 000000000..7169c34b6 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/GetArmsConsoleUrlRequest.h @@ -0,0 +1,48 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_GETARMSCONSOLEURLREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_GETARMSCONSOLEURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT GetArmsConsoleUrlRequest : public RpcServiceRequest + { + + public: + GetArmsConsoleUrlRequest(); + ~GetArmsConsoleUrlRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ARMS_MODEL_GETARMSCONSOLEURLREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetArmsConsoleUrlResult.h b/arms/include/alibabacloud/arms/model/GetArmsConsoleUrlResult.h new file mode 100644 index 000000000..b820cf276 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/GetArmsConsoleUrlResult.h @@ -0,0 +1,51 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_GETARMSCONSOLEURLRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_GETARMSCONSOLEURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT GetArmsConsoleUrlResult : public ServiceResult + { + public: + + + GetArmsConsoleUrlResult(); + explicit GetArmsConsoleUrlResult(const std::string &payload); + ~GetArmsConsoleUrlResult(); + std::string getArmsConsoleUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string armsConsoleUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ARMS_MODEL_GETARMSCONSOLEURLRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetExploreUrlRequest.h b/arms/include/alibabacloud/arms/model/GetExploreUrlRequest.h new file mode 100644 index 000000000..e54a1b057 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/GetExploreUrlRequest.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_GETEXPLOREURLREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_GETEXPLOREURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT GetExploreUrlRequest : public RpcServiceRequest + { + + public: + GetExploreUrlRequest(); + ~GetExploreUrlRequest(); + + std::string getExpression()const; + void setExpression(const std::string& expression); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string expression_; + std::string regionId_; + std::string clusterId_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ARMS_MODEL_GETEXPLOREURLREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetExploreUrlResult.h b/arms/include/alibabacloud/arms/model/GetExploreUrlResult.h new file mode 100644 index 000000000..494e6864b --- /dev/null +++ b/arms/include/alibabacloud/arms/model/GetExploreUrlResult.h @@ -0,0 +1,51 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_GETEXPLOREURLRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_GETEXPLOREURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT GetExploreUrlResult : public ServiceResult + { + public: + + + GetExploreUrlResult(); + explicit GetExploreUrlResult(const std::string &payload); + ~GetExploreUrlResult(); + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ARMS_MODEL_GETEXPLOREURLRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetTraceRequest.h b/arms/include/alibabacloud/arms/model/GetTraceRequest.h index 2174e7de0..5259be225 100644 --- a/arms/include/alibabacloud/arms/model/GetTraceRequest.h +++ b/arms/include/alibabacloud/arms/model/GetTraceRequest.h @@ -39,10 +39,16 @@ namespace AlibabaCloud void setTraceID(const std::string& traceID); std::string getRegionId()const; void setRegionId(const std::string& regionId); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); private: std::string traceID_; std::string regionId_; + long endTime_; + long startTime_; }; } diff --git a/arms/include/alibabacloud/arms/model/ListDashboardsResult.h b/arms/include/alibabacloud/arms/model/ListDashboardsResult.h index 846300154..32f141b89 100644 --- a/arms/include/alibabacloud/arms/model/ListDashboardsResult.h +++ b/arms/include/alibabacloud/arms/model/ListDashboardsResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string time; std::string exporter; std::string url; + std::string httpUrl; std::string name; std::string uid; std::string type; @@ -46,6 +47,7 @@ namespace AlibabaCloud std::string kind; std::string id; std::string dashboardType; + std::string httpsUrl; std::vector tags; bool isArmsExporter; }; diff --git a/arms/src/ARMSClient.cc b/arms/src/ARMSClient.cc index baa3d1869..c082f8aff 100644 --- a/arms/src/ARMSClient.cc +++ b/arms/src/ARMSClient.cc @@ -1275,6 +1275,42 @@ ARMSClient::GetAppApiByPageOutcomeCallable ARMSClient::getAppApiByPageCallable(c return task->get_future(); } +ARMSClient::GetArmsConsoleUrlOutcome ARMSClient::getArmsConsoleUrl(const GetArmsConsoleUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetArmsConsoleUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetArmsConsoleUrlOutcome(GetArmsConsoleUrlResult(outcome.result())); + else + return GetArmsConsoleUrlOutcome(outcome.error()); +} + +void ARMSClient::getArmsConsoleUrlAsync(const GetArmsConsoleUrlRequest& request, const GetArmsConsoleUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getArmsConsoleUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::GetArmsConsoleUrlOutcomeCallable ARMSClient::getArmsConsoleUrlCallable(const GetArmsConsoleUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getArmsConsoleUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ARMSClient::GetConsistencySnapshotOutcome ARMSClient::getConsistencySnapshot(const GetConsistencySnapshotRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1347,42 @@ ARMSClient::GetConsistencySnapshotOutcomeCallable ARMSClient::getConsistencySnap return task->get_future(); } +ARMSClient::GetExploreUrlOutcome ARMSClient::getExploreUrl(const GetExploreUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetExploreUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetExploreUrlOutcome(GetExploreUrlResult(outcome.result())); + else + return GetExploreUrlOutcome(outcome.error()); +} + +void ARMSClient::getExploreUrlAsync(const GetExploreUrlRequest& request, const GetExploreUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getExploreUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::GetExploreUrlOutcomeCallable ARMSClient::getExploreUrlCallable(const GetExploreUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getExploreUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ARMSClient::GetIntegrationTokenOutcome ARMSClient::getIntegrationToken(const GetIntegrationTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/arms/src/model/GetArmsConsoleUrlRequest.cc b/arms/src/model/GetArmsConsoleUrlRequest.cc new file mode 100644 index 000000000..d859f1961 --- /dev/null +++ b/arms/src/model/GetArmsConsoleUrlRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 + +using AlibabaCloud::ARMS::Model::GetArmsConsoleUrlRequest; + +GetArmsConsoleUrlRequest::GetArmsConsoleUrlRequest() : + RpcServiceRequest("arms", "2019-08-08", "GetArmsConsoleUrl") +{ + setMethod(HttpRequest::Method::Get); +} + +GetArmsConsoleUrlRequest::~GetArmsConsoleUrlRequest() +{} + +std::string GetArmsConsoleUrlRequest::getRegionId()const +{ + return regionId_; +} + +void GetArmsConsoleUrlRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/arms/src/model/GetArmsConsoleUrlResult.cc b/arms/src/model/GetArmsConsoleUrlResult.cc new file mode 100644 index 000000000..9ecd5e5a9 --- /dev/null +++ b/arms/src/model/GetArmsConsoleUrlResult.cc @@ -0,0 +1,51 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +GetArmsConsoleUrlResult::GetArmsConsoleUrlResult() : + ServiceResult() +{} + +GetArmsConsoleUrlResult::GetArmsConsoleUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetArmsConsoleUrlResult::~GetArmsConsoleUrlResult() +{} + +void GetArmsConsoleUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ArmsConsoleUrl"].isNull()) + armsConsoleUrl_ = value["ArmsConsoleUrl"].asString(); + +} + +std::string GetArmsConsoleUrlResult::getArmsConsoleUrl()const +{ + return armsConsoleUrl_; +} + diff --git a/arms/src/model/GetExploreUrlRequest.cc b/arms/src/model/GetExploreUrlRequest.cc new file mode 100644 index 000000000..aae629964 --- /dev/null +++ b/arms/src/model/GetExploreUrlRequest.cc @@ -0,0 +1,73 @@ +/* + * 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 + +using AlibabaCloud::ARMS::Model::GetExploreUrlRequest; + +GetExploreUrlRequest::GetExploreUrlRequest() : + RpcServiceRequest("arms", "2019-08-08", "GetExploreUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +GetExploreUrlRequest::~GetExploreUrlRequest() +{} + +std::string GetExploreUrlRequest::getExpression()const +{ + return expression_; +} + +void GetExploreUrlRequest::setExpression(const std::string& expression) +{ + expression_ = expression; + setParameter("Expression", expression); +} + +std::string GetExploreUrlRequest::getRegionId()const +{ + return regionId_; +} + +void GetExploreUrlRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetExploreUrlRequest::getClusterId()const +{ + return clusterId_; +} + +void GetExploreUrlRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +std::string GetExploreUrlRequest::getType()const +{ + return type_; +} + +void GetExploreUrlRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/arms/src/model/GetExploreUrlResult.cc b/arms/src/model/GetExploreUrlResult.cc new file mode 100644 index 000000000..86366ee0a --- /dev/null +++ b/arms/src/model/GetExploreUrlResult.cc @@ -0,0 +1,51 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +GetExploreUrlResult::GetExploreUrlResult() : + ServiceResult() +{} + +GetExploreUrlResult::GetExploreUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetExploreUrlResult::~GetExploreUrlResult() +{} + +void GetExploreUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string GetExploreUrlResult::getData()const +{ + return data_; +} + diff --git a/arms/src/model/GetTraceRequest.cc b/arms/src/model/GetTraceRequest.cc index b702cafd2..c9188bf54 100644 --- a/arms/src/model/GetTraceRequest.cc +++ b/arms/src/model/GetTraceRequest.cc @@ -49,3 +49,25 @@ void GetTraceRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +long GetTraceRequest::getEndTime()const +{ + return endTime_; +} + +void GetTraceRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long GetTraceRequest::getStartTime()const +{ + return startTime_; +} + +void GetTraceRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + diff --git a/arms/src/model/ListDashboardsResult.cc b/arms/src/model/ListDashboardsResult.cc index 32ea500ad..ea6d577be 100644 --- a/arms/src/model/ListDashboardsResult.cc +++ b/arms/src/model/ListDashboardsResult.cc @@ -69,6 +69,10 @@ void ListDashboardsResult::parse(const std::string &payload) dashboardVosObject.kind = valueDashboardVosDashboardVosItem["Kind"].asString(); if(!valueDashboardVosDashboardVosItem["NeedUpdate"].isNull()) dashboardVosObject.needUpdate = valueDashboardVosDashboardVosItem["NeedUpdate"].asString() == "true"; + if(!valueDashboardVosDashboardVosItem["HttpUrl"].isNull()) + dashboardVosObject.httpUrl = valueDashboardVosDashboardVosItem["HttpUrl"].asString(); + if(!valueDashboardVosDashboardVosItem["HttpsUrl"].isNull()) + dashboardVosObject.httpsUrl = valueDashboardVosDashboardVosItem["HttpsUrl"].asString(); auto allTags = value["Tags"]["Tags"]; for (auto value : allTags) dashboardVosObject.tags.push_back(value.asString());