Add OpenARMS api.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-11-30 Version: patch
|
||||
- Add OpenARMS api.
|
||||
|
||||
2020-11-30 Version: patch
|
||||
- Support autoPtovisioning whth DiskConfigs.
|
||||
|
||||
|
||||
@@ -49,14 +49,20 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/DeleteTraceAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteTraceAppResult.h
|
||||
include/alibabacloud/arms/model/DescribeDispatchRuleRequest.h
|
||||
include/alibabacloud/arms/model/DescribeDispatchRuleResult.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyRequest.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationRequest.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
|
||||
include/alibabacloud/arms/model/ExportPrometheusRulesRequest.h
|
||||
include/alibabacloud/arms/model/ExportPrometheusRulesResult.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageRequest.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageResult.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||
include/alibabacloud/arms/model/GetIntegrationTokenRequest.h
|
||||
include/alibabacloud/arms/model/GetIntegrationTokenResult.h
|
||||
include/alibabacloud/arms/model/GetMultipleTraceRequest.h
|
||||
include/alibabacloud/arms/model/GetMultipleTraceResult.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
||||
@@ -73,6 +79,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ImportAppAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ImportPrometheusRulesRequest.h
|
||||
include/alibabacloud/arms/model/ImportPrometheusRulesResult.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
||||
include/alibabacloud/arms/model/ListDashboardsRequest.h
|
||||
@@ -111,6 +119,10 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/SearchTracesResult.h
|
||||
include/alibabacloud/arms/model/SearchTracesByPageRequest.h
|
||||
include/alibabacloud/arms/model/SearchTracesByPageResult.h
|
||||
include/alibabacloud/arms/model/SendCustomIncidentsRequest.h
|
||||
include/alibabacloud/arms/model/SendCustomIncidentsResult.h
|
||||
include/alibabacloud/arms/model/SendMseIncidentRequest.h
|
||||
include/alibabacloud/arms/model/SendMseIncidentResult.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusRequest.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusResult.h
|
||||
include/alibabacloud/arms/model/StartAlertRequest.h
|
||||
@@ -156,14 +168,20 @@ set(arms_src
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/DeleteTraceAppRequest.cc
|
||||
src/model/DeleteTraceAppResult.cc
|
||||
src/model/DescribeDispatchRuleRequest.cc
|
||||
src/model/DescribeDispatchRuleResult.cc
|
||||
src/model/DescribeTraceLicenseKeyRequest.cc
|
||||
src/model/DescribeTraceLicenseKeyResult.cc
|
||||
src/model/DescribeTraceLocationRequest.cc
|
||||
src/model/DescribeTraceLocationResult.cc
|
||||
src/model/ExportPrometheusRulesRequest.cc
|
||||
src/model/ExportPrometheusRulesResult.cc
|
||||
src/model/GetAppApiByPageRequest.cc
|
||||
src/model/GetAppApiByPageResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
src/model/GetConsistencySnapshotResult.cc
|
||||
src/model/GetIntegrationTokenRequest.cc
|
||||
src/model/GetIntegrationTokenResult.cc
|
||||
src/model/GetMultipleTraceRequest.cc
|
||||
src/model/GetMultipleTraceResult.cc
|
||||
src/model/GetPrometheusApiTokenRequest.cc
|
||||
@@ -180,6 +198,8 @@ set(arms_src
|
||||
src/model/ImportAppAlertRulesResult.cc
|
||||
src/model/ImportCustomAlertRulesRequest.cc
|
||||
src/model/ImportCustomAlertRulesResult.cc
|
||||
src/model/ImportPrometheusRulesRequest.cc
|
||||
src/model/ImportPrometheusRulesResult.cc
|
||||
src/model/ListClusterFromGrafanaRequest.cc
|
||||
src/model/ListClusterFromGrafanaResult.cc
|
||||
src/model/ListDashboardsRequest.cc
|
||||
@@ -218,6 +238,10 @@ set(arms_src
|
||||
src/model/SearchTracesResult.cc
|
||||
src/model/SearchTracesByPageRequest.cc
|
||||
src/model/SearchTracesByPageResult.cc
|
||||
src/model/SendCustomIncidentsRequest.cc
|
||||
src/model/SendCustomIncidentsResult.cc
|
||||
src/model/SendMseIncidentRequest.cc
|
||||
src/model/SendMseIncidentResult.cc
|
||||
src/model/SetRetcodeShareStatusRequest.cc
|
||||
src/model/SetRetcodeShareStatusResult.cc
|
||||
src/model/StartAlertRequest.cc
|
||||
|
||||
@@ -50,14 +50,20 @@
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/DeleteTraceAppRequest.h"
|
||||
#include "model/DeleteTraceAppResult.h"
|
||||
#include "model/DescribeDispatchRuleRequest.h"
|
||||
#include "model/DescribeDispatchRuleResult.h"
|
||||
#include "model/DescribeTraceLicenseKeyRequest.h"
|
||||
#include "model/DescribeTraceLicenseKeyResult.h"
|
||||
#include "model/DescribeTraceLocationRequest.h"
|
||||
#include "model/DescribeTraceLocationResult.h"
|
||||
#include "model/ExportPrometheusRulesRequest.h"
|
||||
#include "model/ExportPrometheusRulesResult.h"
|
||||
#include "model/GetAppApiByPageRequest.h"
|
||||
#include "model/GetAppApiByPageResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
#include "model/GetConsistencySnapshotResult.h"
|
||||
#include "model/GetIntegrationTokenRequest.h"
|
||||
#include "model/GetIntegrationTokenResult.h"
|
||||
#include "model/GetMultipleTraceRequest.h"
|
||||
#include "model/GetMultipleTraceResult.h"
|
||||
#include "model/GetPrometheusApiTokenRequest.h"
|
||||
@@ -74,6 +80,8 @@
|
||||
#include "model/ImportAppAlertRulesResult.h"
|
||||
#include "model/ImportCustomAlertRulesRequest.h"
|
||||
#include "model/ImportCustomAlertRulesResult.h"
|
||||
#include "model/ImportPrometheusRulesRequest.h"
|
||||
#include "model/ImportPrometheusRulesResult.h"
|
||||
#include "model/ListClusterFromGrafanaRequest.h"
|
||||
#include "model/ListClusterFromGrafanaResult.h"
|
||||
#include "model/ListDashboardsRequest.h"
|
||||
@@ -112,6 +120,10 @@
|
||||
#include "model/SearchTracesResult.h"
|
||||
#include "model/SearchTracesByPageRequest.h"
|
||||
#include "model/SearchTracesByPageResult.h"
|
||||
#include "model/SendCustomIncidentsRequest.h"
|
||||
#include "model/SendCustomIncidentsResult.h"
|
||||
#include "model/SendMseIncidentRequest.h"
|
||||
#include "model/SendMseIncidentResult.h"
|
||||
#include "model/SetRetcodeShareStatusRequest.h"
|
||||
#include "model/SetRetcodeShareStatusResult.h"
|
||||
#include "model/StartAlertRequest.h"
|
||||
@@ -177,18 +189,27 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteTraceAppResult> DeleteTraceAppOutcome;
|
||||
typedef std::future<DeleteTraceAppOutcome> DeleteTraceAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteTraceAppRequest&, const DeleteTraceAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTraceAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDispatchRuleResult> DescribeDispatchRuleOutcome;
|
||||
typedef std::future<DescribeDispatchRuleOutcome> DescribeDispatchRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribeDispatchRuleRequest&, const DescribeDispatchRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDispatchRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTraceLicenseKeyResult> DescribeTraceLicenseKeyOutcome;
|
||||
typedef std::future<DescribeTraceLicenseKeyOutcome> DescribeTraceLicenseKeyOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLicenseKeyRequest&, const DescribeTraceLicenseKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLicenseKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTraceLocationResult> DescribeTraceLocationOutcome;
|
||||
typedef std::future<DescribeTraceLocationOutcome> DescribeTraceLocationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLocationRequest&, const DescribeTraceLocationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLocationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExportPrometheusRulesResult> ExportPrometheusRulesOutcome;
|
||||
typedef std::future<ExportPrometheusRulesOutcome> ExportPrometheusRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ExportPrometheusRulesRequest&, const ExportPrometheusRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportPrometheusRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAppApiByPageResult> GetAppApiByPageOutcome;
|
||||
typedef std::future<GetAppApiByPageOutcome> GetAppApiByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetAppApiByPageRequest&, const GetAppApiByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAppApiByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetIntegrationTokenResult> GetIntegrationTokenOutcome;
|
||||
typedef std::future<GetIntegrationTokenOutcome> GetIntegrationTokenOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetIntegrationTokenRequest&, const GetIntegrationTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetIntegrationTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMultipleTraceResult> GetMultipleTraceOutcome;
|
||||
typedef std::future<GetMultipleTraceOutcome> GetMultipleTraceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetMultipleTraceRequest&, const GetMultipleTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMultipleTraceAsyncHandler;
|
||||
@@ -213,6 +234,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ImportCustomAlertRulesResult> ImportCustomAlertRulesOutcome;
|
||||
typedef std::future<ImportCustomAlertRulesOutcome> ImportCustomAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ImportCustomAlertRulesRequest&, const ImportCustomAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportCustomAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImportPrometheusRulesResult> ImportPrometheusRulesOutcome;
|
||||
typedef std::future<ImportPrometheusRulesOutcome> ImportPrometheusRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ImportPrometheusRulesRequest&, const ImportPrometheusRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportPrometheusRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListClusterFromGrafanaResult> ListClusterFromGrafanaOutcome;
|
||||
typedef std::future<ListClusterFromGrafanaOutcome> ListClusterFromGrafanaOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListClusterFromGrafanaRequest&, const ListClusterFromGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterFromGrafanaAsyncHandler;
|
||||
@@ -270,6 +294,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchTracesByPageResult> SearchTracesByPageOutcome;
|
||||
typedef std::future<SearchTracesByPageOutcome> SearchTracesByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTracesByPageRequest&, const SearchTracesByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendCustomIncidentsResult> SendCustomIncidentsOutcome;
|
||||
typedef std::future<SendCustomIncidentsOutcome> SendCustomIncidentsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SendCustomIncidentsRequest&, const SendCustomIncidentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCustomIncidentsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendMseIncidentResult> SendMseIncidentOutcome;
|
||||
typedef std::future<SendMseIncidentOutcome> SendMseIncidentOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SendMseIncidentRequest&, const SendMseIncidentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMseIncidentAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetRetcodeShareStatusResult> SetRetcodeShareStatusOutcome;
|
||||
typedef std::future<SetRetcodeShareStatusOutcome> SetRetcodeShareStatusOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SetRetcodeShareStatusRequest&, const SetRetcodeShareStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRetcodeShareStatusAsyncHandler;
|
||||
@@ -338,18 +368,27 @@ namespace AlibabaCloud
|
||||
DeleteTraceAppOutcome deleteTraceApp(const Model::DeleteTraceAppRequest &request)const;
|
||||
void deleteTraceAppAsync(const Model::DeleteTraceAppRequest& request, const DeleteTraceAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTraceAppOutcomeCallable deleteTraceAppCallable(const Model::DeleteTraceAppRequest& request) const;
|
||||
DescribeDispatchRuleOutcome describeDispatchRule(const Model::DescribeDispatchRuleRequest &request)const;
|
||||
void describeDispatchRuleAsync(const Model::DescribeDispatchRuleRequest& request, const DescribeDispatchRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDispatchRuleOutcomeCallable describeDispatchRuleCallable(const Model::DescribeDispatchRuleRequest& request) const;
|
||||
DescribeTraceLicenseKeyOutcome describeTraceLicenseKey(const Model::DescribeTraceLicenseKeyRequest &request)const;
|
||||
void describeTraceLicenseKeyAsync(const Model::DescribeTraceLicenseKeyRequest& request, const DescribeTraceLicenseKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTraceLicenseKeyOutcomeCallable describeTraceLicenseKeyCallable(const Model::DescribeTraceLicenseKeyRequest& request) const;
|
||||
DescribeTraceLocationOutcome describeTraceLocation(const Model::DescribeTraceLocationRequest &request)const;
|
||||
void describeTraceLocationAsync(const Model::DescribeTraceLocationRequest& request, const DescribeTraceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTraceLocationOutcomeCallable describeTraceLocationCallable(const Model::DescribeTraceLocationRequest& request) const;
|
||||
ExportPrometheusRulesOutcome exportPrometheusRules(const Model::ExportPrometheusRulesRequest &request)const;
|
||||
void exportPrometheusRulesAsync(const Model::ExportPrometheusRulesRequest& request, const ExportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExportPrometheusRulesOutcomeCallable exportPrometheusRulesCallable(const Model::ExportPrometheusRulesRequest& request) const;
|
||||
GetAppApiByPageOutcome getAppApiByPage(const Model::GetAppApiByPageRequest &request)const;
|
||||
void getAppApiByPageAsync(const Model::GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAppApiByPageOutcomeCallable getAppApiByPageCallable(const Model::GetAppApiByPageRequest& request) const;
|
||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const;
|
||||
void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const;
|
||||
GetIntegrationTokenOutcome getIntegrationToken(const Model::GetIntegrationTokenRequest &request)const;
|
||||
void getIntegrationTokenAsync(const Model::GetIntegrationTokenRequest& request, const GetIntegrationTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetIntegrationTokenOutcomeCallable getIntegrationTokenCallable(const Model::GetIntegrationTokenRequest& request) const;
|
||||
GetMultipleTraceOutcome getMultipleTrace(const Model::GetMultipleTraceRequest &request)const;
|
||||
void getMultipleTraceAsync(const Model::GetMultipleTraceRequest& request, const GetMultipleTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMultipleTraceOutcomeCallable getMultipleTraceCallable(const Model::GetMultipleTraceRequest& request) const;
|
||||
@@ -374,6 +413,9 @@ namespace AlibabaCloud
|
||||
ImportCustomAlertRulesOutcome importCustomAlertRules(const Model::ImportCustomAlertRulesRequest &request)const;
|
||||
void importCustomAlertRulesAsync(const Model::ImportCustomAlertRulesRequest& request, const ImportCustomAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportCustomAlertRulesOutcomeCallable importCustomAlertRulesCallable(const Model::ImportCustomAlertRulesRequest& request) const;
|
||||
ImportPrometheusRulesOutcome importPrometheusRules(const Model::ImportPrometheusRulesRequest &request)const;
|
||||
void importPrometheusRulesAsync(const Model::ImportPrometheusRulesRequest& request, const ImportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportPrometheusRulesOutcomeCallable importPrometheusRulesCallable(const Model::ImportPrometheusRulesRequest& request) const;
|
||||
ListClusterFromGrafanaOutcome listClusterFromGrafana(const Model::ListClusterFromGrafanaRequest &request)const;
|
||||
void listClusterFromGrafanaAsync(const Model::ListClusterFromGrafanaRequest& request, const ListClusterFromGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListClusterFromGrafanaOutcomeCallable listClusterFromGrafanaCallable(const Model::ListClusterFromGrafanaRequest& request) const;
|
||||
@@ -431,6 +473,12 @@ namespace AlibabaCloud
|
||||
SearchTracesByPageOutcome searchTracesByPage(const Model::SearchTracesByPageRequest &request)const;
|
||||
void searchTracesByPageAsync(const Model::SearchTracesByPageRequest& request, const SearchTracesByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTracesByPageOutcomeCallable searchTracesByPageCallable(const Model::SearchTracesByPageRequest& request) const;
|
||||
SendCustomIncidentsOutcome sendCustomIncidents(const Model::SendCustomIncidentsRequest &request)const;
|
||||
void sendCustomIncidentsAsync(const Model::SendCustomIncidentsRequest& request, const SendCustomIncidentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendCustomIncidentsOutcomeCallable sendCustomIncidentsCallable(const Model::SendCustomIncidentsRequest& request) const;
|
||||
SendMseIncidentOutcome sendMseIncident(const Model::SendMseIncidentRequest &request)const;
|
||||
void sendMseIncidentAsync(const Model::SendMseIncidentRequest& request, const SendMseIncidentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendMseIncidentOutcomeCallable sendMseIncidentCallable(const Model::SendMseIncidentRequest& request) const;
|
||||
SetRetcodeShareStatusOutcome setRetcodeShareStatus(const Model::SetRetcodeShareStatusRequest &request)const;
|
||||
void setRetcodeShareStatusAsync(const Model::SetRetcodeShareStatusRequest& request, const SetRetcodeShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetRetcodeShareStatusOutcomeCallable setRetcodeShareStatusCallable(const Model::SetRetcodeShareStatusRequest& request) const;
|
||||
|
||||
@@ -35,12 +35,12 @@ namespace AlibabaCloud
|
||||
CreateWehookRequest();
|
||||
~CreateWehookRequest();
|
||||
|
||||
std::string getHeaders()const;
|
||||
void setHeaders(const std::string& headers);
|
||||
std::string getHttpHeaders()const;
|
||||
void setHttpHeaders(const std::string& httpHeaders);
|
||||
std::string getMethod()const;
|
||||
void setMethod(const std::string& method);
|
||||
std::string getParams()const;
|
||||
void setParams(const std::string& params);
|
||||
std::string getHttpParams()const;
|
||||
void setHttpParams(const std::string& httpParams);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getBody()const;
|
||||
@@ -53,9 +53,9 @@ namespace AlibabaCloud
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string headers_;
|
||||
std::string httpHeaders_;
|
||||
std::string method_;
|
||||
std::string params_;
|
||||
std::string httpParams_;
|
||||
std::string proxyUserId_;
|
||||
std::string body_;
|
||||
std::string url_;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT DescribeDispatchRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDispatchRuleRequest();
|
||||
~DescribeDispatchRuleRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getId()const;
|
||||
void setId(const std::string& id);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string id_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_H_
|
||||
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT DescribeDispatchRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DispatchRule
|
||||
{
|
||||
struct LabelMatchExpressionGrid
|
||||
{
|
||||
struct LabelMatchExpressionGroup
|
||||
{
|
||||
struct LabelMatchExpression
|
||||
{
|
||||
std::string value;
|
||||
std::string _operator;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<LabelMatchExpressionGroup::LabelMatchExpression> labelMatchExpressions;
|
||||
};
|
||||
std::vector<LabelMatchExpressionGroup> labelMatchExpressionGroups;
|
||||
};
|
||||
struct GroupRule
|
||||
{
|
||||
long groupInterval;
|
||||
std::vector<std::string> groupingFields;
|
||||
long groupWaitTime;
|
||||
long groupId;
|
||||
};
|
||||
struct NotifyRule
|
||||
{
|
||||
struct NotifyObject
|
||||
{
|
||||
std::string notifyType;
|
||||
std::string notifyObjectId;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<std::string> notifyChannels;
|
||||
std::vector<NotifyRule::NotifyObject> notifyObjects;
|
||||
};
|
||||
std::vector<GroupRule> groupRules;
|
||||
std::string state;
|
||||
long ruleId;
|
||||
LabelMatchExpressionGrid labelMatchExpressionGrid;
|
||||
std::vector<NotifyRule> notifyRules;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeDispatchRuleResult();
|
||||
explicit DescribeDispatchRuleResult(const std::string &payload);
|
||||
~DescribeDispatchRuleResult();
|
||||
DispatchRule getDispatchRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DispatchRule dispatchRule_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULERESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ExportPrometheusRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ExportPrometheusRulesRequest();
|
||||
~ExportPrometheusRulesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ExportPrometheusRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ExportPrometheusRulesResult();
|
||||
explicit ExportPrometheusRulesResult(const std::string &payload);
|
||||
~ExportPrometheusRulesResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetIntegrationTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetIntegrationTokenRequest();
|
||||
~GetIntegrationTokenRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string proxyUserId_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetIntegrationTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetIntegrationTokenResult();
|
||||
explicit GetIntegrationTokenResult(const std::string &payload);
|
||||
~GetIntegrationTokenResult();
|
||||
std::string getToken()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string token_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_IMPORTPROMETHEUSRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ImportPrometheusRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ImportPrometheusRulesRequest();
|
||||
~ImportPrometheusRulesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
std::string clusterId_;
|
||||
std::string content_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ImportPrometheusRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ImportPrometheusRulesResult();
|
||||
explicit ImportPrometheusRulesResult(const std::string &payload);
|
||||
~ImportPrometheusRulesResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SendCustomIncidentsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SendCustomIncidentsRequest();
|
||||
~SendCustomIncidentsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getIncidents()const;
|
||||
void setIncidents(const std::string& incidents);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string incidents_;
|
||||
std::string proxyUserId_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SendCustomIncidentsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SendCustomIncidentsResult();
|
||||
explicit SendCustomIncidentsResult(const std::string &payload);
|
||||
~SendCustomIncidentsResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SendMseIncidentRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SendMseIncidentRequest();
|
||||
~SendMseIncidentRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getIncidents()const;
|
||||
void setIncidents(const std::string& incidents);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string incidents_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/SendMseIncidentResult.h
Normal file
51
arms/include/alibabacloud/arms/model/SendMseIncidentResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SendMseIncidentResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SendMseIncidentResult();
|
||||
explicit SendMseIncidentResult(const std::string &payload);
|
||||
~SendMseIncidentResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_H_
|
||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
||||
UpdateWebhookRequest();
|
||||
~UpdateWebhookRequest();
|
||||
|
||||
std::string getHeaders()const;
|
||||
void setHeaders(const std::string& headers);
|
||||
std::string getHttpHeaders()const;
|
||||
void setHttpHeaders(const std::string& httpHeaders);
|
||||
std::string getMethod()const;
|
||||
void setMethod(const std::string& method);
|
||||
long getContactId()const;
|
||||
void setContactId(long contactId);
|
||||
std::string getParams()const;
|
||||
void setParams(const std::string& params);
|
||||
std::string getHttpParams()const;
|
||||
void setHttpParams(const std::string& httpParams);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getBody()const;
|
||||
@@ -55,10 +55,10 @@ namespace AlibabaCloud
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string headers_;
|
||||
std::string httpHeaders_;
|
||||
std::string method_;
|
||||
long contactId_;
|
||||
std::string params_;
|
||||
std::string httpParams_;
|
||||
std::string proxyUserId_;
|
||||
std::string body_;
|
||||
std::string url_;
|
||||
|
||||
@@ -555,6 +555,42 @@ ARMSClient::DeleteTraceAppOutcomeCallable ARMSClient::deleteTraceAppCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DescribeDispatchRuleOutcome ARMSClient::describeDispatchRule(const DescribeDispatchRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDispatchRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDispatchRuleOutcome(DescribeDispatchRuleResult(outcome.result()));
|
||||
else
|
||||
return DescribeDispatchRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::describeDispatchRuleAsync(const DescribeDispatchRuleRequest& request, const DescribeDispatchRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDispatchRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DescribeDispatchRuleOutcomeCallable ARMSClient::describeDispatchRuleCallable(const DescribeDispatchRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDispatchRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDispatchRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DescribeTraceLicenseKeyOutcome ARMSClient::describeTraceLicenseKey(const DescribeTraceLicenseKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +663,42 @@ ARMSClient::DescribeTraceLocationOutcomeCallable ARMSClient::describeTraceLocati
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ExportPrometheusRulesOutcome ARMSClient::exportPrometheusRules(const ExportPrometheusRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ExportPrometheusRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ExportPrometheusRulesOutcome(ExportPrometheusRulesResult(outcome.result()));
|
||||
else
|
||||
return ExportPrometheusRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::exportPrometheusRulesAsync(const ExportPrometheusRulesRequest& request, const ExportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, exportPrometheusRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ExportPrometheusRulesOutcomeCallable ARMSClient::exportPrometheusRulesCallable(const ExportPrometheusRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ExportPrometheusRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->exportPrometheusRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetAppApiByPageOutcome ARMSClient::getAppApiByPage(const GetAppApiByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +771,42 @@ ARMSClient::GetConsistencySnapshotOutcomeCallable ARMSClient::getConsistencySnap
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetIntegrationTokenOutcome ARMSClient::getIntegrationToken(const GetIntegrationTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetIntegrationTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetIntegrationTokenOutcome(GetIntegrationTokenResult(outcome.result()));
|
||||
else
|
||||
return GetIntegrationTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getIntegrationTokenAsync(const GetIntegrationTokenRequest& request, const GetIntegrationTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getIntegrationToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetIntegrationTokenOutcomeCallable ARMSClient::getIntegrationTokenCallable(const GetIntegrationTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetIntegrationTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getIntegrationToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetMultipleTraceOutcome ARMSClient::getMultipleTrace(const GetMultipleTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1095,42 @@ ARMSClient::ImportCustomAlertRulesOutcomeCallable ARMSClient::importCustomAlertR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ImportPrometheusRulesOutcome ARMSClient::importPrometheusRules(const ImportPrometheusRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ImportPrometheusRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ImportPrometheusRulesOutcome(ImportPrometheusRulesResult(outcome.result()));
|
||||
else
|
||||
return ImportPrometheusRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::importPrometheusRulesAsync(const ImportPrometheusRulesRequest& request, const ImportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, importPrometheusRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ImportPrometheusRulesOutcomeCallable ARMSClient::importPrometheusRulesCallable(const ImportPrometheusRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ImportPrometheusRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->importPrometheusRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListClusterFromGrafanaOutcome ARMSClient::listClusterFromGrafana(const ListClusterFromGrafanaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1815,78 @@ ARMSClient::SearchTracesByPageOutcomeCallable ARMSClient::searchTracesByPageCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SendCustomIncidentsOutcome ARMSClient::sendCustomIncidents(const SendCustomIncidentsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendCustomIncidentsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendCustomIncidentsOutcome(SendCustomIncidentsResult(outcome.result()));
|
||||
else
|
||||
return SendCustomIncidentsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::sendCustomIncidentsAsync(const SendCustomIncidentsRequest& request, const SendCustomIncidentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendCustomIncidents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SendCustomIncidentsOutcomeCallable ARMSClient::sendCustomIncidentsCallable(const SendCustomIncidentsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendCustomIncidentsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendCustomIncidents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SendMseIncidentOutcome ARMSClient::sendMseIncident(const SendMseIncidentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendMseIncidentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendMseIncidentOutcome(SendMseIncidentResult(outcome.result()));
|
||||
else
|
||||
return SendMseIncidentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::sendMseIncidentAsync(const SendMseIncidentRequest& request, const SendMseIncidentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendMseIncident(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SendMseIncidentOutcomeCallable ARMSClient::sendMseIncidentCallable(const SendMseIncidentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendMseIncidentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendMseIncident(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SetRetcodeShareStatusOutcome ARMSClient::setRetcodeShareStatus(const SetRetcodeShareStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -27,15 +27,15 @@ CreateWehookRequest::CreateWehookRequest() :
|
||||
CreateWehookRequest::~CreateWehookRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWehookRequest::getHeaders()const
|
||||
std::string CreateWehookRequest::getHttpHeaders()const
|
||||
{
|
||||
return headers_;
|
||||
return httpHeaders_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setHeaders(const std::string& headers)
|
||||
void CreateWehookRequest::setHttpHeaders(const std::string& httpHeaders)
|
||||
{
|
||||
headers_ = headers;
|
||||
setParameter("Headers", headers);
|
||||
httpHeaders_ = httpHeaders;
|
||||
setParameter("HttpHeaders", httpHeaders);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getMethod()const
|
||||
@@ -49,15 +49,15 @@ void CreateWehookRequest::setMethod(const std::string& method)
|
||||
setParameter("Method", method);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getParams()const
|
||||
std::string CreateWehookRequest::getHttpParams()const
|
||||
{
|
||||
return params_;
|
||||
return httpParams_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setParams(const std::string& params)
|
||||
void CreateWehookRequest::setHttpParams(const std::string& httpParams)
|
||||
{
|
||||
params_ = params;
|
||||
setParameter("Params", params);
|
||||
httpParams_ = httpParams;
|
||||
setParameter("HttpParams", httpParams);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getProxyUserId()const
|
||||
|
||||
62
arms/src/model/DescribeDispatchRuleRequest.cc
Normal file
62
arms/src/model/DescribeDispatchRuleRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeDispatchRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeDispatchRuleRequest;
|
||||
|
||||
DescribeDispatchRuleRequest::DescribeDispatchRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DescribeDispatchRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDispatchRuleRequest::~DescribeDispatchRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDispatchRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDispatchRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDispatchRuleRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DescribeDispatchRuleRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DescribeDispatchRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DescribeDispatchRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
111
arms/src/model/DescribeDispatchRuleResult.cc
Normal file
111
arms/src/model/DescribeDispatchRuleResult.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeDispatchRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribeDispatchRuleResult::DescribeDispatchRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDispatchRuleResult::DescribeDispatchRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDispatchRuleResult::~DescribeDispatchRuleResult()
|
||||
{}
|
||||
|
||||
void DescribeDispatchRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dispatchRuleNode = value["DispatchRule"];
|
||||
if(!dispatchRuleNode["RuleId"].isNull())
|
||||
dispatchRule_.ruleId = std::stol(dispatchRuleNode["RuleId"].asString());
|
||||
if(!dispatchRuleNode["Name"].isNull())
|
||||
dispatchRule_.name = dispatchRuleNode["Name"].asString();
|
||||
if(!dispatchRuleNode["State"].isNull())
|
||||
dispatchRule_.state = dispatchRuleNode["State"].asString();
|
||||
auto allGroupRulesNode = dispatchRuleNode["GroupRules"]["GroupRule"];
|
||||
for (auto dispatchRuleNodeGroupRulesGroupRule : allGroupRulesNode)
|
||||
{
|
||||
DispatchRule::GroupRule groupRuleObject;
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["GroupId"].isNull())
|
||||
groupRuleObject.groupId = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupId"].asString());
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["GroupWaitTime"].isNull())
|
||||
groupRuleObject.groupWaitTime = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupWaitTime"].asString());
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].isNull())
|
||||
groupRuleObject.groupInterval = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].asString());
|
||||
auto allGroupingFields = value["GroupingFields"]["GroupingField"];
|
||||
for (auto value : allGroupingFields)
|
||||
groupRuleObject.groupingFields.push_back(value.asString());
|
||||
dispatchRule_.groupRules.push_back(groupRuleObject);
|
||||
}
|
||||
auto allNotifyRulesNode = dispatchRuleNode["NotifyRules"]["NotifyRule"];
|
||||
for (auto dispatchRuleNodeNotifyRulesNotifyRule : allNotifyRulesNode)
|
||||
{
|
||||
DispatchRule::NotifyRule notifyRuleObject;
|
||||
auto allNotifyObjectsNode = dispatchRuleNodeNotifyRulesNotifyRule["NotifyObjects"]["NotifyObject"];
|
||||
for (auto dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject : allNotifyObjectsNode)
|
||||
{
|
||||
DispatchRule::NotifyRule::NotifyObject notifyObjectsObject;
|
||||
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyType"].isNull())
|
||||
notifyObjectsObject.notifyType = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyType"].asString();
|
||||
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["Name"].isNull())
|
||||
notifyObjectsObject.name = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["Name"].asString();
|
||||
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].isNull())
|
||||
notifyObjectsObject.notifyObjectId = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].asString();
|
||||
notifyRuleObject.notifyObjects.push_back(notifyObjectsObject);
|
||||
}
|
||||
auto allNotifyChannels = value["NotifyChannels"]["NotifyChannel"];
|
||||
for (auto value : allNotifyChannels)
|
||||
notifyRuleObject.notifyChannels.push_back(value.asString());
|
||||
dispatchRule_.notifyRules.push_back(notifyRuleObject);
|
||||
}
|
||||
auto labelMatchExpressionGridNode = dispatchRuleNode["LabelMatchExpressionGrid"];
|
||||
auto allLabelMatchExpressionGroupsNode = labelMatchExpressionGridNode["LabelMatchExpressionGroups"]["LabelMatchExpressionGroup"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup : allLabelMatchExpressionGroupsNode)
|
||||
{
|
||||
DispatchRule::LabelMatchExpressionGrid::LabelMatchExpressionGroup labelMatchExpressionGroupObject;
|
||||
auto allLabelMatchExpressionsNode = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup["LabelMatchExpressions"]["LabelMatchExpression"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression : allLabelMatchExpressionsNode)
|
||||
{
|
||||
DispatchRule::LabelMatchExpressionGrid::LabelMatchExpressionGroup::LabelMatchExpression labelMatchExpressionsObject;
|
||||
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Key"].isNull())
|
||||
labelMatchExpressionsObject.key = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Key"].asString();
|
||||
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Value"].isNull())
|
||||
labelMatchExpressionsObject.value = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Value"].asString();
|
||||
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Operator"].isNull())
|
||||
labelMatchExpressionsObject._operator = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Operator"].asString();
|
||||
labelMatchExpressionGroupObject.labelMatchExpressions.push_back(labelMatchExpressionsObject);
|
||||
}
|
||||
dispatchRule_.labelMatchExpressionGrid.labelMatchExpressionGroups.push_back(labelMatchExpressionGroupObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeDispatchRuleResult::DispatchRule DescribeDispatchRuleResult::getDispatchRule()const
|
||||
{
|
||||
return dispatchRule_;
|
||||
}
|
||||
|
||||
73
arms/src/model/ExportPrometheusRulesRequest.cc
Normal file
73
arms/src/model/ExportPrometheusRulesRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ExportPrometheusRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ExportPrometheusRulesRequest;
|
||||
|
||||
ExportPrometheusRulesRequest::ExportPrometheusRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ExportPrometheusRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExportPrometheusRulesRequest::~ExportPrometheusRulesRequest()
|
||||
{}
|
||||
|
||||
std::string ExportPrometheusRulesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ExportPrometheusRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ExportPrometheusRulesRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void ExportPrometheusRulesRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
std::string ExportPrometheusRulesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ExportPrometheusRulesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ExportPrometheusRulesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ExportPrometheusRulesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/ExportPrometheusRulesResult.cc
Normal file
51
arms/src/model/ExportPrometheusRulesResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ExportPrometheusRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ExportPrometheusRulesResult::ExportPrometheusRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExportPrometheusRulesResult::ExportPrometheusRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExportPrometheusRulesResult::~ExportPrometheusRulesResult()
|
||||
{}
|
||||
|
||||
void ExportPrometheusRulesResult::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 ExportPrometheusRulesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
arms/src/model/GetIntegrationTokenRequest.cc
Normal file
62
arms/src/model/GetIntegrationTokenRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetIntegrationTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetIntegrationTokenRequest;
|
||||
|
||||
GetIntegrationTokenRequest::GetIntegrationTokenRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetIntegrationToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetIntegrationTokenRequest::~GetIntegrationTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GetIntegrationTokenRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetIntegrationTokenRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetIntegrationTokenRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void GetIntegrationTokenRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string GetIntegrationTokenRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void GetIntegrationTokenRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
51
arms/src/model/GetIntegrationTokenResult.cc
Normal file
51
arms/src/model/GetIntegrationTokenResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetIntegrationTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetIntegrationTokenResult::GetIntegrationTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetIntegrationTokenResult::GetIntegrationTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetIntegrationTokenResult::~GetIntegrationTokenResult()
|
||||
{}
|
||||
|
||||
void GetIntegrationTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Token"].isNull())
|
||||
token_ = value["Token"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetIntegrationTokenResult::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
@@ -45,54 +45,54 @@ void GetMultipleTraceResult::parse(const std::string &payload)
|
||||
MultiCallChainInfo multiCallChainInfosObject;
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfo["TraceID"].isNull())
|
||||
multiCallChainInfosObject.traceID = valueMultiCallChainInfosMultiCallChainInfo["TraceID"].asString();
|
||||
auto allSpansNode = allMultiCallChainInfosNode["Spans"]["Span"];
|
||||
for (auto allMultiCallChainInfosNodeSpansSpan : allSpansNode)
|
||||
auto allSpansNode = valueMultiCallChainInfosMultiCallChainInfo["Spans"]["Span"];
|
||||
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpan : allSpansNode)
|
||||
{
|
||||
MultiCallChainInfo::Span spansObject;
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["TraceID"].isNull())
|
||||
spansObject.traceID = allMultiCallChainInfosNodeSpansSpan["TraceID"].asString();
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["OperationName"].isNull())
|
||||
spansObject.operationName = allMultiCallChainInfosNodeSpansSpan["OperationName"].asString();
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["Duration"].isNull())
|
||||
spansObject.duration = std::stol(allMultiCallChainInfosNodeSpansSpan["Duration"].asString());
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["ServiceName"].isNull())
|
||||
spansObject.serviceName = allMultiCallChainInfosNodeSpansSpan["ServiceName"].asString();
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["ServiceIp"].isNull())
|
||||
spansObject.serviceIp = allMultiCallChainInfosNodeSpansSpan["ServiceIp"].asString();
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["Timestamp"].isNull())
|
||||
spansObject.timestamp = std::stol(allMultiCallChainInfosNodeSpansSpan["Timestamp"].asString());
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["RpcId"].isNull())
|
||||
spansObject.rpcId = allMultiCallChainInfosNodeSpansSpan["RpcId"].asString();
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["ResultCode"].isNull())
|
||||
spansObject.resultCode = allMultiCallChainInfosNodeSpansSpan["ResultCode"].asString();
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["HaveStack"].isNull())
|
||||
spansObject.haveStack = allMultiCallChainInfosNodeSpansSpan["HaveStack"].asString() == "true";
|
||||
if(!allMultiCallChainInfosNodeSpansSpan["RpcType"].isNull())
|
||||
spansObject.rpcType = std::stoi(allMultiCallChainInfosNodeSpansSpan["RpcType"].asString());
|
||||
auto allTagEntryListNode = allSpansNode["TagEntryList"]["TagEntry"];
|
||||
for (auto allSpansNodeTagEntryListTagEntry : allTagEntryListNode)
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["TraceID"].isNull())
|
||||
spansObject.traceID = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["TraceID"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["OperationName"].isNull())
|
||||
spansObject.operationName = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["OperationName"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Duration"].isNull())
|
||||
spansObject.duration = std::stol(valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Duration"].asString());
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceName"].isNull())
|
||||
spansObject.serviceName = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceName"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceIp"].isNull())
|
||||
spansObject.serviceIp = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceIp"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Timestamp"].isNull())
|
||||
spansObject.timestamp = std::stol(valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Timestamp"].asString());
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcId"].isNull())
|
||||
spansObject.rpcId = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcId"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ResultCode"].isNull())
|
||||
spansObject.resultCode = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ResultCode"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["HaveStack"].isNull())
|
||||
spansObject.haveStack = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["HaveStack"].asString() == "true";
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcType"].isNull())
|
||||
spansObject.rpcType = std::stoi(valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcType"].asString());
|
||||
auto allTagEntryListNode = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["TagEntryList"]["TagEntry"];
|
||||
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry : allTagEntryListNode)
|
||||
{
|
||||
MultiCallChainInfo::Span::TagEntry tagEntryListObject;
|
||||
if(!allSpansNodeTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryListObject.key = allSpansNodeTagEntryListTagEntry["Key"].asString();
|
||||
if(!allSpansNodeTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryListObject.value = allSpansNodeTagEntryListTagEntry["Value"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryListObject.key = valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Key"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryListObject.value = valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Value"].asString();
|
||||
spansObject.tagEntryList.push_back(tagEntryListObject);
|
||||
}
|
||||
auto allLogEventListNode = allSpansNode["LogEventList"]["LogEvent"];
|
||||
for (auto allSpansNodeLogEventListLogEvent : allLogEventListNode)
|
||||
auto allLogEventListNode = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["LogEventList"]["LogEvent"];
|
||||
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent : allLogEventListNode)
|
||||
{
|
||||
MultiCallChainInfo::Span::LogEvent logEventListObject;
|
||||
if(!allSpansNodeLogEventListLogEvent["Timestamp"].isNull())
|
||||
logEventListObject.timestamp = std::stol(allSpansNodeLogEventListLogEvent["Timestamp"].asString());
|
||||
auto allTagEntryList1Node = allLogEventListNode["TagEntryList"]["TagEntry"];
|
||||
for (auto allLogEventListNodeTagEntryListTagEntry : allTagEntryList1Node)
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent["Timestamp"].isNull())
|
||||
logEventListObject.timestamp = std::stol(valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent["Timestamp"].asString());
|
||||
auto allTagEntryList1Node = valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent["TagEntryList"]["TagEntry"];
|
||||
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry : allTagEntryList1Node)
|
||||
{
|
||||
MultiCallChainInfo::Span::LogEvent::TagEntry2 tagEntryList1Object;
|
||||
if(!allLogEventListNodeTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryList1Object.key = allLogEventListNodeTagEntryListTagEntry["Key"].asString();
|
||||
if(!allLogEventListNodeTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryList1Object.value = allLogEventListNodeTagEntryListTagEntry["Value"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryList1Object.key = valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].asString();
|
||||
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryList1Object.value = valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].asString();
|
||||
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
||||
}
|
||||
spansObject.logEventList.push_back(logEventListObject);
|
||||
|
||||
@@ -63,30 +63,30 @@ void GetTraceResult::parse(const std::string &payload)
|
||||
spansObject.haveStack = valueSpansSpan["HaveStack"].asString() == "true";
|
||||
if(!valueSpansSpan["RpcType"].isNull())
|
||||
spansObject.rpcType = std::stoi(valueSpansSpan["RpcType"].asString());
|
||||
auto allTagEntryListNode = allSpansNode["TagEntryList"]["TagEntry"];
|
||||
for (auto allSpansNodeTagEntryListTagEntry : allTagEntryListNode)
|
||||
auto allTagEntryListNode = valueSpansSpan["TagEntryList"]["TagEntry"];
|
||||
for (auto valueSpansSpanTagEntryListTagEntry : allTagEntryListNode)
|
||||
{
|
||||
Span::TagEntry tagEntryListObject;
|
||||
if(!allSpansNodeTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryListObject.key = allSpansNodeTagEntryListTagEntry["Key"].asString();
|
||||
if(!allSpansNodeTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryListObject.value = allSpansNodeTagEntryListTagEntry["Value"].asString();
|
||||
if(!valueSpansSpanTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryListObject.key = valueSpansSpanTagEntryListTagEntry["Key"].asString();
|
||||
if(!valueSpansSpanTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryListObject.value = valueSpansSpanTagEntryListTagEntry["Value"].asString();
|
||||
spansObject.tagEntryList.push_back(tagEntryListObject);
|
||||
}
|
||||
auto allLogEventListNode = allSpansNode["LogEventList"]["LogEvent"];
|
||||
for (auto allSpansNodeLogEventListLogEvent : allLogEventListNode)
|
||||
auto allLogEventListNode = valueSpansSpan["LogEventList"]["LogEvent"];
|
||||
for (auto valueSpansSpanLogEventListLogEvent : allLogEventListNode)
|
||||
{
|
||||
Span::LogEvent logEventListObject;
|
||||
if(!allSpansNodeLogEventListLogEvent["Timestamp"].isNull())
|
||||
logEventListObject.timestamp = std::stol(allSpansNodeLogEventListLogEvent["Timestamp"].asString());
|
||||
auto allTagEntryList1Node = allLogEventListNode["TagEntryList"]["TagEntry"];
|
||||
for (auto allLogEventListNodeTagEntryListTagEntry : allTagEntryList1Node)
|
||||
if(!valueSpansSpanLogEventListLogEvent["Timestamp"].isNull())
|
||||
logEventListObject.timestamp = std::stol(valueSpansSpanLogEventListLogEvent["Timestamp"].asString());
|
||||
auto allTagEntryList1Node = valueSpansSpanLogEventListLogEvent["TagEntryList"]["TagEntry"];
|
||||
for (auto valueSpansSpanLogEventListLogEventTagEntryListTagEntry : allTagEntryList1Node)
|
||||
{
|
||||
Span::LogEvent::TagEntry2 tagEntryList1Object;
|
||||
if(!allLogEventListNodeTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryList1Object.key = allLogEventListNodeTagEntryListTagEntry["Key"].asString();
|
||||
if(!allLogEventListNodeTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryList1Object.value = allLogEventListNodeTagEntryListTagEntry["Value"].asString();
|
||||
if(!valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryList1Object.key = valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].asString();
|
||||
if(!valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryList1Object.value = valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].asString();
|
||||
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
||||
}
|
||||
spansObject.logEventList.push_back(logEventListObject);
|
||||
|
||||
84
arms/src/model/ImportPrometheusRulesRequest.cc
Normal file
84
arms/src/model/ImportPrometheusRulesRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ImportPrometheusRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ImportPrometheusRulesRequest;
|
||||
|
||||
ImportPrometheusRulesRequest::ImportPrometheusRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ImportPrometheusRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ImportPrometheusRulesRequest::~ImportPrometheusRulesRequest()
|
||||
{}
|
||||
|
||||
std::string ImportPrometheusRulesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ImportPrometheusRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ImportPrometheusRulesRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void ImportPrometheusRulesRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
std::string ImportPrometheusRulesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ImportPrometheusRulesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ImportPrometheusRulesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ImportPrometheusRulesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ImportPrometheusRulesRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void ImportPrometheusRulesRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
51
arms/src/model/ImportPrometheusRulesResult.cc
Normal file
51
arms/src/model/ImportPrometheusRulesResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ImportPrometheusRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ImportPrometheusRulesResult::ImportPrometheusRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ImportPrometheusRulesResult::ImportPrometheusRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ImportPrometheusRulesResult::~ImportPrometheusRulesResult()
|
||||
{}
|
||||
|
||||
void ImportPrometheusRulesResult::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 ImportPrometheusRulesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -53,28 +53,28 @@ void SearchAlertContactGroupResult::parse(const std::string &payload)
|
||||
contactGroupsObject.createTime = std::stol(valueContactGroupsContactGroup["CreateTime"].asString());
|
||||
if(!valueContactGroupsContactGroup["UpdateTime"].isNull())
|
||||
contactGroupsObject.updateTime = std::stol(valueContactGroupsContactGroup["UpdateTime"].asString());
|
||||
auto allContactsNode = allContactGroupsNode["Contacts"]["Contact"];
|
||||
for (auto allContactGroupsNodeContactsContact : allContactsNode)
|
||||
auto allContactsNode = valueContactGroupsContactGroup["Contacts"]["Contact"];
|
||||
for (auto valueContactGroupsContactGroupContactsContact : allContactsNode)
|
||||
{
|
||||
ContactGroup::Contact contactsObject;
|
||||
if(!allContactGroupsNodeContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = std::stol(allContactGroupsNodeContactsContact["ContactId"].asString());
|
||||
if(!allContactGroupsNodeContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = allContactGroupsNodeContactsContact["ContactName"].asString();
|
||||
if(!allContactGroupsNodeContactsContact["Phone"].isNull())
|
||||
contactsObject.phone = allContactGroupsNodeContactsContact["Phone"].asString();
|
||||
if(!allContactGroupsNodeContactsContact["Email"].isNull())
|
||||
contactsObject.email = allContactGroupsNodeContactsContact["Email"].asString();
|
||||
if(!allContactGroupsNodeContactsContact["UserId"].isNull())
|
||||
contactsObject.userId = allContactGroupsNodeContactsContact["UserId"].asString();
|
||||
if(!allContactGroupsNodeContactsContact["DingRobot"].isNull())
|
||||
contactsObject.dingRobot = allContactGroupsNodeContactsContact["DingRobot"].asString();
|
||||
if(!allContactGroupsNodeContactsContact["CreateTime"].isNull())
|
||||
contactsObject.createTime = std::stol(allContactGroupsNodeContactsContact["CreateTime"].asString());
|
||||
if(!allContactGroupsNodeContactsContact["UpdateTime"].isNull())
|
||||
contactsObject.updateTime = std::stol(allContactGroupsNodeContactsContact["UpdateTime"].asString());
|
||||
if(!allContactGroupsNodeContactsContact["SystemNoc"].isNull())
|
||||
contactsObject.systemNoc = allContactGroupsNodeContactsContact["SystemNoc"].asString() == "true";
|
||||
if(!valueContactGroupsContactGroupContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = std::stol(valueContactGroupsContactGroupContactsContact["ContactId"].asString());
|
||||
if(!valueContactGroupsContactGroupContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = valueContactGroupsContactGroupContactsContact["ContactName"].asString();
|
||||
if(!valueContactGroupsContactGroupContactsContact["Phone"].isNull())
|
||||
contactsObject.phone = valueContactGroupsContactGroupContactsContact["Phone"].asString();
|
||||
if(!valueContactGroupsContactGroupContactsContact["Email"].isNull())
|
||||
contactsObject.email = valueContactGroupsContactGroupContactsContact["Email"].asString();
|
||||
if(!valueContactGroupsContactGroupContactsContact["UserId"].isNull())
|
||||
contactsObject.userId = valueContactGroupsContactGroupContactsContact["UserId"].asString();
|
||||
if(!valueContactGroupsContactGroupContactsContact["DingRobot"].isNull())
|
||||
contactsObject.dingRobot = valueContactGroupsContactGroupContactsContact["DingRobot"].asString();
|
||||
if(!valueContactGroupsContactGroupContactsContact["CreateTime"].isNull())
|
||||
contactsObject.createTime = std::stol(valueContactGroupsContactGroupContactsContact["CreateTime"].asString());
|
||||
if(!valueContactGroupsContactGroupContactsContact["UpdateTime"].isNull())
|
||||
contactsObject.updateTime = std::stol(valueContactGroupsContactGroupContactsContact["UpdateTime"].asString());
|
||||
if(!valueContactGroupsContactGroupContactsContact["SystemNoc"].isNull())
|
||||
contactsObject.systemNoc = valueContactGroupsContactGroupContactsContact["SystemNoc"].asString() == "true";
|
||||
contactGroupsObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
contactGroups_.push_back(contactGroupsObject);
|
||||
|
||||
73
arms/src/model/SendCustomIncidentsRequest.cc
Normal file
73
arms/src/model/SendCustomIncidentsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SendCustomIncidentsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SendCustomIncidentsRequest;
|
||||
|
||||
SendCustomIncidentsRequest::SendCustomIncidentsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SendCustomIncidents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendCustomIncidentsRequest::~SendCustomIncidentsRequest()
|
||||
{}
|
||||
|
||||
std::string SendCustomIncidentsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SendCustomIncidentsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SendCustomIncidentsRequest::getIncidents()const
|
||||
{
|
||||
return incidents_;
|
||||
}
|
||||
|
||||
void SendCustomIncidentsRequest::setIncidents(const std::string& incidents)
|
||||
{
|
||||
incidents_ = incidents;
|
||||
setParameter("Incidents", incidents);
|
||||
}
|
||||
|
||||
std::string SendCustomIncidentsRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void SendCustomIncidentsRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string SendCustomIncidentsRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void SendCustomIncidentsRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
51
arms/src/model/SendCustomIncidentsResult.cc
Normal file
51
arms/src/model/SendCustomIncidentsResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SendCustomIncidentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SendCustomIncidentsResult::SendCustomIncidentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendCustomIncidentsResult::SendCustomIncidentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendCustomIncidentsResult::~SendCustomIncidentsResult()
|
||||
{}
|
||||
|
||||
void SendCustomIncidentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool SendCustomIncidentsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
arms/src/model/SendMseIncidentRequest.cc
Normal file
62
arms/src/model/SendMseIncidentRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SendMseIncidentRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SendMseIncidentRequest;
|
||||
|
||||
SendMseIncidentRequest::SendMseIncidentRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SendMseIncident")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendMseIncidentRequest::~SendMseIncidentRequest()
|
||||
{}
|
||||
|
||||
std::string SendMseIncidentRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SendMseIncidentRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SendMseIncidentRequest::getIncidents()const
|
||||
{
|
||||
return incidents_;
|
||||
}
|
||||
|
||||
void SendMseIncidentRequest::setIncidents(const std::string& incidents)
|
||||
{
|
||||
incidents_ = incidents;
|
||||
setParameter("Incidents", incidents);
|
||||
}
|
||||
|
||||
std::string SendMseIncidentRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void SendMseIncidentRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/SendMseIncidentResult.cc
Normal file
51
arms/src/model/SendMseIncidentResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SendMseIncidentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SendMseIncidentResult::SendMseIncidentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendMseIncidentResult::SendMseIncidentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendMseIncidentResult::~SendMseIncidentResult()
|
||||
{}
|
||||
|
||||
void SendMseIncidentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool SendMseIncidentResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -27,15 +27,15 @@ UpdateWebhookRequest::UpdateWebhookRequest() :
|
||||
UpdateWebhookRequest::~UpdateWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateWebhookRequest::getHeaders()const
|
||||
std::string UpdateWebhookRequest::getHttpHeaders()const
|
||||
{
|
||||
return headers_;
|
||||
return httpHeaders_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setHeaders(const std::string& headers)
|
||||
void UpdateWebhookRequest::setHttpHeaders(const std::string& httpHeaders)
|
||||
{
|
||||
headers_ = headers;
|
||||
setParameter("Headers", headers);
|
||||
httpHeaders_ = httpHeaders;
|
||||
setParameter("HttpHeaders", httpHeaders);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getMethod()const
|
||||
@@ -60,15 +60,15 @@ void UpdateWebhookRequest::setContactId(long contactId)
|
||||
setParameter("ContactId", std::to_string(contactId));
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getParams()const
|
||||
std::string UpdateWebhookRequest::getHttpParams()const
|
||||
{
|
||||
return params_;
|
||||
return httpParams_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setParams(const std::string& params)
|
||||
void UpdateWebhookRequest::setHttpParams(const std::string& httpParams)
|
||||
{
|
||||
params_ = params;
|
||||
setParameter("Params", params);
|
||||
httpParams_ = httpParams;
|
||||
setParameter("HttpParams", httpParams);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getProxyUserId()const
|
||||
|
||||
Reference in New Issue
Block a user