YUNDUN SDK Auto Released By shenshi,Version:1.34.35

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-15 18:02:59 +08:00
parent 619a7827de
commit eea054f3c4
47 changed files with 2465 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2019-03-15 Version: 1.34.35
1, Update Dependency
2019-03-15 Version: 1.34.34
1, Update Dependency

View File

@@ -105,3 +105,5 @@ add_subdirectory(openanalytics)
add_subdirectory(snsuapi)
add_subdirectory(ubsms)
add_subdirectory(yundun)

View File

@@ -1 +1 @@
1.34.34
1.34.35

122
yundun/CMakeLists.txt Normal file
View File

@@ -0,0 +1,122 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(yundun_public_header
include/alibabacloud/yundun/YundunClient.h
include/alibabacloud/yundun/YundunExport.h )
set(yundun_public_header_model
include/alibabacloud/yundun/model/TodayqpsByRegionRequest.h
include/alibabacloud/yundun/model/TodayqpsByRegionResult.h
include/alibabacloud/yundun/model/TodayAllppsRequest.h
include/alibabacloud/yundun/model/TodayAllppsResult.h
include/alibabacloud/yundun/model/TodayBackdoorRequest.h
include/alibabacloud/yundun/model/TodayBackdoorResult.h
include/alibabacloud/yundun/model/TodayCrackInterceptRequest.h
include/alibabacloud/yundun/model/TodayCrackInterceptResult.h
include/alibabacloud/yundun/model/AllMalwareNumRequest.h
include/alibabacloud/yundun/model/AllMalwareNumResult.h
include/alibabacloud/yundun/model/TodayMalwareNumRequest.h
include/alibabacloud/yundun/model/TodayMalwareNumResult.h
include/alibabacloud/yundun/model/WebAttackNumRequest.h
include/alibabacloud/yundun/model/WebAttackNumResult.h
include/alibabacloud/yundun/model/TodayAegisOnlineRateRequest.h
include/alibabacloud/yundun/model/TodayAegisOnlineRateResult.h
include/alibabacloud/yundun/model/CurrentDdosAttackNumRequest.h
include/alibabacloud/yundun/model/CurrentDdosAttackNumResult.h
include/alibabacloud/yundun/model/TodayAllkbpsRequest.h
include/alibabacloud/yundun/model/TodayAllkbpsResult.h )
set(yundun_src
src/YundunClient.cc
src/model/TodayqpsByRegionRequest.cc
src/model/TodayqpsByRegionResult.cc
src/model/TodayAllppsRequest.cc
src/model/TodayAllppsResult.cc
src/model/TodayBackdoorRequest.cc
src/model/TodayBackdoorResult.cc
src/model/TodayCrackInterceptRequest.cc
src/model/TodayCrackInterceptResult.cc
src/model/AllMalwareNumRequest.cc
src/model/AllMalwareNumResult.cc
src/model/TodayMalwareNumRequest.cc
src/model/TodayMalwareNumResult.cc
src/model/WebAttackNumRequest.cc
src/model/WebAttackNumResult.cc
src/model/TodayAegisOnlineRateRequest.cc
src/model/TodayAegisOnlineRateResult.cc
src/model/CurrentDdosAttackNumRequest.cc
src/model/CurrentDdosAttackNumResult.cc
src/model/TodayAllkbpsRequest.cc
src/model/TodayAllkbpsResult.cc )
add_library(yundun ${LIB_TYPE}
${yundun_public_header}
${yundun_public_header_model}
${yundun_src})
set_target_properties(yundun
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}yundun
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(yundun
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_YUNDUN_LIBRARY)
endif()
target_include_directories(yundun
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(yundun
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(yundun
jsoncpp)
target_include_directories(yundun
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(yundun
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(yundun
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(yundun
PRIVATE /usr/include/jsoncpp)
target_link_libraries(yundun
jsoncpp)
endif()
install(FILES ${yundun_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/yundun)
install(FILES ${yundun_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/yundun/model)
install(TARGETS yundun
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,126 @@
/*
* 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_YUNDUN_YUNDUNCLIENT_H_
#define ALIBABACLOUD_YUNDUN_YUNDUNCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "YundunExport.h"
#include "model/TodayqpsByRegionRequest.h"
#include "model/TodayqpsByRegionResult.h"
#include "model/TodayAllppsRequest.h"
#include "model/TodayAllppsResult.h"
#include "model/TodayBackdoorRequest.h"
#include "model/TodayBackdoorResult.h"
#include "model/TodayCrackInterceptRequest.h"
#include "model/TodayCrackInterceptResult.h"
#include "model/AllMalwareNumRequest.h"
#include "model/AllMalwareNumResult.h"
#include "model/TodayMalwareNumRequest.h"
#include "model/TodayMalwareNumResult.h"
#include "model/WebAttackNumRequest.h"
#include "model/WebAttackNumResult.h"
#include "model/TodayAegisOnlineRateRequest.h"
#include "model/TodayAegisOnlineRateResult.h"
#include "model/CurrentDdosAttackNumRequest.h"
#include "model/CurrentDdosAttackNumResult.h"
#include "model/TodayAllkbpsRequest.h"
#include "model/TodayAllkbpsResult.h"
namespace AlibabaCloud
{
namespace Yundun
{
class ALIBABACLOUD_YUNDUN_EXPORT YundunClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::TodayqpsByRegionResult> TodayqpsByRegionOutcome;
typedef std::future<TodayqpsByRegionOutcome> TodayqpsByRegionOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::TodayqpsByRegionRequest&, const TodayqpsByRegionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TodayqpsByRegionAsyncHandler;
typedef Outcome<Error, Model::TodayAllppsResult> TodayAllppsOutcome;
typedef std::future<TodayAllppsOutcome> TodayAllppsOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::TodayAllppsRequest&, const TodayAllppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TodayAllppsAsyncHandler;
typedef Outcome<Error, Model::TodayBackdoorResult> TodayBackdoorOutcome;
typedef std::future<TodayBackdoorOutcome> TodayBackdoorOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::TodayBackdoorRequest&, const TodayBackdoorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TodayBackdoorAsyncHandler;
typedef Outcome<Error, Model::TodayCrackInterceptResult> TodayCrackInterceptOutcome;
typedef std::future<TodayCrackInterceptOutcome> TodayCrackInterceptOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::TodayCrackInterceptRequest&, const TodayCrackInterceptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TodayCrackInterceptAsyncHandler;
typedef Outcome<Error, Model::AllMalwareNumResult> AllMalwareNumOutcome;
typedef std::future<AllMalwareNumOutcome> AllMalwareNumOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::AllMalwareNumRequest&, const AllMalwareNumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllMalwareNumAsyncHandler;
typedef Outcome<Error, Model::TodayMalwareNumResult> TodayMalwareNumOutcome;
typedef std::future<TodayMalwareNumOutcome> TodayMalwareNumOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::TodayMalwareNumRequest&, const TodayMalwareNumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TodayMalwareNumAsyncHandler;
typedef Outcome<Error, Model::WebAttackNumResult> WebAttackNumOutcome;
typedef std::future<WebAttackNumOutcome> WebAttackNumOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::WebAttackNumRequest&, const WebAttackNumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> WebAttackNumAsyncHandler;
typedef Outcome<Error, Model::TodayAegisOnlineRateResult> TodayAegisOnlineRateOutcome;
typedef std::future<TodayAegisOnlineRateOutcome> TodayAegisOnlineRateOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::TodayAegisOnlineRateRequest&, const TodayAegisOnlineRateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TodayAegisOnlineRateAsyncHandler;
typedef Outcome<Error, Model::CurrentDdosAttackNumResult> CurrentDdosAttackNumOutcome;
typedef std::future<CurrentDdosAttackNumOutcome> CurrentDdosAttackNumOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::CurrentDdosAttackNumRequest&, const CurrentDdosAttackNumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CurrentDdosAttackNumAsyncHandler;
typedef Outcome<Error, Model::TodayAllkbpsResult> TodayAllkbpsOutcome;
typedef std::future<TodayAllkbpsOutcome> TodayAllkbpsOutcomeCallable;
typedef std::function<void(const YundunClient*, const Model::TodayAllkbpsRequest&, const TodayAllkbpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TodayAllkbpsAsyncHandler;
YundunClient(const Credentials &credentials, const ClientConfiguration &configuration);
YundunClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
YundunClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~YundunClient();
TodayqpsByRegionOutcome todayqpsByRegion(const Model::TodayqpsByRegionRequest &request)const;
void todayqpsByRegionAsync(const Model::TodayqpsByRegionRequest& request, const TodayqpsByRegionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TodayqpsByRegionOutcomeCallable todayqpsByRegionCallable(const Model::TodayqpsByRegionRequest& request) const;
TodayAllppsOutcome todayAllpps(const Model::TodayAllppsRequest &request)const;
void todayAllppsAsync(const Model::TodayAllppsRequest& request, const TodayAllppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TodayAllppsOutcomeCallable todayAllppsCallable(const Model::TodayAllppsRequest& request) const;
TodayBackdoorOutcome todayBackdoor(const Model::TodayBackdoorRequest &request)const;
void todayBackdoorAsync(const Model::TodayBackdoorRequest& request, const TodayBackdoorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TodayBackdoorOutcomeCallable todayBackdoorCallable(const Model::TodayBackdoorRequest& request) const;
TodayCrackInterceptOutcome todayCrackIntercept(const Model::TodayCrackInterceptRequest &request)const;
void todayCrackInterceptAsync(const Model::TodayCrackInterceptRequest& request, const TodayCrackInterceptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TodayCrackInterceptOutcomeCallable todayCrackInterceptCallable(const Model::TodayCrackInterceptRequest& request) const;
AllMalwareNumOutcome allMalwareNum(const Model::AllMalwareNumRequest &request)const;
void allMalwareNumAsync(const Model::AllMalwareNumRequest& request, const AllMalwareNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AllMalwareNumOutcomeCallable allMalwareNumCallable(const Model::AllMalwareNumRequest& request) const;
TodayMalwareNumOutcome todayMalwareNum(const Model::TodayMalwareNumRequest &request)const;
void todayMalwareNumAsync(const Model::TodayMalwareNumRequest& request, const TodayMalwareNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TodayMalwareNumOutcomeCallable todayMalwareNumCallable(const Model::TodayMalwareNumRequest& request) const;
WebAttackNumOutcome webAttackNum(const Model::WebAttackNumRequest &request)const;
void webAttackNumAsync(const Model::WebAttackNumRequest& request, const WebAttackNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
WebAttackNumOutcomeCallable webAttackNumCallable(const Model::WebAttackNumRequest& request) const;
TodayAegisOnlineRateOutcome todayAegisOnlineRate(const Model::TodayAegisOnlineRateRequest &request)const;
void todayAegisOnlineRateAsync(const Model::TodayAegisOnlineRateRequest& request, const TodayAegisOnlineRateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TodayAegisOnlineRateOutcomeCallable todayAegisOnlineRateCallable(const Model::TodayAegisOnlineRateRequest& request) const;
CurrentDdosAttackNumOutcome currentDdosAttackNum(const Model::CurrentDdosAttackNumRequest &request)const;
void currentDdosAttackNumAsync(const Model::CurrentDdosAttackNumRequest& request, const CurrentDdosAttackNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CurrentDdosAttackNumOutcomeCallable currentDdosAttackNumCallable(const Model::CurrentDdosAttackNumRequest& request) const;
TodayAllkbpsOutcome todayAllkbps(const Model::TodayAllkbpsRequest &request)const;
void todayAllkbpsAsync(const Model::TodayAllkbpsRequest& request, const TodayAllkbpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TodayAllkbpsOutcomeCallable todayAllkbpsCallable(const Model::TodayAllkbpsRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_YUNDUN_YUNDUNCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* 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_YUNDUN_YUNDUNEXPORT_H_
#define ALIBABACLOUD_YUNDUN_YUNDUNEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_YUNDUN_LIBRARY)
# define ALIBABACLOUD_YUNDUN_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_YUNDUN_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_YUNDUN_EXPORT
#endif
#endif // !ALIBABACLOUD_YUNDUN_YUNDUNEXPORT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_ALLMALWARENUMREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_ALLMALWARENUMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT AllMalwareNumRequest : public RpcServiceRequest
{
public:
AllMalwareNumRequest();
~AllMalwareNumRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_ALLMALWARENUMREQUEST_H_

View 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_YUNDUN_MODEL_ALLMALWARENUMRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_ALLMALWARENUMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT AllMalwareNumResult : public ServiceResult
{
public:
AllMalwareNumResult();
explicit AllMalwareNumResult(const std::string &payload);
~AllMalwareNumResult();
long getAllMalwareNum()const;
protected:
void parse(const std::string &payload);
private:
long allMalwareNum_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_ALLMALWARENUMRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_CURRENTDDOSATTACKNUMREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_CURRENTDDOSATTACKNUMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT CurrentDdosAttackNumRequest : public RpcServiceRequest
{
public:
CurrentDdosAttackNumRequest();
~CurrentDdosAttackNumRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_CURRENTDDOSATTACKNUMREQUEST_H_

View 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_YUNDUN_MODEL_CURRENTDDOSATTACKNUMRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_CURRENTDDOSATTACKNUMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT CurrentDdosAttackNumResult : public ServiceResult
{
public:
CurrentDdosAttackNumResult();
explicit CurrentDdosAttackNumResult(const std::string &payload);
~CurrentDdosAttackNumResult();
long getCurrentDdosAttackNum()const;
protected:
void parse(const std::string &payload);
private:
long currentDdosAttackNum_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_CURRENTDDOSATTACKNUMRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_TODAYAEGISONLINERATEREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYAEGISONLINERATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayAegisOnlineRateRequest : public RpcServiceRequest
{
public:
TodayAegisOnlineRateRequest();
~TodayAegisOnlineRateRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYAEGISONLINERATEREQUEST_H_

View 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_YUNDUN_MODEL_TODAYAEGISONLINERATERESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYAEGISONLINERATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayAegisOnlineRateResult : public ServiceResult
{
public:
TodayAegisOnlineRateResult();
explicit TodayAegisOnlineRateResult(const std::string &payload);
~TodayAegisOnlineRateResult();
long getRate()const;
protected:
void parse(const std::string &payload);
private:
long rate_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYAEGISONLINERATERESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_TODAYALLKBPSREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYALLKBPSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayAllkbpsRequest : public RpcServiceRequest
{
public:
TodayAllkbpsRequest();
~TodayAllkbpsRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYALLKBPSREQUEST_H_

View 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_YUNDUN_MODEL_TODAYALLKBPSRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYALLKBPSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayAllkbpsResult : public ServiceResult
{
public:
TodayAllkbpsResult();
explicit TodayAllkbpsResult(const std::string &payload);
~TodayAllkbpsResult();
long getKbps()const;
protected:
void parse(const std::string &payload);
private:
long kbps_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYALLKBPSRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_TODAYALLPPSREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYALLPPSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayAllppsRequest : public RpcServiceRequest
{
public:
TodayAllppsRequest();
~TodayAllppsRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYALLPPSREQUEST_H_

View 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_YUNDUN_MODEL_TODAYALLPPSRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYALLPPSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayAllppsResult : public ServiceResult
{
public:
TodayAllppsResult();
explicit TodayAllppsResult(const std::string &payload);
~TodayAllppsResult();
long getPps()const;
protected:
void parse(const std::string &payload);
private:
long pps_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYALLPPSRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_TODAYBACKDOORREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYBACKDOORREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayBackdoorRequest : public RpcServiceRequest
{
public:
TodayBackdoorRequest();
~TodayBackdoorRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYBACKDOORREQUEST_H_

View 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_YUNDUN_MODEL_TODAYBACKDOORRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYBACKDOORRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayBackdoorResult : public ServiceResult
{
public:
TodayBackdoorResult();
explicit TodayBackdoorResult(const std::string &payload);
~TodayBackdoorResult();
long getBackdoor()const;
protected:
void parse(const std::string &payload);
private:
long backdoor_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYBACKDOORRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_TODAYCRACKINTERCEPTREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYCRACKINTERCEPTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayCrackInterceptRequest : public RpcServiceRequest
{
public:
TodayCrackInterceptRequest();
~TodayCrackInterceptRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYCRACKINTERCEPTREQUEST_H_

View 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_YUNDUN_MODEL_TODAYCRACKINTERCEPTRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYCRACKINTERCEPTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayCrackInterceptResult : public ServiceResult
{
public:
TodayCrackInterceptResult();
explicit TodayCrackInterceptResult(const std::string &payload);
~TodayCrackInterceptResult();
long getInterceptNum()const;
protected:
void parse(const std::string &payload);
private:
long interceptNum_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYCRACKINTERCEPTRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_TODAYMALWARENUMREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYMALWARENUMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayMalwareNumRequest : public RpcServiceRequest
{
public:
TodayMalwareNumRequest();
~TodayMalwareNumRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYMALWARENUMREQUEST_H_

View 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_YUNDUN_MODEL_TODAYMALWARENUMRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYMALWARENUMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayMalwareNumResult : public ServiceResult
{
public:
TodayMalwareNumResult();
explicit TodayMalwareNumResult(const std::string &payload);
~TodayMalwareNumResult();
long getTodayMalwareNum()const;
protected:
void parse(const std::string &payload);
private:
long todayMalwareNum_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYMALWARENUMRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_TODAYQPSBYREGIONREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYQPSBYREGIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayqpsByRegionRequest : public RpcServiceRequest
{
public:
TodayqpsByRegionRequest();
~TodayqpsByRegionRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYQPSBYREGIONREQUEST_H_

View File

@@ -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_YUNDUN_MODEL_TODAYQPSBYREGIONRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_TODAYQPSBYREGIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT TodayqpsByRegionResult : public ServiceResult
{
public:
struct Region
{
long regionNumber;
long regionFlow;
std::string regionId;
};
TodayqpsByRegionResult();
explicit TodayqpsByRegionResult(const std::string &payload);
~TodayqpsByRegionResult();
std::vector<Region> getData()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Region> data_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_TODAYQPSBYREGIONRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_YUNDUN_MODEL_WEBATTACKNUMREQUEST_H_
#define ALIBABACLOUD_YUNDUN_MODEL_WEBATTACKNUMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT WebAttackNumRequest : public RpcServiceRequest
{
public:
WebAttackNumRequest();
~WebAttackNumRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_WEBATTACKNUMREQUEST_H_

View 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_YUNDUN_MODEL_WEBATTACKNUMRESULT_H_
#define ALIBABACLOUD_YUNDUN_MODEL_WEBATTACKNUMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/yundun/YundunExport.h>
namespace AlibabaCloud
{
namespace Yundun
{
namespace Model
{
class ALIBABACLOUD_YUNDUN_EXPORT WebAttackNumResult : public ServiceResult
{
public:
WebAttackNumResult();
explicit WebAttackNumResult(const std::string &payload);
~WebAttackNumResult();
long getWebAttackNum()const;
protected:
void parse(const std::string &payload);
private:
long webAttackNum_;
};
}
}
}
#endif // !ALIBABACLOUD_YUNDUN_MODEL_WEBATTACKNUMRESULT_H_

413
yundun/src/YundunClient.cc Normal file
View File

@@ -0,0 +1,413 @@
/*
* 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/yundun/YundunClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
namespace
{
const std::string SERVICE_NAME = "Yundun";
}
YundunClient::YundunClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "yundun");
}
YundunClient::YundunClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "yundun");
}
YundunClient::YundunClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "yundun");
}
YundunClient::~YundunClient()
{}
YundunClient::TodayqpsByRegionOutcome YundunClient::todayqpsByRegion(const TodayqpsByRegionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TodayqpsByRegionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TodayqpsByRegionOutcome(TodayqpsByRegionResult(outcome.result()));
else
return TodayqpsByRegionOutcome(outcome.error());
}
void YundunClient::todayqpsByRegionAsync(const TodayqpsByRegionRequest& request, const TodayqpsByRegionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, todayqpsByRegion(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::TodayqpsByRegionOutcomeCallable YundunClient::todayqpsByRegionCallable(const TodayqpsByRegionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TodayqpsByRegionOutcome()>>(
[this, request]()
{
return this->todayqpsByRegion(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::TodayAllppsOutcome YundunClient::todayAllpps(const TodayAllppsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TodayAllppsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TodayAllppsOutcome(TodayAllppsResult(outcome.result()));
else
return TodayAllppsOutcome(outcome.error());
}
void YundunClient::todayAllppsAsync(const TodayAllppsRequest& request, const TodayAllppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, todayAllpps(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::TodayAllppsOutcomeCallable YundunClient::todayAllppsCallable(const TodayAllppsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TodayAllppsOutcome()>>(
[this, request]()
{
return this->todayAllpps(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::TodayBackdoorOutcome YundunClient::todayBackdoor(const TodayBackdoorRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TodayBackdoorOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TodayBackdoorOutcome(TodayBackdoorResult(outcome.result()));
else
return TodayBackdoorOutcome(outcome.error());
}
void YundunClient::todayBackdoorAsync(const TodayBackdoorRequest& request, const TodayBackdoorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, todayBackdoor(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::TodayBackdoorOutcomeCallable YundunClient::todayBackdoorCallable(const TodayBackdoorRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TodayBackdoorOutcome()>>(
[this, request]()
{
return this->todayBackdoor(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::TodayCrackInterceptOutcome YundunClient::todayCrackIntercept(const TodayCrackInterceptRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TodayCrackInterceptOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TodayCrackInterceptOutcome(TodayCrackInterceptResult(outcome.result()));
else
return TodayCrackInterceptOutcome(outcome.error());
}
void YundunClient::todayCrackInterceptAsync(const TodayCrackInterceptRequest& request, const TodayCrackInterceptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, todayCrackIntercept(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::TodayCrackInterceptOutcomeCallable YundunClient::todayCrackInterceptCallable(const TodayCrackInterceptRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TodayCrackInterceptOutcome()>>(
[this, request]()
{
return this->todayCrackIntercept(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::AllMalwareNumOutcome YundunClient::allMalwareNum(const AllMalwareNumRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AllMalwareNumOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AllMalwareNumOutcome(AllMalwareNumResult(outcome.result()));
else
return AllMalwareNumOutcome(outcome.error());
}
void YundunClient::allMalwareNumAsync(const AllMalwareNumRequest& request, const AllMalwareNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, allMalwareNum(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::AllMalwareNumOutcomeCallable YundunClient::allMalwareNumCallable(const AllMalwareNumRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AllMalwareNumOutcome()>>(
[this, request]()
{
return this->allMalwareNum(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::TodayMalwareNumOutcome YundunClient::todayMalwareNum(const TodayMalwareNumRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TodayMalwareNumOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TodayMalwareNumOutcome(TodayMalwareNumResult(outcome.result()));
else
return TodayMalwareNumOutcome(outcome.error());
}
void YundunClient::todayMalwareNumAsync(const TodayMalwareNumRequest& request, const TodayMalwareNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, todayMalwareNum(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::TodayMalwareNumOutcomeCallable YundunClient::todayMalwareNumCallable(const TodayMalwareNumRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TodayMalwareNumOutcome()>>(
[this, request]()
{
return this->todayMalwareNum(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::WebAttackNumOutcome YundunClient::webAttackNum(const WebAttackNumRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return WebAttackNumOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return WebAttackNumOutcome(WebAttackNumResult(outcome.result()));
else
return WebAttackNumOutcome(outcome.error());
}
void YundunClient::webAttackNumAsync(const WebAttackNumRequest& request, const WebAttackNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, webAttackNum(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::WebAttackNumOutcomeCallable YundunClient::webAttackNumCallable(const WebAttackNumRequest &request) const
{
auto task = std::make_shared<std::packaged_task<WebAttackNumOutcome()>>(
[this, request]()
{
return this->webAttackNum(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::TodayAegisOnlineRateOutcome YundunClient::todayAegisOnlineRate(const TodayAegisOnlineRateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TodayAegisOnlineRateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TodayAegisOnlineRateOutcome(TodayAegisOnlineRateResult(outcome.result()));
else
return TodayAegisOnlineRateOutcome(outcome.error());
}
void YundunClient::todayAegisOnlineRateAsync(const TodayAegisOnlineRateRequest& request, const TodayAegisOnlineRateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, todayAegisOnlineRate(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::TodayAegisOnlineRateOutcomeCallable YundunClient::todayAegisOnlineRateCallable(const TodayAegisOnlineRateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TodayAegisOnlineRateOutcome()>>(
[this, request]()
{
return this->todayAegisOnlineRate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::CurrentDdosAttackNumOutcome YundunClient::currentDdosAttackNum(const CurrentDdosAttackNumRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CurrentDdosAttackNumOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CurrentDdosAttackNumOutcome(CurrentDdosAttackNumResult(outcome.result()));
else
return CurrentDdosAttackNumOutcome(outcome.error());
}
void YundunClient::currentDdosAttackNumAsync(const CurrentDdosAttackNumRequest& request, const CurrentDdosAttackNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, currentDdosAttackNum(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::CurrentDdosAttackNumOutcomeCallable YundunClient::currentDdosAttackNumCallable(const CurrentDdosAttackNumRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CurrentDdosAttackNumOutcome()>>(
[this, request]()
{
return this->currentDdosAttackNum(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
YundunClient::TodayAllkbpsOutcome YundunClient::todayAllkbps(const TodayAllkbpsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TodayAllkbpsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TodayAllkbpsOutcome(TodayAllkbpsResult(outcome.result()));
else
return TodayAllkbpsOutcome(outcome.error());
}
void YundunClient::todayAllkbpsAsync(const TodayAllkbpsRequest& request, const TodayAllkbpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, todayAllkbps(request), context);
};
asyncExecute(new Runnable(fn));
}
YundunClient::TodayAllkbpsOutcomeCallable YundunClient::todayAllkbpsCallable(const TodayAllkbpsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TodayAllkbpsOutcome()>>(
[this, request]()
{
return this->todayAllkbps(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/AllMalwareNumRequest.h>
using AlibabaCloud::Yundun::Model::AllMalwareNumRequest;
AllMalwareNumRequest::AllMalwareNumRequest() :
RpcServiceRequest("yundun", "2015-02-27", "AllMalwareNum")
{}
AllMalwareNumRequest::~AllMalwareNumRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/AllMalwareNumResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
AllMalwareNumResult::AllMalwareNumResult() :
ServiceResult()
{}
AllMalwareNumResult::AllMalwareNumResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllMalwareNumResult::~AllMalwareNumResult()
{}
void AllMalwareNumResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AllMalwareNum"].isNull())
allMalwareNum_ = std::stol(value["AllMalwareNum"].asString());
}
long AllMalwareNumResult::getAllMalwareNum()const
{
return allMalwareNum_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/CurrentDdosAttackNumRequest.h>
using AlibabaCloud::Yundun::Model::CurrentDdosAttackNumRequest;
CurrentDdosAttackNumRequest::CurrentDdosAttackNumRequest() :
RpcServiceRequest("yundun", "2015-02-27", "CurrentDdosAttackNum")
{}
CurrentDdosAttackNumRequest::~CurrentDdosAttackNumRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/CurrentDdosAttackNumResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
CurrentDdosAttackNumResult::CurrentDdosAttackNumResult() :
ServiceResult()
{}
CurrentDdosAttackNumResult::CurrentDdosAttackNumResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CurrentDdosAttackNumResult::~CurrentDdosAttackNumResult()
{}
void CurrentDdosAttackNumResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CurrentDdosAttackNum"].isNull())
currentDdosAttackNum_ = std::stol(value["CurrentDdosAttackNum"].asString());
}
long CurrentDdosAttackNumResult::getCurrentDdosAttackNum()const
{
return currentDdosAttackNum_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/TodayAegisOnlineRateRequest.h>
using AlibabaCloud::Yundun::Model::TodayAegisOnlineRateRequest;
TodayAegisOnlineRateRequest::TodayAegisOnlineRateRequest() :
RpcServiceRequest("yundun", "2015-02-27", "TodayAegisOnlineRate")
{}
TodayAegisOnlineRateRequest::~TodayAegisOnlineRateRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/TodayAegisOnlineRateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
TodayAegisOnlineRateResult::TodayAegisOnlineRateResult() :
ServiceResult()
{}
TodayAegisOnlineRateResult::TodayAegisOnlineRateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TodayAegisOnlineRateResult::~TodayAegisOnlineRateResult()
{}
void TodayAegisOnlineRateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Rate"].isNull())
rate_ = std::stol(value["Rate"].asString());
}
long TodayAegisOnlineRateResult::getRate()const
{
return rate_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/TodayAllkbpsRequest.h>
using AlibabaCloud::Yundun::Model::TodayAllkbpsRequest;
TodayAllkbpsRequest::TodayAllkbpsRequest() :
RpcServiceRequest("yundun", "2015-02-27", "TodayAllkbps")
{}
TodayAllkbpsRequest::~TodayAllkbpsRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/TodayAllkbpsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
TodayAllkbpsResult::TodayAllkbpsResult() :
ServiceResult()
{}
TodayAllkbpsResult::TodayAllkbpsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TodayAllkbpsResult::~TodayAllkbpsResult()
{}
void TodayAllkbpsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Kbps"].isNull())
kbps_ = std::stol(value["Kbps"].asString());
}
long TodayAllkbpsResult::getKbps()const
{
return kbps_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/TodayAllppsRequest.h>
using AlibabaCloud::Yundun::Model::TodayAllppsRequest;
TodayAllppsRequest::TodayAllppsRequest() :
RpcServiceRequest("yundun", "2015-02-27", "TodayAllpps")
{}
TodayAllppsRequest::~TodayAllppsRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/TodayAllppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
TodayAllppsResult::TodayAllppsResult() :
ServiceResult()
{}
TodayAllppsResult::TodayAllppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TodayAllppsResult::~TodayAllppsResult()
{}
void TodayAllppsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Pps"].isNull())
pps_ = std::stol(value["Pps"].asString());
}
long TodayAllppsResult::getPps()const
{
return pps_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/TodayBackdoorRequest.h>
using AlibabaCloud::Yundun::Model::TodayBackdoorRequest;
TodayBackdoorRequest::TodayBackdoorRequest() :
RpcServiceRequest("yundun", "2015-02-27", "TodayBackdoor")
{}
TodayBackdoorRequest::~TodayBackdoorRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/TodayBackdoorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
TodayBackdoorResult::TodayBackdoorResult() :
ServiceResult()
{}
TodayBackdoorResult::TodayBackdoorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TodayBackdoorResult::~TodayBackdoorResult()
{}
void TodayBackdoorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Backdoor"].isNull())
backdoor_ = std::stol(value["Backdoor"].asString());
}
long TodayBackdoorResult::getBackdoor()const
{
return backdoor_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/TodayCrackInterceptRequest.h>
using AlibabaCloud::Yundun::Model::TodayCrackInterceptRequest;
TodayCrackInterceptRequest::TodayCrackInterceptRequest() :
RpcServiceRequest("yundun", "2015-02-27", "TodayCrackIntercept")
{}
TodayCrackInterceptRequest::~TodayCrackInterceptRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/TodayCrackInterceptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
TodayCrackInterceptResult::TodayCrackInterceptResult() :
ServiceResult()
{}
TodayCrackInterceptResult::TodayCrackInterceptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TodayCrackInterceptResult::~TodayCrackInterceptResult()
{}
void TodayCrackInterceptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["InterceptNum"].isNull())
interceptNum_ = std::stol(value["InterceptNum"].asString());
}
long TodayCrackInterceptResult::getInterceptNum()const
{
return interceptNum_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/TodayMalwareNumRequest.h>
using AlibabaCloud::Yundun::Model::TodayMalwareNumRequest;
TodayMalwareNumRequest::TodayMalwareNumRequest() :
RpcServiceRequest("yundun", "2015-02-27", "TodayMalwareNum")
{}
TodayMalwareNumRequest::~TodayMalwareNumRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/TodayMalwareNumResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
TodayMalwareNumResult::TodayMalwareNumResult() :
ServiceResult()
{}
TodayMalwareNumResult::TodayMalwareNumResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TodayMalwareNumResult::~TodayMalwareNumResult()
{}
void TodayMalwareNumResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TodayMalwareNum"].isNull())
todayMalwareNum_ = std::stol(value["TodayMalwareNum"].asString());
}
long TodayMalwareNumResult::getTodayMalwareNum()const
{
return todayMalwareNum_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/TodayqpsByRegionRequest.h>
using AlibabaCloud::Yundun::Model::TodayqpsByRegionRequest;
TodayqpsByRegionRequest::TodayqpsByRegionRequest() :
RpcServiceRequest("yundun", "2015-02-27", "TodayqpsByRegion")
{}
TodayqpsByRegionRequest::~TodayqpsByRegionRequest()
{}

View 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/yundun/model/TodayqpsByRegionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
TodayqpsByRegionResult::TodayqpsByRegionResult() :
ServiceResult()
{}
TodayqpsByRegionResult::TodayqpsByRegionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TodayqpsByRegionResult::~TodayqpsByRegionResult()
{}
void TodayqpsByRegionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["Region"];
for (auto value : allData)
{
Region dataObject;
if(!value["RegionId"].isNull())
dataObject.regionId = value["RegionId"].asString();
if(!value["RegionNumber"].isNull())
dataObject.regionNumber = std::stol(value["RegionNumber"].asString());
if(!value["RegionFlow"].isNull())
dataObject.regionFlow = std::stol(value["RegionFlow"].asString());
data_.push_back(dataObject);
}
}
std::vector<TodayqpsByRegionResult::Region> TodayqpsByRegionResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/yundun/model/WebAttackNumRequest.h>
using AlibabaCloud::Yundun::Model::WebAttackNumRequest;
WebAttackNumRequest::WebAttackNumRequest() :
RpcServiceRequest("yundun", "2015-02-27", "WebAttackNum")
{}
WebAttackNumRequest::~WebAttackNumRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* 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/yundun/model/WebAttackNumResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Yundun;
using namespace AlibabaCloud::Yundun::Model;
WebAttackNumResult::WebAttackNumResult() :
ServiceResult()
{}
WebAttackNumResult::WebAttackNumResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
WebAttackNumResult::~WebAttackNumResult()
{}
void WebAttackNumResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["WebAttackNum"].isNull())
webAttackNum_ = std::stol(value["WebAttackNum"].asString());
}
long WebAttackNumResult::getWebAttackNum()const
{
return webAttackNum_;
}