From e498e9b8b4a6d42123a21a954847a2da45e8d8d3 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 22 Aug 2019 11:11:40 +0800 Subject: [PATCH] Api release 2019-08-08 public sdk 2-5-2 sdk release 20190822 shichun-fsc. --- CHANGELOG | 3 + VERSION | 2 +- arms/include/alibabacloud/arms/ARMSClient.h | 88 +--- .../arms/model/ARMSQueryDataSetRequest.h | 114 ----- .../arms/model/ARMSQueryDataSetResult.h | 51 --- .../arms/model/GetServicesRequest.h | 51 --- .../arms/model/GetServicesResult.h | 62 --- .../arms/model/GetSpanNamesRequest.h | 57 --- .../arms/model/GetSpanNamesResult.h | 51 --- .../arms/model/GetTagKeyRequest.h | 60 --- .../alibabacloud/arms/model/GetTagKeyResult.h | 51 --- .../arms/model/GetTagValRequest.h | 63 --- .../alibabacloud/arms/model/GetTagValResult.h | 51 --- .../alibabacloud/arms/model/GetTraceRequest.h | 54 --- .../alibabacloud/arms/model/GetTraceResult.h | 80 ---- .../arms/model/ImportAppAlertRulesRequest.h | 3 + .../arms/model/MetricQueryRequest.h | 89 ---- .../arms/model/MetricQueryResult.h | 51 --- .../arms/model/SearchTraceCountRequest.h | 77 ---- .../arms/model/SearchTraceCountResult.h | 55 --- .../arms/model/SearchTracesRequest.h | 86 ---- .../arms/model/SearchTracesResult.h | 60 --- arms/src/ARMSClient.cc | 396 ++---------------- arms/src/model/ARMSQueryDataSetRequest.cc | 236 ----------- arms/src/model/ARMSQueryDataSetResult.cc | 52 --- arms/src/model/GetServicesRequest.cc | 49 --- arms/src/model/GetServicesResult.cc | 66 --- arms/src/model/GetSpanNamesRequest.cc | 71 ---- arms/src/model/GetSpanNamesResult.cc | 53 --- arms/src/model/GetTagKeyRequest.cc | 82 ---- arms/src/model/GetTagKeyResult.cc | 53 --- arms/src/model/GetTagValRequest.cc | 93 ---- arms/src/model/GetTagValResult.cc | 53 --- arms/src/model/GetTraceRequest.cc | 60 --- arms/src/model/GetTraceResult.cc | 102 ----- arms/src/model/ImportAppAlertRulesRequest.cc | 11 + arms/src/model/MetricQueryRequest.cc | 178 -------- arms/src/model/MetricQueryResult.cc | 52 --- arms/src/model/SearchTraceCountRequest.cc | 132 ------ arms/src/model/SearchTraceCountResult.cc | 53 --- arms/src/model/SearchTracesRequest.cc | 165 -------- arms/src/model/SearchTracesResult.cc | 68 --- 42 files changed, 62 insertions(+), 3222 deletions(-) delete mode 100644 arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/ARMSQueryDataSetResult.h delete mode 100644 arms/include/alibabacloud/arms/model/GetServicesRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/GetServicesResult.h delete mode 100644 arms/include/alibabacloud/arms/model/GetSpanNamesRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/GetSpanNamesResult.h delete mode 100644 arms/include/alibabacloud/arms/model/GetTagKeyRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/GetTagKeyResult.h delete mode 100644 arms/include/alibabacloud/arms/model/GetTagValRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/GetTagValResult.h delete mode 100644 arms/include/alibabacloud/arms/model/GetTraceRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/GetTraceResult.h delete mode 100644 arms/include/alibabacloud/arms/model/MetricQueryRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/MetricQueryResult.h delete mode 100644 arms/include/alibabacloud/arms/model/SearchTraceCountRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/SearchTraceCountResult.h delete mode 100644 arms/include/alibabacloud/arms/model/SearchTracesRequest.h delete mode 100644 arms/include/alibabacloud/arms/model/SearchTracesResult.h delete mode 100644 arms/src/model/ARMSQueryDataSetRequest.cc delete mode 100644 arms/src/model/ARMSQueryDataSetResult.cc delete mode 100644 arms/src/model/GetServicesRequest.cc delete mode 100644 arms/src/model/GetServicesResult.cc delete mode 100644 arms/src/model/GetSpanNamesRequest.cc delete mode 100644 arms/src/model/GetSpanNamesResult.cc delete mode 100644 arms/src/model/GetTagKeyRequest.cc delete mode 100644 arms/src/model/GetTagKeyResult.cc delete mode 100644 arms/src/model/GetTagValRequest.cc delete mode 100644 arms/src/model/GetTagValResult.cc delete mode 100644 arms/src/model/GetTraceRequest.cc delete mode 100644 arms/src/model/GetTraceResult.cc delete mode 100644 arms/src/model/MetricQueryRequest.cc delete mode 100644 arms/src/model/MetricQueryResult.cc delete mode 100644 arms/src/model/SearchTraceCountRequest.cc delete mode 100644 arms/src/model/SearchTraceCountResult.cc delete mode 100644 arms/src/model/SearchTracesRequest.cc delete mode 100644 arms/src/model/SearchTracesResult.cc diff --git a/CHANGELOG b/CHANGELOG index 38f1dac11..c12984f6c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-08-22 Version 1.36.94 +- Api release 2019-08-08 public sdk 2-5-2 sdk release 20190822 shichun-fsc. + 2019-08-21 Version 1.36.93 - Move StartExecution params to body. diff --git a/VERSION b/VERSION index 82af46180..b3ec0fac9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.93 \ No newline at end of file +1.36.94 \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/ARMSClient.h b/arms/include/alibabacloud/arms/ARMSClient.h index e72bc37f9..997813cd5 100644 --- a/arms/include/alibabacloud/arms/ARMSClient.h +++ b/arms/include/alibabacloud/arms/ARMSClient.h @@ -24,8 +24,6 @@ #include "ARMSExport.h" #include "model/SearchAlertContactRequest.h" #include "model/SearchAlertContactResult.h" -#include "model/GetTraceRequest.h" -#include "model/GetTraceResult.h" #include "model/ListTraceAppsRequest.h" #include "model/ListTraceAppsResult.h" #include "model/DeleteRetcodeAppRequest.h" @@ -38,36 +36,20 @@ #include "model/CreateAlertContactGroupResult.h" #include "model/QueryDatasetRequest.h" #include "model/QueryDatasetResult.h" -#include "model/SearchTraceAppByNameRequest.h" -#include "model/SearchTraceAppByNameResult.h" #include "model/SearchRetcodeAppByPageRequest.h" #include "model/SearchRetcodeAppByPageResult.h" +#include "model/SearchTraceAppByNameRequest.h" +#include "model/SearchTraceAppByNameResult.h" #include "model/ListRetcodeAppsRequest.h" #include "model/ListRetcodeAppsResult.h" -#include "model/GetSpanNamesRequest.h" -#include "model/GetSpanNamesResult.h" -#include "model/GetServicesRequest.h" -#include "model/GetServicesResult.h" -#include "model/MetricQueryRequest.h" -#include "model/MetricQueryResult.h" -#include "model/SearchTracesRequest.h" -#include "model/SearchTracesResult.h" #include "model/SearchAlertContactGroupRequest.h" #include "model/SearchAlertContactGroupResult.h" #include "model/CreateAlertContactRequest.h" #include "model/CreateAlertContactResult.h" #include "model/QueryMetricRequest.h" #include "model/QueryMetricResult.h" -#include "model/SearchTraceCountRequest.h" -#include "model/SearchTraceCountResult.h" -#include "model/GetTagKeyRequest.h" -#include "model/GetTagKeyResult.h" -#include "model/ARMSQueryDataSetRequest.h" -#include "model/ARMSQueryDataSetResult.h" #include "model/CreateRetcodeAppRequest.h" #include "model/CreateRetcodeAppResult.h" -#include "model/GetTagValRequest.h" -#include "model/GetTagValResult.h" namespace AlibabaCloud @@ -80,9 +62,6 @@ namespace AlibabaCloud typedef Outcome SearchAlertContactOutcome; typedef std::future SearchAlertContactOutcomeCallable; typedef std::function&)> SearchAlertContactAsyncHandler; - typedef Outcome GetTraceOutcome; - typedef std::future GetTraceOutcomeCallable; - typedef std::function&)> GetTraceAsyncHandler; typedef Outcome ListTraceAppsOutcome; typedef std::future ListTraceAppsOutcomeCallable; typedef std::function&)> ListTraceAppsAsyncHandler; @@ -101,27 +80,15 @@ namespace AlibabaCloud typedef Outcome QueryDatasetOutcome; typedef std::future QueryDatasetOutcomeCallable; typedef std::function&)> QueryDatasetAsyncHandler; - typedef Outcome SearchTraceAppByNameOutcome; - typedef std::future SearchTraceAppByNameOutcomeCallable; - typedef std::function&)> SearchTraceAppByNameAsyncHandler; typedef Outcome SearchRetcodeAppByPageOutcome; typedef std::future SearchRetcodeAppByPageOutcomeCallable; typedef std::function&)> SearchRetcodeAppByPageAsyncHandler; + typedef Outcome SearchTraceAppByNameOutcome; + typedef std::future SearchTraceAppByNameOutcomeCallable; + typedef std::function&)> SearchTraceAppByNameAsyncHandler; typedef Outcome ListRetcodeAppsOutcome; typedef std::future ListRetcodeAppsOutcomeCallable; typedef std::function&)> ListRetcodeAppsAsyncHandler; - typedef Outcome GetSpanNamesOutcome; - typedef std::future GetSpanNamesOutcomeCallable; - typedef std::function&)> GetSpanNamesAsyncHandler; - typedef Outcome GetServicesOutcome; - typedef std::future GetServicesOutcomeCallable; - typedef std::function&)> GetServicesAsyncHandler; - typedef Outcome MetricQueryOutcome; - typedef std::future MetricQueryOutcomeCallable; - typedef std::function&)> MetricQueryAsyncHandler; - typedef Outcome SearchTracesOutcome; - typedef std::future SearchTracesOutcomeCallable; - typedef std::function&)> SearchTracesAsyncHandler; typedef Outcome SearchAlertContactGroupOutcome; typedef std::future SearchAlertContactGroupOutcomeCallable; typedef std::function&)> SearchAlertContactGroupAsyncHandler; @@ -131,21 +98,9 @@ namespace AlibabaCloud typedef Outcome QueryMetricOutcome; typedef std::future QueryMetricOutcomeCallable; typedef std::function&)> QueryMetricAsyncHandler; - typedef Outcome SearchTraceCountOutcome; - typedef std::future SearchTraceCountOutcomeCallable; - typedef std::function&)> SearchTraceCountAsyncHandler; - typedef Outcome GetTagKeyOutcome; - typedef std::future GetTagKeyOutcomeCallable; - typedef std::function&)> GetTagKeyAsyncHandler; - typedef Outcome ARMSQueryDataSetOutcome; - typedef std::future ARMSQueryDataSetOutcomeCallable; - typedef std::function&)> ARMSQueryDataSetAsyncHandler; typedef Outcome CreateRetcodeAppOutcome; typedef std::future CreateRetcodeAppOutcomeCallable; typedef std::function&)> CreateRetcodeAppAsyncHandler; - typedef Outcome GetTagValOutcome; - typedef std::future GetTagValOutcomeCallable; - typedef std::function&)> GetTagValAsyncHandler; ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration); ARMSClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -154,9 +109,6 @@ namespace AlibabaCloud SearchAlertContactOutcome searchAlertContact(const Model::SearchAlertContactRequest &request)const; void searchAlertContactAsync(const Model::SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchAlertContactOutcomeCallable searchAlertContactCallable(const Model::SearchAlertContactRequest& request) const; - GetTraceOutcome getTrace(const Model::GetTraceRequest &request)const; - void getTraceAsync(const Model::GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetTraceOutcomeCallable getTraceCallable(const Model::GetTraceRequest& request) const; ListTraceAppsOutcome listTraceApps(const Model::ListTraceAppsRequest &request)const; void listTraceAppsAsync(const Model::ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTraceAppsOutcomeCallable listTraceAppsCallable(const Model::ListTraceAppsRequest& request) const; @@ -175,27 +127,15 @@ namespace AlibabaCloud QueryDatasetOutcome queryDataset(const Model::QueryDatasetRequest &request)const; void queryDatasetAsync(const Model::QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDatasetOutcomeCallable queryDatasetCallable(const Model::QueryDatasetRequest& request) const; - SearchTraceAppByNameOutcome searchTraceAppByName(const Model::SearchTraceAppByNameRequest &request)const; - void searchTraceAppByNameAsync(const Model::SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchTraceAppByNameOutcomeCallable searchTraceAppByNameCallable(const Model::SearchTraceAppByNameRequest& request) const; SearchRetcodeAppByPageOutcome searchRetcodeAppByPage(const Model::SearchRetcodeAppByPageRequest &request)const; void searchRetcodeAppByPageAsync(const Model::SearchRetcodeAppByPageRequest& request, const SearchRetcodeAppByPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchRetcodeAppByPageOutcomeCallable searchRetcodeAppByPageCallable(const Model::SearchRetcodeAppByPageRequest& request) const; + SearchTraceAppByNameOutcome searchTraceAppByName(const Model::SearchTraceAppByNameRequest &request)const; + void searchTraceAppByNameAsync(const Model::SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTraceAppByNameOutcomeCallable searchTraceAppByNameCallable(const Model::SearchTraceAppByNameRequest& request) const; ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const; void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRetcodeAppsOutcomeCallable listRetcodeAppsCallable(const Model::ListRetcodeAppsRequest& request) const; - GetSpanNamesOutcome getSpanNames(const Model::GetSpanNamesRequest &request)const; - void getSpanNamesAsync(const Model::GetSpanNamesRequest& request, const GetSpanNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSpanNamesOutcomeCallable getSpanNamesCallable(const Model::GetSpanNamesRequest& request) const; - GetServicesOutcome getServices(const Model::GetServicesRequest &request)const; - void getServicesAsync(const Model::GetServicesRequest& request, const GetServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetServicesOutcomeCallable getServicesCallable(const Model::GetServicesRequest& request) const; - MetricQueryOutcome metricQuery(const Model::MetricQueryRequest &request)const; - void metricQueryAsync(const Model::MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetricQueryOutcomeCallable metricQueryCallable(const Model::MetricQueryRequest& request) const; - SearchTracesOutcome searchTraces(const Model::SearchTracesRequest &request)const; - void searchTracesAsync(const Model::SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchTracesOutcomeCallable searchTracesCallable(const Model::SearchTracesRequest& request) const; SearchAlertContactGroupOutcome searchAlertContactGroup(const Model::SearchAlertContactGroupRequest &request)const; void searchAlertContactGroupAsync(const Model::SearchAlertContactGroupRequest& request, const SearchAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchAlertContactGroupOutcomeCallable searchAlertContactGroupCallable(const Model::SearchAlertContactGroupRequest& request) const; @@ -205,21 +145,9 @@ namespace AlibabaCloud QueryMetricOutcome queryMetric(const Model::QueryMetricRequest &request)const; void queryMetricAsync(const Model::QueryMetricRequest& request, const QueryMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMetricOutcomeCallable queryMetricCallable(const Model::QueryMetricRequest& request) const; - SearchTraceCountOutcome searchTraceCount(const Model::SearchTraceCountRequest &request)const; - void searchTraceCountAsync(const Model::SearchTraceCountRequest& request, const SearchTraceCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchTraceCountOutcomeCallable searchTraceCountCallable(const Model::SearchTraceCountRequest& request) const; - GetTagKeyOutcome getTagKey(const Model::GetTagKeyRequest &request)const; - void getTagKeyAsync(const Model::GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetTagKeyOutcomeCallable getTagKeyCallable(const Model::GetTagKeyRequest& request) const; - ARMSQueryDataSetOutcome aRMSQueryDataSet(const Model::ARMSQueryDataSetRequest &request)const; - void aRMSQueryDataSetAsync(const Model::ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ARMSQueryDataSetOutcomeCallable aRMSQueryDataSetCallable(const Model::ARMSQueryDataSetRequest& request) const; CreateRetcodeAppOutcome createRetcodeApp(const Model::CreateRetcodeAppRequest &request)const; void createRetcodeAppAsync(const Model::CreateRetcodeAppRequest& request, const CreateRetcodeAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRetcodeAppOutcomeCallable createRetcodeAppCallable(const Model::CreateRetcodeAppRequest& request) const; - GetTagValOutcome getTagVal(const Model::GetTagValRequest &request)const; - void getTagValAsync(const Model::GetTagValRequest& request, const GetTagValAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetTagValOutcomeCallable getTagValCallable(const Model::GetTagValRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h b/arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h deleted file mode 100644 index f2e3224ed..000000000 --- a/arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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_ARMSQUERYDATASETREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetRequest : public RpcServiceRequest - { - struct OptionalDims - { - std::string type; - std::string value; - std::string key; - }; - struct RequiredDims - { - std::string type; - std::string value; - std::string key; - }; - struct Dimensions - { - std::string type; - std::string value; - std::string key; - }; - - public: - ARMSQueryDataSetRequest(); - ~ARMSQueryDataSetRequest(); - - std::string getDateStr()const; - void setDateStr(const std::string& dateStr); - long getMinTime()const; - void setMinTime(long minTime); - bool getReduceTail()const; - void setReduceTail(bool reduceTail); - long getMaxTime()const; - void setMaxTime(long maxTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getOptionalDims()const; - void setOptionalDims(const std::vector& optionalDims); - std::vector getMeasures()const; - void setMeasures(const std::vector& measures); - int getIntervalInSec()const; - void setIntervalInSec(int intervalInSec); - bool getIsDrillDown()const; - void setIsDrillDown(bool isDrillDown); - bool getHungryMode()const; - void setHungryMode(bool hungryMode); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOrderByKey()const; - void setOrderByKey(const std::string& orderByKey); - int getLimit()const; - void setLimit(int limit); - std::vector getRequiredDims()const; - void setRequiredDims(const std::vector& requiredDims); - long getDatasetId()const; - void setDatasetId(long datasetId); - std::vector getDimensions()const; - void setDimensions(const std::vector& dimensions); - - private: - std::string dateStr_; - long minTime_; - bool reduceTail_; - long maxTime_; - std::string accessKeyId_; - std::vector optionalDims_; - std::vector measures_; - int intervalInSec_; - bool isDrillDown_; - bool hungryMode_; - std::string securityToken_; - std::string regionId_; - std::string orderByKey_; - int limit_; - std::vector requiredDims_; - long datasetId_; - std::vector dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ARMSQueryDataSetResult.h b/arms/include/alibabacloud/arms/model/ARMSQueryDataSetResult.h deleted file mode 100644 index 066e03f4f..000000000 --- a/arms/include/alibabacloud/arms/model/ARMSQueryDataSetResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_ARMSQUERYDATASETRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetResult : public ServiceResult - { - public: - - - ARMSQueryDataSetResult(); - explicit ARMSQueryDataSetResult(const std::string &payload); - ~ARMSQueryDataSetResult(); - std::string getData()const; - - protected: - void parse(const std::string &payload); - private: - std::string data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetServicesRequest.h b/arms/include/alibabacloud/arms/model/GetServicesRequest.h deleted file mode 100644 index ac4b424c5..000000000 --- a/arms/include/alibabacloud/arms/model/GetServicesRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_GETSERVICESREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETSERVICESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetServicesRequest : public RpcServiceRequest - { - - public: - GetServicesRequest(); - ~GetServicesRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAppType()const; - void setAppType(const std::string& appType); - - private: - std::string regionId_; - std::string appType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETSERVICESREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetServicesResult.h b/arms/include/alibabacloud/arms/model/GetServicesResult.h deleted file mode 100644 index d201d44ff..000000000 --- a/arms/include/alibabacloud/arms/model/GetServicesResult.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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_GETSERVICESRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETSERVICESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetServicesResult : public ServiceResult - { - public: - struct Data - { - struct DetailsItem - { - std::string serviceName; - std::string pid; - std::string regionId; - }; - std::vector services; - std::vector details; - }; - - - GetServicesResult(); - explicit GetServicesResult(const std::string &payload); - ~GetServicesResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETSERVICESRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetSpanNamesRequest.h b/arms/include/alibabacloud/arms/model/GetSpanNamesRequest.h deleted file mode 100644 index 09ccd26cc..000000000 --- a/arms/include/alibabacloud/arms/model/GetSpanNamesRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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_GETSPANNAMESREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetSpanNamesRequest : public RpcServiceRequest - { - - public: - GetSpanNamesRequest(); - ~GetSpanNamesRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getEndTime()const; - void setEndTime(long endTime); - std::string getServiceName()const; - void setServiceName(const std::string& serviceName); - long getStartTime()const; - void setStartTime(long startTime); - - private: - std::string regionId_; - long endTime_; - std::string serviceName_; - long startTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetSpanNamesResult.h b/arms/include/alibabacloud/arms/model/GetSpanNamesResult.h deleted file mode 100644 index b4d765d87..000000000 --- a/arms/include/alibabacloud/arms/model/GetSpanNamesResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_GETSPANNAMESRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetSpanNamesResult : public ServiceResult - { - public: - - - GetSpanNamesResult(); - explicit GetSpanNamesResult(const std::string &payload); - ~GetSpanNamesResult(); - std::vector getData()const; - - protected: - void parse(const std::string &payload); - private: - std::vector data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetTagKeyRequest.h b/arms/include/alibabacloud/arms/model/GetTagKeyRequest.h deleted file mode 100644 index 1e1128931..000000000 --- a/arms/include/alibabacloud/arms/model/GetTagKeyRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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_GETTAGKEYREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETTAGKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetTagKeyRequest : public RpcServiceRequest - { - - public: - GetTagKeyRequest(); - ~GetTagKeyRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getEndTime()const; - void setEndTime(long endTime); - std::string getServiceName()const; - void setServiceName(const std::string& serviceName); - long getStartTime()const; - void setStartTime(long startTime); - std::string getSpanName()const; - void setSpanName(const std::string& spanName); - - private: - std::string regionId_; - long endTime_; - std::string serviceName_; - long startTime_; - std::string spanName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGKEYREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetTagKeyResult.h b/arms/include/alibabacloud/arms/model/GetTagKeyResult.h deleted file mode 100644 index 4072d3335..000000000 --- a/arms/include/alibabacloud/arms/model/GetTagKeyResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_GETTAGKEYRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETTAGKEYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetTagKeyResult : public ServiceResult - { - public: - - - GetTagKeyResult(); - explicit GetTagKeyResult(const std::string &payload); - ~GetTagKeyResult(); - std::vector getData()const; - - protected: - void parse(const std::string &payload); - private: - std::vector data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGKEYRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetTagValRequest.h b/arms/include/alibabacloud/arms/model/GetTagValRequest.h deleted file mode 100644 index 1f28797dc..000000000 --- a/arms/include/alibabacloud/arms/model/GetTagValRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_GETTAGVALREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETTAGVALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetTagValRequest : public RpcServiceRequest - { - - public: - GetTagValRequest(); - ~GetTagValRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getEndTime()const; - void setEndTime(long endTime); - std::string getServiceName()const; - void setServiceName(const std::string& serviceName); - long getStartTime()const; - void setStartTime(long startTime); - std::string getTagKey()const; - void setTagKey(const std::string& tagKey); - std::string getSpanName()const; - void setSpanName(const std::string& spanName); - - private: - std::string regionId_; - long endTime_; - std::string serviceName_; - long startTime_; - std::string tagKey_; - std::string spanName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGVALREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetTagValResult.h b/arms/include/alibabacloud/arms/model/GetTagValResult.h deleted file mode 100644 index f22a47067..000000000 --- a/arms/include/alibabacloud/arms/model/GetTagValResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_GETTAGVALRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETTAGVALRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetTagValResult : public ServiceResult - { - public: - - - GetTagValResult(); - explicit GetTagValResult(const std::string &payload); - ~GetTagValResult(); - std::vector getData()const; - - protected: - void parse(const std::string &payload); - private: - std::vector data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGVALRESULT_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 deleted file mode 100644 index 50af4504e..000000000 --- a/arms/include/alibabacloud/arms/model/GetTraceRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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_GETTRACEREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetTraceRequest : public RpcServiceRequest - { - - public: - GetTraceRequest(); - ~GetTraceRequest(); - - std::string getTraceID()const; - void setTraceID(const std::string& traceID); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAppType()const; - void setAppType(const std::string& appType); - - private: - std::string traceID_; - std::string regionId_; - std::string appType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetTraceResult.h b/arms/include/alibabacloud/arms/model/GetTraceResult.h deleted file mode 100644 index 65923f60e..000000000 --- a/arms/include/alibabacloud/arms/model/GetTraceResult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * 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_GETTRACERESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_GETTRACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT GetTraceResult : public ServiceResult - { - public: - struct CallChainInfo - { - struct TagEntry - { - std::string value; - std::string key; - }; - struct LogEvent - { - struct TagEntry2 - { - std::string value; - std::string key; - }; - std::vector tagEntryList1; - long timestamp; - }; - bool haveStack; - std::string serviceIp; - std::vector logEventList; - std::string operationName; - std::string serviceName; - std::string rpcId; - std::string traceID; - long duration; - std::vector tagEntryList; - long timestamp; - std::string resultCode; - }; - - - GetTraceResult(); - explicit GetTraceResult(const std::string &payload); - ~GetTraceResult(); - std::vector getData()const; - - protected: - void parse(const std::string &payload); - private: - std::vector data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_GETTRACERESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h b/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h index 0f51c72bc..82694716c 100644 --- a/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h +++ b/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setContactGroupIds(const std::string& contactGroupIds); std::string getPids()const; void setPids(const std::string& pids); + std::string getTemplageAlertConfig()const; + void setTemplageAlertConfig(const std::string& templageAlertConfig); std::string getTemplateAlertId()const; void setTemplateAlertId(const std::string& templateAlertId); @@ -51,6 +53,7 @@ namespace AlibabaCloud std::string regionId_; std::string contactGroupIds_; std::string pids_; + std::string templageAlertConfig_; std::string templateAlertId_; }; diff --git a/arms/include/alibabacloud/arms/model/MetricQueryRequest.h b/arms/include/alibabacloud/arms/model/MetricQueryRequest.h deleted file mode 100644 index 7c9f53329..000000000 --- a/arms/include/alibabacloud/arms/model/MetricQueryRequest.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * 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_METRICQUERYREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT MetricQueryRequest : public RpcServiceRequest - { - struct Filters - { - std::string value; - std::string key; - }; - - public: - MetricQueryRequest(); - ~MetricQueryRequest(); - - long getEndTime()const; - void setEndTime(long endTime); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::vector getFilters()const; - void setFilters(const std::vector& filters); - long getStartTime()const; - void setStartTime(long startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getIintervalInSec()const; - void setIintervalInSec(int iintervalInSec); - std::vector getMeasures()const; - void setMeasures(const std::vector& measures); - std::string getMetric()const; - void setMetric(const std::string& metric); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getLimit()const; - void setLimit(int limit); - std::vector getDimensions()const; - void setDimensions(const std::vector& dimensions); - std::string getOrder()const; - void setOrder(const std::string& order); - - private: - long endTime_; - std::string orderBy_; - std::vector filters_; - long startTime_; - std::string accessKeyId_; - int iintervalInSec_; - std::vector measures_; - std::string metric_; - std::string securityToken_; - std::string regionId_; - int limit_; - std::vector dimensions_; - std::string order_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/MetricQueryResult.h b/arms/include/alibabacloud/arms/model/MetricQueryResult.h deleted file mode 100644 index fcd8f616c..000000000 --- a/arms/include/alibabacloud/arms/model/MetricQueryResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_METRICQUERYRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT MetricQueryResult : public ServiceResult - { - public: - - - MetricQueryResult(); - explicit MetricQueryResult(const std::string &payload); - ~MetricQueryResult(); - std::string getData()const; - - protected: - void parse(const std::string &payload); - private: - std::string data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTraceCountRequest.h b/arms/include/alibabacloud/arms/model/SearchTraceCountRequest.h deleted file mode 100644 index bfb829271..000000000 --- a/arms/include/alibabacloud/arms/model/SearchTraceCountRequest.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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_SEARCHTRACECOUNTREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTraceCountRequest : public RpcServiceRequest - { - struct Tag - { - std::string value; - std::string key; - }; - - public: - SearchTraceCountRequest(); - ~SearchTraceCountRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOperationName()const; - void setOperationName(const std::string& operationName); - std::string getAppType()const; - void setAppType(const std::string& appType); - long getEndTime()const; - void setEndTime(long endTime); - std::string getServiceName()const; - void setServiceName(const std::string& serviceName); - long getStartTime()const; - void setStartTime(long startTime); - std::vector getTag()const; - void setTag(const std::vector& tag); - long getMinDuration()const; - void setMinDuration(long minDuration); - - private: - std::string instanceId_; - std::string regionId_; - std::string operationName_; - std::string appType_; - long endTime_; - std::string serviceName_; - long startTime_; - std::vector tag_; - long minDuration_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTraceCountResult.h b/arms/include/alibabacloud/arms/model/SearchTraceCountResult.h deleted file mode 100644 index 77dba4ec1..000000000 --- a/arms/include/alibabacloud/arms/model/SearchTraceCountResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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_SEARCHTRACECOUNTRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTraceCountResult : public ServiceResult - { - public: - struct Data - { - long count; - }; - - - SearchTraceCountResult(); - explicit SearchTraceCountResult(const std::string &payload); - ~SearchTraceCountResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTracesRequest.h b/arms/include/alibabacloud/arms/model/SearchTracesRequest.h deleted file mode 100644 index c066c6ff7..000000000 --- a/arms/include/alibabacloud/arms/model/SearchTracesRequest.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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_SEARCHTRACESREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTracesRequest : public RpcServiceRequest - { - struct Tag - { - std::string value; - std::string key; - }; - - public: - SearchTracesRequest(); - ~SearchTracesRequest(); - - std::string getServiceIp()const; - void setServiceIp(const std::string& serviceIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOperationName()const; - void setOperationName(const std::string& operationName); - std::string getAppType()const; - void setAppType(const std::string& appType); - int getPageSize()const; - void setPageSize(int pageSize); - long getEndTime()const; - void setEndTime(long endTime); - std::string getServiceName()const; - void setServiceName(const std::string& serviceName); - int getPageIndex()const; - void setPageIndex(int pageIndex); - long getStartTime()const; - void setStartTime(long startTime); - std::vector getTag()const; - void setTag(const std::vector& tag); - bool getReverse()const; - void setReverse(bool reverse); - long getMinDuration()const; - void setMinDuration(long minDuration); - - private: - std::string serviceIp_; - std::string regionId_; - std::string operationName_; - std::string appType_; - int pageSize_; - long endTime_; - std::string serviceName_; - int pageIndex_; - long startTime_; - std::vector tag_; - bool reverse_; - long minDuration_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTracesResult.h b/arms/include/alibabacloud/arms/model/SearchTracesResult.h deleted file mode 100644 index 8f9666bc9..000000000 --- a/arms/include/alibabacloud/arms/model/SearchTracesResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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_SEARCHTRACESRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTracesResult : public ServiceResult - { - public: - struct TraceInfo - { - std::string serviceIp; - std::string operationName; - std::string serviceName; - std::string traceID; - int duration; - long timestamp; - }; - - - SearchTracesResult(); - explicit SearchTracesResult(const std::string &payload); - ~SearchTracesResult(); - std::vector getData()const; - - protected: - void parse(const std::string &payload); - private: - std::vector data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_ \ No newline at end of file diff --git a/arms/src/ARMSClient.cc b/arms/src/ARMSClient.cc index 4107e1316..7194a9a19 100644 --- a/arms/src/ARMSClient.cc +++ b/arms/src/ARMSClient.cc @@ -87,42 +87,6 @@ ARMSClient::SearchAlertContactOutcomeCallable ARMSClient::searchAlertContactCall return task->get_future(); } -ARMSClient::GetTraceOutcome ARMSClient::getTrace(const GetTraceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTraceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTraceOutcome(GetTraceResult(outcome.result())); - else - return GetTraceOutcome(outcome.error()); -} - -void ARMSClient::getTraceAsync(const GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTrace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::GetTraceOutcomeCallable ARMSClient::getTraceCallable(const GetTraceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTrace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ARMSClient::ListTraceAppsOutcome ARMSClient::listTraceApps(const ListTraceAppsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,42 +303,6 @@ ARMSClient::QueryDatasetOutcomeCallable ARMSClient::queryDatasetCallable(const Q return task->get_future(); } -ARMSClient::SearchTraceAppByNameOutcome ARMSClient::searchTraceAppByName(const SearchTraceAppByNameRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchTraceAppByNameOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchTraceAppByNameOutcome(SearchTraceAppByNameResult(outcome.result())); - else - return SearchTraceAppByNameOutcome(outcome.error()); -} - -void ARMSClient::searchTraceAppByNameAsync(const SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchTraceAppByName(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchTraceAppByNameOutcomeCallable ARMSClient::searchTraceAppByNameCallable(const SearchTraceAppByNameRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchTraceAppByName(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ARMSClient::SearchRetcodeAppByPageOutcome ARMSClient::searchRetcodeAppByPage(const SearchRetcodeAppByPageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +339,42 @@ ARMSClient::SearchRetcodeAppByPageOutcomeCallable ARMSClient::searchRetcodeAppBy return task->get_future(); } +ARMSClient::SearchTraceAppByNameOutcome ARMSClient::searchTraceAppByName(const SearchTraceAppByNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTraceAppByNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTraceAppByNameOutcome(SearchTraceAppByNameResult(outcome.result())); + else + return SearchTraceAppByNameOutcome(outcome.error()); +} + +void ARMSClient::searchTraceAppByNameAsync(const SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTraceAppByName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchTraceAppByNameOutcomeCallable ARMSClient::searchTraceAppByNameCallable(const SearchTraceAppByNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTraceAppByName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ARMSClient::ListRetcodeAppsOutcome ARMSClient::listRetcodeApps(const ListRetcodeAppsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,150 +411,6 @@ ARMSClient::ListRetcodeAppsOutcomeCallable ARMSClient::listRetcodeAppsCallable(c return task->get_future(); } -ARMSClient::GetSpanNamesOutcome ARMSClient::getSpanNames(const GetSpanNamesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSpanNamesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSpanNamesOutcome(GetSpanNamesResult(outcome.result())); - else - return GetSpanNamesOutcome(outcome.error()); -} - -void ARMSClient::getSpanNamesAsync(const GetSpanNamesRequest& request, const GetSpanNamesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSpanNames(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::GetSpanNamesOutcomeCallable ARMSClient::getSpanNamesCallable(const GetSpanNamesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSpanNames(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::GetServicesOutcome ARMSClient::getServices(const GetServicesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetServicesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetServicesOutcome(GetServicesResult(outcome.result())); - else - return GetServicesOutcome(outcome.error()); -} - -void ARMSClient::getServicesAsync(const GetServicesRequest& request, const GetServicesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getServices(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::GetServicesOutcomeCallable ARMSClient::getServicesCallable(const GetServicesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getServices(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::MetricQueryOutcome ARMSClient::metricQuery(const MetricQueryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetricQueryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetricQueryOutcome(MetricQueryResult(outcome.result())); - else - return MetricQueryOutcome(outcome.error()); -} - -void ARMSClient::metricQueryAsync(const MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metricQuery(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::MetricQueryOutcomeCallable ARMSClient::metricQueryCallable(const MetricQueryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metricQuery(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::SearchTracesOutcome ARMSClient::searchTraces(const SearchTracesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchTracesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchTracesOutcome(SearchTracesResult(outcome.result())); - else - return SearchTracesOutcome(outcome.error()); -} - -void ARMSClient::searchTracesAsync(const SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchTraces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchTracesOutcomeCallable ARMSClient::searchTracesCallable(const SearchTracesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchTraces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ARMSClient::SearchAlertContactGroupOutcome ARMSClient::searchAlertContactGroup(const SearchAlertContactGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,114 +519,6 @@ ARMSClient::QueryMetricOutcomeCallable ARMSClient::queryMetricCallable(const Que return task->get_future(); } -ARMSClient::SearchTraceCountOutcome ARMSClient::searchTraceCount(const SearchTraceCountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchTraceCountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchTraceCountOutcome(SearchTraceCountResult(outcome.result())); - else - return SearchTraceCountOutcome(outcome.error()); -} - -void ARMSClient::searchTraceCountAsync(const SearchTraceCountRequest& request, const SearchTraceCountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchTraceCount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchTraceCountOutcomeCallable ARMSClient::searchTraceCountCallable(const SearchTraceCountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchTraceCount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::GetTagKeyOutcome ARMSClient::getTagKey(const GetTagKeyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTagKeyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTagKeyOutcome(GetTagKeyResult(outcome.result())); - else - return GetTagKeyOutcome(outcome.error()); -} - -void ARMSClient::getTagKeyAsync(const GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTagKey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::GetTagKeyOutcomeCallable ARMSClient::getTagKeyCallable(const GetTagKeyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTagKey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::ARMSQueryDataSetOutcome ARMSClient::aRMSQueryDataSet(const ARMSQueryDataSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ARMSQueryDataSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ARMSQueryDataSetOutcome(ARMSQueryDataSetResult(outcome.result())); - else - return ARMSQueryDataSetOutcome(outcome.error()); -} - -void ARMSClient::aRMSQueryDataSetAsync(const ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, aRMSQueryDataSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::ARMSQueryDataSetOutcomeCallable ARMSClient::aRMSQueryDataSetCallable(const ARMSQueryDataSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->aRMSQueryDataSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ARMSClient::CreateRetcodeAppOutcome ARMSClient::createRetcodeApp(const CreateRetcodeAppRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,39 +555,3 @@ ARMSClient::CreateRetcodeAppOutcomeCallable ARMSClient::createRetcodeAppCallable return task->get_future(); } -ARMSClient::GetTagValOutcome ARMSClient::getTagVal(const GetTagValRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTagValOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTagValOutcome(GetTagValResult(outcome.result())); - else - return GetTagValOutcome(outcome.error()); -} - -void ARMSClient::getTagValAsync(const GetTagValRequest& request, const GetTagValAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTagVal(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::GetTagValOutcomeCallable ARMSClient::getTagValCallable(const GetTagValRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTagVal(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - diff --git a/arms/src/model/ARMSQueryDataSetRequest.cc b/arms/src/model/ARMSQueryDataSetRequest.cc deleted file mode 100644 index 1b11d1f7d..000000000 --- a/arms/src/model/ARMSQueryDataSetRequest.cc +++ /dev/null @@ -1,236 +0,0 @@ -/* - * 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::ARMSQueryDataSetRequest; - -ARMSQueryDataSetRequest::ARMSQueryDataSetRequest() : - RpcServiceRequest("arms", "2019-02-19", "ARMSQueryDataSet") -{} - -ARMSQueryDataSetRequest::~ARMSQueryDataSetRequest() -{} - -std::string ARMSQueryDataSetRequest::getDateStr()const -{ - return dateStr_; -} - -void ARMSQueryDataSetRequest::setDateStr(const std::string& dateStr) -{ - dateStr_ = dateStr; - setCoreParameter("DateStr", dateStr); -} - -long ARMSQueryDataSetRequest::getMinTime()const -{ - return minTime_; -} - -void ARMSQueryDataSetRequest::setMinTime(long minTime) -{ - minTime_ = minTime; - setCoreParameter("MinTime", std::to_string(minTime)); -} - -bool ARMSQueryDataSetRequest::getReduceTail()const -{ - return reduceTail_; -} - -void ARMSQueryDataSetRequest::setReduceTail(bool reduceTail) -{ - reduceTail_ = reduceTail; - setCoreParameter("ReduceTail", reduceTail ? "true" : "false"); -} - -long ARMSQueryDataSetRequest::getMaxTime()const -{ - return maxTime_; -} - -void ARMSQueryDataSetRequest::setMaxTime(long maxTime) -{ - maxTime_ = maxTime; - setCoreParameter("MaxTime", std::to_string(maxTime)); -} - -std::string ARMSQueryDataSetRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ARMSQueryDataSetRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::vector ARMSQueryDataSetRequest::getOptionalDims()const -{ - return optionalDims_; -} - -void ARMSQueryDataSetRequest::setOptionalDims(const std::vector& optionalDims) -{ - optionalDims_ = optionalDims; - int i = 0; - for(int i = 0; i!= optionalDims.size(); i++) { - auto obj = optionalDims.at(i); - std::string str ="OptionalDims."+ std::to_string(i); - setCoreParameter(str + ".Type", obj.type); - setCoreParameter(str + ".Value", obj.value); - setCoreParameter(str + ".Key", obj.key); - } -} - -std::vector ARMSQueryDataSetRequest::getMeasures()const -{ - return measures_; -} - -void ARMSQueryDataSetRequest::setMeasures(const std::vector& measures) -{ - measures_ = measures; - for(int i = 0; i!= measures.size(); i++) - setCoreParameter("Measures."+ std::to_string(i), measures.at(i)); -} - -int ARMSQueryDataSetRequest::getIntervalInSec()const -{ - return intervalInSec_; -} - -void ARMSQueryDataSetRequest::setIntervalInSec(int intervalInSec) -{ - intervalInSec_ = intervalInSec; - setCoreParameter("IntervalInSec", std::to_string(intervalInSec)); -} - -bool ARMSQueryDataSetRequest::getIsDrillDown()const -{ - return isDrillDown_; -} - -void ARMSQueryDataSetRequest::setIsDrillDown(bool isDrillDown) -{ - isDrillDown_ = isDrillDown; - setCoreParameter("IsDrillDown", isDrillDown ? "true" : "false"); -} - -bool ARMSQueryDataSetRequest::getHungryMode()const -{ - return hungryMode_; -} - -void ARMSQueryDataSetRequest::setHungryMode(bool hungryMode) -{ - hungryMode_ = hungryMode; - setCoreParameter("HungryMode", hungryMode ? "true" : "false"); -} - -std::string ARMSQueryDataSetRequest::getSecurityToken()const -{ - return securityToken_; -} - -void ARMSQueryDataSetRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string ARMSQueryDataSetRequest::getRegionId()const -{ - return regionId_; -} - -void ARMSQueryDataSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string ARMSQueryDataSetRequest::getOrderByKey()const -{ - return orderByKey_; -} - -void ARMSQueryDataSetRequest::setOrderByKey(const std::string& orderByKey) -{ - orderByKey_ = orderByKey; - setCoreParameter("OrderByKey", orderByKey); -} - -int ARMSQueryDataSetRequest::getLimit()const -{ - return limit_; -} - -void ARMSQueryDataSetRequest::setLimit(int limit) -{ - limit_ = limit; - setCoreParameter("Limit", std::to_string(limit)); -} - -std::vector ARMSQueryDataSetRequest::getRequiredDims()const -{ - return requiredDims_; -} - -void ARMSQueryDataSetRequest::setRequiredDims(const std::vector& requiredDims) -{ - requiredDims_ = requiredDims; - int i = 0; - for(int i = 0; i!= requiredDims.size(); i++) { - auto obj = requiredDims.at(i); - std::string str ="RequiredDims."+ std::to_string(i); - setCoreParameter(str + ".Type", obj.type); - setCoreParameter(str + ".Value", obj.value); - setCoreParameter(str + ".Key", obj.key); - } -} - -long ARMSQueryDataSetRequest::getDatasetId()const -{ - return datasetId_; -} - -void ARMSQueryDataSetRequest::setDatasetId(long datasetId) -{ - datasetId_ = datasetId; - setCoreParameter("DatasetId", std::to_string(datasetId)); -} - -std::vector ARMSQueryDataSetRequest::getDimensions()const -{ - return dimensions_; -} - -void ARMSQueryDataSetRequest::setDimensions(const std::vector& dimensions) -{ - dimensions_ = dimensions; - int i = 0; - for(int i = 0; i!= dimensions.size(); i++) { - auto obj = dimensions.at(i); - std::string str ="Dimensions."+ std::to_string(i); - setCoreParameter(str + ".Type", obj.type); - setCoreParameter(str + ".Value", obj.value); - setCoreParameter(str + ".Key", obj.key); - } -} - diff --git a/arms/src/model/ARMSQueryDataSetResult.cc b/arms/src/model/ARMSQueryDataSetResult.cc deleted file mode 100644 index 870f1745c..000000000 --- a/arms/src/model/ARMSQueryDataSetResult.cc +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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; - -ARMSQueryDataSetResult::ARMSQueryDataSetResult() : - ServiceResult() -{} - -ARMSQueryDataSetResult::ARMSQueryDataSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ARMSQueryDataSetResult::~ARMSQueryDataSetResult() -{} - -void ARMSQueryDataSetResult::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 ARMSQueryDataSetResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/GetServicesRequest.cc b/arms/src/model/GetServicesRequest.cc deleted file mode 100644 index 0876fd828..000000000 --- a/arms/src/model/GetServicesRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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::GetServicesRequest; - -GetServicesRequest::GetServicesRequest() : - RpcServiceRequest("arms", "2019-02-19", "GetServices") -{} - -GetServicesRequest::~GetServicesRequest() -{} - -std::string GetServicesRequest::getRegionId()const -{ - return regionId_; -} - -void GetServicesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string GetServicesRequest::getAppType()const -{ - return appType_; -} - -void GetServicesRequest::setAppType(const std::string& appType) -{ - appType_ = appType; - setCoreParameter("AppType", appType); -} - diff --git a/arms/src/model/GetServicesResult.cc b/arms/src/model/GetServicesResult.cc deleted file mode 100644 index 0c127b0a2..000000000 --- a/arms/src/model/GetServicesResult.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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; - -GetServicesResult::GetServicesResult() : - ServiceResult() -{} - -GetServicesResult::GetServicesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetServicesResult::~GetServicesResult() -{} - -void GetServicesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allDetails = value["Details"]["DetailsItem"]; - for (auto value : allDetails) - { - Data::DetailsItem detailsItemObject; - if(!value["ServiceName"].isNull()) - detailsItemObject.serviceName = value["ServiceName"].asString(); - if(!value["Pid"].isNull()) - detailsItemObject.pid = value["Pid"].asString(); - if(!value["RegionId"].isNull()) - detailsItemObject.regionId = value["RegionId"].asString(); - data_.details.push_back(detailsItemObject); - } - auto allServices = dataNode["Services"]["Services"]; - for (auto value : allServices) - data_.services.push_back(value.asString()); - -} - -GetServicesResult::Data GetServicesResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/GetSpanNamesRequest.cc b/arms/src/model/GetSpanNamesRequest.cc deleted file mode 100644 index acc6f9102..000000000 --- a/arms/src/model/GetSpanNamesRequest.cc +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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::GetSpanNamesRequest; - -GetSpanNamesRequest::GetSpanNamesRequest() : - RpcServiceRequest("arms", "2019-02-19", "GetSpanNames") -{} - -GetSpanNamesRequest::~GetSpanNamesRequest() -{} - -std::string GetSpanNamesRequest::getRegionId()const -{ - return regionId_; -} - -void GetSpanNamesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -long GetSpanNamesRequest::getEndTime()const -{ - return endTime_; -} - -void GetSpanNamesRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string GetSpanNamesRequest::getServiceName()const -{ - return serviceName_; -} - -void GetSpanNamesRequest::setServiceName(const std::string& serviceName) -{ - serviceName_ = serviceName; - setCoreParameter("ServiceName", serviceName); -} - -long GetSpanNamesRequest::getStartTime()const -{ - return startTime_; -} - -void GetSpanNamesRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - diff --git a/arms/src/model/GetSpanNamesResult.cc b/arms/src/model/GetSpanNamesResult.cc deleted file mode 100644 index 653728b96..000000000 --- a/arms/src/model/GetSpanNamesResult.cc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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; - -GetSpanNamesResult::GetSpanNamesResult() : - ServiceResult() -{} - -GetSpanNamesResult::GetSpanNamesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSpanNamesResult::~GetSpanNamesResult() -{} - -void GetSpanNamesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["Data"]; - for (const auto &item : allData) - data_.push_back(item.asString()); - -} - -std::vector GetSpanNamesResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/GetTagKeyRequest.cc b/arms/src/model/GetTagKeyRequest.cc deleted file mode 100644 index 385cc5116..000000000 --- a/arms/src/model/GetTagKeyRequest.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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::GetTagKeyRequest; - -GetTagKeyRequest::GetTagKeyRequest() : - RpcServiceRequest("arms", "2019-02-19", "GetTagKey") -{} - -GetTagKeyRequest::~GetTagKeyRequest() -{} - -std::string GetTagKeyRequest::getRegionId()const -{ - return regionId_; -} - -void GetTagKeyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -long GetTagKeyRequest::getEndTime()const -{ - return endTime_; -} - -void GetTagKeyRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string GetTagKeyRequest::getServiceName()const -{ - return serviceName_; -} - -void GetTagKeyRequest::setServiceName(const std::string& serviceName) -{ - serviceName_ = serviceName; - setCoreParameter("ServiceName", serviceName); -} - -long GetTagKeyRequest::getStartTime()const -{ - return startTime_; -} - -void GetTagKeyRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -std::string GetTagKeyRequest::getSpanName()const -{ - return spanName_; -} - -void GetTagKeyRequest::setSpanName(const std::string& spanName) -{ - spanName_ = spanName; - setCoreParameter("SpanName", spanName); -} - diff --git a/arms/src/model/GetTagKeyResult.cc b/arms/src/model/GetTagKeyResult.cc deleted file mode 100644 index 75aec3eb6..000000000 --- a/arms/src/model/GetTagKeyResult.cc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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; - -GetTagKeyResult::GetTagKeyResult() : - ServiceResult() -{} - -GetTagKeyResult::GetTagKeyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetTagKeyResult::~GetTagKeyResult() -{} - -void GetTagKeyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["Data"]; - for (const auto &item : allData) - data_.push_back(item.asString()); - -} - -std::vector GetTagKeyResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/GetTagValRequest.cc b/arms/src/model/GetTagValRequest.cc deleted file mode 100644 index 7b7f8b1a2..000000000 --- a/arms/src/model/GetTagValRequest.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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::GetTagValRequest; - -GetTagValRequest::GetTagValRequest() : - RpcServiceRequest("arms", "2019-02-19", "GetTagVal") -{} - -GetTagValRequest::~GetTagValRequest() -{} - -std::string GetTagValRequest::getRegionId()const -{ - return regionId_; -} - -void GetTagValRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -long GetTagValRequest::getEndTime()const -{ - return endTime_; -} - -void GetTagValRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string GetTagValRequest::getServiceName()const -{ - return serviceName_; -} - -void GetTagValRequest::setServiceName(const std::string& serviceName) -{ - serviceName_ = serviceName; - setCoreParameter("ServiceName", serviceName); -} - -long GetTagValRequest::getStartTime()const -{ - return startTime_; -} - -void GetTagValRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -std::string GetTagValRequest::getTagKey()const -{ - return tagKey_; -} - -void GetTagValRequest::setTagKey(const std::string& tagKey) -{ - tagKey_ = tagKey; - setCoreParameter("TagKey", tagKey); -} - -std::string GetTagValRequest::getSpanName()const -{ - return spanName_; -} - -void GetTagValRequest::setSpanName(const std::string& spanName) -{ - spanName_ = spanName; - setCoreParameter("SpanName", spanName); -} - diff --git a/arms/src/model/GetTagValResult.cc b/arms/src/model/GetTagValResult.cc deleted file mode 100644 index 65b237dbf..000000000 --- a/arms/src/model/GetTagValResult.cc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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; - -GetTagValResult::GetTagValResult() : - ServiceResult() -{} - -GetTagValResult::GetTagValResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetTagValResult::~GetTagValResult() -{} - -void GetTagValResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["Data"]; - for (const auto &item : allData) - data_.push_back(item.asString()); - -} - -std::vector GetTagValResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/GetTraceRequest.cc b/arms/src/model/GetTraceRequest.cc deleted file mode 100644 index dd5d495ae..000000000 --- a/arms/src/model/GetTraceRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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::GetTraceRequest; - -GetTraceRequest::GetTraceRequest() : - RpcServiceRequest("arms", "2019-02-19", "GetTrace") -{} - -GetTraceRequest::~GetTraceRequest() -{} - -std::string GetTraceRequest::getTraceID()const -{ - return traceID_; -} - -void GetTraceRequest::setTraceID(const std::string& traceID) -{ - traceID_ = traceID; - setCoreParameter("TraceID", traceID); -} - -std::string GetTraceRequest::getRegionId()const -{ - return regionId_; -} - -void GetTraceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string GetTraceRequest::getAppType()const -{ - return appType_; -} - -void GetTraceRequest::setAppType(const std::string& appType) -{ - appType_ = appType; - setCoreParameter("AppType", appType); -} - diff --git a/arms/src/model/GetTraceResult.cc b/arms/src/model/GetTraceResult.cc deleted file mode 100644 index 6a11e16b6..000000000 --- a/arms/src/model/GetTraceResult.cc +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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; - -GetTraceResult::GetTraceResult() : - ServiceResult() -{} - -GetTraceResult::GetTraceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetTraceResult::~GetTraceResult() -{} - -void GetTraceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["CallChainInfo"]; - for (auto value : allData) - { - CallChainInfo dataObject; - if(!value["TraceID"].isNull()) - dataObject.traceID = value["TraceID"].asString(); - if(!value["OperationName"].isNull()) - dataObject.operationName = value["OperationName"].asString(); - if(!value["Duration"].isNull()) - dataObject.duration = std::stol(value["Duration"].asString()); - if(!value["ServiceName"].isNull()) - dataObject.serviceName = value["ServiceName"].asString(); - if(!value["ServiceIp"].isNull()) - dataObject.serviceIp = value["ServiceIp"].asString(); - if(!value["Timestamp"].isNull()) - dataObject.timestamp = std::stol(value["Timestamp"].asString()); - if(!value["RpcId"].isNull()) - dataObject.rpcId = value["RpcId"].asString(); - if(!value["ResultCode"].isNull()) - dataObject.resultCode = value["ResultCode"].asString(); - if(!value["HaveStack"].isNull()) - dataObject.haveStack = value["HaveStack"].asString() == "true"; - auto allTagEntryList = value["TagEntryList"]["TagEntry"]; - for (auto value : allTagEntryList) - { - CallChainInfo::TagEntry tagEntryListObject; - if(!value["Key"].isNull()) - tagEntryListObject.key = value["Key"].asString(); - if(!value["Value"].isNull()) - tagEntryListObject.value = value["Value"].asString(); - dataObject.tagEntryList.push_back(tagEntryListObject); - } - auto allLogEventList = value["LogEventList"]["LogEvent"]; - for (auto value : allLogEventList) - { - CallChainInfo::LogEvent logEventListObject; - if(!value["Timestamp"].isNull()) - logEventListObject.timestamp = std::stol(value["Timestamp"].asString()); - auto allTagEntryList1 = value["TagEntryList"]["TagEntry"]; - for (auto value : allTagEntryList1) - { - CallChainInfo::LogEvent::TagEntry2 tagEntryList1Object; - if(!value["Key"].isNull()) - tagEntryList1Object.key = value["Key"].asString(); - if(!value["Value"].isNull()) - tagEntryList1Object.value = value["Value"].asString(); - logEventListObject.tagEntryList1.push_back(tagEntryList1Object); - } - dataObject.logEventList.push_back(logEventListObject); - } - data_.push_back(dataObject); - } - -} - -std::vector GetTraceResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/ImportAppAlertRulesRequest.cc b/arms/src/model/ImportAppAlertRulesRequest.cc index ca0489a80..0d70bfe04 100644 --- a/arms/src/model/ImportAppAlertRulesRequest.cc +++ b/arms/src/model/ImportAppAlertRulesRequest.cc @@ -69,6 +69,17 @@ void ImportAppAlertRulesRequest::setPids(const std::string& pids) setCoreParameter("Pids", pids); } +std::string ImportAppAlertRulesRequest::getTemplageAlertConfig()const +{ + return templageAlertConfig_; +} + +void ImportAppAlertRulesRequest::setTemplageAlertConfig(const std::string& templageAlertConfig) +{ + templageAlertConfig_ = templageAlertConfig; + setCoreParameter("TemplageAlertConfig", templageAlertConfig); +} + std::string ImportAppAlertRulesRequest::getTemplateAlertId()const { return templateAlertId_; diff --git a/arms/src/model/MetricQueryRequest.cc b/arms/src/model/MetricQueryRequest.cc deleted file mode 100644 index e4f98a232..000000000 --- a/arms/src/model/MetricQueryRequest.cc +++ /dev/null @@ -1,178 +0,0 @@ -/* - * 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::MetricQueryRequest; - -MetricQueryRequest::MetricQueryRequest() : - RpcServiceRequest("arms", "2019-02-19", "MetricQuery") -{} - -MetricQueryRequest::~MetricQueryRequest() -{} - -long MetricQueryRequest::getEndTime()const -{ - return endTime_; -} - -void MetricQueryRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string MetricQueryRequest::getOrderBy()const -{ - return orderBy_; -} - -void MetricQueryRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setCoreParameter("OrderBy", orderBy); -} - -std::vector MetricQueryRequest::getFilters()const -{ - return filters_; -} - -void MetricQueryRequest::setFilters(const std::vector& filters) -{ - filters_ = filters; - int i = 0; - for(int i = 0; i!= filters.size(); i++) { - auto obj = filters.at(i); - std::string str ="Filters."+ std::to_string(i); - setCoreParameter(str + ".Value", obj.value); - setCoreParameter(str + ".Key", obj.key); - } -} - -long MetricQueryRequest::getStartTime()const -{ - return startTime_; -} - -void MetricQueryRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -std::string MetricQueryRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void MetricQueryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -int MetricQueryRequest::getIintervalInSec()const -{ - return iintervalInSec_; -} - -void MetricQueryRequest::setIintervalInSec(int iintervalInSec) -{ - iintervalInSec_ = iintervalInSec; - setCoreParameter("IintervalInSec", std::to_string(iintervalInSec)); -} - -std::vector MetricQueryRequest::getMeasures()const -{ - return measures_; -} - -void MetricQueryRequest::setMeasures(const std::vector& measures) -{ - measures_ = measures; - for(int i = 0; i!= measures.size(); i++) - setCoreParameter("Measures."+ std::to_string(i), measures.at(i)); -} - -std::string MetricQueryRequest::getMetric()const -{ - return metric_; -} - -void MetricQueryRequest::setMetric(const std::string& metric) -{ - metric_ = metric; - setCoreParameter("Metric", metric); -} - -std::string MetricQueryRequest::getSecurityToken()const -{ - return securityToken_; -} - -void MetricQueryRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setCoreParameter("SecurityToken", securityToken); -} - -std::string MetricQueryRequest::getRegionId()const -{ - return regionId_; -} - -void MetricQueryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -int MetricQueryRequest::getLimit()const -{ - return limit_; -} - -void MetricQueryRequest::setLimit(int limit) -{ - limit_ = limit; - setCoreParameter("Limit", std::to_string(limit)); -} - -std::vector MetricQueryRequest::getDimensions()const -{ - return dimensions_; -} - -void MetricQueryRequest::setDimensions(const std::vector& dimensions) -{ - dimensions_ = dimensions; - for(int i = 0; i!= dimensions.size(); i++) - setCoreParameter("Dimensions."+ std::to_string(i), dimensions.at(i)); -} - -std::string MetricQueryRequest::getOrder()const -{ - return order_; -} - -void MetricQueryRequest::setOrder(const std::string& order) -{ - order_ = order; - setCoreParameter("Order", order); -} - diff --git a/arms/src/model/MetricQueryResult.cc b/arms/src/model/MetricQueryResult.cc deleted file mode 100644 index 23d7bc57e..000000000 --- a/arms/src/model/MetricQueryResult.cc +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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; - -MetricQueryResult::MetricQueryResult() : - ServiceResult() -{} - -MetricQueryResult::MetricQueryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -MetricQueryResult::~MetricQueryResult() -{} - -void MetricQueryResult::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 MetricQueryResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/SearchTraceCountRequest.cc b/arms/src/model/SearchTraceCountRequest.cc deleted file mode 100644 index ef260df83..000000000 --- a/arms/src/model/SearchTraceCountRequest.cc +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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::SearchTraceCountRequest; - -SearchTraceCountRequest::SearchTraceCountRequest() : - RpcServiceRequest("arms", "2019-02-19", "SearchTraceCount") -{} - -SearchTraceCountRequest::~SearchTraceCountRequest() -{} - -std::string SearchTraceCountRequest::getInstanceId()const -{ - return instanceId_; -} - -void SearchTraceCountRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setCoreParameter("InstanceId", instanceId); -} - -std::string SearchTraceCountRequest::getRegionId()const -{ - return regionId_; -} - -void SearchTraceCountRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string SearchTraceCountRequest::getOperationName()const -{ - return operationName_; -} - -void SearchTraceCountRequest::setOperationName(const std::string& operationName) -{ - operationName_ = operationName; - setCoreParameter("OperationName", operationName); -} - -std::string SearchTraceCountRequest::getAppType()const -{ - return appType_; -} - -void SearchTraceCountRequest::setAppType(const std::string& appType) -{ - appType_ = appType; - setCoreParameter("AppType", appType); -} - -long SearchTraceCountRequest::getEndTime()const -{ - return endTime_; -} - -void SearchTraceCountRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string SearchTraceCountRequest::getServiceName()const -{ - return serviceName_; -} - -void SearchTraceCountRequest::setServiceName(const std::string& serviceName) -{ - serviceName_ = serviceName; - setCoreParameter("ServiceName", serviceName); -} - -long SearchTraceCountRequest::getStartTime()const -{ - return startTime_; -} - -void SearchTraceCountRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -std::vector SearchTraceCountRequest::getTag()const -{ - return tag_; -} - -void SearchTraceCountRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - int i = 0; - for(int i = 0; i!= tag.size(); i++) { - auto obj = tag.at(i); - std::string str ="Tag."+ std::to_string(i); - setCoreParameter(str + ".Value", obj.value); - setCoreParameter(str + ".Key", obj.key); - } -} - -long SearchTraceCountRequest::getMinDuration()const -{ - return minDuration_; -} - -void SearchTraceCountRequest::setMinDuration(long minDuration) -{ - minDuration_ = minDuration; - setCoreParameter("MinDuration", std::to_string(minDuration)); -} - diff --git a/arms/src/model/SearchTraceCountResult.cc b/arms/src/model/SearchTraceCountResult.cc deleted file mode 100644 index 44343fe96..000000000 --- a/arms/src/model/SearchTraceCountResult.cc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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; - -SearchTraceCountResult::SearchTraceCountResult() : - ServiceResult() -{} - -SearchTraceCountResult::SearchTraceCountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchTraceCountResult::~SearchTraceCountResult() -{} - -void SearchTraceCountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["Count"].isNull()) - data_.count = std::stol(dataNode["Count"].asString()); - -} - -SearchTraceCountResult::Data SearchTraceCountResult::getData()const -{ - return data_; -} - diff --git a/arms/src/model/SearchTracesRequest.cc b/arms/src/model/SearchTracesRequest.cc deleted file mode 100644 index 0f93b4db3..000000000 --- a/arms/src/model/SearchTracesRequest.cc +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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::SearchTracesRequest; - -SearchTracesRequest::SearchTracesRequest() : - RpcServiceRequest("arms", "2019-02-19", "SearchTraces") -{} - -SearchTracesRequest::~SearchTracesRequest() -{} - -std::string SearchTracesRequest::getServiceIp()const -{ - return serviceIp_; -} - -void SearchTracesRequest::setServiceIp(const std::string& serviceIp) -{ - serviceIp_ = serviceIp; - setCoreParameter("ServiceIp", serviceIp); -} - -std::string SearchTracesRequest::getRegionId()const -{ - return regionId_; -} - -void SearchTracesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string SearchTracesRequest::getOperationName()const -{ - return operationName_; -} - -void SearchTracesRequest::setOperationName(const std::string& operationName) -{ - operationName_ = operationName; - setCoreParameter("OperationName", operationName); -} - -std::string SearchTracesRequest::getAppType()const -{ - return appType_; -} - -void SearchTracesRequest::setAppType(const std::string& appType) -{ - appType_ = appType; - setCoreParameter("AppType", appType); -} - -int SearchTracesRequest::getPageSize()const -{ - return pageSize_; -} - -void SearchTracesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -long SearchTracesRequest::getEndTime()const -{ - return endTime_; -} - -void SearchTracesRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string SearchTracesRequest::getServiceName()const -{ - return serviceName_; -} - -void SearchTracesRequest::setServiceName(const std::string& serviceName) -{ - serviceName_ = serviceName; - setCoreParameter("ServiceName", serviceName); -} - -int SearchTracesRequest::getPageIndex()const -{ - return pageIndex_; -} - -void SearchTracesRequest::setPageIndex(int pageIndex) -{ - pageIndex_ = pageIndex; - setCoreParameter("PageIndex", std::to_string(pageIndex)); -} - -long SearchTracesRequest::getStartTime()const -{ - return startTime_; -} - -void SearchTracesRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -std::vector SearchTracesRequest::getTag()const -{ - return tag_; -} - -void SearchTracesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - int i = 0; - for(int i = 0; i!= tag.size(); i++) { - auto obj = tag.at(i); - std::string str ="Tag."+ std::to_string(i); - setCoreParameter(str + ".Value", obj.value); - setCoreParameter(str + ".Key", obj.key); - } -} - -bool SearchTracesRequest::getReverse()const -{ - return reverse_; -} - -void SearchTracesRequest::setReverse(bool reverse) -{ - reverse_ = reverse; - setCoreParameter("Reverse", reverse ? "true" : "false"); -} - -long SearchTracesRequest::getMinDuration()const -{ - return minDuration_; -} - -void SearchTracesRequest::setMinDuration(long minDuration) -{ - minDuration_ = minDuration; - setCoreParameter("MinDuration", std::to_string(minDuration)); -} - diff --git a/arms/src/model/SearchTracesResult.cc b/arms/src/model/SearchTracesResult.cc deleted file mode 100644 index 55e934f02..000000000 --- a/arms/src/model/SearchTracesResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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; - -SearchTracesResult::SearchTracesResult() : - ServiceResult() -{} - -SearchTracesResult::SearchTracesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchTracesResult::~SearchTracesResult() -{} - -void SearchTracesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["TraceInfo"]; - for (auto value : allData) - { - TraceInfo dataObject; - if(!value["TraceID"].isNull()) - dataObject.traceID = value["TraceID"].asString(); - if(!value["OperationName"].isNull()) - dataObject.operationName = value["OperationName"].asString(); - if(!value["Duration"].isNull()) - dataObject.duration = std::stoi(value["Duration"].asString()); - if(!value["ServiceName"].isNull()) - dataObject.serviceName = value["ServiceName"].asString(); - if(!value["ServiceIp"].isNull()) - dataObject.serviceIp = value["ServiceIp"].asString(); - if(!value["Timestamp"].isNull()) - dataObject.timestamp = std::stol(value["Timestamp"].asString()); - data_.push_back(dataObject); - } - -} - -std::vector SearchTracesResult::getData()const -{ - return data_; -} -