Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8502ce8db8 | ||
|
|
1d202f4d30 | ||
|
|
e148041dec | ||
|
|
111ecd0032 | ||
|
|
21d4a23230 | ||
|
|
cb1404c3d4 | ||
|
|
29d344ab59 | ||
|
|
0a9554513b | ||
|
|
59d443c7d1 | ||
|
|
31ce8cba5d | ||
|
|
e1ae9bd807 | ||
|
|
3fdcb5b22c | ||
|
|
431638f102 | ||
|
|
ba63e32429 | ||
|
|
3525d60729 | ||
|
|
bc4cc968c2 | ||
|
|
863129ac92 | ||
|
|
bfee7629d7 | ||
|
|
9f6ab32ea8 | ||
|
|
127ebd7d3a | ||
|
|
9b9e034594 | ||
|
|
f13956ad50 | ||
|
|
294c94c2ec | ||
|
|
c2b59302fa | ||
|
|
742ad5f67c | ||
|
|
099ec7bb13 | ||
|
|
b972642ffe |
82
CHANGELOG
82
CHANGELOG
@@ -1,3 +1,85 @@
|
||||
2021-05-07 Version: 1.36.712
|
||||
- Support interface DescribeDBInstanceEncryptionKey for DB Instance Cloud Disk Encryption.
|
||||
|
||||
2021-05-06 Version: 1.36.711
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2021-05-06 Version: 1.36.710
|
||||
- Update Open API.
|
||||
|
||||
2021-05-06 Version: 1.36.709
|
||||
- Support DescribePolarSQLCollectorPolicy.
|
||||
|
||||
2021-04-30 Version: 1.36.708
|
||||
- Add OpenArmsServiceSecondVersion.
|
||||
|
||||
2021-04-29 Version: 1.36.707
|
||||
- ModifyNodeSpec API add SwitchTime.
|
||||
|
||||
2021-04-29 Version: 1.36.706
|
||||
- Add DescribeInstances API.
|
||||
|
||||
2021-04-29 Version: 1.36.705
|
||||
- Update RecognizeFace.
|
||||
|
||||
2021-04-29 Version: 1.36.704
|
||||
- Support sag reseller.
|
||||
|
||||
2021-04-29 Version: 1.36.703
|
||||
- Support latest openAPIs.
|
||||
|
||||
2021-04-28 Version: 1.36.702
|
||||
- Export new API.
|
||||
|
||||
2021-04-27 Version: 1.36.701
|
||||
- GetProjectMember support pageSize.
|
||||
|
||||
2021-04-27 Version: 1.36.700
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2021-04-27 Version: 1.36.699
|
||||
- Add CustomMessage to CreateMergeFaceGroupsJob.
|
||||
|
||||
2021-04-26 Version: 1.36.698
|
||||
- Generated 2019-06-01 for `smc`.
|
||||
|
||||
2021-04-22 Version: 1.36.697
|
||||
- Support NetworkInterface TrafficMode.
|
||||
|
||||
2021-04-22 Version: 1.36.696
|
||||
- AcceptInquiredSystemEvent adds Choice parameter.
|
||||
- DescribeInstanceHistoryEvents supports multiple resource types.
|
||||
|
||||
2021-04-22 Version: 1.36.695
|
||||
- Support CEN latest Apis.
|
||||
|
||||
2021-04-22 Version: 1.36.694
|
||||
- Support GetPhysicalDatabase API.
|
||||
|
||||
2021-04-21 Version: 1.36.693
|
||||
- Add API to list repo members with group inherited info.
|
||||
|
||||
2021-04-20 Version: 1.36.692
|
||||
- Support Tag.
|
||||
|
||||
2021-04-20 Version: 1.36.691
|
||||
- Export predictive dialer API.
|
||||
|
||||
2021-04-20 Version: 1.36.690
|
||||
- Create Lindorm Open api.
|
||||
|
||||
2021-04-20 Version: 1.36.689
|
||||
- LivenessFaceVerify ContrastFaceVerify CompareFaceVerify API Return CertifyId.
|
||||
|
||||
2021-04-19 Version: 1.36.688
|
||||
- Export StartBack2BackCall API.
|
||||
|
||||
2021-04-19 Version: 1.36.687
|
||||
- Generated 2020-10-29 for `reid_cloud`.
|
||||
|
||||
2021-04-17 Version: 1.36.686
|
||||
- Update RunMedQA.
|
||||
|
||||
2021-04-16 Version: 1.36.685
|
||||
- Support devops organization deletion.
|
||||
|
||||
|
||||
@@ -39,10 +39,16 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/CreateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertTemplateRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertTemplateResult.h
|
||||
include/alibabacloud/arms/model/CreateDispatchRuleRequest.h
|
||||
include/alibabacloud/arms/model/CreateDispatchRuleResult.h
|
||||
include/alibabacloud/arms/model/CreatePrometheusAlertRuleRequest.h
|
||||
include/alibabacloud/arms/model/CreatePrometheusAlertRuleResult.h
|
||||
include/alibabacloud/arms/model/CreateRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/CreateRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/CreateWebhookRequest.h
|
||||
include/alibabacloud/arms/model/CreateWebhookResult.h
|
||||
include/alibabacloud/arms/model/CreateWehookRequest.h
|
||||
include/alibabacloud/arms/model/CreateWehookResult.h
|
||||
include/alibabacloud/arms/model/DeleteAlertContactRequest.h
|
||||
@@ -51,8 +57,14 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/DeleteAlertTemplateRequest.h
|
||||
include/alibabacloud/arms/model/DeleteAlertTemplateResult.h
|
||||
include/alibabacloud/arms/model/DeleteDispatchRuleRequest.h
|
||||
include/alibabacloud/arms/model/DeleteDispatchRuleResult.h
|
||||
include/alibabacloud/arms/model/DeleteGrafanaResourceRequest.h
|
||||
include/alibabacloud/arms/model/DeleteGrafanaResourceResult.h
|
||||
include/alibabacloud/arms/model/DeletePrometheusAlertRuleRequest.h
|
||||
include/alibabacloud/arms/model/DeletePrometheusAlertRuleResult.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/DeleteScenarioRequest.h
|
||||
@@ -61,10 +73,16 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteTraceAppResult.h
|
||||
include/alibabacloud/arms/model/DescribeDispatchRuleRequest.h
|
||||
include/alibabacloud/arms/model/DescribeDispatchRuleResult.h
|
||||
include/alibabacloud/arms/model/DescribePrometheusAlertRuleRequest.h
|
||||
include/alibabacloud/arms/model/DescribePrometheusAlertRuleResult.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/DisableAlertTemplateRequest.h
|
||||
include/alibabacloud/arms/model/DisableAlertTemplateResult.h
|
||||
include/alibabacloud/arms/model/EnableAlertTemplateRequest.h
|
||||
include/alibabacloud/arms/model/EnableAlertTemplateResult.h
|
||||
include/alibabacloud/arms/model/ExportPrometheusRulesRequest.h
|
||||
include/alibabacloud/arms/model/ExportPrometheusRulesResult.h
|
||||
include/alibabacloud/arms/model/GetAgentDownloadUrlRequest.h
|
||||
@@ -93,6 +111,10 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ImportPrometheusRulesRequest.h
|
||||
include/alibabacloud/arms/model/ImportPrometheusRulesResult.h
|
||||
include/alibabacloud/arms/model/ListActivatedAlertsRequest.h
|
||||
include/alibabacloud/arms/model/ListActivatedAlertsResult.h
|
||||
include/alibabacloud/arms/model/ListAlertTemplatesRequest.h
|
||||
include/alibabacloud/arms/model/ListAlertTemplatesResult.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
||||
include/alibabacloud/arms/model/ListDashboardsRequest.h
|
||||
@@ -101,6 +123,10 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ListDispatchRuleResult.h
|
||||
include/alibabacloud/arms/model/ListPromClustersRequest.h
|
||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||
include/alibabacloud/arms/model/ListPrometheusAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/ListPrometheusAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ListPrometheusAlertTemplatesRequest.h
|
||||
include/alibabacloud/arms/model/ListPrometheusAlertTemplatesResult.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsResult.h
|
||||
include/alibabacloud/arms/model/ListScenarioRequest.h
|
||||
@@ -109,10 +135,16 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ListServerlessTopNAppsResult.h
|
||||
include/alibabacloud/arms/model/ListTraceAppsRequest.h
|
||||
include/alibabacloud/arms/model/ListTraceAppsResult.h
|
||||
include/alibabacloud/arms/model/OpenArmsDefaultSLRRequest.h
|
||||
include/alibabacloud/arms/model/OpenArmsDefaultSLRResult.h
|
||||
include/alibabacloud/arms/model/OpenArmsServiceRequest.h
|
||||
include/alibabacloud/arms/model/OpenArmsServiceResult.h
|
||||
include/alibabacloud/arms/model/OpenArmsServiceSecondVersionRequest.h
|
||||
include/alibabacloud/arms/model/OpenArmsServiceSecondVersionResult.h
|
||||
include/alibabacloud/arms/model/OpenVClusterRequest.h
|
||||
include/alibabacloud/arms/model/OpenVClusterResult.h
|
||||
include/alibabacloud/arms/model/OpenXtraceDefaultSLRRequest.h
|
||||
include/alibabacloud/arms/model/OpenXtraceDefaultSLRResult.h
|
||||
include/alibabacloud/arms/model/QueryDatasetRequest.h
|
||||
include/alibabacloud/arms/model/QueryDatasetResult.h
|
||||
include/alibabacloud/arms/model/QueryMetricRequest.h
|
||||
@@ -157,8 +189,12 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/UpdateAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/UpdateAlertRuleRequest.h
|
||||
include/alibabacloud/arms/model/UpdateAlertRuleResult.h
|
||||
include/alibabacloud/arms/model/UpdateAlertTemplateRequest.h
|
||||
include/alibabacloud/arms/model/UpdateAlertTemplateResult.h
|
||||
include/alibabacloud/arms/model/UpdateDispatchRuleRequest.h
|
||||
include/alibabacloud/arms/model/UpdateDispatchRuleResult.h
|
||||
include/alibabacloud/arms/model/UpdatePrometheusAlertRuleRequest.h
|
||||
include/alibabacloud/arms/model/UpdatePrometheusAlertRuleResult.h
|
||||
include/alibabacloud/arms/model/UpdateWebhookRequest.h
|
||||
include/alibabacloud/arms/model/UpdateWebhookResult.h )
|
||||
|
||||
@@ -182,10 +218,16 @@ set(arms_src
|
||||
src/model/CreateAlertContactResult.cc
|
||||
src/model/CreateAlertContactGroupRequest.cc
|
||||
src/model/CreateAlertContactGroupResult.cc
|
||||
src/model/CreateAlertTemplateRequest.cc
|
||||
src/model/CreateAlertTemplateResult.cc
|
||||
src/model/CreateDispatchRuleRequest.cc
|
||||
src/model/CreateDispatchRuleResult.cc
|
||||
src/model/CreatePrometheusAlertRuleRequest.cc
|
||||
src/model/CreatePrometheusAlertRuleResult.cc
|
||||
src/model/CreateRetcodeAppRequest.cc
|
||||
src/model/CreateRetcodeAppResult.cc
|
||||
src/model/CreateWebhookRequest.cc
|
||||
src/model/CreateWebhookResult.cc
|
||||
src/model/CreateWehookRequest.cc
|
||||
src/model/CreateWehookResult.cc
|
||||
src/model/DeleteAlertContactRequest.cc
|
||||
@@ -194,8 +236,14 @@ set(arms_src
|
||||
src/model/DeleteAlertContactGroupResult.cc
|
||||
src/model/DeleteAlertRulesRequest.cc
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteAlertTemplateRequest.cc
|
||||
src/model/DeleteAlertTemplateResult.cc
|
||||
src/model/DeleteDispatchRuleRequest.cc
|
||||
src/model/DeleteDispatchRuleResult.cc
|
||||
src/model/DeleteGrafanaResourceRequest.cc
|
||||
src/model/DeleteGrafanaResourceResult.cc
|
||||
src/model/DeletePrometheusAlertRuleRequest.cc
|
||||
src/model/DeletePrometheusAlertRuleResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/DeleteScenarioRequest.cc
|
||||
@@ -204,10 +252,16 @@ set(arms_src
|
||||
src/model/DeleteTraceAppResult.cc
|
||||
src/model/DescribeDispatchRuleRequest.cc
|
||||
src/model/DescribeDispatchRuleResult.cc
|
||||
src/model/DescribePrometheusAlertRuleRequest.cc
|
||||
src/model/DescribePrometheusAlertRuleResult.cc
|
||||
src/model/DescribeTraceLicenseKeyRequest.cc
|
||||
src/model/DescribeTraceLicenseKeyResult.cc
|
||||
src/model/DescribeTraceLocationRequest.cc
|
||||
src/model/DescribeTraceLocationResult.cc
|
||||
src/model/DisableAlertTemplateRequest.cc
|
||||
src/model/DisableAlertTemplateResult.cc
|
||||
src/model/EnableAlertTemplateRequest.cc
|
||||
src/model/EnableAlertTemplateResult.cc
|
||||
src/model/ExportPrometheusRulesRequest.cc
|
||||
src/model/ExportPrometheusRulesResult.cc
|
||||
src/model/GetAgentDownloadUrlRequest.cc
|
||||
@@ -236,6 +290,10 @@ set(arms_src
|
||||
src/model/ImportCustomAlertRulesResult.cc
|
||||
src/model/ImportPrometheusRulesRequest.cc
|
||||
src/model/ImportPrometheusRulesResult.cc
|
||||
src/model/ListActivatedAlertsRequest.cc
|
||||
src/model/ListActivatedAlertsResult.cc
|
||||
src/model/ListAlertTemplatesRequest.cc
|
||||
src/model/ListAlertTemplatesResult.cc
|
||||
src/model/ListClusterFromGrafanaRequest.cc
|
||||
src/model/ListClusterFromGrafanaResult.cc
|
||||
src/model/ListDashboardsRequest.cc
|
||||
@@ -244,6 +302,10 @@ set(arms_src
|
||||
src/model/ListDispatchRuleResult.cc
|
||||
src/model/ListPromClustersRequest.cc
|
||||
src/model/ListPromClustersResult.cc
|
||||
src/model/ListPrometheusAlertRulesRequest.cc
|
||||
src/model/ListPrometheusAlertRulesResult.cc
|
||||
src/model/ListPrometheusAlertTemplatesRequest.cc
|
||||
src/model/ListPrometheusAlertTemplatesResult.cc
|
||||
src/model/ListRetcodeAppsRequest.cc
|
||||
src/model/ListRetcodeAppsResult.cc
|
||||
src/model/ListScenarioRequest.cc
|
||||
@@ -252,10 +314,16 @@ set(arms_src
|
||||
src/model/ListServerlessTopNAppsResult.cc
|
||||
src/model/ListTraceAppsRequest.cc
|
||||
src/model/ListTraceAppsResult.cc
|
||||
src/model/OpenArmsDefaultSLRRequest.cc
|
||||
src/model/OpenArmsDefaultSLRResult.cc
|
||||
src/model/OpenArmsServiceRequest.cc
|
||||
src/model/OpenArmsServiceResult.cc
|
||||
src/model/OpenArmsServiceSecondVersionRequest.cc
|
||||
src/model/OpenArmsServiceSecondVersionResult.cc
|
||||
src/model/OpenVClusterRequest.cc
|
||||
src/model/OpenVClusterResult.cc
|
||||
src/model/OpenXtraceDefaultSLRRequest.cc
|
||||
src/model/OpenXtraceDefaultSLRResult.cc
|
||||
src/model/QueryDatasetRequest.cc
|
||||
src/model/QueryDatasetResult.cc
|
||||
src/model/QueryMetricRequest.cc
|
||||
@@ -300,8 +368,12 @@ set(arms_src
|
||||
src/model/UpdateAlertContactGroupResult.cc
|
||||
src/model/UpdateAlertRuleRequest.cc
|
||||
src/model/UpdateAlertRuleResult.cc
|
||||
src/model/UpdateAlertTemplateRequest.cc
|
||||
src/model/UpdateAlertTemplateResult.cc
|
||||
src/model/UpdateDispatchRuleRequest.cc
|
||||
src/model/UpdateDispatchRuleResult.cc
|
||||
src/model/UpdatePrometheusAlertRuleRequest.cc
|
||||
src/model/UpdatePrometheusAlertRuleResult.cc
|
||||
src/model/UpdateWebhookRequest.cc
|
||||
src/model/UpdateWebhookResult.cc )
|
||||
|
||||
|
||||
@@ -40,10 +40,16 @@
|
||||
#include "model/CreateAlertContactResult.h"
|
||||
#include "model/CreateAlertContactGroupRequest.h"
|
||||
#include "model/CreateAlertContactGroupResult.h"
|
||||
#include "model/CreateAlertTemplateRequest.h"
|
||||
#include "model/CreateAlertTemplateResult.h"
|
||||
#include "model/CreateDispatchRuleRequest.h"
|
||||
#include "model/CreateDispatchRuleResult.h"
|
||||
#include "model/CreatePrometheusAlertRuleRequest.h"
|
||||
#include "model/CreatePrometheusAlertRuleResult.h"
|
||||
#include "model/CreateRetcodeAppRequest.h"
|
||||
#include "model/CreateRetcodeAppResult.h"
|
||||
#include "model/CreateWebhookRequest.h"
|
||||
#include "model/CreateWebhookResult.h"
|
||||
#include "model/CreateWehookRequest.h"
|
||||
#include "model/CreateWehookResult.h"
|
||||
#include "model/DeleteAlertContactRequest.h"
|
||||
@@ -52,8 +58,14 @@
|
||||
#include "model/DeleteAlertContactGroupResult.h"
|
||||
#include "model/DeleteAlertRulesRequest.h"
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteAlertTemplateRequest.h"
|
||||
#include "model/DeleteAlertTemplateResult.h"
|
||||
#include "model/DeleteDispatchRuleRequest.h"
|
||||
#include "model/DeleteDispatchRuleResult.h"
|
||||
#include "model/DeleteGrafanaResourceRequest.h"
|
||||
#include "model/DeleteGrafanaResourceResult.h"
|
||||
#include "model/DeletePrometheusAlertRuleRequest.h"
|
||||
#include "model/DeletePrometheusAlertRuleResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/DeleteScenarioRequest.h"
|
||||
@@ -62,10 +74,16 @@
|
||||
#include "model/DeleteTraceAppResult.h"
|
||||
#include "model/DescribeDispatchRuleRequest.h"
|
||||
#include "model/DescribeDispatchRuleResult.h"
|
||||
#include "model/DescribePrometheusAlertRuleRequest.h"
|
||||
#include "model/DescribePrometheusAlertRuleResult.h"
|
||||
#include "model/DescribeTraceLicenseKeyRequest.h"
|
||||
#include "model/DescribeTraceLicenseKeyResult.h"
|
||||
#include "model/DescribeTraceLocationRequest.h"
|
||||
#include "model/DescribeTraceLocationResult.h"
|
||||
#include "model/DisableAlertTemplateRequest.h"
|
||||
#include "model/DisableAlertTemplateResult.h"
|
||||
#include "model/EnableAlertTemplateRequest.h"
|
||||
#include "model/EnableAlertTemplateResult.h"
|
||||
#include "model/ExportPrometheusRulesRequest.h"
|
||||
#include "model/ExportPrometheusRulesResult.h"
|
||||
#include "model/GetAgentDownloadUrlRequest.h"
|
||||
@@ -94,6 +112,10 @@
|
||||
#include "model/ImportCustomAlertRulesResult.h"
|
||||
#include "model/ImportPrometheusRulesRequest.h"
|
||||
#include "model/ImportPrometheusRulesResult.h"
|
||||
#include "model/ListActivatedAlertsRequest.h"
|
||||
#include "model/ListActivatedAlertsResult.h"
|
||||
#include "model/ListAlertTemplatesRequest.h"
|
||||
#include "model/ListAlertTemplatesResult.h"
|
||||
#include "model/ListClusterFromGrafanaRequest.h"
|
||||
#include "model/ListClusterFromGrafanaResult.h"
|
||||
#include "model/ListDashboardsRequest.h"
|
||||
@@ -102,6 +124,10 @@
|
||||
#include "model/ListDispatchRuleResult.h"
|
||||
#include "model/ListPromClustersRequest.h"
|
||||
#include "model/ListPromClustersResult.h"
|
||||
#include "model/ListPrometheusAlertRulesRequest.h"
|
||||
#include "model/ListPrometheusAlertRulesResult.h"
|
||||
#include "model/ListPrometheusAlertTemplatesRequest.h"
|
||||
#include "model/ListPrometheusAlertTemplatesResult.h"
|
||||
#include "model/ListRetcodeAppsRequest.h"
|
||||
#include "model/ListRetcodeAppsResult.h"
|
||||
#include "model/ListScenarioRequest.h"
|
||||
@@ -110,10 +136,16 @@
|
||||
#include "model/ListServerlessTopNAppsResult.h"
|
||||
#include "model/ListTraceAppsRequest.h"
|
||||
#include "model/ListTraceAppsResult.h"
|
||||
#include "model/OpenArmsDefaultSLRRequest.h"
|
||||
#include "model/OpenArmsDefaultSLRResult.h"
|
||||
#include "model/OpenArmsServiceRequest.h"
|
||||
#include "model/OpenArmsServiceResult.h"
|
||||
#include "model/OpenArmsServiceSecondVersionRequest.h"
|
||||
#include "model/OpenArmsServiceSecondVersionResult.h"
|
||||
#include "model/OpenVClusterRequest.h"
|
||||
#include "model/OpenVClusterResult.h"
|
||||
#include "model/OpenXtraceDefaultSLRRequest.h"
|
||||
#include "model/OpenXtraceDefaultSLRResult.h"
|
||||
#include "model/QueryDatasetRequest.h"
|
||||
#include "model/QueryDatasetResult.h"
|
||||
#include "model/QueryMetricRequest.h"
|
||||
@@ -158,8 +190,12 @@
|
||||
#include "model/UpdateAlertContactGroupResult.h"
|
||||
#include "model/UpdateAlertRuleRequest.h"
|
||||
#include "model/UpdateAlertRuleResult.h"
|
||||
#include "model/UpdateAlertTemplateRequest.h"
|
||||
#include "model/UpdateAlertTemplateResult.h"
|
||||
#include "model/UpdateDispatchRuleRequest.h"
|
||||
#include "model/UpdateDispatchRuleResult.h"
|
||||
#include "model/UpdatePrometheusAlertRuleRequest.h"
|
||||
#include "model/UpdatePrometheusAlertRuleResult.h"
|
||||
#include "model/UpdateWebhookRequest.h"
|
||||
#include "model/UpdateWebhookResult.h"
|
||||
|
||||
@@ -198,12 +234,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateAlertContactGroupResult> CreateAlertContactGroupOutcome;
|
||||
typedef std::future<CreateAlertContactGroupOutcome> CreateAlertContactGroupOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateAlertContactGroupRequest&, const CreateAlertContactGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlertContactGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAlertTemplateResult> CreateAlertTemplateOutcome;
|
||||
typedef std::future<CreateAlertTemplateOutcome> CreateAlertTemplateOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateAlertTemplateRequest&, const CreateAlertTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlertTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDispatchRuleResult> CreateDispatchRuleOutcome;
|
||||
typedef std::future<CreateDispatchRuleOutcome> CreateDispatchRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateDispatchRuleRequest&, const CreateDispatchRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDispatchRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePrometheusAlertRuleResult> CreatePrometheusAlertRuleOutcome;
|
||||
typedef std::future<CreatePrometheusAlertRuleOutcome> CreatePrometheusAlertRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreatePrometheusAlertRuleRequest&, const CreatePrometheusAlertRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePrometheusAlertRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRetcodeAppResult> CreateRetcodeAppOutcome;
|
||||
typedef std::future<CreateRetcodeAppOutcome> CreateRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateRetcodeAppRequest&, const CreateRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWebhookResult> CreateWebhookOutcome;
|
||||
typedef std::future<CreateWebhookOutcome> CreateWebhookOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateWebhookRequest&, const CreateWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWebhookAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWehookResult> CreateWehookOutcome;
|
||||
typedef std::future<CreateWehookOutcome> CreateWehookOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateWehookRequest&, const CreateWehookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWehookAsyncHandler;
|
||||
@@ -216,9 +261,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteAlertRulesResult> DeleteAlertRulesOutcome;
|
||||
typedef std::future<DeleteAlertRulesOutcome> DeleteAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteAlertRulesRequest&, const DeleteAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAlertTemplateResult> DeleteAlertTemplateOutcome;
|
||||
typedef std::future<DeleteAlertTemplateOutcome> DeleteAlertTemplateOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteAlertTemplateRequest&, const DeleteAlertTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAlertTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDispatchRuleResult> DeleteDispatchRuleOutcome;
|
||||
typedef std::future<DeleteDispatchRuleOutcome> DeleteDispatchRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteDispatchRuleRequest&, const DeleteDispatchRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDispatchRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteGrafanaResourceResult> DeleteGrafanaResourceOutcome;
|
||||
typedef std::future<DeleteGrafanaResourceOutcome> DeleteGrafanaResourceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteGrafanaResourceRequest&, const DeleteGrafanaResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteGrafanaResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePrometheusAlertRuleResult> DeletePrometheusAlertRuleOutcome;
|
||||
typedef std::future<DeletePrometheusAlertRuleOutcome> DeletePrometheusAlertRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeletePrometheusAlertRuleRequest&, const DeletePrometheusAlertRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePrometheusAlertRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||
@@ -231,12 +285,21 @@ namespace AlibabaCloud
|
||||
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::DescribePrometheusAlertRuleResult> DescribePrometheusAlertRuleOutcome;
|
||||
typedef std::future<DescribePrometheusAlertRuleOutcome> DescribePrometheusAlertRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribePrometheusAlertRuleRequest&, const DescribePrometheusAlertRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePrometheusAlertRuleAsyncHandler;
|
||||
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::DisableAlertTemplateResult> DisableAlertTemplateOutcome;
|
||||
typedef std::future<DisableAlertTemplateOutcome> DisableAlertTemplateOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DisableAlertTemplateRequest&, const DisableAlertTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableAlertTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableAlertTemplateResult> EnableAlertTemplateOutcome;
|
||||
typedef std::future<EnableAlertTemplateOutcome> EnableAlertTemplateOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::EnableAlertTemplateRequest&, const EnableAlertTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAlertTemplateAsyncHandler;
|
||||
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;
|
||||
@@ -279,6 +342,12 @@ namespace AlibabaCloud
|
||||
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::ListActivatedAlertsResult> ListActivatedAlertsOutcome;
|
||||
typedef std::future<ListActivatedAlertsOutcome> ListActivatedAlertsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListActivatedAlertsRequest&, const ListActivatedAlertsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListActivatedAlertsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAlertTemplatesResult> ListAlertTemplatesOutcome;
|
||||
typedef std::future<ListAlertTemplatesOutcome> ListAlertTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListAlertTemplatesRequest&, const ListAlertTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlertTemplatesAsyncHandler;
|
||||
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;
|
||||
@@ -291,6 +360,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListPromClustersResult> ListPromClustersOutcome;
|
||||
typedef std::future<ListPromClustersOutcome> ListPromClustersOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListPromClustersRequest&, const ListPromClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPromClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPrometheusAlertRulesResult> ListPrometheusAlertRulesOutcome;
|
||||
typedef std::future<ListPrometheusAlertRulesOutcome> ListPrometheusAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListPrometheusAlertRulesRequest&, const ListPrometheusAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrometheusAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPrometheusAlertTemplatesResult> ListPrometheusAlertTemplatesOutcome;
|
||||
typedef std::future<ListPrometheusAlertTemplatesOutcome> ListPrometheusAlertTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListPrometheusAlertTemplatesRequest&, const ListPrometheusAlertTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrometheusAlertTemplatesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRetcodeAppsResult> ListRetcodeAppsOutcome;
|
||||
typedef std::future<ListRetcodeAppsOutcome> ListRetcodeAppsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListRetcodeAppsRequest&, const ListRetcodeAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRetcodeAppsAsyncHandler;
|
||||
@@ -303,12 +378,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListTraceAppsResult> ListTraceAppsOutcome;
|
||||
typedef std::future<ListTraceAppsOutcome> ListTraceAppsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListTraceAppsRequest&, const ListTraceAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTraceAppsAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenArmsDefaultSLRResult> OpenArmsDefaultSLROutcome;
|
||||
typedef std::future<OpenArmsDefaultSLROutcome> OpenArmsDefaultSLROutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::OpenArmsDefaultSLRRequest&, const OpenArmsDefaultSLROutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenArmsDefaultSLRAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenArmsServiceResult> OpenArmsServiceOutcome;
|
||||
typedef std::future<OpenArmsServiceOutcome> OpenArmsServiceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::OpenArmsServiceRequest&, const OpenArmsServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenArmsServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenArmsServiceSecondVersionResult> OpenArmsServiceSecondVersionOutcome;
|
||||
typedef std::future<OpenArmsServiceSecondVersionOutcome> OpenArmsServiceSecondVersionOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::OpenArmsServiceSecondVersionRequest&, const OpenArmsServiceSecondVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenArmsServiceSecondVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenVClusterResult> OpenVClusterOutcome;
|
||||
typedef std::future<OpenVClusterOutcome> OpenVClusterOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::OpenVClusterRequest&, const OpenVClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenVClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenXtraceDefaultSLRResult> OpenXtraceDefaultSLROutcome;
|
||||
typedef std::future<OpenXtraceDefaultSLROutcome> OpenXtraceDefaultSLROutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::OpenXtraceDefaultSLRRequest&, const OpenXtraceDefaultSLROutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenXtraceDefaultSLRAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDatasetResult> QueryDatasetOutcome;
|
||||
typedef std::future<QueryDatasetOutcome> QueryDatasetOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::QueryDatasetRequest&, const QueryDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDatasetAsyncHandler;
|
||||
@@ -375,9 +459,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateAlertRuleResult> UpdateAlertRuleOutcome;
|
||||
typedef std::future<UpdateAlertRuleOutcome> UpdateAlertRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateAlertRuleRequest&, const UpdateAlertRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAlertRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAlertTemplateResult> UpdateAlertTemplateOutcome;
|
||||
typedef std::future<UpdateAlertTemplateOutcome> UpdateAlertTemplateOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateAlertTemplateRequest&, const UpdateAlertTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAlertTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDispatchRuleResult> UpdateDispatchRuleOutcome;
|
||||
typedef std::future<UpdateDispatchRuleOutcome> UpdateDispatchRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateDispatchRuleRequest&, const UpdateDispatchRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDispatchRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdatePrometheusAlertRuleResult> UpdatePrometheusAlertRuleOutcome;
|
||||
typedef std::future<UpdatePrometheusAlertRuleOutcome> UpdatePrometheusAlertRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdatePrometheusAlertRuleRequest&, const UpdatePrometheusAlertRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePrometheusAlertRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateWebhookResult> UpdateWebhookOutcome;
|
||||
typedef std::future<UpdateWebhookOutcome> UpdateWebhookOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateWebhookRequest&, const UpdateWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateWebhookAsyncHandler;
|
||||
@@ -413,12 +503,21 @@ namespace AlibabaCloud
|
||||
CreateAlertContactGroupOutcome createAlertContactGroup(const Model::CreateAlertContactGroupRequest &request)const;
|
||||
void createAlertContactGroupAsync(const Model::CreateAlertContactGroupRequest& request, const CreateAlertContactGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlertContactGroupOutcomeCallable createAlertContactGroupCallable(const Model::CreateAlertContactGroupRequest& request) const;
|
||||
CreateAlertTemplateOutcome createAlertTemplate(const Model::CreateAlertTemplateRequest &request)const;
|
||||
void createAlertTemplateAsync(const Model::CreateAlertTemplateRequest& request, const CreateAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlertTemplateOutcomeCallable createAlertTemplateCallable(const Model::CreateAlertTemplateRequest& request) const;
|
||||
CreateDispatchRuleOutcome createDispatchRule(const Model::CreateDispatchRuleRequest &request)const;
|
||||
void createDispatchRuleAsync(const Model::CreateDispatchRuleRequest& request, const CreateDispatchRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDispatchRuleOutcomeCallable createDispatchRuleCallable(const Model::CreateDispatchRuleRequest& request) const;
|
||||
CreatePrometheusAlertRuleOutcome createPrometheusAlertRule(const Model::CreatePrometheusAlertRuleRequest &request)const;
|
||||
void createPrometheusAlertRuleAsync(const Model::CreatePrometheusAlertRuleRequest& request, const CreatePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePrometheusAlertRuleOutcomeCallable createPrometheusAlertRuleCallable(const Model::CreatePrometheusAlertRuleRequest& request) const;
|
||||
CreateRetcodeAppOutcome createRetcodeApp(const Model::CreateRetcodeAppRequest &request)const;
|
||||
void createRetcodeAppAsync(const Model::CreateRetcodeAppRequest& request, const CreateRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRetcodeAppOutcomeCallable createRetcodeAppCallable(const Model::CreateRetcodeAppRequest& request) const;
|
||||
CreateWebhookOutcome createWebhook(const Model::CreateWebhookRequest &request)const;
|
||||
void createWebhookAsync(const Model::CreateWebhookRequest& request, const CreateWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWebhookOutcomeCallable createWebhookCallable(const Model::CreateWebhookRequest& request) const;
|
||||
CreateWehookOutcome createWehook(const Model::CreateWehookRequest &request)const;
|
||||
void createWehookAsync(const Model::CreateWehookRequest& request, const CreateWehookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWehookOutcomeCallable createWehookCallable(const Model::CreateWehookRequest& request) const;
|
||||
@@ -431,9 +530,18 @@ namespace AlibabaCloud
|
||||
DeleteAlertRulesOutcome deleteAlertRules(const Model::DeleteAlertRulesRequest &request)const;
|
||||
void deleteAlertRulesAsync(const Model::DeleteAlertRulesRequest& request, const DeleteAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAlertRulesOutcomeCallable deleteAlertRulesCallable(const Model::DeleteAlertRulesRequest& request) const;
|
||||
DeleteAlertTemplateOutcome deleteAlertTemplate(const Model::DeleteAlertTemplateRequest &request)const;
|
||||
void deleteAlertTemplateAsync(const Model::DeleteAlertTemplateRequest& request, const DeleteAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAlertTemplateOutcomeCallable deleteAlertTemplateCallable(const Model::DeleteAlertTemplateRequest& request) const;
|
||||
DeleteDispatchRuleOutcome deleteDispatchRule(const Model::DeleteDispatchRuleRequest &request)const;
|
||||
void deleteDispatchRuleAsync(const Model::DeleteDispatchRuleRequest& request, const DeleteDispatchRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDispatchRuleOutcomeCallable deleteDispatchRuleCallable(const Model::DeleteDispatchRuleRequest& request) const;
|
||||
DeleteGrafanaResourceOutcome deleteGrafanaResource(const Model::DeleteGrafanaResourceRequest &request)const;
|
||||
void deleteGrafanaResourceAsync(const Model::DeleteGrafanaResourceRequest& request, const DeleteGrafanaResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteGrafanaResourceOutcomeCallable deleteGrafanaResourceCallable(const Model::DeleteGrafanaResourceRequest& request) const;
|
||||
DeletePrometheusAlertRuleOutcome deletePrometheusAlertRule(const Model::DeletePrometheusAlertRuleRequest &request)const;
|
||||
void deletePrometheusAlertRuleAsync(const Model::DeletePrometheusAlertRuleRequest& request, const DeletePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePrometheusAlertRuleOutcomeCallable deletePrometheusAlertRuleCallable(const Model::DeletePrometheusAlertRuleRequest& request) const;
|
||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||
@@ -446,12 +554,21 @@ namespace AlibabaCloud
|
||||
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;
|
||||
DescribePrometheusAlertRuleOutcome describePrometheusAlertRule(const Model::DescribePrometheusAlertRuleRequest &request)const;
|
||||
void describePrometheusAlertRuleAsync(const Model::DescribePrometheusAlertRuleRequest& request, const DescribePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePrometheusAlertRuleOutcomeCallable describePrometheusAlertRuleCallable(const Model::DescribePrometheusAlertRuleRequest& 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;
|
||||
DisableAlertTemplateOutcome disableAlertTemplate(const Model::DisableAlertTemplateRequest &request)const;
|
||||
void disableAlertTemplateAsync(const Model::DisableAlertTemplateRequest& request, const DisableAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableAlertTemplateOutcomeCallable disableAlertTemplateCallable(const Model::DisableAlertTemplateRequest& request) const;
|
||||
EnableAlertTemplateOutcome enableAlertTemplate(const Model::EnableAlertTemplateRequest &request)const;
|
||||
void enableAlertTemplateAsync(const Model::EnableAlertTemplateRequest& request, const EnableAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableAlertTemplateOutcomeCallable enableAlertTemplateCallable(const Model::EnableAlertTemplateRequest& 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;
|
||||
@@ -494,6 +611,12 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ListActivatedAlertsOutcome listActivatedAlerts(const Model::ListActivatedAlertsRequest &request)const;
|
||||
void listActivatedAlertsAsync(const Model::ListActivatedAlertsRequest& request, const ListActivatedAlertsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListActivatedAlertsOutcomeCallable listActivatedAlertsCallable(const Model::ListActivatedAlertsRequest& request) const;
|
||||
ListAlertTemplatesOutcome listAlertTemplates(const Model::ListAlertTemplatesRequest &request)const;
|
||||
void listAlertTemplatesAsync(const Model::ListAlertTemplatesRequest& request, const ListAlertTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAlertTemplatesOutcomeCallable listAlertTemplatesCallable(const Model::ListAlertTemplatesRequest& 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;
|
||||
@@ -506,6 +629,12 @@ namespace AlibabaCloud
|
||||
ListPromClustersOutcome listPromClusters(const Model::ListPromClustersRequest &request)const;
|
||||
void listPromClustersAsync(const Model::ListPromClustersRequest& request, const ListPromClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPromClustersOutcomeCallable listPromClustersCallable(const Model::ListPromClustersRequest& request) const;
|
||||
ListPrometheusAlertRulesOutcome listPrometheusAlertRules(const Model::ListPrometheusAlertRulesRequest &request)const;
|
||||
void listPrometheusAlertRulesAsync(const Model::ListPrometheusAlertRulesRequest& request, const ListPrometheusAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPrometheusAlertRulesOutcomeCallable listPrometheusAlertRulesCallable(const Model::ListPrometheusAlertRulesRequest& request) const;
|
||||
ListPrometheusAlertTemplatesOutcome listPrometheusAlertTemplates(const Model::ListPrometheusAlertTemplatesRequest &request)const;
|
||||
void listPrometheusAlertTemplatesAsync(const Model::ListPrometheusAlertTemplatesRequest& request, const ListPrometheusAlertTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPrometheusAlertTemplatesOutcomeCallable listPrometheusAlertTemplatesCallable(const Model::ListPrometheusAlertTemplatesRequest& request) const;
|
||||
ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const;
|
||||
void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRetcodeAppsOutcomeCallable listRetcodeAppsCallable(const Model::ListRetcodeAppsRequest& request) const;
|
||||
@@ -518,12 +647,21 @@ namespace AlibabaCloud
|
||||
ListTraceAppsOutcome listTraceApps(const Model::ListTraceAppsRequest &request)const;
|
||||
void listTraceAppsAsync(const Model::ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTraceAppsOutcomeCallable listTraceAppsCallable(const Model::ListTraceAppsRequest& request) const;
|
||||
OpenArmsDefaultSLROutcome openArmsDefaultSLR(const Model::OpenArmsDefaultSLRRequest &request)const;
|
||||
void openArmsDefaultSLRAsync(const Model::OpenArmsDefaultSLRRequest& request, const OpenArmsDefaultSLRAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenArmsDefaultSLROutcomeCallable openArmsDefaultSLRCallable(const Model::OpenArmsDefaultSLRRequest& request) const;
|
||||
OpenArmsServiceOutcome openArmsService(const Model::OpenArmsServiceRequest &request)const;
|
||||
void openArmsServiceAsync(const Model::OpenArmsServiceRequest& request, const OpenArmsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenArmsServiceOutcomeCallable openArmsServiceCallable(const Model::OpenArmsServiceRequest& request) const;
|
||||
OpenArmsServiceSecondVersionOutcome openArmsServiceSecondVersion(const Model::OpenArmsServiceSecondVersionRequest &request)const;
|
||||
void openArmsServiceSecondVersionAsync(const Model::OpenArmsServiceSecondVersionRequest& request, const OpenArmsServiceSecondVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenArmsServiceSecondVersionOutcomeCallable openArmsServiceSecondVersionCallable(const Model::OpenArmsServiceSecondVersionRequest& request) const;
|
||||
OpenVClusterOutcome openVCluster(const Model::OpenVClusterRequest &request)const;
|
||||
void openVClusterAsync(const Model::OpenVClusterRequest& request, const OpenVClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenVClusterOutcomeCallable openVClusterCallable(const Model::OpenVClusterRequest& request) const;
|
||||
OpenXtraceDefaultSLROutcome openXtraceDefaultSLR(const Model::OpenXtraceDefaultSLRRequest &request)const;
|
||||
void openXtraceDefaultSLRAsync(const Model::OpenXtraceDefaultSLRRequest& request, const OpenXtraceDefaultSLRAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenXtraceDefaultSLROutcomeCallable openXtraceDefaultSLRCallable(const Model::OpenXtraceDefaultSLRRequest& request) const;
|
||||
QueryDatasetOutcome queryDataset(const Model::QueryDatasetRequest &request)const;
|
||||
void queryDatasetAsync(const Model::QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDatasetOutcomeCallable queryDatasetCallable(const Model::QueryDatasetRequest& request) const;
|
||||
@@ -590,9 +728,15 @@ namespace AlibabaCloud
|
||||
UpdateAlertRuleOutcome updateAlertRule(const Model::UpdateAlertRuleRequest &request)const;
|
||||
void updateAlertRuleAsync(const Model::UpdateAlertRuleRequest& request, const UpdateAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAlertRuleOutcomeCallable updateAlertRuleCallable(const Model::UpdateAlertRuleRequest& request) const;
|
||||
UpdateAlertTemplateOutcome updateAlertTemplate(const Model::UpdateAlertTemplateRequest &request)const;
|
||||
void updateAlertTemplateAsync(const Model::UpdateAlertTemplateRequest& request, const UpdateAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAlertTemplateOutcomeCallable updateAlertTemplateCallable(const Model::UpdateAlertTemplateRequest& request) const;
|
||||
UpdateDispatchRuleOutcome updateDispatchRule(const Model::UpdateDispatchRuleRequest &request)const;
|
||||
void updateDispatchRuleAsync(const Model::UpdateDispatchRuleRequest& request, const UpdateDispatchRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDispatchRuleOutcomeCallable updateDispatchRuleCallable(const Model::UpdateDispatchRuleRequest& request) const;
|
||||
UpdatePrometheusAlertRuleOutcome updatePrometheusAlertRule(const Model::UpdatePrometheusAlertRuleRequest &request)const;
|
||||
void updatePrometheusAlertRuleAsync(const Model::UpdatePrometheusAlertRuleRequest& request, const UpdatePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdatePrometheusAlertRuleOutcomeCallable updatePrometheusAlertRuleCallable(const Model::UpdatePrometheusAlertRuleRequest& request) const;
|
||||
UpdateWebhookOutcome updateWebhook(const Model::UpdateWebhookRequest &request)const;
|
||||
void updateWebhookAsync(const Model::UpdateWebhookRequest& request, const UpdateWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateWebhookOutcomeCallable updateWebhookCallable(const Model::UpdateWebhookRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_CREATEALERTTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATEREQUEST_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 CreateAlertTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAlertTemplateRequest();
|
||||
~CreateAlertTemplateRequest();
|
||||
|
||||
std::string getTemplateProvider()const;
|
||||
void setTemplateProvider(const std::string& templateProvider);
|
||||
std::string getAnnotations()const;
|
||||
void setAnnotations(const std::string& annotations);
|
||||
std::string getRule()const;
|
||||
void setRule(const std::string& rule);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getMessage()const;
|
||||
void setMessage(const std::string& message);
|
||||
std::string getParentId()const;
|
||||
void setParentId(const std::string& parentId);
|
||||
std::string getLabels()const;
|
||||
void setLabels(const std::string& labels);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getMatchExpressions()const;
|
||||
void setMatchExpressions(const std::string& matchExpressions);
|
||||
|
||||
private:
|
||||
std::string templateProvider_;
|
||||
std::string annotations_;
|
||||
std::string rule_;
|
||||
std::string proxyUserId_;
|
||||
std::string type_;
|
||||
std::string message_;
|
||||
std::string parentId_;
|
||||
std::string labels_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string matchExpressions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATEREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATERESULT_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 CreateAlertTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AlertTemplate
|
||||
{
|
||||
struct LabelMatchExpressionGrid
|
||||
{
|
||||
struct LabelMatchExpressionGroup
|
||||
{
|
||||
struct LabelMatchExpression
|
||||
{
|
||||
std::string value;
|
||||
std::string _operator;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<LabelMatchExpressionGroup::LabelMatchExpression> labelMatchExpressions;
|
||||
};
|
||||
std::vector<LabelMatchExpressionGroup> labelMatchExpressionGroups;
|
||||
};
|
||||
int parentId;
|
||||
bool status;
|
||||
std::string message;
|
||||
std::string templateProvider;
|
||||
LabelMatchExpressionGrid labelMatchExpressionGrid;
|
||||
std::string labels;
|
||||
std::string alertProvider;
|
||||
std::string name;
|
||||
std::string type;
|
||||
std::string annotations;
|
||||
std::string userId;
|
||||
bool _public;
|
||||
int id;
|
||||
std::string rule;
|
||||
};
|
||||
|
||||
|
||||
CreateAlertTemplateResult();
|
||||
explicit CreateAlertTemplateResult(const std::string &payload);
|
||||
~CreateAlertTemplateResult();
|
||||
AlertTemplate getAlertTemplate()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
AlertTemplate alertTemplate_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEPROMETHEUSALERTRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEPROMETHEUSALERTRULEREQUEST_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 CreatePrometheusAlertRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreatePrometheusAlertRuleRequest();
|
||||
~CreatePrometheusAlertRuleRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getExpression()const;
|
||||
void setExpression(const std::string& expression);
|
||||
std::string getAlertName()const;
|
||||
void setAlertName(const std::string& alertName);
|
||||
std::string getAnnotations()const;
|
||||
void setAnnotations(const std::string& annotations);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
long getDispatchRuleId()const;
|
||||
void setDispatchRuleId(long dispatchRuleId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getMessage()const;
|
||||
void setMessage(const std::string& message);
|
||||
std::string getLabels()const;
|
||||
void setLabels(const std::string& labels);
|
||||
std::string getDuration()const;
|
||||
void setDuration(const std::string& duration);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNotifyType()const;
|
||||
void setNotifyType(const std::string& notifyType);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string expression_;
|
||||
std::string alertName_;
|
||||
std::string annotations_;
|
||||
std::string clusterId_;
|
||||
long dispatchRuleId_;
|
||||
std::string proxyUserId_;
|
||||
std::string type_;
|
||||
std::string message_;
|
||||
std::string labels_;
|
||||
std::string duration_;
|
||||
std::string regionId_;
|
||||
std::string notifyType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEPROMETHEUSALERTRULEREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEPROMETHEUSALERTRULERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEPROMETHEUSALERTRULERESULT_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 CreatePrometheusAlertRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PrometheusAlertRule
|
||||
{
|
||||
struct Label
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
struct Annotation
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
int status;
|
||||
std::string notifyType;
|
||||
long alertId;
|
||||
std::string type;
|
||||
std::vector<Annotation> annotations;
|
||||
std::string alertName;
|
||||
std::string message;
|
||||
std::string expression;
|
||||
std::string clusterId;
|
||||
long dispatchRuleId;
|
||||
std::vector<Label> labels;
|
||||
std::string duration;
|
||||
};
|
||||
|
||||
|
||||
CreatePrometheusAlertRuleResult();
|
||||
explicit CreatePrometheusAlertRuleResult(const std::string &payload);
|
||||
~CreatePrometheusAlertRuleResult();
|
||||
PrometheusAlertRule getPrometheusAlertRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PrometheusAlertRule prometheusAlertRule_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEPROMETHEUSALERTRULERESULT_H_
|
||||
69
arms/include/alibabacloud/arms/model/CreateWebhookRequest.h
Normal file
69
arms/include/alibabacloud/arms/model/CreateWebhookRequest.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_CREATEWEBHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEWEBHOOKREQUEST_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 CreateWebhookRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateWebhookRequest();
|
||||
~CreateWebhookRequest();
|
||||
|
||||
std::string getHttpHeaders()const;
|
||||
void setHttpHeaders(const std::string& httpHeaders);
|
||||
std::string getMethod()const;
|
||||
void setMethod(const std::string& method);
|
||||
std::string getHttpParams()const;
|
||||
void setHttpParams(const std::string& httpParams);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getBody()const;
|
||||
void setBody(const std::string& body);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string httpHeaders_;
|
||||
std::string method_;
|
||||
std::string httpParams_;
|
||||
std::string proxyUserId_;
|
||||
std::string body_;
|
||||
std::string url_;
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEWEBHOOKREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/CreateWebhookResult.h
Normal file
51
arms/include/alibabacloud/arms/model/CreateWebhookResult.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_CREATEWEBHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEWEBHOOKRESULT_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 CreateWebhookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateWebhookResult();
|
||||
explicit CreateWebhookResult(const std::string &payload);
|
||||
~CreateWebhookResult();
|
||||
std::string getContactId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string contactId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEWEBHOOKRESULT_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_DELETEALERTTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTTEMPLATEREQUEST_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 DeleteAlertTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteAlertTemplateRequest();
|
||||
~DeleteAlertTemplateRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getId()const;
|
||||
void setId(long id);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long id_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTTEMPLATEREQUEST_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_DELETEALERTTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTTEMPLATERESULT_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 DeleteAlertTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteAlertTemplateResult();
|
||||
explicit DeleteAlertTemplateResult(const std::string &payload);
|
||||
~DeleteAlertTemplateResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTTEMPLATERESULT_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_DELETEGRAFANARESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEGRAFANARESOURCEREQUEST_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 DeleteGrafanaResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteGrafanaResourceRequest();
|
||||
~DeleteGrafanaResourceRequest();
|
||||
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string clusterName_;
|
||||
std::string clusterId_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEGRAFANARESOURCEREQUEST_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_DELETEGRAFANARESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEGRAFANARESOURCERESULT_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 DeleteGrafanaResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteGrafanaResourceResult();
|
||||
explicit DeleteGrafanaResourceResult(const std::string &payload);
|
||||
~DeleteGrafanaResourceResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEGRAFANARESOURCERESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETEPROMETHEUSALERTRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEPROMETHEUSALERTRULEREQUEST_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 DeletePrometheusAlertRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeletePrometheusAlertRuleRequest();
|
||||
~DeletePrometheusAlertRuleRequest();
|
||||
|
||||
long getAlertId()const;
|
||||
void setAlertId(long alertId);
|
||||
|
||||
private:
|
||||
long alertId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEPROMETHEUSALERTRULEREQUEST_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_DELETEPROMETHEUSALERTRULERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEPROMETHEUSALERTRULERESULT_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 DeletePrometheusAlertRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeletePrometheusAlertRuleResult();
|
||||
explicit DeletePrometheusAlertRuleResult(const std::string &payload);
|
||||
~DeletePrometheusAlertRuleResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEPROMETHEUSALERTRULERESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBEPROMETHEUSALERTRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBEPROMETHEUSALERTRULEREQUEST_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 DescribePrometheusAlertRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribePrometheusAlertRuleRequest();
|
||||
~DescribePrometheusAlertRuleRequest();
|
||||
|
||||
long getAlertId()const;
|
||||
void setAlertId(long alertId);
|
||||
|
||||
private:
|
||||
long alertId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBEPROMETHEUSALERTRULEREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBEPROMETHEUSALERTRULERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBEPROMETHEUSALERTRULERESULT_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 DescribePrometheusAlertRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PrometheusAlertRule
|
||||
{
|
||||
struct Label
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
struct Annotation
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
int status;
|
||||
std::string notifyType;
|
||||
long alertId;
|
||||
std::string type;
|
||||
std::vector<Annotation> annotations;
|
||||
std::string alertName;
|
||||
std::string message;
|
||||
std::string expression;
|
||||
std::string clusterId;
|
||||
long dispatchRuleId;
|
||||
std::vector<Label> labels;
|
||||
std::string duration;
|
||||
};
|
||||
|
||||
|
||||
DescribePrometheusAlertRuleResult();
|
||||
explicit DescribePrometheusAlertRuleResult(const std::string &payload);
|
||||
~DescribePrometheusAlertRuleResult();
|
||||
PrometheusAlertRule getPrometheusAlertRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PrometheusAlertRule prometheusAlertRule_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBEPROMETHEUSALERTRULERESULT_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_DISABLEALERTTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DISABLEALERTTEMPLATEREQUEST_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 DisableAlertTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DisableAlertTemplateRequest();
|
||||
~DisableAlertTemplateRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getId()const;
|
||||
void setId(long id);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long id_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DISABLEALERTTEMPLATEREQUEST_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_DISABLEALERTTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DISABLEALERTTEMPLATERESULT_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 DisableAlertTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DisableAlertTemplateResult();
|
||||
explicit DisableAlertTemplateResult(const std::string &payload);
|
||||
~DisableAlertTemplateResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DISABLEALERTTEMPLATERESULT_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_ENABLEALERTTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ENABLEALERTTEMPLATEREQUEST_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 EnableAlertTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableAlertTemplateRequest();
|
||||
~EnableAlertTemplateRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getId()const;
|
||||
void setId(long id);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long id_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ENABLEALERTTEMPLATEREQUEST_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_ENABLEALERTTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ENABLEALERTTEMPLATERESULT_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 EnableAlertTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableAlertTemplateResult();
|
||||
explicit EnableAlertTemplateResult(const std::string &payload);
|
||||
~EnableAlertTemplateResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ENABLEALERTTEMPLATERESULT_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_LISTACTIVATEDALERTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTACTIVATEDALERTSREQUEST_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 ListActivatedAlertsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListActivatedAlertsRequest();
|
||||
~ListActivatedAlertsRequest();
|
||||
|
||||
std::string getFilter()const;
|
||||
void setFilter(const std::string& filter);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string filter_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTACTIVATEDALERTSREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTACTIVATEDALERTSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTACTIVATEDALERTSRESULT_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 ListActivatedAlertsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Page
|
||||
{
|
||||
struct Alert
|
||||
{
|
||||
struct DispatchRule
|
||||
{
|
||||
int ruleId;
|
||||
std::string ruleName;
|
||||
};
|
||||
std::string status;
|
||||
std::string alertName;
|
||||
std::string message;
|
||||
std::string involvedObjectKind;
|
||||
std::vector<Alert::DispatchRule> dispatchRules;
|
||||
long createTime;
|
||||
std::string severity;
|
||||
int count;
|
||||
std::string expandFields;
|
||||
std::string involvedObjectName;
|
||||
long endsAt;
|
||||
std::string alertType;
|
||||
std::string alertId;
|
||||
std::string integrationName;
|
||||
long startsAt;
|
||||
std::string integrationType;
|
||||
};
|
||||
int pageSize;
|
||||
int total;
|
||||
int page;
|
||||
std::vector<Alert> alerts;
|
||||
};
|
||||
|
||||
|
||||
ListActivatedAlertsResult();
|
||||
explicit ListActivatedAlertsResult(const std::string &payload);
|
||||
~ListActivatedAlertsResult();
|
||||
Page getPage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Page page_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTACTIVATEDALERTSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_LISTALERTTEMPLATESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTALERTTEMPLATESREQUEST_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 ListAlertTemplatesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListAlertTemplatesRequest();
|
||||
~ListAlertTemplatesRequest();
|
||||
|
||||
std::string getAlertProvider()const;
|
||||
void setAlertProvider(const std::string& alertProvider);
|
||||
std::string getTemplateProvider()const;
|
||||
void setTemplateProvider(const std::string& templateProvider);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getLabels()const;
|
||||
void setLabels(const std::string& labels);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
bool getStatus()const;
|
||||
void setStatus(bool status);
|
||||
|
||||
private:
|
||||
std::string alertProvider_;
|
||||
std::string templateProvider_;
|
||||
std::string proxyUserId_;
|
||||
std::string type_;
|
||||
std::string labels_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
bool status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTALERTTEMPLATESREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTALERTTEMPLATESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTALERTTEMPLATESRESULT_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 ListAlertTemplatesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AlertTemplate
|
||||
{
|
||||
struct LabelMatchExpressionGrid
|
||||
{
|
||||
struct LabelMatchExpressionGroup
|
||||
{
|
||||
struct LabelMatchExpression
|
||||
{
|
||||
std::string value;
|
||||
std::string _operator;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<LabelMatchExpressionGroup::LabelMatchExpression> labelMatchExpressions;
|
||||
};
|
||||
std::vector<LabelMatchExpressionGroup> labelMatchExpressionGroups;
|
||||
};
|
||||
int parentId;
|
||||
bool status;
|
||||
std::string message;
|
||||
std::string templateProvider;
|
||||
LabelMatchExpressionGrid labelMatchExpressionGrid;
|
||||
std::string labels;
|
||||
std::string alertProvider;
|
||||
std::string name;
|
||||
std::string type;
|
||||
std::string annotations;
|
||||
std::string userId;
|
||||
bool _public;
|
||||
int id;
|
||||
std::string rule;
|
||||
};
|
||||
|
||||
|
||||
ListAlertTemplatesResult();
|
||||
explicit ListAlertTemplatesResult(const std::string &payload);
|
||||
~ListAlertTemplatesResult();
|
||||
std::vector<AlertTemplate> getAlertTemplates()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AlertTemplate> alertTemplates_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTALERTTEMPLATESRESULT_H_
|
||||
@@ -35,20 +35,29 @@ namespace AlibabaCloud
|
||||
ListDashboardsRequest();
|
||||
~ListDashboardsRequest();
|
||||
|
||||
std::string getClusterType()const;
|
||||
void setClusterType(const std::string& clusterType);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDashboardName()const;
|
||||
void setDashboardName(const std::string& dashboardName);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
bool getRecreateSwitch()const;
|
||||
void setRecreateSwitch(bool recreateSwitch);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getClusterType()const;
|
||||
void setClusterType(const std::string& clusterType);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string clusterType_;
|
||||
std::string regionId_;
|
||||
std::string dashboardName_;
|
||||
std::string product_;
|
||||
bool recreateSwitch_;
|
||||
std::string clusterId_;
|
||||
std::string title_;
|
||||
std::string clusterType_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,13 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct DashboardVosItem
|
||||
{
|
||||
std::string uid;
|
||||
std::string type;
|
||||
std::string title;
|
||||
std::string time;
|
||||
std::string id;
|
||||
std::string exporter;
|
||||
std::string url;
|
||||
std::string name;
|
||||
std::string uid;
|
||||
std::string type;
|
||||
bool needUpdate;
|
||||
std::string version;
|
||||
std::string kind;
|
||||
std::string id;
|
||||
std::string dashboardType;
|
||||
std::vector<std::string> tags;
|
||||
bool isArmsExporter;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_LISTPROMETHEUSALERTRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTRULESREQUEST_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 ListPrometheusAlertRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPrometheusAlertRulesRequest();
|
||||
~ListPrometheusAlertRulesRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getMatchExpressions()const;
|
||||
void setMatchExpressions(const std::string& matchExpressions);
|
||||
int getStatus()const;
|
||||
void setStatus(int status);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string proxyUserId_;
|
||||
std::string type_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string matchExpressions_;
|
||||
int status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTRULESREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTRULESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTRULESRESULT_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 ListPrometheusAlertRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PrometheusAlertRule
|
||||
{
|
||||
struct Label
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
struct Annotation
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
int status;
|
||||
std::string notifyType;
|
||||
long alertId;
|
||||
std::string type;
|
||||
std::vector<PrometheusAlertRule::Annotation> annotations;
|
||||
std::string alertName;
|
||||
std::string message;
|
||||
std::string expression;
|
||||
std::string clusterId;
|
||||
long dispatchRuleId;
|
||||
std::vector<PrometheusAlertRule::Label> labels;
|
||||
std::string duration;
|
||||
};
|
||||
|
||||
|
||||
ListPrometheusAlertRulesResult();
|
||||
explicit ListPrometheusAlertRulesResult(const std::string &payload);
|
||||
~ListPrometheusAlertRulesResult();
|
||||
std::vector<PrometheusAlertRule> getPrometheusAlertRules()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PrometheusAlertRule> prometheusAlertRules_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTRULESRESULT_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_LISTPROMETHEUSALERTTEMPLATESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTTEMPLATESREQUEST_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 ListPrometheusAlertTemplatesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPrometheusAlertTemplatesRequest();
|
||||
~ListPrometheusAlertTemplatesRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string regionId_;
|
||||
std::string clusterId_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTTEMPLATESREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTTEMPLATESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTTEMPLATESRESULT_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 ListPrometheusAlertTemplatesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PrometheusAlertTemplate
|
||||
{
|
||||
struct Label
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
struct Annotation
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
std::string type;
|
||||
std::vector<PrometheusAlertTemplate::Annotation> annotations;
|
||||
std::string alertName;
|
||||
std::string description;
|
||||
std::string expression;
|
||||
std::string version;
|
||||
std::vector<PrometheusAlertTemplate::Label> labels;
|
||||
std::string duration;
|
||||
};
|
||||
|
||||
|
||||
ListPrometheusAlertTemplatesResult();
|
||||
explicit ListPrometheusAlertTemplatesResult(const std::string &payload);
|
||||
~ListPrometheusAlertTemplatesResult();
|
||||
std::vector<PrometheusAlertTemplate> getPrometheusAlertTemplates()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PrometheusAlertTemplate> prometheusAlertTemplates_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTPROMETHEUSALERTTEMPLATESRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_OPENARMSDEFAULTSLRREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSDEFAULTSLRREQUEST_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 OpenArmsDefaultSLRRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OpenArmsDefaultSLRRequest();
|
||||
~OpenArmsDefaultSLRRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSDEFAULTSLRREQUEST_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_OPENARMSDEFAULTSLRRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSDEFAULTSLRRESULT_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 OpenArmsDefaultSLRResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenArmsDefaultSLRResult();
|
||||
explicit OpenArmsDefaultSLRResult(const std::string &payload);
|
||||
~OpenArmsDefaultSLRResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSDEFAULTSLRRESULT_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_OPENARMSSERVICESECONDVERSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICESECONDVERSIONREQUEST_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 OpenArmsServiceSecondVersionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OpenArmsServiceSecondVersionRequest();
|
||||
~OpenArmsServiceSecondVersionRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICESECONDVERSIONREQUEST_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_OPENARMSSERVICESECONDVERSIONRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICESECONDVERSIONRESULT_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 OpenArmsServiceSecondVersionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenArmsServiceSecondVersionResult();
|
||||
explicit OpenArmsServiceSecondVersionResult(const std::string &payload);
|
||||
~OpenArmsServiceSecondVersionResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICESECONDVERSIONRESULT_H_
|
||||
@@ -37,6 +37,10 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getClusterType()const;
|
||||
void setClusterType(const std::string& clusterType);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
bool getRecreateSwitch()const;
|
||||
void setRecreateSwitch(bool recreateSwitch);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getLength()const;
|
||||
@@ -44,6 +48,8 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string clusterType_;
|
||||
std::string product_;
|
||||
bool recreateSwitch_;
|
||||
std::string regionId_;
|
||||
int length_;
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_OPENXTRACEDEFAULTSLRREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENXTRACEDEFAULTSLRREQUEST_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 OpenXtraceDefaultSLRRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OpenXtraceDefaultSLRRequest();
|
||||
~OpenXtraceDefaultSLRRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENXTRACEDEFAULTSLRREQUEST_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_OPENXTRACEDEFAULTSLRRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENXTRACEDEFAULTSLRRESULT_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 OpenXtraceDefaultSLRResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenXtraceDefaultSLRResult();
|
||||
explicit OpenXtraceDefaultSLRResult(const std::string &payload);
|
||||
~OpenXtraceDefaultSLRResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENXTRACEDEFAULTSLRRESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_UPDATEALERTTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTTEMPLATEREQUEST_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 UpdateAlertTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateAlertTemplateRequest();
|
||||
~UpdateAlertTemplateRequest();
|
||||
|
||||
std::string getAnnotations()const;
|
||||
void setAnnotations(const std::string& annotations);
|
||||
std::string getRule()const;
|
||||
void setRule(const std::string& rule);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getMessage()const;
|
||||
void setMessage(const std::string& message);
|
||||
std::string getLabels()const;
|
||||
void setLabels(const std::string& labels);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
long getId()const;
|
||||
void setId(long id);
|
||||
std::string getMatchExpressions()const;
|
||||
void setMatchExpressions(const std::string& matchExpressions);
|
||||
bool getStatus()const;
|
||||
void setStatus(bool status);
|
||||
|
||||
private:
|
||||
std::string annotations_;
|
||||
std::string rule_;
|
||||
std::string proxyUserId_;
|
||||
std::string type_;
|
||||
std::string message_;
|
||||
std::string labels_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
long id_;
|
||||
std::string matchExpressions_;
|
||||
bool status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTTEMPLATEREQUEST_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_UPDATEALERTTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTTEMPLATERESULT_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 UpdateAlertTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateAlertTemplateResult();
|
||||
explicit UpdateAlertTemplateResult(const std::string &payload);
|
||||
~UpdateAlertTemplateResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTTEMPLATERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_UPDATEPROMETHEUSALERTRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEPROMETHEUSALERTRULEREQUEST_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 UpdatePrometheusAlertRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdatePrometheusAlertRuleRequest();
|
||||
~UpdatePrometheusAlertRuleRequest();
|
||||
|
||||
std::string getExpression()const;
|
||||
void setExpression(const std::string& expression);
|
||||
std::string getAlertName()const;
|
||||
void setAlertName(const std::string& alertName);
|
||||
std::string getAnnotations()const;
|
||||
void setAnnotations(const std::string& annotations);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
long getDispatchRuleId()const;
|
||||
void setDispatchRuleId(long dispatchRuleId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getMessage()const;
|
||||
void setMessage(const std::string& message);
|
||||
std::string getLabels()const;
|
||||
void setLabels(const std::string& labels);
|
||||
std::string getDuration()const;
|
||||
void setDuration(const std::string& duration);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getAlertId()const;
|
||||
void setAlertId(long alertId);
|
||||
std::string getNotifyType()const;
|
||||
void setNotifyType(const std::string& notifyType);
|
||||
|
||||
private:
|
||||
std::string expression_;
|
||||
std::string alertName_;
|
||||
std::string annotations_;
|
||||
std::string clusterId_;
|
||||
long dispatchRuleId_;
|
||||
std::string proxyUserId_;
|
||||
std::string type_;
|
||||
std::string message_;
|
||||
std::string labels_;
|
||||
std::string duration_;
|
||||
std::string regionId_;
|
||||
long alertId_;
|
||||
std::string notifyType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEPROMETHEUSALERTRULEREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_UPDATEPROMETHEUSALERTRULERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEPROMETHEUSALERTRULERESULT_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 UpdatePrometheusAlertRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PrometheusAlertRule
|
||||
{
|
||||
struct Label
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
struct Annotation
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
int status;
|
||||
std::string notifyType;
|
||||
long alertId;
|
||||
std::string type;
|
||||
std::vector<Annotation> annotations;
|
||||
std::string alertName;
|
||||
std::string message;
|
||||
std::string expression;
|
||||
std::string clusterId;
|
||||
long dispatchRuleId;
|
||||
std::vector<Label> labels;
|
||||
std::string duration;
|
||||
};
|
||||
|
||||
|
||||
UpdatePrometheusAlertRuleResult();
|
||||
explicit UpdatePrometheusAlertRuleResult(const std::string &payload);
|
||||
~UpdatePrometheusAlertRuleResult();
|
||||
PrometheusAlertRule getPrometheusAlertRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PrometheusAlertRule prometheusAlertRule_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEPROMETHEUSALERTRULERESULT_H_
|
||||
@@ -375,6 +375,42 @@ ARMSClient::CreateAlertContactGroupOutcomeCallable ARMSClient::createAlertContac
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertTemplateOutcome ARMSClient::createAlertTemplate(const CreateAlertTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAlertTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAlertTemplateOutcome(CreateAlertTemplateResult(outcome.result()));
|
||||
else
|
||||
return CreateAlertTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::createAlertTemplateAsync(const CreateAlertTemplateRequest& request, const CreateAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAlertTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertTemplateOutcomeCallable ARMSClient::createAlertTemplateCallable(const CreateAlertTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAlertTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAlertTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateDispatchRuleOutcome ARMSClient::createDispatchRule(const CreateDispatchRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +447,42 @@ ARMSClient::CreateDispatchRuleOutcomeCallable ARMSClient::createDispatchRuleCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreatePrometheusAlertRuleOutcome ARMSClient::createPrometheusAlertRule(const CreatePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePrometheusAlertRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreatePrometheusAlertRuleOutcome(CreatePrometheusAlertRuleResult(outcome.result()));
|
||||
else
|
||||
return CreatePrometheusAlertRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::createPrometheusAlertRuleAsync(const CreatePrometheusAlertRuleRequest& request, const CreatePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createPrometheusAlertRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CreatePrometheusAlertRuleOutcomeCallable ARMSClient::createPrometheusAlertRuleCallable(const CreatePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreatePrometheusAlertRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createPrometheusAlertRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateRetcodeAppOutcome ARMSClient::createRetcodeApp(const CreateRetcodeAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +519,42 @@ ARMSClient::CreateRetcodeAppOutcomeCallable ARMSClient::createRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateWebhookOutcome ARMSClient::createWebhook(const CreateWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateWebhookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateWebhookOutcome(CreateWebhookResult(outcome.result()));
|
||||
else
|
||||
return CreateWebhookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::createWebhookAsync(const CreateWebhookRequest& request, const CreateWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createWebhook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CreateWebhookOutcomeCallable ARMSClient::createWebhookCallable(const CreateWebhookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateWebhookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createWebhook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateWehookOutcome ARMSClient::createWehook(const CreateWehookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +699,42 @@ ARMSClient::DeleteAlertRulesOutcomeCallable ARMSClient::deleteAlertRulesCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertTemplateOutcome ARMSClient::deleteAlertTemplate(const DeleteAlertTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAlertTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteAlertTemplateOutcome(DeleteAlertTemplateResult(outcome.result()));
|
||||
else
|
||||
return DeleteAlertTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deleteAlertTemplateAsync(const DeleteAlertTemplateRequest& request, const DeleteAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteAlertTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertTemplateOutcomeCallable ARMSClient::deleteAlertTemplateCallable(const DeleteAlertTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteAlertTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteAlertTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteDispatchRuleOutcome ARMSClient::deleteDispatchRule(const DeleteDispatchRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +771,78 @@ ARMSClient::DeleteDispatchRuleOutcomeCallable ARMSClient::deleteDispatchRuleCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteGrafanaResourceOutcome ARMSClient::deleteGrafanaResource(const DeleteGrafanaResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteGrafanaResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteGrafanaResourceOutcome(DeleteGrafanaResourceResult(outcome.result()));
|
||||
else
|
||||
return DeleteGrafanaResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deleteGrafanaResourceAsync(const DeleteGrafanaResourceRequest& request, const DeleteGrafanaResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteGrafanaResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeleteGrafanaResourceOutcomeCallable ARMSClient::deleteGrafanaResourceCallable(const DeleteGrafanaResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteGrafanaResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteGrafanaResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeletePrometheusAlertRuleOutcome ARMSClient::deletePrometheusAlertRule(const DeletePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePrometheusAlertRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePrometheusAlertRuleOutcome(DeletePrometheusAlertRuleResult(outcome.result()));
|
||||
else
|
||||
return DeletePrometheusAlertRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deletePrometheusAlertRuleAsync(const DeletePrometheusAlertRuleRequest& request, const DeletePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePrometheusAlertRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeletePrometheusAlertRuleOutcomeCallable ARMSClient::deletePrometheusAlertRuleCallable(const DeletePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePrometheusAlertRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePrometheusAlertRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteRetcodeAppOutcome ARMSClient::deleteRetcodeApp(const DeleteRetcodeAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +987,42 @@ ARMSClient::DescribeDispatchRuleOutcomeCallable ARMSClient::describeDispatchRule
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DescribePrometheusAlertRuleOutcome ARMSClient::describePrometheusAlertRule(const DescribePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePrometheusAlertRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePrometheusAlertRuleOutcome(DescribePrometheusAlertRuleResult(outcome.result()));
|
||||
else
|
||||
return DescribePrometheusAlertRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::describePrometheusAlertRuleAsync(const DescribePrometheusAlertRuleRequest& request, const DescribePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePrometheusAlertRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DescribePrometheusAlertRuleOutcomeCallable ARMSClient::describePrometheusAlertRuleCallable(const DescribePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePrometheusAlertRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePrometheusAlertRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DescribeTraceLicenseKeyOutcome ARMSClient::describeTraceLicenseKey(const DescribeTraceLicenseKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +1095,78 @@ ARMSClient::DescribeTraceLocationOutcomeCallable ARMSClient::describeTraceLocati
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DisableAlertTemplateOutcome ARMSClient::disableAlertTemplate(const DisableAlertTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableAlertTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableAlertTemplateOutcome(DisableAlertTemplateResult(outcome.result()));
|
||||
else
|
||||
return DisableAlertTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::disableAlertTemplateAsync(const DisableAlertTemplateRequest& request, const DisableAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableAlertTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DisableAlertTemplateOutcomeCallable ARMSClient::disableAlertTemplateCallable(const DisableAlertTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableAlertTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableAlertTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::EnableAlertTemplateOutcome ARMSClient::enableAlertTemplate(const EnableAlertTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableAlertTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableAlertTemplateOutcome(EnableAlertTemplateResult(outcome.result()));
|
||||
else
|
||||
return EnableAlertTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::enableAlertTemplateAsync(const EnableAlertTemplateRequest& request, const EnableAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableAlertTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::EnableAlertTemplateOutcomeCallable ARMSClient::enableAlertTemplateCallable(const EnableAlertTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableAlertTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableAlertTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ExportPrometheusRulesOutcome ARMSClient::exportPrometheusRules(const ExportPrometheusRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1671,78 @@ ARMSClient::ImportPrometheusRulesOutcomeCallable ARMSClient::importPrometheusRul
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListActivatedAlertsOutcome ARMSClient::listActivatedAlerts(const ListActivatedAlertsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListActivatedAlertsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListActivatedAlertsOutcome(ListActivatedAlertsResult(outcome.result()));
|
||||
else
|
||||
return ListActivatedAlertsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listActivatedAlertsAsync(const ListActivatedAlertsRequest& request, const ListActivatedAlertsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listActivatedAlerts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListActivatedAlertsOutcomeCallable ARMSClient::listActivatedAlertsCallable(const ListActivatedAlertsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListActivatedAlertsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listActivatedAlerts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListAlertTemplatesOutcome ARMSClient::listAlertTemplates(const ListAlertTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAlertTemplatesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAlertTemplatesOutcome(ListAlertTemplatesResult(outcome.result()));
|
||||
else
|
||||
return ListAlertTemplatesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listAlertTemplatesAsync(const ListAlertTemplatesRequest& request, const ListAlertTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAlertTemplates(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListAlertTemplatesOutcomeCallable ARMSClient::listAlertTemplatesCallable(const ListAlertTemplatesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAlertTemplatesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAlertTemplates(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListClusterFromGrafanaOutcome ARMSClient::listClusterFromGrafana(const ListClusterFromGrafanaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1491,6 +1887,78 @@ ARMSClient::ListPromClustersOutcomeCallable ARMSClient::listPromClustersCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListPrometheusAlertRulesOutcome ARMSClient::listPrometheusAlertRules(const ListPrometheusAlertRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPrometheusAlertRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPrometheusAlertRulesOutcome(ListPrometheusAlertRulesResult(outcome.result()));
|
||||
else
|
||||
return ListPrometheusAlertRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listPrometheusAlertRulesAsync(const ListPrometheusAlertRulesRequest& request, const ListPrometheusAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPrometheusAlertRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListPrometheusAlertRulesOutcomeCallable ARMSClient::listPrometheusAlertRulesCallable(const ListPrometheusAlertRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPrometheusAlertRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPrometheusAlertRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListPrometheusAlertTemplatesOutcome ARMSClient::listPrometheusAlertTemplates(const ListPrometheusAlertTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPrometheusAlertTemplatesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPrometheusAlertTemplatesOutcome(ListPrometheusAlertTemplatesResult(outcome.result()));
|
||||
else
|
||||
return ListPrometheusAlertTemplatesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listPrometheusAlertTemplatesAsync(const ListPrometheusAlertTemplatesRequest& request, const ListPrometheusAlertTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPrometheusAlertTemplates(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListPrometheusAlertTemplatesOutcomeCallable ARMSClient::listPrometheusAlertTemplatesCallable(const ListPrometheusAlertTemplatesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPrometheusAlertTemplatesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPrometheusAlertTemplates(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListRetcodeAppsOutcome ARMSClient::listRetcodeApps(const ListRetcodeAppsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +2103,42 @@ ARMSClient::ListTraceAppsOutcomeCallable ARMSClient::listTraceAppsCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::OpenArmsDefaultSLROutcome ARMSClient::openArmsDefaultSLR(const OpenArmsDefaultSLRRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenArmsDefaultSLROutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenArmsDefaultSLROutcome(OpenArmsDefaultSLRResult(outcome.result()));
|
||||
else
|
||||
return OpenArmsDefaultSLROutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::openArmsDefaultSLRAsync(const OpenArmsDefaultSLRRequest& request, const OpenArmsDefaultSLRAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openArmsDefaultSLR(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::OpenArmsDefaultSLROutcomeCallable ARMSClient::openArmsDefaultSLRCallable(const OpenArmsDefaultSLRRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenArmsDefaultSLROutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openArmsDefaultSLR(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::OpenArmsServiceOutcome ARMSClient::openArmsService(const OpenArmsServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +2175,42 @@ ARMSClient::OpenArmsServiceOutcomeCallable ARMSClient::openArmsServiceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::OpenArmsServiceSecondVersionOutcome ARMSClient::openArmsServiceSecondVersion(const OpenArmsServiceSecondVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenArmsServiceSecondVersionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenArmsServiceSecondVersionOutcome(OpenArmsServiceSecondVersionResult(outcome.result()));
|
||||
else
|
||||
return OpenArmsServiceSecondVersionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::openArmsServiceSecondVersionAsync(const OpenArmsServiceSecondVersionRequest& request, const OpenArmsServiceSecondVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openArmsServiceSecondVersion(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::OpenArmsServiceSecondVersionOutcomeCallable ARMSClient::openArmsServiceSecondVersionCallable(const OpenArmsServiceSecondVersionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenArmsServiceSecondVersionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openArmsServiceSecondVersion(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::OpenVClusterOutcome ARMSClient::openVCluster(const OpenVClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +2247,42 @@ ARMSClient::OpenVClusterOutcomeCallable ARMSClient::openVClusterCallable(const O
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::OpenXtraceDefaultSLROutcome ARMSClient::openXtraceDefaultSLR(const OpenXtraceDefaultSLRRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenXtraceDefaultSLROutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenXtraceDefaultSLROutcome(OpenXtraceDefaultSLRResult(outcome.result()));
|
||||
else
|
||||
return OpenXtraceDefaultSLROutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::openXtraceDefaultSLRAsync(const OpenXtraceDefaultSLRRequest& request, const OpenXtraceDefaultSLRAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openXtraceDefaultSLR(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::OpenXtraceDefaultSLROutcomeCallable ARMSClient::openXtraceDefaultSLRCallable(const OpenXtraceDefaultSLRRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenXtraceDefaultSLROutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openXtraceDefaultSLR(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::QueryDatasetOutcome ARMSClient::queryDataset(const QueryDatasetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2499,6 +3075,42 @@ ARMSClient::UpdateAlertRuleOutcomeCallable ARMSClient::updateAlertRuleCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertTemplateOutcome ARMSClient::updateAlertTemplate(const UpdateAlertTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAlertTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAlertTemplateOutcome(UpdateAlertTemplateResult(outcome.result()));
|
||||
else
|
||||
return UpdateAlertTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::updateAlertTemplateAsync(const UpdateAlertTemplateRequest& request, const UpdateAlertTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAlertTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertTemplateOutcomeCallable ARMSClient::updateAlertTemplateCallable(const UpdateAlertTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAlertTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAlertTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdateDispatchRuleOutcome ARMSClient::updateDispatchRule(const UpdateDispatchRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2535,6 +3147,42 @@ ARMSClient::UpdateDispatchRuleOutcomeCallable ARMSClient::updateDispatchRuleCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdatePrometheusAlertRuleOutcome ARMSClient::updatePrometheusAlertRule(const UpdatePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdatePrometheusAlertRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdatePrometheusAlertRuleOutcome(UpdatePrometheusAlertRuleResult(outcome.result()));
|
||||
else
|
||||
return UpdatePrometheusAlertRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::updatePrometheusAlertRuleAsync(const UpdatePrometheusAlertRuleRequest& request, const UpdatePrometheusAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updatePrometheusAlertRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::UpdatePrometheusAlertRuleOutcomeCallable ARMSClient::updatePrometheusAlertRuleCallable(const UpdatePrometheusAlertRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdatePrometheusAlertRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updatePrometheusAlertRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdateWebhookOutcome ARMSClient::updateWebhook(const UpdateWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
150
arms/src/model/CreateAlertTemplateRequest.cc
Normal file
150
arms/src/model/CreateAlertTemplateRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateAlertTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateAlertTemplateRequest;
|
||||
|
||||
CreateAlertTemplateRequest::CreateAlertTemplateRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateAlertTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAlertTemplateRequest::~CreateAlertTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getTemplateProvider()const
|
||||
{
|
||||
return templateProvider_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setTemplateProvider(const std::string& templateProvider)
|
||||
{
|
||||
templateProvider_ = templateProvider;
|
||||
setParameter("TemplateProvider", templateProvider);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getAnnotations()const
|
||||
{
|
||||
return annotations_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setAnnotations(const std::string& annotations)
|
||||
{
|
||||
annotations_ = annotations;
|
||||
setParameter("Annotations", annotations);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getRule()const
|
||||
{
|
||||
return rule_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setRule(const std::string& rule)
|
||||
{
|
||||
rule_ = rule;
|
||||
setParameter("Rule", rule);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getParentId()const
|
||||
{
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setParentId(const std::string& parentId)
|
||||
{
|
||||
parentId_ = parentId;
|
||||
setParameter("ParentId", parentId);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setLabels(const std::string& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
setParameter("Labels", labels);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getMatchExpressions()const
|
||||
{
|
||||
return matchExpressions_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setMatchExpressions(const std::string& matchExpressions)
|
||||
{
|
||||
matchExpressions_ = matchExpressions;
|
||||
setParameter("MatchExpressions", matchExpressions);
|
||||
}
|
||||
|
||||
95
arms/src/model/CreateAlertTemplateResult.cc
Normal file
95
arms/src/model/CreateAlertTemplateResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateAlertTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateAlertTemplateResult::CreateAlertTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAlertTemplateResult::CreateAlertTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAlertTemplateResult::~CreateAlertTemplateResult()
|
||||
{}
|
||||
|
||||
void CreateAlertTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alertTemplateNode = value["AlertTemplate"];
|
||||
if(!alertTemplateNode["Id"].isNull())
|
||||
alertTemplate_.id = std::stoi(alertTemplateNode["Id"].asString());
|
||||
if(!alertTemplateNode["ParentId"].isNull())
|
||||
alertTemplate_.parentId = std::stoi(alertTemplateNode["ParentId"].asString());
|
||||
if(!alertTemplateNode["Name"].isNull())
|
||||
alertTemplate_.name = alertTemplateNode["Name"].asString();
|
||||
if(!alertTemplateNode["Message"].isNull())
|
||||
alertTemplate_.message = alertTemplateNode["Message"].asString();
|
||||
if(!alertTemplateNode["AlertProvider"].isNull())
|
||||
alertTemplate_.alertProvider = alertTemplateNode["AlertProvider"].asString();
|
||||
if(!alertTemplateNode["TemplateProvider"].isNull())
|
||||
alertTemplate_.templateProvider = alertTemplateNode["TemplateProvider"].asString();
|
||||
if(!alertTemplateNode["Type"].isNull())
|
||||
alertTemplate_.type = alertTemplateNode["Type"].asString();
|
||||
if(!alertTemplateNode["Labels"].isNull())
|
||||
alertTemplate_.labels = alertTemplateNode["Labels"].asString();
|
||||
if(!alertTemplateNode["Annotations"].isNull())
|
||||
alertTemplate_.annotations = alertTemplateNode["Annotations"].asString();
|
||||
if(!alertTemplateNode["Rule"].isNull())
|
||||
alertTemplate_.rule = alertTemplateNode["Rule"].asString();
|
||||
if(!alertTemplateNode["UserId"].isNull())
|
||||
alertTemplate_.userId = alertTemplateNode["UserId"].asString();
|
||||
if(!alertTemplateNode["Status"].isNull())
|
||||
alertTemplate_.status = alertTemplateNode["Status"].asString() == "true";
|
||||
if(!alertTemplateNode["Public"].isNull())
|
||||
alertTemplate_._public = alertTemplateNode["Public"].asString() == "true";
|
||||
auto labelMatchExpressionGridNode = alertTemplateNode["LabelMatchExpressionGrid"];
|
||||
auto allLabelMatchExpressionGroupsNode = labelMatchExpressionGridNode["LabelMatchExpressionGroups"]["LabelMatchExpressionGroup"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup : allLabelMatchExpressionGroupsNode)
|
||||
{
|
||||
AlertTemplate::LabelMatchExpressionGrid::LabelMatchExpressionGroup labelMatchExpressionGroupObject;
|
||||
auto allLabelMatchExpressionsNode = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup["LabelMatchExpressions"]["LabelMatchExpression"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression : allLabelMatchExpressionsNode)
|
||||
{
|
||||
AlertTemplate::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);
|
||||
}
|
||||
alertTemplate_.labelMatchExpressionGrid.labelMatchExpressionGroups.push_back(labelMatchExpressionGroupObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateAlertTemplateResult::AlertTemplate CreateAlertTemplateResult::getAlertTemplate()const
|
||||
{
|
||||
return alertTemplate_;
|
||||
}
|
||||
|
||||
172
arms/src/model/CreatePrometheusAlertRuleRequest.cc
Normal file
172
arms/src/model/CreatePrometheusAlertRuleRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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/CreatePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreatePrometheusAlertRuleRequest;
|
||||
|
||||
CreatePrometheusAlertRuleRequest::CreatePrometheusAlertRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreatePrometheusAlertRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrometheusAlertRuleRequest::~CreatePrometheusAlertRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getExpression()const
|
||||
{
|
||||
return expression_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setExpression(const std::string& expression)
|
||||
{
|
||||
expression_ = expression;
|
||||
setParameter("Expression", expression);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getAlertName()const
|
||||
{
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getAnnotations()const
|
||||
{
|
||||
return annotations_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setAnnotations(const std::string& annotations)
|
||||
{
|
||||
annotations_ = annotations;
|
||||
setParameter("Annotations", annotations);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
long CreatePrometheusAlertRuleRequest::getDispatchRuleId()const
|
||||
{
|
||||
return dispatchRuleId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setDispatchRuleId(long dispatchRuleId)
|
||||
{
|
||||
dispatchRuleId_ = dispatchRuleId;
|
||||
setParameter("DispatchRuleId", std::to_string(dispatchRuleId));
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setLabels(const std::string& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
setParameter("Labels", labels);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getNotifyType()const
|
||||
{
|
||||
return notifyType_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setNotifyType(const std::string& notifyType)
|
||||
{
|
||||
notifyType_ = notifyType;
|
||||
setParameter("NotifyType", notifyType);
|
||||
}
|
||||
|
||||
90
arms/src/model/CreatePrometheusAlertRuleResult.cc
Normal file
90
arms/src/model/CreatePrometheusAlertRuleResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreatePrometheusAlertRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreatePrometheusAlertRuleResult::CreatePrometheusAlertRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePrometheusAlertRuleResult::CreatePrometheusAlertRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePrometheusAlertRuleResult::~CreatePrometheusAlertRuleResult()
|
||||
{}
|
||||
|
||||
void CreatePrometheusAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto prometheusAlertRuleNode = value["PrometheusAlertRule"];
|
||||
if(!prometheusAlertRuleNode["AlertId"].isNull())
|
||||
prometheusAlertRule_.alertId = std::stol(prometheusAlertRuleNode["AlertId"].asString());
|
||||
if(!prometheusAlertRuleNode["AlertName"].isNull())
|
||||
prometheusAlertRule_.alertName = prometheusAlertRuleNode["AlertName"].asString();
|
||||
if(!prometheusAlertRuleNode["Message"].isNull())
|
||||
prometheusAlertRule_.message = prometheusAlertRuleNode["Message"].asString();
|
||||
if(!prometheusAlertRuleNode["Type"].isNull())
|
||||
prometheusAlertRule_.type = prometheusAlertRuleNode["Type"].asString();
|
||||
if(!prometheusAlertRuleNode["Expression"].isNull())
|
||||
prometheusAlertRule_.expression = prometheusAlertRuleNode["Expression"].asString();
|
||||
if(!prometheusAlertRuleNode["Duration"].isNull())
|
||||
prometheusAlertRule_.duration = prometheusAlertRuleNode["Duration"].asString();
|
||||
if(!prometheusAlertRuleNode["ClusterId"].isNull())
|
||||
prometheusAlertRule_.clusterId = prometheusAlertRuleNode["ClusterId"].asString();
|
||||
if(!prometheusAlertRuleNode["Status"].isNull())
|
||||
prometheusAlertRule_.status = std::stoi(prometheusAlertRuleNode["Status"].asString());
|
||||
if(!prometheusAlertRuleNode["DispatchRuleId"].isNull())
|
||||
prometheusAlertRule_.dispatchRuleId = std::stol(prometheusAlertRuleNode["DispatchRuleId"].asString());
|
||||
if(!prometheusAlertRuleNode["NotifyType"].isNull())
|
||||
prometheusAlertRule_.notifyType = prometheusAlertRuleNode["NotifyType"].asString();
|
||||
auto allLabelsNode = prometheusAlertRuleNode["Labels"]["Label"];
|
||||
for (auto prometheusAlertRuleNodeLabelsLabel : allLabelsNode)
|
||||
{
|
||||
PrometheusAlertRule::Label labelObject;
|
||||
if(!prometheusAlertRuleNodeLabelsLabel["Name"].isNull())
|
||||
labelObject.name = prometheusAlertRuleNodeLabelsLabel["Name"].asString();
|
||||
if(!prometheusAlertRuleNodeLabelsLabel["Value"].isNull())
|
||||
labelObject.value = prometheusAlertRuleNodeLabelsLabel["Value"].asString();
|
||||
prometheusAlertRule_.labels.push_back(labelObject);
|
||||
}
|
||||
auto allAnnotationsNode = prometheusAlertRuleNode["Annotations"]["Annotation"];
|
||||
for (auto prometheusAlertRuleNodeAnnotationsAnnotation : allAnnotationsNode)
|
||||
{
|
||||
PrometheusAlertRule::Annotation annotationObject;
|
||||
if(!prometheusAlertRuleNodeAnnotationsAnnotation["Name"].isNull())
|
||||
annotationObject.name = prometheusAlertRuleNodeAnnotationsAnnotation["Name"].asString();
|
||||
if(!prometheusAlertRuleNodeAnnotationsAnnotation["Value"].isNull())
|
||||
annotationObject.value = prometheusAlertRuleNodeAnnotationsAnnotation["Value"].asString();
|
||||
prometheusAlertRule_.annotations.push_back(annotationObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreatePrometheusAlertRuleResult::PrometheusAlertRule CreatePrometheusAlertRuleResult::getPrometheusAlertRule()const
|
||||
{
|
||||
return prometheusAlertRule_;
|
||||
}
|
||||
|
||||
117
arms/src/model/CreateWebhookRequest.cc
Normal file
117
arms/src/model/CreateWebhookRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/CreateWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateWebhookRequest;
|
||||
|
||||
CreateWebhookRequest::CreateWebhookRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateWebhook")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWebhookRequest::~CreateWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWebhookRequest::getHttpHeaders()const
|
||||
{
|
||||
return httpHeaders_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setHttpHeaders(const std::string& httpHeaders)
|
||||
{
|
||||
httpHeaders_ = httpHeaders;
|
||||
setParameter("HttpHeaders", httpHeaders);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getMethod()const
|
||||
{
|
||||
return method_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setMethod(const std::string& method)
|
||||
{
|
||||
method_ = method;
|
||||
setParameter("Method", method);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getHttpParams()const
|
||||
{
|
||||
return httpParams_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setHttpParams(const std::string& httpParams)
|
||||
{
|
||||
httpParams_ = httpParams;
|
||||
setParameter("HttpParams", httpParams);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
arms/src/model/CreateWebhookResult.cc
Normal file
51
arms/src/model/CreateWebhookResult.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/CreateWebhookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateWebhookResult::CreateWebhookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateWebhookResult::CreateWebhookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateWebhookResult::~CreateWebhookResult()
|
||||
{}
|
||||
|
||||
void CreateWebhookResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ContactId"].isNull())
|
||||
contactId_ = value["ContactId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateWebhookResult::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
62
arms/src/model/DeleteAlertTemplateRequest.cc
Normal file
62
arms/src/model/DeleteAlertTemplateRequest.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/DeleteAlertTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertTemplateRequest;
|
||||
|
||||
DeleteAlertTemplateRequest::DeleteAlertTemplateRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertTemplateRequest::~DeleteAlertTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAlertTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAlertTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteAlertTemplateRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteAlertTemplateRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DeleteAlertTemplateRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertTemplateRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteAlertTemplateResult.cc
Normal file
51
arms/src/model/DeleteAlertTemplateResult.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/DeleteAlertTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteAlertTemplateResult::DeleteAlertTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAlertTemplateResult::DeleteAlertTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAlertTemplateResult::~DeleteAlertTemplateResult()
|
||||
{}
|
||||
|
||||
void DeleteAlertTemplateResult::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 DeleteAlertTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
arms/src/model/DeleteGrafanaResourceRequest.cc
Normal file
62
arms/src/model/DeleteGrafanaResourceRequest.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/DeleteGrafanaResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteGrafanaResourceRequest;
|
||||
|
||||
DeleteGrafanaResourceRequest::DeleteGrafanaResourceRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteGrafanaResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGrafanaResourceRequest::~DeleteGrafanaResourceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteGrafanaResourceRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DeleteGrafanaResourceRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setBodyParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaResourceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteGrafanaResourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaResourceRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DeleteGrafanaResourceRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
@@ -14,35 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h>
|
||||
#include <alibabacloud/arms/model/DeleteGrafanaResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Smartag;
|
||||
using namespace AlibabaCloud::Smartag::Model;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult() :
|
||||
DeleteGrafanaResourceResult::DeleteGrafanaResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult(const std::string &payload) :
|
||||
DeleteGrafanaResourceResult::DeleteGrafanaResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SwitchCloudBoxHaStateResult::~SwitchCloudBoxHaStateResult()
|
||||
DeleteGrafanaResourceResult::~DeleteGrafanaResourceResult()
|
||||
{}
|
||||
|
||||
void SwitchCloudBoxHaStateResult::parse(const std::string &payload)
|
||||
void DeleteGrafanaResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaResourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
40
arms/src/model/DeletePrometheusAlertRuleRequest.cc
Normal file
40
arms/src/model/DeletePrometheusAlertRuleRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeletePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeletePrometheusAlertRuleRequest;
|
||||
|
||||
DeletePrometheusAlertRuleRequest::DeletePrometheusAlertRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeletePrometheusAlertRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrometheusAlertRuleRequest::~DeletePrometheusAlertRuleRequest()
|
||||
{}
|
||||
|
||||
long DeletePrometheusAlertRuleRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusAlertRuleRequest::setAlertId(long alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", std::to_string(alertId));
|
||||
}
|
||||
|
||||
@@ -14,35 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h>
|
||||
#include <alibabacloud/arms/model/DeletePrometheusAlertRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Smartag;
|
||||
using namespace AlibabaCloud::Smartag::Model;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult() :
|
||||
DeletePrometheusAlertRuleResult::DeletePrometheusAlertRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult(const std::string &payload) :
|
||||
DeletePrometheusAlertRuleResult::DeletePrometheusAlertRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDedicatedLineBackupResult::~DeleteDedicatedLineBackupResult()
|
||||
DeletePrometheusAlertRuleResult::~DeletePrometheusAlertRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteDedicatedLineBackupResult::parse(const std::string &payload)
|
||||
void DeletePrometheusAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeletePrometheusAlertRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
arms/src/model/DescribePrometheusAlertRuleRequest.cc
Normal file
40
arms/src/model/DescribePrometheusAlertRuleRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribePrometheusAlertRuleRequest;
|
||||
|
||||
DescribePrometheusAlertRuleRequest::DescribePrometheusAlertRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DescribePrometheusAlertRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePrometheusAlertRuleRequest::~DescribePrometheusAlertRuleRequest()
|
||||
{}
|
||||
|
||||
long DescribePrometheusAlertRuleRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void DescribePrometheusAlertRuleRequest::setAlertId(long alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", std::to_string(alertId));
|
||||
}
|
||||
|
||||
90
arms/src/model/DescribePrometheusAlertRuleResult.cc
Normal file
90
arms/src/model/DescribePrometheusAlertRuleResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribePrometheusAlertRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribePrometheusAlertRuleResult::DescribePrometheusAlertRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePrometheusAlertRuleResult::DescribePrometheusAlertRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePrometheusAlertRuleResult::~DescribePrometheusAlertRuleResult()
|
||||
{}
|
||||
|
||||
void DescribePrometheusAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto prometheusAlertRuleNode = value["PrometheusAlertRule"];
|
||||
if(!prometheusAlertRuleNode["AlertId"].isNull())
|
||||
prometheusAlertRule_.alertId = std::stol(prometheusAlertRuleNode["AlertId"].asString());
|
||||
if(!prometheusAlertRuleNode["AlertName"].isNull())
|
||||
prometheusAlertRule_.alertName = prometheusAlertRuleNode["AlertName"].asString();
|
||||
if(!prometheusAlertRuleNode["Message"].isNull())
|
||||
prometheusAlertRule_.message = prometheusAlertRuleNode["Message"].asString();
|
||||
if(!prometheusAlertRuleNode["Type"].isNull())
|
||||
prometheusAlertRule_.type = prometheusAlertRuleNode["Type"].asString();
|
||||
if(!prometheusAlertRuleNode["Expression"].isNull())
|
||||
prometheusAlertRule_.expression = prometheusAlertRuleNode["Expression"].asString();
|
||||
if(!prometheusAlertRuleNode["Duration"].isNull())
|
||||
prometheusAlertRule_.duration = prometheusAlertRuleNode["Duration"].asString();
|
||||
if(!prometheusAlertRuleNode["ClusterId"].isNull())
|
||||
prometheusAlertRule_.clusterId = prometheusAlertRuleNode["ClusterId"].asString();
|
||||
if(!prometheusAlertRuleNode["Status"].isNull())
|
||||
prometheusAlertRule_.status = std::stoi(prometheusAlertRuleNode["Status"].asString());
|
||||
if(!prometheusAlertRuleNode["DispatchRuleId"].isNull())
|
||||
prometheusAlertRule_.dispatchRuleId = std::stol(prometheusAlertRuleNode["DispatchRuleId"].asString());
|
||||
if(!prometheusAlertRuleNode["NotifyType"].isNull())
|
||||
prometheusAlertRule_.notifyType = prometheusAlertRuleNode["NotifyType"].asString();
|
||||
auto allLabelsNode = prometheusAlertRuleNode["Labels"]["Label"];
|
||||
for (auto prometheusAlertRuleNodeLabelsLabel : allLabelsNode)
|
||||
{
|
||||
PrometheusAlertRule::Label labelObject;
|
||||
if(!prometheusAlertRuleNodeLabelsLabel["Name"].isNull())
|
||||
labelObject.name = prometheusAlertRuleNodeLabelsLabel["Name"].asString();
|
||||
if(!prometheusAlertRuleNodeLabelsLabel["Value"].isNull())
|
||||
labelObject.value = prometheusAlertRuleNodeLabelsLabel["Value"].asString();
|
||||
prometheusAlertRule_.labels.push_back(labelObject);
|
||||
}
|
||||
auto allAnnotationsNode = prometheusAlertRuleNode["Annotations"]["Annotation"];
|
||||
for (auto prometheusAlertRuleNodeAnnotationsAnnotation : allAnnotationsNode)
|
||||
{
|
||||
PrometheusAlertRule::Annotation annotationObject;
|
||||
if(!prometheusAlertRuleNodeAnnotationsAnnotation["Name"].isNull())
|
||||
annotationObject.name = prometheusAlertRuleNodeAnnotationsAnnotation["Name"].asString();
|
||||
if(!prometheusAlertRuleNodeAnnotationsAnnotation["Value"].isNull())
|
||||
annotationObject.value = prometheusAlertRuleNodeAnnotationsAnnotation["Value"].asString();
|
||||
prometheusAlertRule_.annotations.push_back(annotationObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribePrometheusAlertRuleResult::PrometheusAlertRule DescribePrometheusAlertRuleResult::getPrometheusAlertRule()const
|
||||
{
|
||||
return prometheusAlertRule_;
|
||||
}
|
||||
|
||||
62
arms/src/model/DisableAlertTemplateRequest.cc
Normal file
62
arms/src/model/DisableAlertTemplateRequest.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/DisableAlertTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DisableAlertTemplateRequest;
|
||||
|
||||
DisableAlertTemplateRequest::DisableAlertTemplateRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DisableAlertTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableAlertTemplateRequest::~DisableAlertTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DisableAlertTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DisableAlertTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DisableAlertTemplateRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DisableAlertTemplateRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DisableAlertTemplateRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DisableAlertTemplateRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DisableAlertTemplateResult.cc
Normal file
51
arms/src/model/DisableAlertTemplateResult.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/DisableAlertTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DisableAlertTemplateResult::DisableAlertTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableAlertTemplateResult::DisableAlertTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableAlertTemplateResult::~DisableAlertTemplateResult()
|
||||
{}
|
||||
|
||||
void DisableAlertTemplateResult::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 DisableAlertTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
arms/src/model/EnableAlertTemplateRequest.cc
Normal file
62
arms/src/model/EnableAlertTemplateRequest.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/EnableAlertTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::EnableAlertTemplateRequest;
|
||||
|
||||
EnableAlertTemplateRequest::EnableAlertTemplateRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "EnableAlertTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableAlertTemplateRequest::~EnableAlertTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string EnableAlertTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableAlertTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long EnableAlertTemplateRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void EnableAlertTemplateRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string EnableAlertTemplateRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void EnableAlertTemplateRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/EnableAlertTemplateResult.cc
Normal file
51
arms/src/model/EnableAlertTemplateResult.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/EnableAlertTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
EnableAlertTemplateResult::EnableAlertTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableAlertTemplateResult::EnableAlertTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableAlertTemplateResult::~EnableAlertTemplateResult()
|
||||
{}
|
||||
|
||||
void EnableAlertTemplateResult::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 EnableAlertTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
arms/src/model/ListActivatedAlertsRequest.cc
Normal file
84
arms/src/model/ListActivatedAlertsRequest.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/ListActivatedAlertsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListActivatedAlertsRequest;
|
||||
|
||||
ListActivatedAlertsRequest::ListActivatedAlertsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListActivatedAlerts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListActivatedAlertsRequest::~ListActivatedAlertsRequest()
|
||||
{}
|
||||
|
||||
std::string ListActivatedAlertsRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void ListActivatedAlertsRequest::setFilter(const std::string& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
setParameter("Filter", filter);
|
||||
}
|
||||
|
||||
std::string ListActivatedAlertsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListActivatedAlertsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int ListActivatedAlertsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListActivatedAlertsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListActivatedAlertsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListActivatedAlertsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListActivatedAlertsRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ListActivatedAlertsRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
102
arms/src/model/ListActivatedAlertsResult.cc
Normal file
102
arms/src/model/ListActivatedAlertsResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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/ListActivatedAlertsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListActivatedAlertsResult::ListActivatedAlertsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListActivatedAlertsResult::ListActivatedAlertsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListActivatedAlertsResult::~ListActivatedAlertsResult()
|
||||
{}
|
||||
|
||||
void ListActivatedAlertsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageNode = value["Page"];
|
||||
if(!pageNode["Page"].isNull())
|
||||
page_.page = std::stoi(pageNode["Page"].asString());
|
||||
if(!pageNode["PageSize"].isNull())
|
||||
page_.pageSize = std::stoi(pageNode["PageSize"].asString());
|
||||
if(!pageNode["Total"].isNull())
|
||||
page_.total = std::stoi(pageNode["Total"].asString());
|
||||
auto allAlertsNode = pageNode["Alerts"]["Alert"];
|
||||
for (auto pageNodeAlertsAlert : allAlertsNode)
|
||||
{
|
||||
Page::Alert alertObject;
|
||||
if(!pageNodeAlertsAlert["AlertName"].isNull())
|
||||
alertObject.alertName = pageNodeAlertsAlert["AlertName"].asString();
|
||||
if(!pageNodeAlertsAlert["AlertType"].isNull())
|
||||
alertObject.alertType = pageNodeAlertsAlert["AlertType"].asString();
|
||||
if(!pageNodeAlertsAlert["Count"].isNull())
|
||||
alertObject.count = std::stoi(pageNodeAlertsAlert["Count"].asString());
|
||||
if(!pageNodeAlertsAlert["CreateTime"].isNull())
|
||||
alertObject.createTime = std::stol(pageNodeAlertsAlert["CreateTime"].asString());
|
||||
if(!pageNodeAlertsAlert["EndsAt"].isNull())
|
||||
alertObject.endsAt = std::stol(pageNodeAlertsAlert["EndsAt"].asString());
|
||||
if(!pageNodeAlertsAlert["ExpandFields"].isNull())
|
||||
alertObject.expandFields = pageNodeAlertsAlert["ExpandFields"].asString();
|
||||
if(!pageNodeAlertsAlert["AlertId"].isNull())
|
||||
alertObject.alertId = pageNodeAlertsAlert["AlertId"].asString();
|
||||
if(!pageNodeAlertsAlert["IntegrationName"].isNull())
|
||||
alertObject.integrationName = pageNodeAlertsAlert["IntegrationName"].asString();
|
||||
if(!pageNodeAlertsAlert["IntegrationType"].isNull())
|
||||
alertObject.integrationType = pageNodeAlertsAlert["IntegrationType"].asString();
|
||||
if(!pageNodeAlertsAlert["InvolvedObjectKind"].isNull())
|
||||
alertObject.involvedObjectKind = pageNodeAlertsAlert["InvolvedObjectKind"].asString();
|
||||
if(!pageNodeAlertsAlert["InvolvedObjectName"].isNull())
|
||||
alertObject.involvedObjectName = pageNodeAlertsAlert["InvolvedObjectName"].asString();
|
||||
if(!pageNodeAlertsAlert["Message"].isNull())
|
||||
alertObject.message = pageNodeAlertsAlert["Message"].asString();
|
||||
if(!pageNodeAlertsAlert["Severity"].isNull())
|
||||
alertObject.severity = pageNodeAlertsAlert["Severity"].asString();
|
||||
if(!pageNodeAlertsAlert["StartsAt"].isNull())
|
||||
alertObject.startsAt = std::stol(pageNodeAlertsAlert["StartsAt"].asString());
|
||||
if(!pageNodeAlertsAlert["Status"].isNull())
|
||||
alertObject.status = pageNodeAlertsAlert["Status"].asString();
|
||||
auto allDispatchRulesNode = pageNodeAlertsAlert["DispatchRules"]["DispatchRule"];
|
||||
for (auto pageNodeAlertsAlertDispatchRulesDispatchRule : allDispatchRulesNode)
|
||||
{
|
||||
Page::Alert::DispatchRule dispatchRulesObject;
|
||||
if(!pageNodeAlertsAlertDispatchRulesDispatchRule["RuleName"].isNull())
|
||||
dispatchRulesObject.ruleName = pageNodeAlertsAlertDispatchRulesDispatchRule["RuleName"].asString();
|
||||
if(!pageNodeAlertsAlertDispatchRulesDispatchRule["RuleId"].isNull())
|
||||
dispatchRulesObject.ruleId = std::stoi(pageNodeAlertsAlertDispatchRulesDispatchRule["RuleId"].asString());
|
||||
alertObject.dispatchRules.push_back(dispatchRulesObject);
|
||||
}
|
||||
page_.alerts.push_back(alertObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListActivatedAlertsResult::Page ListActivatedAlertsResult::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
117
arms/src/model/ListAlertTemplatesRequest.cc
Normal file
117
arms/src/model/ListAlertTemplatesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/ListAlertTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListAlertTemplatesRequest;
|
||||
|
||||
ListAlertTemplatesRequest::ListAlertTemplatesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListAlertTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAlertTemplatesRequest::~ListAlertTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::string ListAlertTemplatesRequest::getAlertProvider()const
|
||||
{
|
||||
return alertProvider_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setAlertProvider(const std::string& alertProvider)
|
||||
{
|
||||
alertProvider_ = alertProvider;
|
||||
setParameter("AlertProvider", alertProvider);
|
||||
}
|
||||
|
||||
std::string ListAlertTemplatesRequest::getTemplateProvider()const
|
||||
{
|
||||
return templateProvider_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setTemplateProvider(const std::string& templateProvider)
|
||||
{
|
||||
templateProvider_ = templateProvider;
|
||||
setParameter("TemplateProvider", templateProvider);
|
||||
}
|
||||
|
||||
std::string ListAlertTemplatesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string ListAlertTemplatesRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string ListAlertTemplatesRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setLabels(const std::string& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
setParameter("Labels", labels);
|
||||
}
|
||||
|
||||
std::string ListAlertTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListAlertTemplatesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
bool ListAlertTemplatesRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListAlertTemplatesRequest::setStatus(bool status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status ? "true" : "false");
|
||||
}
|
||||
|
||||
100
arms/src/model/ListAlertTemplatesResult.cc
Normal file
100
arms/src/model/ListAlertTemplatesResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ListAlertTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListAlertTemplatesResult::ListAlertTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAlertTemplatesResult::ListAlertTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAlertTemplatesResult::~ListAlertTemplatesResult()
|
||||
{}
|
||||
|
||||
void ListAlertTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlertTemplatesNode = value["AlertTemplates"]["AlertTemplate"];
|
||||
for (auto valueAlertTemplatesAlertTemplate : allAlertTemplatesNode)
|
||||
{
|
||||
AlertTemplate alertTemplatesObject;
|
||||
if(!valueAlertTemplatesAlertTemplate["Id"].isNull())
|
||||
alertTemplatesObject.id = std::stoi(valueAlertTemplatesAlertTemplate["Id"].asString());
|
||||
if(!valueAlertTemplatesAlertTemplate["ParentId"].isNull())
|
||||
alertTemplatesObject.parentId = std::stoi(valueAlertTemplatesAlertTemplate["ParentId"].asString());
|
||||
if(!valueAlertTemplatesAlertTemplate["Name"].isNull())
|
||||
alertTemplatesObject.name = valueAlertTemplatesAlertTemplate["Name"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["Message"].isNull())
|
||||
alertTemplatesObject.message = valueAlertTemplatesAlertTemplate["Message"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["AlertProvider"].isNull())
|
||||
alertTemplatesObject.alertProvider = valueAlertTemplatesAlertTemplate["AlertProvider"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["TemplateProvider"].isNull())
|
||||
alertTemplatesObject.templateProvider = valueAlertTemplatesAlertTemplate["TemplateProvider"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["Type"].isNull())
|
||||
alertTemplatesObject.type = valueAlertTemplatesAlertTemplate["Type"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["Labels"].isNull())
|
||||
alertTemplatesObject.labels = valueAlertTemplatesAlertTemplate["Labels"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["Annotations"].isNull())
|
||||
alertTemplatesObject.annotations = valueAlertTemplatesAlertTemplate["Annotations"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["Rule"].isNull())
|
||||
alertTemplatesObject.rule = valueAlertTemplatesAlertTemplate["Rule"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["UserId"].isNull())
|
||||
alertTemplatesObject.userId = valueAlertTemplatesAlertTemplate["UserId"].asString();
|
||||
if(!valueAlertTemplatesAlertTemplate["Status"].isNull())
|
||||
alertTemplatesObject.status = valueAlertTemplatesAlertTemplate["Status"].asString() == "true";
|
||||
if(!valueAlertTemplatesAlertTemplate["Public"].isNull())
|
||||
alertTemplatesObject._public = valueAlertTemplatesAlertTemplate["Public"].asString() == "true";
|
||||
auto labelMatchExpressionGridNode = value["LabelMatchExpressionGrid"];
|
||||
auto allLabelMatchExpressionGroupsNode = labelMatchExpressionGridNode["LabelMatchExpressionGroups"]["LabelMatchExpressionGroup"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup : allLabelMatchExpressionGroupsNode)
|
||||
{
|
||||
AlertTemplate::LabelMatchExpressionGrid::LabelMatchExpressionGroup labelMatchExpressionGroupObject;
|
||||
auto allLabelMatchExpressionsNode = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup["LabelMatchExpressions"]["LabelMatchExpression"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression : allLabelMatchExpressionsNode)
|
||||
{
|
||||
AlertTemplate::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);
|
||||
}
|
||||
alertTemplatesObject.labelMatchExpressionGrid.labelMatchExpressionGroups.push_back(labelMatchExpressionGroupObject);
|
||||
}
|
||||
alertTemplates_.push_back(alertTemplatesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListAlertTemplatesResult::AlertTemplate> ListAlertTemplatesResult::getAlertTemplates()const
|
||||
{
|
||||
return alertTemplates_;
|
||||
}
|
||||
|
||||
@@ -27,26 +27,37 @@ ListDashboardsRequest::ListDashboardsRequest() :
|
||||
ListDashboardsRequest::~ListDashboardsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDashboardsRequest::getClusterType()const
|
||||
std::string ListDashboardsRequest::getDashboardName()const
|
||||
{
|
||||
return clusterType_;
|
||||
return dashboardName_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setClusterType(const std::string& clusterType)
|
||||
void ListDashboardsRequest::setDashboardName(const std::string& dashboardName)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
dashboardName_ = dashboardName;
|
||||
setParameter("DashboardName", dashboardName);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getRegionId()const
|
||||
std::string ListDashboardsRequest::getProduct()const
|
||||
{
|
||||
return regionId_;
|
||||
return product_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setRegionId(const std::string& regionId)
|
||||
void ListDashboardsRequest::setProduct(const std::string& product)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
bool ListDashboardsRequest::getRecreateSwitch()const
|
||||
{
|
||||
return recreateSwitch_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setRecreateSwitch(bool recreateSwitch)
|
||||
{
|
||||
recreateSwitch_ = recreateSwitch;
|
||||
setParameter("RecreateSwitch", recreateSwitch ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getClusterId()const
|
||||
@@ -71,3 +82,25 @@ void ListDashboardsRequest::setTitle(const std::string& title)
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,16 @@ void ListDashboardsResult::parse(const std::string &payload)
|
||||
dashboardVosObject.exporter = valueDashboardVosDashboardVosItem["Exporter"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["IsArmsExporter"].isNull())
|
||||
dashboardVosObject.isArmsExporter = valueDashboardVosDashboardVosItem["IsArmsExporter"].asString() == "true";
|
||||
if(!valueDashboardVosDashboardVosItem["Name"].isNull())
|
||||
dashboardVosObject.name = valueDashboardVosDashboardVosItem["Name"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Version"].isNull())
|
||||
dashboardVosObject.version = valueDashboardVosDashboardVosItem["Version"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["DashboardType"].isNull())
|
||||
dashboardVosObject.dashboardType = valueDashboardVosDashboardVosItem["DashboardType"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Kind"].isNull())
|
||||
dashboardVosObject.kind = valueDashboardVosDashboardVosItem["Kind"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["NeedUpdate"].isNull())
|
||||
dashboardVosObject.needUpdate = valueDashboardVosDashboardVosItem["NeedUpdate"].asString() == "true";
|
||||
auto allTags = value["Tags"]["Tags"];
|
||||
for (auto value : allTags)
|
||||
dashboardVosObject.tags.push_back(value.asString());
|
||||
|
||||
106
arms/src/model/ListPrometheusAlertRulesRequest.cc
Normal file
106
arms/src/model/ListPrometheusAlertRulesRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/ListPrometheusAlertRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListPrometheusAlertRulesRequest;
|
||||
|
||||
ListPrometheusAlertRulesRequest::ListPrometheusAlertRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListPrometheusAlertRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPrometheusAlertRulesRequest::~ListPrometheusAlertRulesRequest()
|
||||
{}
|
||||
|
||||
std::string ListPrometheusAlertRulesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertRulesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertRulesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertRulesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertRulesRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertRulesRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertRulesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertRulesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertRulesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertRulesRequest::getMatchExpressions()const
|
||||
{
|
||||
return matchExpressions_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertRulesRequest::setMatchExpressions(const std::string& matchExpressions)
|
||||
{
|
||||
matchExpressions_ = matchExpressions;
|
||||
setParameter("MatchExpressions", matchExpressions);
|
||||
}
|
||||
|
||||
int ListPrometheusAlertRulesRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertRulesRequest::setStatus(int status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", std::to_string(status));
|
||||
}
|
||||
|
||||
95
arms/src/model/ListPrometheusAlertRulesResult.cc
Normal file
95
arms/src/model/ListPrometheusAlertRulesResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ListPrometheusAlertRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListPrometheusAlertRulesResult::ListPrometheusAlertRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrometheusAlertRulesResult::ListPrometheusAlertRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrometheusAlertRulesResult::~ListPrometheusAlertRulesResult()
|
||||
{}
|
||||
|
||||
void ListPrometheusAlertRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrometheusAlertRulesNode = value["PrometheusAlertRules"]["PrometheusAlertRule"];
|
||||
for (auto valuePrometheusAlertRulesPrometheusAlertRule : allPrometheusAlertRulesNode)
|
||||
{
|
||||
PrometheusAlertRule prometheusAlertRulesObject;
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["AlertId"].isNull())
|
||||
prometheusAlertRulesObject.alertId = std::stol(valuePrometheusAlertRulesPrometheusAlertRule["AlertId"].asString());
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["AlertName"].isNull())
|
||||
prometheusAlertRulesObject.alertName = valuePrometheusAlertRulesPrometheusAlertRule["AlertName"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["Message"].isNull())
|
||||
prometheusAlertRulesObject.message = valuePrometheusAlertRulesPrometheusAlertRule["Message"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["Type"].isNull())
|
||||
prometheusAlertRulesObject.type = valuePrometheusAlertRulesPrometheusAlertRule["Type"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["Expression"].isNull())
|
||||
prometheusAlertRulesObject.expression = valuePrometheusAlertRulesPrometheusAlertRule["Expression"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["Duration"].isNull())
|
||||
prometheusAlertRulesObject.duration = valuePrometheusAlertRulesPrometheusAlertRule["Duration"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["ClusterId"].isNull())
|
||||
prometheusAlertRulesObject.clusterId = valuePrometheusAlertRulesPrometheusAlertRule["ClusterId"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["Status"].isNull())
|
||||
prometheusAlertRulesObject.status = std::stoi(valuePrometheusAlertRulesPrometheusAlertRule["Status"].asString());
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["DispatchRuleId"].isNull())
|
||||
prometheusAlertRulesObject.dispatchRuleId = std::stol(valuePrometheusAlertRulesPrometheusAlertRule["DispatchRuleId"].asString());
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRule["NotifyType"].isNull())
|
||||
prometheusAlertRulesObject.notifyType = valuePrometheusAlertRulesPrometheusAlertRule["NotifyType"].asString();
|
||||
auto allLabelsNode = valuePrometheusAlertRulesPrometheusAlertRule["Labels"]["Label"];
|
||||
for (auto valuePrometheusAlertRulesPrometheusAlertRuleLabelsLabel : allLabelsNode)
|
||||
{
|
||||
PrometheusAlertRule::Label labelsObject;
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRuleLabelsLabel["Name"].isNull())
|
||||
labelsObject.name = valuePrometheusAlertRulesPrometheusAlertRuleLabelsLabel["Name"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRuleLabelsLabel["Value"].isNull())
|
||||
labelsObject.value = valuePrometheusAlertRulesPrometheusAlertRuleLabelsLabel["Value"].asString();
|
||||
prometheusAlertRulesObject.labels.push_back(labelsObject);
|
||||
}
|
||||
auto allAnnotationsNode = valuePrometheusAlertRulesPrometheusAlertRule["Annotations"]["Annotation"];
|
||||
for (auto valuePrometheusAlertRulesPrometheusAlertRuleAnnotationsAnnotation : allAnnotationsNode)
|
||||
{
|
||||
PrometheusAlertRule::Annotation annotationsObject;
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRuleAnnotationsAnnotation["Name"].isNull())
|
||||
annotationsObject.name = valuePrometheusAlertRulesPrometheusAlertRuleAnnotationsAnnotation["Name"].asString();
|
||||
if(!valuePrometheusAlertRulesPrometheusAlertRuleAnnotationsAnnotation["Value"].isNull())
|
||||
annotationsObject.value = valuePrometheusAlertRulesPrometheusAlertRuleAnnotationsAnnotation["Value"].asString();
|
||||
prometheusAlertRulesObject.annotations.push_back(annotationsObject);
|
||||
}
|
||||
prometheusAlertRules_.push_back(prometheusAlertRulesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPrometheusAlertRulesResult::PrometheusAlertRule> ListPrometheusAlertRulesResult::getPrometheusAlertRules()const
|
||||
{
|
||||
return prometheusAlertRules_;
|
||||
}
|
||||
|
||||
73
arms/src/model/ListPrometheusAlertTemplatesRequest.cc
Normal file
73
arms/src/model/ListPrometheusAlertTemplatesRequest.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/ListPrometheusAlertTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListPrometheusAlertTemplatesRequest;
|
||||
|
||||
ListPrometheusAlertTemplatesRequest::ListPrometheusAlertTemplatesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListPrometheusAlertTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPrometheusAlertTemplatesRequest::~ListPrometheusAlertTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::string ListPrometheusAlertTemplatesRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertTemplatesRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertTemplatesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertTemplatesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListPrometheusAlertTemplatesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ListPrometheusAlertTemplatesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
87
arms/src/model/ListPrometheusAlertTemplatesResult.cc
Normal file
87
arms/src/model/ListPrometheusAlertTemplatesResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/ListPrometheusAlertTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListPrometheusAlertTemplatesResult::ListPrometheusAlertTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrometheusAlertTemplatesResult::ListPrometheusAlertTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrometheusAlertTemplatesResult::~ListPrometheusAlertTemplatesResult()
|
||||
{}
|
||||
|
||||
void ListPrometheusAlertTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrometheusAlertTemplatesNode = value["PrometheusAlertTemplates"]["PrometheusAlertTemplate"];
|
||||
for (auto valuePrometheusAlertTemplatesPrometheusAlertTemplate : allPrometheusAlertTemplatesNode)
|
||||
{
|
||||
PrometheusAlertTemplate prometheusAlertTemplatesObject;
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplate["AlertName"].isNull())
|
||||
prometheusAlertTemplatesObject.alertName = valuePrometheusAlertTemplatesPrometheusAlertTemplate["AlertName"].asString();
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplate["Description"].isNull())
|
||||
prometheusAlertTemplatesObject.description = valuePrometheusAlertTemplatesPrometheusAlertTemplate["Description"].asString();
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplate["Type"].isNull())
|
||||
prometheusAlertTemplatesObject.type = valuePrometheusAlertTemplatesPrometheusAlertTemplate["Type"].asString();
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplate["Expression"].isNull())
|
||||
prometheusAlertTemplatesObject.expression = valuePrometheusAlertTemplatesPrometheusAlertTemplate["Expression"].asString();
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplate["Duration"].isNull())
|
||||
prometheusAlertTemplatesObject.duration = valuePrometheusAlertTemplatesPrometheusAlertTemplate["Duration"].asString();
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplate["Version"].isNull())
|
||||
prometheusAlertTemplatesObject.version = valuePrometheusAlertTemplatesPrometheusAlertTemplate["Version"].asString();
|
||||
auto allLabelsNode = valuePrometheusAlertTemplatesPrometheusAlertTemplate["Labels"]["Label"];
|
||||
for (auto valuePrometheusAlertTemplatesPrometheusAlertTemplateLabelsLabel : allLabelsNode)
|
||||
{
|
||||
PrometheusAlertTemplate::Label labelsObject;
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplateLabelsLabel["Name"].isNull())
|
||||
labelsObject.name = valuePrometheusAlertTemplatesPrometheusAlertTemplateLabelsLabel["Name"].asString();
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplateLabelsLabel["Value"].isNull())
|
||||
labelsObject.value = valuePrometheusAlertTemplatesPrometheusAlertTemplateLabelsLabel["Value"].asString();
|
||||
prometheusAlertTemplatesObject.labels.push_back(labelsObject);
|
||||
}
|
||||
auto allAnnotationsNode = valuePrometheusAlertTemplatesPrometheusAlertTemplate["Annotations"]["Annotation"];
|
||||
for (auto valuePrometheusAlertTemplatesPrometheusAlertTemplateAnnotationsAnnotation : allAnnotationsNode)
|
||||
{
|
||||
PrometheusAlertTemplate::Annotation annotationsObject;
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplateAnnotationsAnnotation["Name"].isNull())
|
||||
annotationsObject.name = valuePrometheusAlertTemplatesPrometheusAlertTemplateAnnotationsAnnotation["Name"].asString();
|
||||
if(!valuePrometheusAlertTemplatesPrometheusAlertTemplateAnnotationsAnnotation["Value"].isNull())
|
||||
annotationsObject.value = valuePrometheusAlertTemplatesPrometheusAlertTemplateAnnotationsAnnotation["Value"].asString();
|
||||
prometheusAlertTemplatesObject.annotations.push_back(annotationsObject);
|
||||
}
|
||||
prometheusAlertTemplates_.push_back(prometheusAlertTemplatesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPrometheusAlertTemplatesResult::PrometheusAlertTemplate> ListPrometheusAlertTemplatesResult::getPrometheusAlertTemplates()const
|
||||
{
|
||||
return prometheusAlertTemplates_;
|
||||
}
|
||||
|
||||
40
arms/src/model/OpenArmsDefaultSLRRequest.cc
Normal file
40
arms/src/model/OpenArmsDefaultSLRRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/OpenArmsDefaultSLRRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::OpenArmsDefaultSLRRequest;
|
||||
|
||||
OpenArmsDefaultSLRRequest::OpenArmsDefaultSLRRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "OpenArmsDefaultSLR")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenArmsDefaultSLRRequest::~OpenArmsDefaultSLRRequest()
|
||||
{}
|
||||
|
||||
std::string OpenArmsDefaultSLRRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void OpenArmsDefaultSLRRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
arms/src/model/OpenArmsDefaultSLRResult.cc
Normal file
51
arms/src/model/OpenArmsDefaultSLRResult.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/OpenArmsDefaultSLRResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
OpenArmsDefaultSLRResult::OpenArmsDefaultSLRResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenArmsDefaultSLRResult::OpenArmsDefaultSLRResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenArmsDefaultSLRResult::~OpenArmsDefaultSLRResult()
|
||||
{}
|
||||
|
||||
void OpenArmsDefaultSLRResult::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 OpenArmsDefaultSLRResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
arms/src/model/OpenArmsServiceSecondVersionRequest.cc
Normal file
51
arms/src/model/OpenArmsServiceSecondVersionRequest.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/OpenArmsServiceSecondVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::OpenArmsServiceSecondVersionRequest;
|
||||
|
||||
OpenArmsServiceSecondVersionRequest::OpenArmsServiceSecondVersionRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "OpenArmsServiceSecondVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenArmsServiceSecondVersionRequest::~OpenArmsServiceSecondVersionRequest()
|
||||
{}
|
||||
|
||||
std::string OpenArmsServiceSecondVersionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void OpenArmsServiceSecondVersionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string OpenArmsServiceSecondVersionRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void OpenArmsServiceSecondVersionRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
51
arms/src/model/OpenArmsServiceSecondVersionResult.cc
Normal file
51
arms/src/model/OpenArmsServiceSecondVersionResult.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/OpenArmsServiceSecondVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
OpenArmsServiceSecondVersionResult::OpenArmsServiceSecondVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenArmsServiceSecondVersionResult::OpenArmsServiceSecondVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenArmsServiceSecondVersionResult::~OpenArmsServiceSecondVersionResult()
|
||||
{}
|
||||
|
||||
void OpenArmsServiceSecondVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OpenArmsServiceSecondVersionResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,28 @@ void OpenVClusterRequest::setClusterType(const std::string& clusterType)
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string OpenVClusterRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void OpenVClusterRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
bool OpenVClusterRequest::getRecreateSwitch()const
|
||||
{
|
||||
return recreateSwitch_;
|
||||
}
|
||||
|
||||
void OpenVClusterRequest::setRecreateSwitch(bool recreateSwitch)
|
||||
{
|
||||
recreateSwitch_ = recreateSwitch;
|
||||
setParameter("RecreateSwitch", recreateSwitch ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OpenVClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
40
arms/src/model/OpenXtraceDefaultSLRRequest.cc
Normal file
40
arms/src/model/OpenXtraceDefaultSLRRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/OpenXtraceDefaultSLRRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::OpenXtraceDefaultSLRRequest;
|
||||
|
||||
OpenXtraceDefaultSLRRequest::OpenXtraceDefaultSLRRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "OpenXtraceDefaultSLR")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenXtraceDefaultSLRRequest::~OpenXtraceDefaultSLRRequest()
|
||||
{}
|
||||
|
||||
std::string OpenXtraceDefaultSLRRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void OpenXtraceDefaultSLRRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
arms/src/model/OpenXtraceDefaultSLRResult.cc
Normal file
51
arms/src/model/OpenXtraceDefaultSLRResult.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/OpenXtraceDefaultSLRResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
OpenXtraceDefaultSLRResult::OpenXtraceDefaultSLRResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenXtraceDefaultSLRResult::OpenXtraceDefaultSLRResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenXtraceDefaultSLRResult::~OpenXtraceDefaultSLRResult()
|
||||
{}
|
||||
|
||||
void OpenXtraceDefaultSLRResult::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 OpenXtraceDefaultSLRResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
150
arms/src/model/UpdateAlertTemplateRequest.cc
Normal file
150
arms/src/model/UpdateAlertTemplateRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/UpdateAlertTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::UpdateAlertTemplateRequest;
|
||||
|
||||
UpdateAlertTemplateRequest::UpdateAlertTemplateRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "UpdateAlertTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAlertTemplateRequest::~UpdateAlertTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getAnnotations()const
|
||||
{
|
||||
return annotations_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setAnnotations(const std::string& annotations)
|
||||
{
|
||||
annotations_ = annotations;
|
||||
setParameter("Annotations", annotations);
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getRule()const
|
||||
{
|
||||
return rule_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setRule(const std::string& rule)
|
||||
{
|
||||
rule_ = rule;
|
||||
setParameter("Rule", rule);
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setLabels(const std::string& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
setParameter("Labels", labels);
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long UpdateAlertTemplateRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string UpdateAlertTemplateRequest::getMatchExpressions()const
|
||||
{
|
||||
return matchExpressions_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setMatchExpressions(const std::string& matchExpressions)
|
||||
{
|
||||
matchExpressions_ = matchExpressions;
|
||||
setParameter("MatchExpressions", matchExpressions);
|
||||
}
|
||||
|
||||
bool UpdateAlertTemplateRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateAlertTemplateRequest::setStatus(bool status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status ? "true" : "false");
|
||||
}
|
||||
|
||||
51
arms/src/model/UpdateAlertTemplateResult.cc
Normal file
51
arms/src/model/UpdateAlertTemplateResult.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/UpdateAlertTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
UpdateAlertTemplateResult::UpdateAlertTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAlertTemplateResult::UpdateAlertTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAlertTemplateResult::~UpdateAlertTemplateResult()
|
||||
{}
|
||||
|
||||
void UpdateAlertTemplateResult::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 UpdateAlertTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
172
arms/src/model/UpdatePrometheusAlertRuleRequest.cc
Normal file
172
arms/src/model/UpdatePrometheusAlertRuleRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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/UpdatePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::UpdatePrometheusAlertRuleRequest;
|
||||
|
||||
UpdatePrometheusAlertRuleRequest::UpdatePrometheusAlertRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "UpdatePrometheusAlertRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePrometheusAlertRuleRequest::~UpdatePrometheusAlertRuleRequest()
|
||||
{}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getExpression()const
|
||||
{
|
||||
return expression_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setExpression(const std::string& expression)
|
||||
{
|
||||
expression_ = expression;
|
||||
setParameter("Expression", expression);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getAlertName()const
|
||||
{
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getAnnotations()const
|
||||
{
|
||||
return annotations_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setAnnotations(const std::string& annotations)
|
||||
{
|
||||
annotations_ = annotations;
|
||||
setParameter("Annotations", annotations);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
long UpdatePrometheusAlertRuleRequest::getDispatchRuleId()const
|
||||
{
|
||||
return dispatchRuleId_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setDispatchRuleId(long dispatchRuleId)
|
||||
{
|
||||
dispatchRuleId_ = dispatchRuleId;
|
||||
setParameter("DispatchRuleId", std::to_string(dispatchRuleId));
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setLabels(const std::string& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
setParameter("Labels", labels);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long UpdatePrometheusAlertRuleRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setAlertId(long alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", std::to_string(alertId));
|
||||
}
|
||||
|
||||
std::string UpdatePrometheusAlertRuleRequest::getNotifyType()const
|
||||
{
|
||||
return notifyType_;
|
||||
}
|
||||
|
||||
void UpdatePrometheusAlertRuleRequest::setNotifyType(const std::string& notifyType)
|
||||
{
|
||||
notifyType_ = notifyType;
|
||||
setParameter("NotifyType", notifyType);
|
||||
}
|
||||
|
||||
90
arms/src/model/UpdatePrometheusAlertRuleResult.cc
Normal file
90
arms/src/model/UpdatePrometheusAlertRuleResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/UpdatePrometheusAlertRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
UpdatePrometheusAlertRuleResult::UpdatePrometheusAlertRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePrometheusAlertRuleResult::UpdatePrometheusAlertRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePrometheusAlertRuleResult::~UpdatePrometheusAlertRuleResult()
|
||||
{}
|
||||
|
||||
void UpdatePrometheusAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto prometheusAlertRuleNode = value["PrometheusAlertRule"];
|
||||
if(!prometheusAlertRuleNode["AlertId"].isNull())
|
||||
prometheusAlertRule_.alertId = std::stol(prometheusAlertRuleNode["AlertId"].asString());
|
||||
if(!prometheusAlertRuleNode["AlertName"].isNull())
|
||||
prometheusAlertRule_.alertName = prometheusAlertRuleNode["AlertName"].asString();
|
||||
if(!prometheusAlertRuleNode["Message"].isNull())
|
||||
prometheusAlertRule_.message = prometheusAlertRuleNode["Message"].asString();
|
||||
if(!prometheusAlertRuleNode["Type"].isNull())
|
||||
prometheusAlertRule_.type = prometheusAlertRuleNode["Type"].asString();
|
||||
if(!prometheusAlertRuleNode["Expression"].isNull())
|
||||
prometheusAlertRule_.expression = prometheusAlertRuleNode["Expression"].asString();
|
||||
if(!prometheusAlertRuleNode["Duration"].isNull())
|
||||
prometheusAlertRule_.duration = prometheusAlertRuleNode["Duration"].asString();
|
||||
if(!prometheusAlertRuleNode["ClusterId"].isNull())
|
||||
prometheusAlertRule_.clusterId = prometheusAlertRuleNode["ClusterId"].asString();
|
||||
if(!prometheusAlertRuleNode["Status"].isNull())
|
||||
prometheusAlertRule_.status = std::stoi(prometheusAlertRuleNode["Status"].asString());
|
||||
if(!prometheusAlertRuleNode["DispatchRuleId"].isNull())
|
||||
prometheusAlertRule_.dispatchRuleId = std::stol(prometheusAlertRuleNode["DispatchRuleId"].asString());
|
||||
if(!prometheusAlertRuleNode["NotifyType"].isNull())
|
||||
prometheusAlertRule_.notifyType = prometheusAlertRuleNode["NotifyType"].asString();
|
||||
auto allLabelsNode = prometheusAlertRuleNode["Labels"]["Label"];
|
||||
for (auto prometheusAlertRuleNodeLabelsLabel : allLabelsNode)
|
||||
{
|
||||
PrometheusAlertRule::Label labelObject;
|
||||
if(!prometheusAlertRuleNodeLabelsLabel["Name"].isNull())
|
||||
labelObject.name = prometheusAlertRuleNodeLabelsLabel["Name"].asString();
|
||||
if(!prometheusAlertRuleNodeLabelsLabel["Value"].isNull())
|
||||
labelObject.value = prometheusAlertRuleNodeLabelsLabel["Value"].asString();
|
||||
prometheusAlertRule_.labels.push_back(labelObject);
|
||||
}
|
||||
auto allAnnotationsNode = prometheusAlertRuleNode["Annotations"]["Annotation"];
|
||||
for (auto prometheusAlertRuleNodeAnnotationsAnnotation : allAnnotationsNode)
|
||||
{
|
||||
PrometheusAlertRule::Annotation annotationObject;
|
||||
if(!prometheusAlertRuleNodeAnnotationsAnnotation["Name"].isNull())
|
||||
annotationObject.name = prometheusAlertRuleNodeAnnotationsAnnotation["Name"].asString();
|
||||
if(!prometheusAlertRuleNodeAnnotationsAnnotation["Value"].isNull())
|
||||
annotationObject.value = prometheusAlertRuleNodeAnnotationsAnnotation["Value"].asString();
|
||||
prometheusAlertRule_.annotations.push_back(annotationObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
UpdatePrometheusAlertRuleResult::PrometheusAlertRule UpdatePrometheusAlertRuleResult::getPrometheusAlertRule()const
|
||||
{
|
||||
return prometheusAlertRule_;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/CreateCenResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenRouteMapResult.h
|
||||
include/alibabacloud/cbn/model/CreateFlowlogRequest.h
|
||||
@@ -41,6 +43,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/DeleteCenResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenBandwidthPackageResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h
|
||||
include/alibabacloud/cbn/model/DeleteFlowlogRequest.h
|
||||
@@ -113,6 +117,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitResult.h
|
||||
include/alibabacloud/cbn/model/TagResourcesRequest.h
|
||||
include/alibabacloud/cbn/model/TagResourcesResult.h
|
||||
include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecRequest.h
|
||||
include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecResult.h
|
||||
include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h
|
||||
include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageResult.h
|
||||
include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h
|
||||
@@ -134,6 +140,8 @@ set(cbn_src
|
||||
src/model/CreateCenResult.cc
|
||||
src/model/CreateCenBandwidthPackageRequest.cc
|
||||
src/model/CreateCenBandwidthPackageResult.cc
|
||||
src/model/CreateCenChildInstanceRouteEntryToCenRequest.cc
|
||||
src/model/CreateCenChildInstanceRouteEntryToCenResult.cc
|
||||
src/model/CreateCenRouteMapRequest.cc
|
||||
src/model/CreateCenRouteMapResult.cc
|
||||
src/model/CreateFlowlogRequest.cc
|
||||
@@ -144,6 +152,8 @@ set(cbn_src
|
||||
src/model/DeleteCenResult.cc
|
||||
src/model/DeleteCenBandwidthPackageRequest.cc
|
||||
src/model/DeleteCenBandwidthPackageResult.cc
|
||||
src/model/DeleteCenChildInstanceRouteEntryToCenRequest.cc
|
||||
src/model/DeleteCenChildInstanceRouteEntryToCenResult.cc
|
||||
src/model/DeleteCenRouteMapRequest.cc
|
||||
src/model/DeleteCenRouteMapResult.cc
|
||||
src/model/DeleteFlowlogRequest.cc
|
||||
@@ -216,6 +226,8 @@ set(cbn_src
|
||||
src/model/SetCenInterRegionBandwidthLimitResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/TempUpgradeCenBandwidthPackageSpecRequest.cc
|
||||
src/model/TempUpgradeCenBandwidthPackageSpecResult.cc
|
||||
src/model/UnassociateCenBandwidthPackageRequest.cc
|
||||
src/model/UnassociateCenBandwidthPackageResult.cc
|
||||
src/model/UnroutePrivateZoneInCenToVpcRequest.cc
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "model/CreateCenResult.h"
|
||||
#include "model/CreateCenBandwidthPackageRequest.h"
|
||||
#include "model/CreateCenBandwidthPackageResult.h"
|
||||
#include "model/CreateCenChildInstanceRouteEntryToCenRequest.h"
|
||||
#include "model/CreateCenChildInstanceRouteEntryToCenResult.h"
|
||||
#include "model/CreateCenRouteMapRequest.h"
|
||||
#include "model/CreateCenRouteMapResult.h"
|
||||
#include "model/CreateFlowlogRequest.h"
|
||||
@@ -42,6 +44,8 @@
|
||||
#include "model/DeleteCenResult.h"
|
||||
#include "model/DeleteCenBandwidthPackageRequest.h"
|
||||
#include "model/DeleteCenBandwidthPackageResult.h"
|
||||
#include "model/DeleteCenChildInstanceRouteEntryToCenRequest.h"
|
||||
#include "model/DeleteCenChildInstanceRouteEntryToCenResult.h"
|
||||
#include "model/DeleteCenRouteMapRequest.h"
|
||||
#include "model/DeleteCenRouteMapResult.h"
|
||||
#include "model/DeleteFlowlogRequest.h"
|
||||
@@ -114,6 +118,8 @@
|
||||
#include "model/SetCenInterRegionBandwidthLimitResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/TempUpgradeCenBandwidthPackageSpecRequest.h"
|
||||
#include "model/TempUpgradeCenBandwidthPackageSpecResult.h"
|
||||
#include "model/UnassociateCenBandwidthPackageRequest.h"
|
||||
#include "model/UnassociateCenBandwidthPackageResult.h"
|
||||
#include "model/UnroutePrivateZoneInCenToVpcRequest.h"
|
||||
@@ -146,6 +152,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateCenBandwidthPackageResult> CreateCenBandwidthPackageOutcome;
|
||||
typedef std::future<CreateCenBandwidthPackageOutcome> CreateCenBandwidthPackageOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::CreateCenBandwidthPackageRequest&, const CreateCenBandwidthPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCenBandwidthPackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCenChildInstanceRouteEntryToCenResult> CreateCenChildInstanceRouteEntryToCenOutcome;
|
||||
typedef std::future<CreateCenChildInstanceRouteEntryToCenOutcome> CreateCenChildInstanceRouteEntryToCenOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::CreateCenChildInstanceRouteEntryToCenRequest&, const CreateCenChildInstanceRouteEntryToCenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCenChildInstanceRouteEntryToCenAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCenRouteMapResult> CreateCenRouteMapOutcome;
|
||||
typedef std::future<CreateCenRouteMapOutcome> CreateCenRouteMapOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::CreateCenRouteMapRequest&, const CreateCenRouteMapOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCenRouteMapAsyncHandler;
|
||||
@@ -161,6 +170,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteCenBandwidthPackageResult> DeleteCenBandwidthPackageOutcome;
|
||||
typedef std::future<DeleteCenBandwidthPackageOutcome> DeleteCenBandwidthPackageOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteCenBandwidthPackageRequest&, const DeleteCenBandwidthPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCenBandwidthPackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCenChildInstanceRouteEntryToCenResult> DeleteCenChildInstanceRouteEntryToCenOutcome;
|
||||
typedef std::future<DeleteCenChildInstanceRouteEntryToCenOutcome> DeleteCenChildInstanceRouteEntryToCenOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteCenChildInstanceRouteEntryToCenRequest&, const DeleteCenChildInstanceRouteEntryToCenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCenChildInstanceRouteEntryToCenAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCenRouteMapResult> DeleteCenRouteMapOutcome;
|
||||
typedef std::future<DeleteCenRouteMapOutcome> DeleteCenRouteMapOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteCenRouteMapRequest&, const DeleteCenRouteMapOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCenRouteMapAsyncHandler;
|
||||
@@ -269,6 +281,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::TempUpgradeCenBandwidthPackageSpecResult> TempUpgradeCenBandwidthPackageSpecOutcome;
|
||||
typedef std::future<TempUpgradeCenBandwidthPackageSpecOutcome> TempUpgradeCenBandwidthPackageSpecOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::TempUpgradeCenBandwidthPackageSpecRequest&, const TempUpgradeCenBandwidthPackageSpecOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TempUpgradeCenBandwidthPackageSpecAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnassociateCenBandwidthPackageResult> UnassociateCenBandwidthPackageOutcome;
|
||||
typedef std::future<UnassociateCenBandwidthPackageOutcome> UnassociateCenBandwidthPackageOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::UnassociateCenBandwidthPackageRequest&, const UnassociateCenBandwidthPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnassociateCenBandwidthPackageAsyncHandler;
|
||||
@@ -301,6 +316,9 @@ namespace AlibabaCloud
|
||||
CreateCenBandwidthPackageOutcome createCenBandwidthPackage(const Model::CreateCenBandwidthPackageRequest &request)const;
|
||||
void createCenBandwidthPackageAsync(const Model::CreateCenBandwidthPackageRequest& request, const CreateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCenBandwidthPackageOutcomeCallable createCenBandwidthPackageCallable(const Model::CreateCenBandwidthPackageRequest& request) const;
|
||||
CreateCenChildInstanceRouteEntryToCenOutcome createCenChildInstanceRouteEntryToCen(const Model::CreateCenChildInstanceRouteEntryToCenRequest &request)const;
|
||||
void createCenChildInstanceRouteEntryToCenAsync(const Model::CreateCenChildInstanceRouteEntryToCenRequest& request, const CreateCenChildInstanceRouteEntryToCenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCenChildInstanceRouteEntryToCenOutcomeCallable createCenChildInstanceRouteEntryToCenCallable(const Model::CreateCenChildInstanceRouteEntryToCenRequest& request) const;
|
||||
CreateCenRouteMapOutcome createCenRouteMap(const Model::CreateCenRouteMapRequest &request)const;
|
||||
void createCenRouteMapAsync(const Model::CreateCenRouteMapRequest& request, const CreateCenRouteMapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCenRouteMapOutcomeCallable createCenRouteMapCallable(const Model::CreateCenRouteMapRequest& request) const;
|
||||
@@ -316,6 +334,9 @@ namespace AlibabaCloud
|
||||
DeleteCenBandwidthPackageOutcome deleteCenBandwidthPackage(const Model::DeleteCenBandwidthPackageRequest &request)const;
|
||||
void deleteCenBandwidthPackageAsync(const Model::DeleteCenBandwidthPackageRequest& request, const DeleteCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCenBandwidthPackageOutcomeCallable deleteCenBandwidthPackageCallable(const Model::DeleteCenBandwidthPackageRequest& request) const;
|
||||
DeleteCenChildInstanceRouteEntryToCenOutcome deleteCenChildInstanceRouteEntryToCen(const Model::DeleteCenChildInstanceRouteEntryToCenRequest &request)const;
|
||||
void deleteCenChildInstanceRouteEntryToCenAsync(const Model::DeleteCenChildInstanceRouteEntryToCenRequest& request, const DeleteCenChildInstanceRouteEntryToCenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCenChildInstanceRouteEntryToCenOutcomeCallable deleteCenChildInstanceRouteEntryToCenCallable(const Model::DeleteCenChildInstanceRouteEntryToCenRequest& request) const;
|
||||
DeleteCenRouteMapOutcome deleteCenRouteMap(const Model::DeleteCenRouteMapRequest &request)const;
|
||||
void deleteCenRouteMapAsync(const Model::DeleteCenRouteMapRequest& request, const DeleteCenRouteMapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCenRouteMapOutcomeCallable deleteCenRouteMapCallable(const Model::DeleteCenRouteMapRequest& request) const;
|
||||
@@ -424,6 +445,9 @@ namespace AlibabaCloud
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
TempUpgradeCenBandwidthPackageSpecOutcome tempUpgradeCenBandwidthPackageSpec(const Model::TempUpgradeCenBandwidthPackageSpecRequest &request)const;
|
||||
void tempUpgradeCenBandwidthPackageSpecAsync(const Model::TempUpgradeCenBandwidthPackageSpecRequest& request, const TempUpgradeCenBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TempUpgradeCenBandwidthPackageSpecOutcomeCallable tempUpgradeCenBandwidthPackageSpecCallable(const Model::TempUpgradeCenBandwidthPackageSpecRequest& request) const;
|
||||
UnassociateCenBandwidthPackageOutcome unassociateCenBandwidthPackage(const Model::UnassociateCenBandwidthPackageRequest &request)const;
|
||||
void unassociateCenBandwidthPackageAsync(const Model::UnassociateCenBandwidthPackageRequest& request, const UnassociateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnassociateCenBandwidthPackageOutcomeCallable unassociateCenBandwidthPackageCallable(const Model::UnassociateCenBandwidthPackageRequest& request) const;
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
int getAutoRenewDuration()const;
|
||||
void setAutoRenewDuration(int autoRenewDuration);
|
||||
std::string getBandwidthPackageChargeType()const;
|
||||
void setBandwidthPackageChargeType(const std::string& bandwidthPackageChargeType);
|
||||
std::string getGeographicRegionBId()const;
|
||||
@@ -59,6 +61,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
bool getAutoRenew()const;
|
||||
void setAutoRenew(bool autoRenew);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getPricingCycle()const;
|
||||
@@ -68,6 +72,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
int autoRenewDuration_;
|
||||
std::string bandwidthPackageChargeType_;
|
||||
std::string geographicRegionBId_;
|
||||
int period_;
|
||||
@@ -77,6 +82,7 @@ namespace AlibabaCloud
|
||||
int bandwidth_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
bool autoRenew_;
|
||||
std::string name_;
|
||||
std::string pricingCycle_;
|
||||
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT CreateCenChildInstanceRouteEntryToCenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateCenChildInstanceRouteEntryToCenRequest();
|
||||
~CreateCenChildInstanceRouteEntryToCenRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getCenId()const;
|
||||
void setCenId(const std::string& cenId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getNextHopGatewayZoneId()const;
|
||||
void setNextHopGatewayZoneId(const std::string& nextHopGatewayZoneId);
|
||||
std::string getChildInstanceRegionId()const;
|
||||
void setChildInstanceRegionId(const std::string& childInstanceRegionId);
|
||||
std::string getRouteTableId()const;
|
||||
void setRouteTableId(const std::string& routeTableId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getDestinationCidrBlock()const;
|
||||
void setDestinationCidrBlock(const std::string& destinationCidrBlock);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getChildInstanceType()const;
|
||||
void setChildInstanceType(const std::string& childInstanceType);
|
||||
std::string getChildInstanceId()const;
|
||||
void setChildInstanceId(const std::string& childInstanceId);
|
||||
long getChildInstanceAliUid()const;
|
||||
void setChildInstanceAliUid(long childInstanceAliUid);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string cenId_;
|
||||
std::string clientToken_;
|
||||
std::string nextHopGatewayZoneId_;
|
||||
std::string childInstanceRegionId_;
|
||||
std::string routeTableId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string destinationCidrBlock_;
|
||||
long ownerId_;
|
||||
std::string childInstanceType_;
|
||||
std::string childInstanceId_;
|
||||
long childInstanceAliUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT CreateCenChildInstanceRouteEntryToCenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateCenChildInstanceRouteEntryToCenResult();
|
||||
explicit CreateCenChildInstanceRouteEntryToCenResult(const std::string &payload);
|
||||
~CreateCenChildInstanceRouteEntryToCenResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getIpv6Level()const;
|
||||
void setIpv6Level(const std::string& ipv6Level);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string ipv6Level_;
|
||||
std::string description_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -41,14 +41,22 @@ namespace AlibabaCloud
|
||||
void setCommunityMatchMode(const std::string& communityMatchMode);
|
||||
std::string getMapResult()const;
|
||||
void setMapResult(const std::string& mapResult);
|
||||
std::vector<std::string> getDestinationRegionIds()const;
|
||||
void setDestinationRegionIds(const std::vector<std::string>& destinationRegionIds);
|
||||
int getNextPriority()const;
|
||||
void setNextPriority(int nextPriority);
|
||||
std::vector<std::string> getDestinationCidrBlocks()const;
|
||||
void setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks);
|
||||
bool getSystemPolicy()const;
|
||||
void setSystemPolicy(bool systemPolicy);
|
||||
std::vector<std::string> getOriginalRouteTableIds()const;
|
||||
void setOriginalRouteTableIds(const std::vector<std::string>& originalRouteTableIds);
|
||||
std::vector<std::string> getSourceInstanceIds()const;
|
||||
void setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds);
|
||||
std::vector<std::string> getSourceRegionIds()const;
|
||||
void setSourceRegionIds(const std::vector<std::string>& sourceRegionIds);
|
||||
std::string getGatewayZoneId()const;
|
||||
void setGatewayZoneId(const std::string& gatewayZoneId);
|
||||
std::vector<long> getMatchAsns()const;
|
||||
void setMatchAsns(const std::vector<long>& matchAsns);
|
||||
int getPreference()const;
|
||||
@@ -69,6 +77,8 @@ namespace AlibabaCloud
|
||||
void setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet);
|
||||
std::vector<std::string> getRouteTypes()const;
|
||||
void setRouteTypes(const std::vector<std::string>& routeTypes);
|
||||
std::string getMatchAddressType()const;
|
||||
void setMatchAddressType(const std::string& matchAddressType);
|
||||
std::string getCidrMatchMode()const;
|
||||
void setCidrMatchMode(const std::string& cidrMatchMode);
|
||||
std::string getCenId()const;
|
||||
@@ -79,6 +89,8 @@ namespace AlibabaCloud
|
||||
void setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch);
|
||||
std::vector<std::string> getDestinationRouteTableIds()const;
|
||||
void setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds);
|
||||
std::vector<std::string> getSourceZoneIds()const;
|
||||
void setSourceZoneIds(const std::vector<std::string>& sourceZoneIds);
|
||||
std::string getTransmitDirection()const;
|
||||
void setTransmitDirection(const std::string& transmitDirection);
|
||||
std::vector<std::string> getDestinationInstanceIds()const;
|
||||
@@ -102,10 +114,14 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string communityMatchMode_;
|
||||
std::string mapResult_;
|
||||
std::vector<std::string> destinationRegionIds_;
|
||||
int nextPriority_;
|
||||
std::vector<std::string> destinationCidrBlocks_;
|
||||
bool systemPolicy_;
|
||||
std::vector<std::string> originalRouteTableIds_;
|
||||
std::vector<std::string> sourceInstanceIds_;
|
||||
std::vector<std::string> sourceRegionIds_;
|
||||
std::string gatewayZoneId_;
|
||||
std::vector<long> matchAsns_;
|
||||
int preference_;
|
||||
long ownerId_;
|
||||
@@ -116,11 +132,13 @@ namespace AlibabaCloud
|
||||
std::string communityOperateMode_;
|
||||
std::vector<std::string> operateCommunitySet_;
|
||||
std::vector<std::string> routeTypes_;
|
||||
std::string matchAddressType_;
|
||||
std::string cidrMatchMode_;
|
||||
std::string cenId_;
|
||||
std::string description_;
|
||||
bool sourceInstanceIdsReverseMatch_;
|
||||
std::vector<std::string> destinationRouteTableIds_;
|
||||
std::vector<std::string> sourceZoneIds_;
|
||||
std::string transmitDirection_;
|
||||
std::vector<std::string> destinationInstanceIds_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteCenChildInstanceRouteEntryToCenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteCenChildInstanceRouteEntryToCenRequest();
|
||||
~DeleteCenChildInstanceRouteEntryToCenRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getCenId()const;
|
||||
void setCenId(const std::string& cenId);
|
||||
std::string getChildInstanceRegionId()const;
|
||||
void setChildInstanceRegionId(const std::string& childInstanceRegionId);
|
||||
std::string getRouteTableId()const;
|
||||
void setRouteTableId(const std::string& routeTableId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getDestinationCidrBlock()const;
|
||||
void setDestinationCidrBlock(const std::string& destinationCidrBlock);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getChildInstanceType()const;
|
||||
void setChildInstanceType(const std::string& childInstanceType);
|
||||
std::string getChildInstanceId()const;
|
||||
void setChildInstanceId(const std::string& childInstanceId);
|
||||
long getChildInstanceAliUid()const;
|
||||
void setChildInstanceAliUid(long childInstanceAliUid);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string cenId_;
|
||||
std::string childInstanceRegionId_;
|
||||
std::string routeTableId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string destinationCidrBlock_;
|
||||
long ownerId_;
|
||||
std::string childInstanceType_;
|
||||
std::string childInstanceId_;
|
||||
long childInstanceAliUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteCenChildInstanceRouteEntryToCenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteCenChildInstanceRouteEntryToCenResult();
|
||||
explicit DeleteCenChildInstanceRouteEntryToCenResult(const std::string &payload);
|
||||
~DeleteCenChildInstanceRouteEntryToCenResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
DescribeCenAttachedChildInstanceAttributeRequest();
|
||||
~DescribeCenAttachedChildInstanceAttributeRequest();
|
||||
|
||||
bool getIncludeRouteTable()const;
|
||||
void setIncludeRouteTable(bool includeRouteTable);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getCenId()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
void setChildInstanceId(const std::string& childInstanceId);
|
||||
|
||||
private:
|
||||
bool includeRouteTable_;
|
||||
long resourceOwnerId_;
|
||||
std::string cenId_;
|
||||
std::string childInstanceRegionId_;
|
||||
|
||||
@@ -32,13 +32,20 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CBN_EXPORT DescribeCenAttachedChildInstanceAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ChildInstanceRouteTable
|
||||
{
|
||||
std::string routeTableId;
|
||||
std::string routeTableType;
|
||||
};
|
||||
|
||||
|
||||
DescribeCenAttachedChildInstanceAttributeResult();
|
||||
explicit DescribeCenAttachedChildInstanceAttributeResult(const std::string &payload);
|
||||
~DescribeCenAttachedChildInstanceAttributeResult();
|
||||
std::string getStatus()const;
|
||||
std::vector<ChildInstanceRouteTable> getChildInstanceRouteTables()const;
|
||||
std::string getChildInstanceType()const;
|
||||
std::string getIpv6StatusInCen()const;
|
||||
std::string getCenId()const;
|
||||
std::string getChildInstanceAttachTime()const;
|
||||
long getChildInstanceOwnerId()const;
|
||||
@@ -50,7 +57,9 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::vector<ChildInstanceRouteTable> childInstanceRouteTables_;
|
||||
std::string childInstanceType_;
|
||||
std::string ipv6StatusInCen_;
|
||||
std::string cenId_;
|
||||
std::string childInstanceAttachTime_;
|
||||
long childInstanceOwnerId_;
|
||||
|
||||
@@ -31,6 +31,11 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CBN_EXPORT DescribeCenBandwidthPackagesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct Filter
|
||||
{
|
||||
std::vector<std::string> value;
|
||||
@@ -51,6 +56,8 @@ namespace AlibabaCloud
|
||||
void setIsOrKey(bool isOrKey);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -66,6 +73,7 @@ namespace AlibabaCloud
|
||||
int pageNumber_;
|
||||
bool isOrKey_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -41,6 +41,11 @@ namespace AlibabaCloud
|
||||
std::string bandwidthLimit;
|
||||
std::string localRegionId;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string description;
|
||||
std::string geographicSpanId;
|
||||
@@ -63,6 +68,7 @@ namespace AlibabaCloud
|
||||
std::string reservationActiveTime;
|
||||
std::string cenBandwidthPackageId;
|
||||
std::string reservationBandwidth;
|
||||
std::vector<CenBandwidthPackage::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -49,12 +49,16 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getDestinationCidrBlock()const;
|
||||
void setDestinationCidrBlock(const std::string& destinationCidrBlock);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getChildInstanceType()const;
|
||||
void setChildInstanceType(const std::string& childInstanceType);
|
||||
std::string getChildInstanceId()const;
|
||||
void setChildInstanceId(const std::string& childInstanceId);
|
||||
std::string getChildInstanceRouteTableId()const;
|
||||
void setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
@@ -66,9 +70,11 @@ namespace AlibabaCloud
|
||||
std::string childInstanceRegionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string destinationCidrBlock_;
|
||||
long ownerId_;
|
||||
std::string childInstanceType_;
|
||||
std::string childInstanceId_;
|
||||
std::string childInstanceRouteTableId_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct CenInterRegionBandwidthLimit
|
||||
{
|
||||
std::string status;
|
||||
std::string transitRouterAttachmentId;
|
||||
std::string geographicSpanId;
|
||||
std::string oppositeRegionId;
|
||||
std::string cenId;
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getDestinationCidrBlock()const;
|
||||
void setDestinationCidrBlock(const std::string& destinationCidrBlock);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getCenRegionId()const;
|
||||
@@ -61,6 +63,7 @@ namespace AlibabaCloud
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string destinationCidrBlock_;
|
||||
long ownerId_;
|
||||
std::string cenRegionId_;
|
||||
std::string status_;
|
||||
|
||||
@@ -30,6 +30,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT DescribeCenRouteMapsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Filter
|
||||
{
|
||||
std::vector<std::string> value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeCenRouteMapsRequest();
|
||||
@@ -53,6 +59,8 @@ namespace AlibabaCloud
|
||||
void setRouteMapId(const std::string& routeMapId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<Filter> getFilter()const;
|
||||
void setFilter(const std::vector<Filter>& filter);
|
||||
std::string getCenRegionId()const;
|
||||
void setCenRegionId(const std::string& cenRegionId);
|
||||
|
||||
@@ -66,6 +74,7 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
std::string routeMapId_;
|
||||
long ownerId_;
|
||||
std::vector<Filter> filter_;
|
||||
std::string cenRegionId_;
|
||||
|
||||
};
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user