diff --git a/CHANGELOG b/CHANGELOG index d627348d4..09ddd0c52 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2018-12-06 Version: 1.34.6 +1, Add DescribeLiveDomainRealTimeBpsData, DescribeLiveDomainRealTimeHttpCodeData,DescribeLiveDomainRealTimeTrafficData. +2, Update DescirbeCasterChannels and DescribeCasterStreamUrl. + + 2018-12-03 Version: 1.34.5 1, Sync CDN API. diff --git a/VERSION b/VERSION index 52d8a54fe..416e0d5c9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.5 \ No newline at end of file +1.34.6 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index 44096745a..fe638ce88 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -53,6 +53,8 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveStreamsOnlineListResult.h include/alibabacloud/live/model/DeleteLiveSnapshotDetectPornConfigRequest.h include/alibabacloud/live/model/DeleteLiveSnapshotDetectPornConfigResult.h + include/alibabacloud/live/model/DescribeUpBpsPeakOfLineRequest.h + include/alibabacloud/live/model/DescribeUpBpsPeakOfLineResult.h include/alibabacloud/live/model/CopyCasterSceneConfigRequest.h include/alibabacloud/live/model/CopyCasterSceneConfigResult.h include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataRequest.h @@ -83,6 +85,8 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFileResult.h include/alibabacloud/live/model/AddCasterEpisodeGroupRequest.h include/alibabacloud/live/model/AddCasterEpisodeGroupResult.h + include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowRequest.h + include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowResult.h include/alibabacloud/live/model/AddLiveMixConfigRequest.h include/alibabacloud/live/model/AddLiveMixConfigResult.h include/alibabacloud/live/model/DescribeCasterConfigRequest.h @@ -95,6 +99,8 @@ set(live_public_header_model include/alibabacloud/live/model/SetLiveLazyPullStreamInfoConfigResult.h include/alibabacloud/live/model/AddCasterEpisodeRequest.h include/alibabacloud/live/model/AddCasterEpisodeResult.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataResult.h include/alibabacloud/live/model/AllowPushStreamRequest.h include/alibabacloud/live/model/AllowPushStreamResult.h include/alibabacloud/live/model/ForbidPushStreamRequest.h @@ -129,6 +135,8 @@ set(live_public_header_model include/alibabacloud/live/model/UpdateCasterSceneAudioResult.h include/alibabacloud/live/model/DescribeLiveStreamsNotifyUrlConfigRequest.h include/alibabacloud/live/model/DescribeLiveStreamsNotifyUrlConfigResult.h + include/alibabacloud/live/model/DescribeUpBpsPeakDataRequest.h + include/alibabacloud/live/model/DescribeUpBpsPeakDataResult.h include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigRequest.h include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigResult.h include/alibabacloud/live/model/ModifyCasterProgramRequest.h @@ -173,10 +181,14 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveStreamCountResult.h include/alibabacloud/live/model/StopCasterSceneRequest.h include/alibabacloud/live/model/StopCasterSceneResult.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataResult.h include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataRequest.h include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataResult.h include/alibabacloud/live/model/DeleteLiveRecordVodConfigRequest.h include/alibabacloud/live/model/DeleteLiveRecordVodConfigResult.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataResult.h include/alibabacloud/live/model/ModifyCasterEpisodeRequest.h include/alibabacloud/live/model/ModifyCasterEpisodeResult.h include/alibabacloud/live/model/DescribeBoardsRequest.h @@ -263,6 +275,8 @@ set(live_public_header_model include/alibabacloud/live/model/EffectCasterVideoResourceResult.h include/alibabacloud/live/model/DeleteLiveMixNotifyConfigRequest.h include/alibabacloud/live/model/DeleteLiveMixNotifyConfigResult.h + include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataRequest.h + include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataResult.h include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h include/alibabacloud/live/model/AddLiveAppSnapshotConfigResult.h include/alibabacloud/live/model/RemoveMultipleStreamMixServiceRequest.h @@ -301,8 +315,6 @@ set(live_public_header_model include/alibabacloud/live/model/DeleteCasterSceneConfigResult.h include/alibabacloud/live/model/AddLiveDomainRequest.h include/alibabacloud/live/model/AddLiveDomainResult.h - include/alibabacloud/live/model/DescribeDomainUsageDataRequest.h - include/alibabacloud/live/model/DescribeDomainUsageDataResult.h include/alibabacloud/live/model/DeleteLiveAppRecordConfigRequest.h include/alibabacloud/live/model/DeleteLiveAppRecordConfigResult.h include/alibabacloud/live/model/DescribeLiveDomainBpsDataRequest.h @@ -360,6 +372,8 @@ set(live_src src/model/DescribeLiveStreamsOnlineListResult.cc src/model/DeleteLiveSnapshotDetectPornConfigRequest.cc src/model/DeleteLiveSnapshotDetectPornConfigResult.cc + src/model/DescribeUpBpsPeakOfLineRequest.cc + src/model/DescribeUpBpsPeakOfLineResult.cc src/model/CopyCasterSceneConfigRequest.cc src/model/CopyCasterSceneConfigResult.cc src/model/DescribeLiveDomainTranscodeDataRequest.cc @@ -390,6 +404,8 @@ set(live_src src/model/DescribeLiveStreamRecordIndexFileResult.cc src/model/AddCasterEpisodeGroupRequest.cc src/model/AddCasterEpisodeGroupResult.cc + src/model/DescribeLiveTopDomainsByFlowRequest.cc + src/model/DescribeLiveTopDomainsByFlowResult.cc src/model/AddLiveMixConfigRequest.cc src/model/AddLiveMixConfigResult.cc src/model/DescribeCasterConfigRequest.cc @@ -402,6 +418,8 @@ set(live_src src/model/SetLiveLazyPullStreamInfoConfigResult.cc src/model/AddCasterEpisodeRequest.cc src/model/AddCasterEpisodeResult.cc + src/model/DescribeLiveDomainRealTimeBpsDataRequest.cc + src/model/DescribeLiveDomainRealTimeBpsDataResult.cc src/model/AllowPushStreamRequest.cc src/model/AllowPushStreamResult.cc src/model/ForbidPushStreamRequest.cc @@ -436,6 +454,8 @@ set(live_src src/model/UpdateCasterSceneAudioResult.cc src/model/DescribeLiveStreamsNotifyUrlConfigRequest.cc src/model/DescribeLiveStreamsNotifyUrlConfigResult.cc + src/model/DescribeUpBpsPeakDataRequest.cc + src/model/DescribeUpBpsPeakDataResult.cc src/model/DeleteLivePullStreamInfoConfigRequest.cc src/model/DeleteLivePullStreamInfoConfigResult.cc src/model/ModifyCasterProgramRequest.cc @@ -480,10 +500,14 @@ set(live_src src/model/DescribeLiveStreamCountResult.cc src/model/StopCasterSceneRequest.cc src/model/StopCasterSceneResult.cc + src/model/DescribeLiveDomainRealTimeTrafficDataRequest.cc + src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc src/model/DescribeLiveDomainSnapshotDataRequest.cc src/model/DescribeLiveDomainSnapshotDataResult.cc src/model/DeleteLiveRecordVodConfigRequest.cc src/model/DeleteLiveRecordVodConfigResult.cc + src/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.cc + src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc src/model/ModifyCasterEpisodeRequest.cc src/model/ModifyCasterEpisodeResult.cc src/model/DescribeBoardsRequest.cc @@ -570,6 +594,8 @@ set(live_src src/model/EffectCasterVideoResourceResult.cc src/model/DeleteLiveMixNotifyConfigRequest.cc src/model/DeleteLiveMixNotifyConfigResult.cc + src/model/DescribeUpPeakPublishStreamDataRequest.cc + src/model/DescribeUpPeakPublishStreamDataResult.cc src/model/AddLiveAppSnapshotConfigRequest.cc src/model/AddLiveAppSnapshotConfigResult.cc src/model/RemoveMultipleStreamMixServiceRequest.cc @@ -608,8 +634,6 @@ set(live_src src/model/DeleteCasterSceneConfigResult.cc src/model/AddLiveDomainRequest.cc src/model/AddLiveDomainResult.cc - src/model/DescribeDomainUsageDataRequest.cc - src/model/DescribeDomainUsageDataResult.cc src/model/DeleteLiveAppRecordConfigRequest.cc src/model/DeleteLiveAppRecordConfigResult.cc src/model/DescribeLiveDomainBpsDataRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index 5be2202cd..b6c894fc4 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -54,6 +54,8 @@ #include "model/DescribeLiveStreamsOnlineListResult.h" #include "model/DeleteLiveSnapshotDetectPornConfigRequest.h" #include "model/DeleteLiveSnapshotDetectPornConfigResult.h" +#include "model/DescribeUpBpsPeakOfLineRequest.h" +#include "model/DescribeUpBpsPeakOfLineResult.h" #include "model/CopyCasterSceneConfigRequest.h" #include "model/CopyCasterSceneConfigResult.h" #include "model/DescribeLiveDomainTranscodeDataRequest.h" @@ -84,6 +86,8 @@ #include "model/DescribeLiveStreamRecordIndexFileResult.h" #include "model/AddCasterEpisodeGroupRequest.h" #include "model/AddCasterEpisodeGroupResult.h" +#include "model/DescribeLiveTopDomainsByFlowRequest.h" +#include "model/DescribeLiveTopDomainsByFlowResult.h" #include "model/AddLiveMixConfigRequest.h" #include "model/AddLiveMixConfigResult.h" #include "model/DescribeCasterConfigRequest.h" @@ -96,6 +100,8 @@ #include "model/SetLiveLazyPullStreamInfoConfigResult.h" #include "model/AddCasterEpisodeRequest.h" #include "model/AddCasterEpisodeResult.h" +#include "model/DescribeLiveDomainRealTimeBpsDataRequest.h" +#include "model/DescribeLiveDomainRealTimeBpsDataResult.h" #include "model/AllowPushStreamRequest.h" #include "model/AllowPushStreamResult.h" #include "model/ForbidPushStreamRequest.h" @@ -130,6 +136,8 @@ #include "model/UpdateCasterSceneAudioResult.h" #include "model/DescribeLiveStreamsNotifyUrlConfigRequest.h" #include "model/DescribeLiveStreamsNotifyUrlConfigResult.h" +#include "model/DescribeUpBpsPeakDataRequest.h" +#include "model/DescribeUpBpsPeakDataResult.h" #include "model/DeleteLivePullStreamInfoConfigRequest.h" #include "model/DeleteLivePullStreamInfoConfigResult.h" #include "model/ModifyCasterProgramRequest.h" @@ -174,10 +182,14 @@ #include "model/DescribeLiveStreamCountResult.h" #include "model/StopCasterSceneRequest.h" #include "model/StopCasterSceneResult.h" +#include "model/DescribeLiveDomainRealTimeTrafficDataRequest.h" +#include "model/DescribeLiveDomainRealTimeTrafficDataResult.h" #include "model/DescribeLiveDomainSnapshotDataRequest.h" #include "model/DescribeLiveDomainSnapshotDataResult.h" #include "model/DeleteLiveRecordVodConfigRequest.h" #include "model/DeleteLiveRecordVodConfigResult.h" +#include "model/DescribeLiveDomainRealTimeHttpCodeDataRequest.h" +#include "model/DescribeLiveDomainRealTimeHttpCodeDataResult.h" #include "model/ModifyCasterEpisodeRequest.h" #include "model/ModifyCasterEpisodeResult.h" #include "model/DescribeBoardsRequest.h" @@ -264,6 +276,8 @@ #include "model/EffectCasterVideoResourceResult.h" #include "model/DeleteLiveMixNotifyConfigRequest.h" #include "model/DeleteLiveMixNotifyConfigResult.h" +#include "model/DescribeUpPeakPublishStreamDataRequest.h" +#include "model/DescribeUpPeakPublishStreamDataResult.h" #include "model/AddLiveAppSnapshotConfigRequest.h" #include "model/AddLiveAppSnapshotConfigResult.h" #include "model/RemoveMultipleStreamMixServiceRequest.h" @@ -302,8 +316,6 @@ #include "model/DeleteCasterSceneConfigResult.h" #include "model/AddLiveDomainRequest.h" #include "model/AddLiveDomainResult.h" -#include "model/DescribeDomainUsageDataRequest.h" -#include "model/DescribeDomainUsageDataResult.h" #include "model/DeleteLiveAppRecordConfigRequest.h" #include "model/DeleteLiveAppRecordConfigResult.h" #include "model/DescribeLiveDomainBpsDataRequest.h" @@ -383,6 +395,9 @@ namespace AlibabaCloud typedef Outcome DeleteLiveSnapshotDetectPornConfigOutcome; typedef std::future DeleteLiveSnapshotDetectPornConfigOutcomeCallable; typedef std::function&)> DeleteLiveSnapshotDetectPornConfigAsyncHandler; + typedef Outcome DescribeUpBpsPeakOfLineOutcome; + typedef std::future DescribeUpBpsPeakOfLineOutcomeCallable; + typedef std::function&)> DescribeUpBpsPeakOfLineAsyncHandler; typedef Outcome CopyCasterSceneConfigOutcome; typedef std::future CopyCasterSceneConfigOutcomeCallable; typedef std::function&)> CopyCasterSceneConfigAsyncHandler; @@ -428,6 +443,9 @@ namespace AlibabaCloud typedef Outcome AddCasterEpisodeGroupOutcome; typedef std::future AddCasterEpisodeGroupOutcomeCallable; typedef std::function&)> AddCasterEpisodeGroupAsyncHandler; + typedef Outcome DescribeLiveTopDomainsByFlowOutcome; + typedef std::future DescribeLiveTopDomainsByFlowOutcomeCallable; + typedef std::function&)> DescribeLiveTopDomainsByFlowAsyncHandler; typedef Outcome AddLiveMixConfigOutcome; typedef std::future AddLiveMixConfigOutcomeCallable; typedef std::function&)> AddLiveMixConfigAsyncHandler; @@ -446,6 +464,9 @@ namespace AlibabaCloud typedef Outcome AddCasterEpisodeOutcome; typedef std::future AddCasterEpisodeOutcomeCallable; typedef std::function&)> AddCasterEpisodeAsyncHandler; + typedef Outcome DescribeLiveDomainRealTimeBpsDataOutcome; + typedef std::future DescribeLiveDomainRealTimeBpsDataOutcomeCallable; + typedef std::function&)> DescribeLiveDomainRealTimeBpsDataAsyncHandler; typedef Outcome AllowPushStreamOutcome; typedef std::future AllowPushStreamOutcomeCallable; typedef std::function&)> AllowPushStreamAsyncHandler; @@ -497,6 +518,9 @@ namespace AlibabaCloud typedef Outcome DescribeLiveStreamsNotifyUrlConfigOutcome; typedef std::future DescribeLiveStreamsNotifyUrlConfigOutcomeCallable; typedef std::function&)> DescribeLiveStreamsNotifyUrlConfigAsyncHandler; + typedef Outcome DescribeUpBpsPeakDataOutcome; + typedef std::future DescribeUpBpsPeakDataOutcomeCallable; + typedef std::function&)> DescribeUpBpsPeakDataAsyncHandler; typedef Outcome DeleteLivePullStreamInfoConfigOutcome; typedef std::future DeleteLivePullStreamInfoConfigOutcomeCallable; typedef std::function&)> DeleteLivePullStreamInfoConfigAsyncHandler; @@ -563,12 +587,18 @@ namespace AlibabaCloud typedef Outcome StopCasterSceneOutcome; typedef std::future StopCasterSceneOutcomeCallable; typedef std::function&)> StopCasterSceneAsyncHandler; + typedef Outcome DescribeLiveDomainRealTimeTrafficDataOutcome; + typedef std::future DescribeLiveDomainRealTimeTrafficDataOutcomeCallable; + typedef std::function&)> DescribeLiveDomainRealTimeTrafficDataAsyncHandler; typedef Outcome DescribeLiveDomainSnapshotDataOutcome; typedef std::future DescribeLiveDomainSnapshotDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainSnapshotDataAsyncHandler; typedef Outcome DeleteLiveRecordVodConfigOutcome; typedef std::future DeleteLiveRecordVodConfigOutcomeCallable; typedef std::function&)> DeleteLiveRecordVodConfigAsyncHandler; + typedef Outcome DescribeLiveDomainRealTimeHttpCodeDataOutcome; + typedef std::future DescribeLiveDomainRealTimeHttpCodeDataOutcomeCallable; + typedef std::function&)> DescribeLiveDomainRealTimeHttpCodeDataAsyncHandler; typedef Outcome ModifyCasterEpisodeOutcome; typedef std::future ModifyCasterEpisodeOutcomeCallable; typedef std::function&)> ModifyCasterEpisodeAsyncHandler; @@ -698,6 +728,9 @@ namespace AlibabaCloud typedef Outcome DeleteLiveMixNotifyConfigOutcome; typedef std::future DeleteLiveMixNotifyConfigOutcomeCallable; typedef std::function&)> DeleteLiveMixNotifyConfigAsyncHandler; + typedef Outcome DescribeUpPeakPublishStreamDataOutcome; + typedef std::future DescribeUpPeakPublishStreamDataOutcomeCallable; + typedef std::function&)> DescribeUpPeakPublishStreamDataAsyncHandler; typedef Outcome AddLiveAppSnapshotConfigOutcome; typedef std::future AddLiveAppSnapshotConfigOutcomeCallable; typedef std::function&)> AddLiveAppSnapshotConfigAsyncHandler; @@ -755,9 +788,6 @@ namespace AlibabaCloud typedef Outcome AddLiveDomainOutcome; typedef std::future AddLiveDomainOutcomeCallable; typedef std::function&)> AddLiveDomainAsyncHandler; - typedef Outcome DescribeDomainUsageDataOutcome; - typedef std::future DescribeDomainUsageDataOutcomeCallable; - typedef std::function&)> DescribeDomainUsageDataAsyncHandler; typedef Outcome DeleteLiveAppRecordConfigOutcome; typedef std::future DeleteLiveAppRecordConfigOutcomeCallable; typedef std::function&)> DeleteLiveAppRecordConfigAsyncHandler; @@ -844,6 +874,9 @@ namespace AlibabaCloud DeleteLiveSnapshotDetectPornConfigOutcome deleteLiveSnapshotDetectPornConfig(const Model::DeleteLiveSnapshotDetectPornConfigRequest &request)const; void deleteLiveSnapshotDetectPornConfigAsync(const Model::DeleteLiveSnapshotDetectPornConfigRequest& request, const DeleteLiveSnapshotDetectPornConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveSnapshotDetectPornConfigOutcomeCallable deleteLiveSnapshotDetectPornConfigCallable(const Model::DeleteLiveSnapshotDetectPornConfigRequest& request) const; + DescribeUpBpsPeakOfLineOutcome describeUpBpsPeakOfLine(const Model::DescribeUpBpsPeakOfLineRequest &request)const; + void describeUpBpsPeakOfLineAsync(const Model::DescribeUpBpsPeakOfLineRequest& request, const DescribeUpBpsPeakOfLineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUpBpsPeakOfLineOutcomeCallable describeUpBpsPeakOfLineCallable(const Model::DescribeUpBpsPeakOfLineRequest& request) const; CopyCasterSceneConfigOutcome copyCasterSceneConfig(const Model::CopyCasterSceneConfigRequest &request)const; void copyCasterSceneConfigAsync(const Model::CopyCasterSceneConfigRequest& request, const CopyCasterSceneConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CopyCasterSceneConfigOutcomeCallable copyCasterSceneConfigCallable(const Model::CopyCasterSceneConfigRequest& request) const; @@ -889,6 +922,9 @@ namespace AlibabaCloud AddCasterEpisodeGroupOutcome addCasterEpisodeGroup(const Model::AddCasterEpisodeGroupRequest &request)const; void addCasterEpisodeGroupAsync(const Model::AddCasterEpisodeGroupRequest& request, const AddCasterEpisodeGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCasterEpisodeGroupOutcomeCallable addCasterEpisodeGroupCallable(const Model::AddCasterEpisodeGroupRequest& request) const; + DescribeLiveTopDomainsByFlowOutcome describeLiveTopDomainsByFlow(const Model::DescribeLiveTopDomainsByFlowRequest &request)const; + void describeLiveTopDomainsByFlowAsync(const Model::DescribeLiveTopDomainsByFlowRequest& request, const DescribeLiveTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveTopDomainsByFlowOutcomeCallable describeLiveTopDomainsByFlowCallable(const Model::DescribeLiveTopDomainsByFlowRequest& request) const; AddLiveMixConfigOutcome addLiveMixConfig(const Model::AddLiveMixConfigRequest &request)const; void addLiveMixConfigAsync(const Model::AddLiveMixConfigRequest& request, const AddLiveMixConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveMixConfigOutcomeCallable addLiveMixConfigCallable(const Model::AddLiveMixConfigRequest& request) const; @@ -907,6 +943,9 @@ namespace AlibabaCloud AddCasterEpisodeOutcome addCasterEpisode(const Model::AddCasterEpisodeRequest &request)const; void addCasterEpisodeAsync(const Model::AddCasterEpisodeRequest& request, const AddCasterEpisodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCasterEpisodeOutcomeCallable addCasterEpisodeCallable(const Model::AddCasterEpisodeRequest& request) const; + DescribeLiveDomainRealTimeBpsDataOutcome describeLiveDomainRealTimeBpsData(const Model::DescribeLiveDomainRealTimeBpsDataRequest &request)const; + void describeLiveDomainRealTimeBpsDataAsync(const Model::DescribeLiveDomainRealTimeBpsDataRequest& request, const DescribeLiveDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainRealTimeBpsDataOutcomeCallable describeLiveDomainRealTimeBpsDataCallable(const Model::DescribeLiveDomainRealTimeBpsDataRequest& request) const; AllowPushStreamOutcome allowPushStream(const Model::AllowPushStreamRequest &request)const; void allowPushStreamAsync(const Model::AllowPushStreamRequest& request, const AllowPushStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllowPushStreamOutcomeCallable allowPushStreamCallable(const Model::AllowPushStreamRequest& request) const; @@ -958,6 +997,9 @@ namespace AlibabaCloud DescribeLiveStreamsNotifyUrlConfigOutcome describeLiveStreamsNotifyUrlConfig(const Model::DescribeLiveStreamsNotifyUrlConfigRequest &request)const; void describeLiveStreamsNotifyUrlConfigAsync(const Model::DescribeLiveStreamsNotifyUrlConfigRequest& request, const DescribeLiveStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsNotifyUrlConfigOutcomeCallable describeLiveStreamsNotifyUrlConfigCallable(const Model::DescribeLiveStreamsNotifyUrlConfigRequest& request) const; + DescribeUpBpsPeakDataOutcome describeUpBpsPeakData(const Model::DescribeUpBpsPeakDataRequest &request)const; + void describeUpBpsPeakDataAsync(const Model::DescribeUpBpsPeakDataRequest& request, const DescribeUpBpsPeakDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUpBpsPeakDataOutcomeCallable describeUpBpsPeakDataCallable(const Model::DescribeUpBpsPeakDataRequest& request) const; DeleteLivePullStreamInfoConfigOutcome deleteLivePullStreamInfoConfig(const Model::DeleteLivePullStreamInfoConfigRequest &request)const; void deleteLivePullStreamInfoConfigAsync(const Model::DeleteLivePullStreamInfoConfigRequest& request, const DeleteLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLivePullStreamInfoConfigOutcomeCallable deleteLivePullStreamInfoConfigCallable(const Model::DeleteLivePullStreamInfoConfigRequest& request) const; @@ -1024,12 +1066,18 @@ namespace AlibabaCloud StopCasterSceneOutcome stopCasterScene(const Model::StopCasterSceneRequest &request)const; void stopCasterSceneAsync(const Model::StopCasterSceneRequest& request, const StopCasterSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopCasterSceneOutcomeCallable stopCasterSceneCallable(const Model::StopCasterSceneRequest& request) const; + DescribeLiveDomainRealTimeTrafficDataOutcome describeLiveDomainRealTimeTrafficData(const Model::DescribeLiveDomainRealTimeTrafficDataRequest &request)const; + void describeLiveDomainRealTimeTrafficDataAsync(const Model::DescribeLiveDomainRealTimeTrafficDataRequest& request, const DescribeLiveDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainRealTimeTrafficDataOutcomeCallable describeLiveDomainRealTimeTrafficDataCallable(const Model::DescribeLiveDomainRealTimeTrafficDataRequest& request) const; DescribeLiveDomainSnapshotDataOutcome describeLiveDomainSnapshotData(const Model::DescribeLiveDomainSnapshotDataRequest &request)const; void describeLiveDomainSnapshotDataAsync(const Model::DescribeLiveDomainSnapshotDataRequest& request, const DescribeLiveDomainSnapshotDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainSnapshotDataOutcomeCallable describeLiveDomainSnapshotDataCallable(const Model::DescribeLiveDomainSnapshotDataRequest& request) const; DeleteLiveRecordVodConfigOutcome deleteLiveRecordVodConfig(const Model::DeleteLiveRecordVodConfigRequest &request)const; void deleteLiveRecordVodConfigAsync(const Model::DeleteLiveRecordVodConfigRequest& request, const DeleteLiveRecordVodConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveRecordVodConfigOutcomeCallable deleteLiveRecordVodConfigCallable(const Model::DeleteLiveRecordVodConfigRequest& request) const; + DescribeLiveDomainRealTimeHttpCodeDataOutcome describeLiveDomainRealTimeHttpCodeData(const Model::DescribeLiveDomainRealTimeHttpCodeDataRequest &request)const; + void describeLiveDomainRealTimeHttpCodeDataAsync(const Model::DescribeLiveDomainRealTimeHttpCodeDataRequest& request, const DescribeLiveDomainRealTimeHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainRealTimeHttpCodeDataOutcomeCallable describeLiveDomainRealTimeHttpCodeDataCallable(const Model::DescribeLiveDomainRealTimeHttpCodeDataRequest& request) const; ModifyCasterEpisodeOutcome modifyCasterEpisode(const Model::ModifyCasterEpisodeRequest &request)const; void modifyCasterEpisodeAsync(const Model::ModifyCasterEpisodeRequest& request, const ModifyCasterEpisodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCasterEpisodeOutcomeCallable modifyCasterEpisodeCallable(const Model::ModifyCasterEpisodeRequest& request) const; @@ -1159,6 +1207,9 @@ namespace AlibabaCloud DeleteLiveMixNotifyConfigOutcome deleteLiveMixNotifyConfig(const Model::DeleteLiveMixNotifyConfigRequest &request)const; void deleteLiveMixNotifyConfigAsync(const Model::DeleteLiveMixNotifyConfigRequest& request, const DeleteLiveMixNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveMixNotifyConfigOutcomeCallable deleteLiveMixNotifyConfigCallable(const Model::DeleteLiveMixNotifyConfigRequest& request) const; + DescribeUpPeakPublishStreamDataOutcome describeUpPeakPublishStreamData(const Model::DescribeUpPeakPublishStreamDataRequest &request)const; + void describeUpPeakPublishStreamDataAsync(const Model::DescribeUpPeakPublishStreamDataRequest& request, const DescribeUpPeakPublishStreamDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUpPeakPublishStreamDataOutcomeCallable describeUpPeakPublishStreamDataCallable(const Model::DescribeUpPeakPublishStreamDataRequest& request) const; AddLiveAppSnapshotConfigOutcome addLiveAppSnapshotConfig(const Model::AddLiveAppSnapshotConfigRequest &request)const; void addLiveAppSnapshotConfigAsync(const Model::AddLiveAppSnapshotConfigRequest& request, const AddLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveAppSnapshotConfigOutcomeCallable addLiveAppSnapshotConfigCallable(const Model::AddLiveAppSnapshotConfigRequest& request) const; @@ -1216,9 +1267,6 @@ namespace AlibabaCloud AddLiveDomainOutcome addLiveDomain(const Model::AddLiveDomainRequest &request)const; void addLiveDomainAsync(const Model::AddLiveDomainRequest& request, const AddLiveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveDomainOutcomeCallable addLiveDomainCallable(const Model::AddLiveDomainRequest& request) const; - DescribeDomainUsageDataOutcome describeDomainUsageData(const Model::DescribeDomainUsageDataRequest &request)const; - void describeDomainUsageDataAsync(const Model::DescribeDomainUsageDataRequest& request, const DescribeDomainUsageDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDomainUsageDataOutcomeCallable describeDomainUsageDataCallable(const Model::DescribeDomainUsageDataRequest& request) const; DeleteLiveAppRecordConfigOutcome deleteLiveAppRecordConfig(const Model::DeleteLiveAppRecordConfigRequest &request)const; void deleteLiveAppRecordConfigAsync(const Model::DeleteLiveAppRecordConfigRequest& request, const DeleteLiveAppRecordConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveAppRecordConfigOutcomeCallable deleteLiveAppRecordConfigCallable(const Model::DeleteLiveAppRecordConfigRequest& request) const; diff --git a/live/include/alibabacloud/live/model/DescribeCasterChannelsResult.h b/live/include/alibabacloud/live/model/DescribeCasterChannelsResult.h index 2018429eb..40c3e11ea 100644 --- a/live/include/alibabacloud/live/model/DescribeCasterChannelsResult.h +++ b/live/include/alibabacloud/live/model/DescribeCasterChannelsResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string resourceId; std::string channelId; std::string streamUrl; + std::string rtmpUrl; }; diff --git a/live/include/alibabacloud/live/model/DescribeCasterStreamUrlRequest.h b/live/include/alibabacloud/live/model/DescribeCasterStreamUrlRequest.h index b5c78986d..e51317d3d 100644 --- a/live/include/alibabacloud/live/model/DescribeCasterStreamUrlRequest.h +++ b/live/include/alibabacloud/live/model/DescribeCasterStreamUrlRequest.h @@ -35,12 +35,15 @@ namespace AlibabaCloud DescribeCasterStreamUrlRequest(); ~DescribeCasterStreamUrlRequest(); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); std::string getCasterId()const; void setCasterId(const std::string& casterId); long getOwnerId()const; void setOwnerId(long ownerId); private: + std::string regionId_; std::string casterId_; long ownerId_; diff --git a/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h b/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h index 493df1ada..4a13f508a 100644 --- a/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h +++ b/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud std::string sceneId; std::vector streamInfos; std::string streamUrl; + std::string rtmpUrl; int outputType; }; diff --git a/live/include/alibabacloud/live/model/DescribeDomainUsageDataRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataRequest.h similarity index 82% rename from live/include/alibabacloud/live/model/DescribeDomainUsageDataRequest.h rename to live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataRequest.h index 6642a64c1..473cd7c4e 100644 --- a/live/include/alibabacloud/live/model/DescribeDomainUsageDataRequest.h +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBEDOMAINUSAGEDATAREQUEST_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEDOMAINUSAGEDATAREQUEST_H_ +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEBPSDATAREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEBPSDATAREQUEST_H_ #include #include @@ -28,23 +28,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_LIVE_EXPORT DescribeDomainUsageDataRequest : public RpcServiceRequest + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainRealTimeBpsDataRequest : public RpcServiceRequest { public: - DescribeDomainUsageDataRequest(); - ~DescribeDomainUsageDataRequest(); + DescribeLiveDomainRealTimeBpsDataRequest(); + ~DescribeLiveDomainRealTimeBpsDataRequest(); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); std::string getStartTime()const; void setStartTime(const std::string& startTime); std::string getProxy_original_source_ip()const; void setProxy_original_source_ip(const std::string& proxy_original_source_ip); - std::string getType()const; - void setType(const std::string& type); std::string getOwnerIdLoginEmail()const; void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); std::string getCallerType()const; @@ -63,14 +65,10 @@ namespace AlibabaCloud void setCallerUidEmail(const std::string& callerUidEmail); long getCallerUid()const; void setCallerUid(long callerUid); - std::string getArea()const; - void setArea(const std::string& area); std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getDomainName()const; void setDomainName(const std::string& domainName); std::string getEndTime()const; @@ -87,19 +85,20 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); - std::string getField()const; - void setField(const std::string& field); std::string getRequestId()const; void setRequestId(const std::string& requestId); std::string getInterval()const; void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); private: long callerParentId_; bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string ispNameEn_; std::string startTime_; std::string proxy_original_source_ip_; - std::string type_; std::string ownerIdLoginEmail_; std::string callerType_; std::string accessKeyId_; @@ -109,10 +108,8 @@ namespace AlibabaCloud std::string callerBidEmail_; std::string callerUidEmail_; long callerUid_; - std::string area_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string domainName_; std::string endTime_; std::string callerBid_; @@ -121,12 +118,12 @@ namespace AlibabaCloud bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; - std::string field_; std::string requestId_; std::string interval_; + std::string fields_; }; } } } -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEDOMAINUSAGEDATAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEBPSDATAREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeDomainUsageDataResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataResult.h similarity index 66% rename from live/include/alibabacloud/live/model/DescribeDomainUsageDataResult.h rename to live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataResult.h index 963b17651..57afcabf3 100644 --- a/live/include/alibabacloud/live/model/DescribeDomainUsageDataResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBEDOMAINUSAGEDATARESULT_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEDOMAINUSAGEDATARESULT_H_ +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEBPSDATARESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEBPSDATARESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_LIVE_EXPORT DescribeDomainUsageDataResult : public ServiceResult + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainRealTimeBpsDataResult : public ServiceResult { public: struct DataModule @@ -39,30 +39,26 @@ namespace AlibabaCloud }; - DescribeDomainUsageDataResult(); - explicit DescribeDomainUsageDataResult(const std::string &payload); - ~DescribeDomainUsageDataResult(); - std::vector getUsageDataPerInterval()const; - std::string getField()const; - std::string getArea()const; + DescribeLiveDomainRealTimeBpsDataResult(); + explicit DescribeLiveDomainRealTimeBpsDataResult(const std::string &payload); + ~DescribeLiveDomainRealTimeBpsDataResult(); std::string getEndTime()const; std::string getDomainName()const; std::string getStartTime()const; std::string getDataInterval()const; + std::vector getRealTimeBpsDataPerInterval()const; protected: void parse(const std::string &payload); private: - std::vector usageDataPerInterval_; - std::string field_; - std::string area_; std::string endTime_; std::string domainName_; std::string startTime_; std::string dataInterval_; + std::vector realTimeBpsDataPerInterval_; }; } } } -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEDOMAINUSAGEDATARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEBPSDATARESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.h new file mode 100644 index 000000000..f3296a35b --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.h @@ -0,0 +1,129 @@ +/* + * 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_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEHTTPCODEDATAREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEHTTPCODEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainRealTimeHttpCodeDataRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainRealTimeHttpCodeDataRequest(); + ~DescribeLiveDomainRealTimeHttpCodeDataRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long callerParentId_; + bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string startTime_; + std::string ispNameEn_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEHTTPCODEDATAREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataResult.h new file mode 100644 index 000000000..47709db68 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataResult.h @@ -0,0 +1,70 @@ +/* + * 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_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEHTTPCODEDATARESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEHTTPCODEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainRealTimeHttpCodeDataResult : public ServiceResult + { + public: + struct UsageData + { + struct RealTimeCodeProportionData + { + std::string proportion; + std::string count; + std::string code; + }; + std::vector value; + std::string timeStamp; + }; + + + DescribeLiveDomainRealTimeHttpCodeDataResult(); + explicit DescribeLiveDomainRealTimeHttpCodeDataResult(const std::string &payload); + ~DescribeLiveDomainRealTimeHttpCodeDataResult(); + std::string getEndTime()const; + std::string getDomainName()const; + std::string getStartTime()const; + std::string getDataInterval()const; + std::vector getRealTimeHttpCodeData()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string domainName_; + std::string startTime_; + std::string dataInterval_; + std::vector realTimeHttpCodeData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMEHTTPCODEDATARESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataRequest.h new file mode 100644 index 000000000..4236070e4 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataRequest.h @@ -0,0 +1,129 @@ +/* + * 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_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMETRAFFICDATAREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMETRAFFICDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainRealTimeTrafficDataRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainRealTimeTrafficDataRequest(); + ~DescribeLiveDomainRealTimeTrafficDataRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long callerParentId_; + bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string startTime_; + std::string ispNameEn_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMETRAFFICDATAREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataResult.h new file mode 100644 index 000000000..e48d707a8 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataResult.h @@ -0,0 +1,64 @@ +/* + * 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_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMETRAFFICDATARESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMETRAFFICDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainRealTimeTrafficDataResult : public ServiceResult + { + public: + struct DataModule + { + std::string value; + std::string timeStamp; + }; + + + DescribeLiveDomainRealTimeTrafficDataResult(); + explicit DescribeLiveDomainRealTimeTrafficDataResult(const std::string &payload); + ~DescribeLiveDomainRealTimeTrafficDataResult(); + std::string getEndTime()const; + std::vector getRealTimeTrafficDataPerInterval()const; + std::string getDomainName()const; + std::string getStartTime()const; + std::string getDataInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::vector realTimeTrafficDataPerInterval_; + std::string domainName_; + std::string startTime_; + std::string dataInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINREALTIMETRAFFICDATARESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowRequest.h b/live/include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowRequest.h new file mode 100644 index 000000000..163796243 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowRequest.h @@ -0,0 +1,120 @@ +/* + * 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_LIVE_MODEL_DESCRIBELIVETOPDOMAINSBYFLOWREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETOPDOMAINSBYFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveTopDomainsByFlowRequest : public RpcServiceRequest + { + + public: + DescribeLiveTopDomainsByFlowRequest(); + ~DescribeLiveTopDomainsByFlowRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getLimit()const; + void setLimit(long limit); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long limit_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string product_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETOPDOMAINSBYFLOWREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowResult.h b/live/include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowResult.h new file mode 100644 index 000000000..262124eae --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowResult.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_LIVE_MODEL_DESCRIBELIVETOPDOMAINSBYFLOWRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETOPDOMAINSBYFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveTopDomainsByFlowResult : public ServiceResult + { + public: + struct TopDomain + { + long maxBps; + std::string domainName; + std::string maxBpsTime; + long rank; + std::string totalTraffic; + long totalAccess; + std::string trafficPercent; + }; + + + DescribeLiveTopDomainsByFlowResult(); + explicit DescribeLiveTopDomainsByFlowResult(const std::string &payload); + ~DescribeLiveTopDomainsByFlowResult(); + std::vector getTopDomains()const; + std::string getEndTime()const; + long getDomainOnlineCount()const; + std::string getStartTime()const; + long getDomainCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector topDomains_; + std::string endTime_; + long domainOnlineCount_; + std::string startTime_; + long domainCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETOPDOMAINSBYFLOWRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeUpBpsPeakDataRequest.h b/live/include/alibabacloud/live/model/DescribeUpBpsPeakDataRequest.h new file mode 100644 index 000000000..b18507640 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeUpBpsPeakDataRequest.h @@ -0,0 +1,63 @@ +/* + * 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_LIVE_MODEL_DESCRIBEUPBPSPEAKDATAREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeUpBpsPeakDataRequest : public RpcServiceRequest + { + + public: + DescribeUpBpsPeakDataRequest(); + ~DescribeUpBpsPeakDataRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDomainSwitch()const; + void setDomainSwitch(const std::string& domainSwitch); + + private: + std::string regionId_; + std::string domainName_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string domainSwitch_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKDATAREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeUpBpsPeakDataResult.h b/live/include/alibabacloud/live/model/DescribeUpBpsPeakDataResult.h new file mode 100644 index 000000000..e464980d3 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeUpBpsPeakDataResult.h @@ -0,0 +1,58 @@ +/* + * 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_LIVE_MODEL_DESCRIBEUPBPSPEAKDATARESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeUpBpsPeakDataResult : public ServiceResult + { + public: + struct DescribeUpPeakTraffic + { + std::string bandWidth; + std::string peakTime; + std::string queryTime; + std::string statName; + }; + + + DescribeUpBpsPeakDataResult(); + explicit DescribeUpBpsPeakDataResult(const std::string &payload); + ~DescribeUpBpsPeakDataResult(); + std::vector getDescribeUpPeakTraffics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector describeUpPeakTraffics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKDATARESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeUpBpsPeakOfLineRequest.h b/live/include/alibabacloud/live/model/DescribeUpBpsPeakOfLineRequest.h new file mode 100644 index 000000000..9dfd11b4a --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeUpBpsPeakOfLineRequest.h @@ -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_LIVE_MODEL_DESCRIBEUPBPSPEAKOFLINEREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKOFLINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeUpBpsPeakOfLineRequest : public RpcServiceRequest + { + + public: + DescribeUpBpsPeakOfLineRequest(); + ~DescribeUpBpsPeakOfLineRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getLine()const; + void setLine(const std::string& line); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDomainSwitch()const; + void setDomainSwitch(const std::string& domainSwitch); + + private: + std::string regionId_; + std::string line_; + std::string domainName_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string domainSwitch_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKOFLINEREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeUpBpsPeakOfLineResult.h b/live/include/alibabacloud/live/model/DescribeUpBpsPeakOfLineResult.h new file mode 100644 index 000000000..9dc8dafc4 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeUpBpsPeakOfLineResult.h @@ -0,0 +1,58 @@ +/* + * 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_LIVE_MODEL_DESCRIBEUPBPSPEAKOFLINERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKOFLINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeUpBpsPeakOfLineResult : public ServiceResult + { + public: + struct DescribeUpBpsPeakOfLine + { + float bandWidth; + std::string peakTime; + std::string queryTime; + std::string statName; + }; + + + DescribeUpBpsPeakOfLineResult(); + explicit DescribeUpBpsPeakOfLineResult(const std::string &payload); + ~DescribeUpBpsPeakOfLineResult(); + std::vector getDescribeUpBpsPeakOfLines()const; + + protected: + void parse(const std::string &payload); + private: + std::vector describeUpBpsPeakOfLines_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPBPSPEAKOFLINERESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataRequest.h b/live/include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataRequest.h new file mode 100644 index 000000000..28efd4046 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataRequest.h @@ -0,0 +1,63 @@ +/* + * 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_LIVE_MODEL_DESCRIBEUPPEAKPUBLISHSTREAMDATAREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPPEAKPUBLISHSTREAMDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeUpPeakPublishStreamDataRequest : public RpcServiceRequest + { + + public: + DescribeUpPeakPublishStreamDataRequest(); + ~DescribeUpPeakPublishStreamDataRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDomainSwitch()const; + void setDomainSwitch(const std::string& domainSwitch); + + private: + std::string regionId_; + std::string domainName_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string domainSwitch_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPPEAKPUBLISHSTREAMDATAREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataResult.h b/live/include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataResult.h new file mode 100644 index 000000000..a2761edbe --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataResult.h @@ -0,0 +1,59 @@ +/* + * 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_LIVE_MODEL_DESCRIBEUPPEAKPUBLISHSTREAMDATARESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPPEAKPUBLISHSTREAMDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeUpPeakPublishStreamDataResult : public ServiceResult + { + public: + struct DescribeUpPeakPublishStreamData + { + std::string bandWidth; + std::string peakTime; + std::string queryTime; + int publishStreamNum; + std::string statName; + }; + + + DescribeUpPeakPublishStreamDataResult(); + explicit DescribeUpPeakPublishStreamDataResult(const std::string &payload); + ~DescribeUpPeakPublishStreamDataResult(); + std::vector getDescribeUpPeakPublishStreamDatas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector describeUpPeakPublishStreamDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEUPPEAKPUBLISHSTREAMDATARESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/SendRoomNotificationRequest.h b/live/include/alibabacloud/live/model/SendRoomNotificationRequest.h index 71137005a..f7164f67d 100644 --- a/live/include/alibabacloud/live/model/SendRoomNotificationRequest.h +++ b/live/include/alibabacloud/live/model/SendRoomNotificationRequest.h @@ -65,8 +65,6 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getAppUid()const; void setAppUid(const std::string& appUid); std::string getCallerBid()const; @@ -106,7 +104,6 @@ namespace AlibabaCloud long callerUid_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string appUid_; std::string callerBid_; long ownerId_; diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index 95cfc600f..669249374 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -627,6 +627,42 @@ LiveClient::DeleteLiveSnapshotDetectPornConfigOutcomeCallable LiveClient::delete return task->get_future(); } +LiveClient::DescribeUpBpsPeakOfLineOutcome LiveClient::describeUpBpsPeakOfLine(const DescribeUpBpsPeakOfLineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUpBpsPeakOfLineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUpBpsPeakOfLineOutcome(DescribeUpBpsPeakOfLineResult(outcome.result())); + else + return DescribeUpBpsPeakOfLineOutcome(outcome.error()); +} + +void LiveClient::describeUpBpsPeakOfLineAsync(const DescribeUpBpsPeakOfLineRequest& request, const DescribeUpBpsPeakOfLineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUpBpsPeakOfLine(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeUpBpsPeakOfLineOutcomeCallable LiveClient::describeUpBpsPeakOfLineCallable(const DescribeUpBpsPeakOfLineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUpBpsPeakOfLine(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::CopyCasterSceneConfigOutcome LiveClient::copyCasterSceneConfig(const CopyCasterSceneConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1203,42 @@ LiveClient::AddCasterEpisodeGroupOutcomeCallable LiveClient::addCasterEpisodeGro return task->get_future(); } +LiveClient::DescribeLiveTopDomainsByFlowOutcome LiveClient::describeLiveTopDomainsByFlow(const DescribeLiveTopDomainsByFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveTopDomainsByFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveTopDomainsByFlowOutcome(DescribeLiveTopDomainsByFlowResult(outcome.result())); + else + return DescribeLiveTopDomainsByFlowOutcome(outcome.error()); +} + +void LiveClient::describeLiveTopDomainsByFlowAsync(const DescribeLiveTopDomainsByFlowRequest& request, const DescribeLiveTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveTopDomainsByFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveTopDomainsByFlowOutcomeCallable LiveClient::describeLiveTopDomainsByFlowCallable(const DescribeLiveTopDomainsByFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveTopDomainsByFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::AddLiveMixConfigOutcome LiveClient::addLiveMixConfig(const AddLiveMixConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +1455,42 @@ LiveClient::AddCasterEpisodeOutcomeCallable LiveClient::addCasterEpisodeCallable return task->get_future(); } +LiveClient::DescribeLiveDomainRealTimeBpsDataOutcome LiveClient::describeLiveDomainRealTimeBpsData(const DescribeLiveDomainRealTimeBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainRealTimeBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainRealTimeBpsDataOutcome(DescribeLiveDomainRealTimeBpsDataResult(outcome.result())); + else + return DescribeLiveDomainRealTimeBpsDataOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainRealTimeBpsDataAsync(const DescribeLiveDomainRealTimeBpsDataRequest& request, const DescribeLiveDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainRealTimeBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainRealTimeBpsDataOutcomeCallable LiveClient::describeLiveDomainRealTimeBpsDataCallable(const DescribeLiveDomainRealTimeBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainRealTimeBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::AllowPushStreamOutcome LiveClient::allowPushStream(const AllowPushStreamRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2103,42 @@ LiveClient::DescribeLiveStreamsNotifyUrlConfigOutcomeCallable LiveClient::descri return task->get_future(); } +LiveClient::DescribeUpBpsPeakDataOutcome LiveClient::describeUpBpsPeakData(const DescribeUpBpsPeakDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUpBpsPeakDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUpBpsPeakDataOutcome(DescribeUpBpsPeakDataResult(outcome.result())); + else + return DescribeUpBpsPeakDataOutcome(outcome.error()); +} + +void LiveClient::describeUpBpsPeakDataAsync(const DescribeUpBpsPeakDataRequest& request, const DescribeUpBpsPeakDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUpBpsPeakData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeUpBpsPeakDataOutcomeCallable LiveClient::describeUpBpsPeakDataCallable(const DescribeUpBpsPeakDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUpBpsPeakData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteLivePullStreamInfoConfigOutcome LiveClient::deleteLivePullStreamInfoConfig(const DeleteLivePullStreamInfoConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,6 +2931,42 @@ LiveClient::StopCasterSceneOutcomeCallable LiveClient::stopCasterSceneCallable(c return task->get_future(); } +LiveClient::DescribeLiveDomainRealTimeTrafficDataOutcome LiveClient::describeLiveDomainRealTimeTrafficData(const DescribeLiveDomainRealTimeTrafficDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainRealTimeTrafficDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainRealTimeTrafficDataOutcome(DescribeLiveDomainRealTimeTrafficDataResult(outcome.result())); + else + return DescribeLiveDomainRealTimeTrafficDataOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainRealTimeTrafficDataAsync(const DescribeLiveDomainRealTimeTrafficDataRequest& request, const DescribeLiveDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainRealTimeTrafficData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainRealTimeTrafficDataOutcomeCallable LiveClient::describeLiveDomainRealTimeTrafficDataCallable(const DescribeLiveDomainRealTimeTrafficDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainRealTimeTrafficData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveDomainSnapshotDataOutcome LiveClient::describeLiveDomainSnapshotData(const DescribeLiveDomainSnapshotDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3039,42 @@ LiveClient::DeleteLiveRecordVodConfigOutcomeCallable LiveClient::deleteLiveRecor return task->get_future(); } +LiveClient::DescribeLiveDomainRealTimeHttpCodeDataOutcome LiveClient::describeLiveDomainRealTimeHttpCodeData(const DescribeLiveDomainRealTimeHttpCodeDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainRealTimeHttpCodeDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainRealTimeHttpCodeDataOutcome(DescribeLiveDomainRealTimeHttpCodeDataResult(outcome.result())); + else + return DescribeLiveDomainRealTimeHttpCodeDataOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainRealTimeHttpCodeDataAsync(const DescribeLiveDomainRealTimeHttpCodeDataRequest& request, const DescribeLiveDomainRealTimeHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainRealTimeHttpCodeData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainRealTimeHttpCodeDataOutcomeCallable LiveClient::describeLiveDomainRealTimeHttpCodeDataCallable(const DescribeLiveDomainRealTimeHttpCodeDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainRealTimeHttpCodeData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::ModifyCasterEpisodeOutcome LiveClient::modifyCasterEpisode(const ModifyCasterEpisodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,6 +4623,42 @@ LiveClient::DeleteLiveMixNotifyConfigOutcomeCallable LiveClient::deleteLiveMixNo return task->get_future(); } +LiveClient::DescribeUpPeakPublishStreamDataOutcome LiveClient::describeUpPeakPublishStreamData(const DescribeUpPeakPublishStreamDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUpPeakPublishStreamDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUpPeakPublishStreamDataOutcome(DescribeUpPeakPublishStreamDataResult(outcome.result())); + else + return DescribeUpPeakPublishStreamDataOutcome(outcome.error()); +} + +void LiveClient::describeUpPeakPublishStreamDataAsync(const DescribeUpPeakPublishStreamDataRequest& request, const DescribeUpPeakPublishStreamDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUpPeakPublishStreamData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeUpPeakPublishStreamDataOutcomeCallable LiveClient::describeUpPeakPublishStreamDataCallable(const DescribeUpPeakPublishStreamDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUpPeakPublishStreamData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::AddLiveAppSnapshotConfigOutcome LiveClient::addLiveAppSnapshotConfig(const AddLiveAppSnapshotConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5091,42 +5343,6 @@ LiveClient::AddLiveDomainOutcomeCallable LiveClient::addLiveDomainCallable(const return task->get_future(); } -LiveClient::DescribeDomainUsageDataOutcome LiveClient::describeDomainUsageData(const DescribeDomainUsageDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDomainUsageDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDomainUsageDataOutcome(DescribeDomainUsageDataResult(outcome.result())); - else - return DescribeDomainUsageDataOutcome(outcome.error()); -} - -void LiveClient::describeDomainUsageDataAsync(const DescribeDomainUsageDataRequest& request, const DescribeDomainUsageDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDomainUsageData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeDomainUsageDataOutcomeCallable LiveClient::describeDomainUsageDataCallable(const DescribeDomainUsageDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDomainUsageData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DeleteLiveAppRecordConfigOutcome LiveClient::deleteLiveAppRecordConfig(const DeleteLiveAppRecordConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/DescribeCasterChannelsResult.cc b/live/src/model/DescribeCasterChannelsResult.cc index 43caba2e9..8f158d117 100644 --- a/live/src/model/DescribeCasterChannelsResult.cc +++ b/live/src/model/DescribeCasterChannelsResult.cc @@ -50,6 +50,8 @@ void DescribeCasterChannelsResult::parse(const std::string &payload) channelsObject.resourceId = value["ResourceId"].asString(); if(!value["StreamUrl"].isNull()) channelsObject.streamUrl = value["StreamUrl"].asString(); + if(!value["RtmpUrl"].isNull()) + channelsObject.rtmpUrl = value["RtmpUrl"].asString(); channels_.push_back(channelsObject); } if(!value["Total"].isNull()) diff --git a/live/src/model/DescribeCasterStreamUrlRequest.cc b/live/src/model/DescribeCasterStreamUrlRequest.cc index c5b3c0e46..1777fa350 100644 --- a/live/src/model/DescribeCasterStreamUrlRequest.cc +++ b/live/src/model/DescribeCasterStreamUrlRequest.cc @@ -25,6 +25,17 @@ DescribeCasterStreamUrlRequest::DescribeCasterStreamUrlRequest() : DescribeCasterStreamUrlRequest::~DescribeCasterStreamUrlRequest() {} +std::string DescribeCasterStreamUrlRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCasterStreamUrlRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + std::string DescribeCasterStreamUrlRequest::getCasterId()const { return casterId_; diff --git a/live/src/model/DescribeCasterStreamUrlResult.cc b/live/src/model/DescribeCasterStreamUrlResult.cc index c728e5078..704bc1af0 100644 --- a/live/src/model/DescribeCasterStreamUrlResult.cc +++ b/live/src/model/DescribeCasterStreamUrlResult.cc @@ -48,6 +48,8 @@ void DescribeCasterStreamUrlResult::parse(const std::string &payload) casterStreamsObject.sceneId = value["SceneId"].asString(); if(!value["StreamUrl"].isNull()) casterStreamsObject.streamUrl = value["StreamUrl"].asString(); + if(!value["RtmpUrl"].isNull()) + casterStreamsObject.rtmpUrl = value["RtmpUrl"].asString(); if(!value["OutputType"].isNull()) casterStreamsObject.outputType = std::stoi(value["OutputType"].asString()); auto allStreamInfos = value["StreamInfos"]["StreamInfo"]; diff --git a/live/src/model/DescribeDomainUsageDataRequest.cc b/live/src/model/DescribeDomainUsageDataRequest.cc deleted file mode 100644 index 7b2260729..000000000 --- a/live/src/model/DescribeDomainUsageDataRequest.cc +++ /dev/null @@ -1,346 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Live::Model::DescribeDomainUsageDataRequest; - -DescribeDomainUsageDataRequest::DescribeDomainUsageDataRequest() : - RpcServiceRequest("live", "2016-11-01", "DescribeDomainUsageData") -{} - -DescribeDomainUsageDataRequest::~DescribeDomainUsageDataRequest() -{} - -long DescribeDomainUsageDataRequest::getCallerParentId()const -{ - return callerParentId_; -} - -void DescribeDomainUsageDataRequest::setCallerParentId(long callerParentId) -{ - callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); -} - -bool DescribeDomainUsageDataRequest::getProxy_original_security_transport()const -{ - return proxy_original_security_transport_; -} - -void DescribeDomainUsageDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) -{ - proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); -} - -std::string DescribeDomainUsageDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeDomainUsageDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeDomainUsageDataRequest::getProxy_original_source_ip()const -{ - return proxy_original_source_ip_; -} - -void DescribeDomainUsageDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) -{ - proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string DescribeDomainUsageDataRequest::getType()const -{ - return type_; -} - -void DescribeDomainUsageDataRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string DescribeDomainUsageDataRequest::getOwnerIdLoginEmail()const -{ - return ownerIdLoginEmail_; -} - -void DescribeDomainUsageDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) -{ - ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); -} - -std::string DescribeDomainUsageDataRequest::getCallerType()const -{ - return callerType_; -} - -void DescribeDomainUsageDataRequest::setCallerType(const std::string& callerType) -{ - callerType_ = callerType; - setParameter("CallerType", callerType); -} - -std::string DescribeDomainUsageDataRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDomainUsageDataRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeDomainUsageDataRequest::getSecurityToken()const -{ - return securityToken_; -} - -void DescribeDomainUsageDataRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string DescribeDomainUsageDataRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeDomainUsageDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeDomainUsageDataRequest::getRequestContent()const -{ - return requestContent_; -} - -void DescribeDomainUsageDataRequest::setRequestContent(const std::string& requestContent) -{ - requestContent_ = requestContent; - setParameter("RequestContent", requestContent); -} - -std::string DescribeDomainUsageDataRequest::getCallerBidEmail()const -{ - return callerBidEmail_; -} - -void DescribeDomainUsageDataRequest::setCallerBidEmail(const std::string& callerBidEmail) -{ - callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); -} - -std::string DescribeDomainUsageDataRequest::getCallerUidEmail()const -{ - return callerUidEmail_; -} - -void DescribeDomainUsageDataRequest::setCallerUidEmail(const std::string& callerUidEmail) -{ - callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); -} - -long DescribeDomainUsageDataRequest::getCallerUid()const -{ - return callerUid_; -} - -void DescribeDomainUsageDataRequest::setCallerUid(long callerUid) -{ - callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); -} - -std::string DescribeDomainUsageDataRequest::getArea()const -{ - return area_; -} - -void DescribeDomainUsageDataRequest::setArea(const std::string& area) -{ - area_ = area; - setParameter("Area", area); -} - -std::string DescribeDomainUsageDataRequest::getApp_ip()const -{ - return app_ip_; -} - -void DescribeDomainUsageDataRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setParameter("App_ip", app_ip); -} - -std::string DescribeDomainUsageDataRequest::getPopProduct()const -{ - return popProduct_; -} - -void DescribeDomainUsageDataRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setParameter("PopProduct", popProduct); -} - -std::string DescribeDomainUsageDataRequest::getProduct()const -{ - return product_; -} - -void DescribeDomainUsageDataRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); -} - -std::string DescribeDomainUsageDataRequest::getDomainName()const -{ - return domainName_; -} - -void DescribeDomainUsageDataRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); -} - -std::string DescribeDomainUsageDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeDomainUsageDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string DescribeDomainUsageDataRequest::getCallerBid()const -{ - return callerBid_; -} - -void DescribeDomainUsageDataRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); -} - -long DescribeDomainUsageDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeDomainUsageDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDomainUsageDataRequest::getVersion()const -{ - return version_; -} - -void DescribeDomainUsageDataRequest::setVersion(const std::string& version) -{ - version_ = version; - setParameter("Version", version); -} - -bool DescribeDomainUsageDataRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void DescribeDomainUsageDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); -} - -bool DescribeDomainUsageDataRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void DescribeDomainUsageDataRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); -} - -bool DescribeDomainUsageDataRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void DescribeDomainUsageDataRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); -} - -std::string DescribeDomainUsageDataRequest::getField()const -{ - return field_; -} - -void DescribeDomainUsageDataRequest::setField(const std::string& field) -{ - field_ = field; - setParameter("Field", field); -} - -std::string DescribeDomainUsageDataRequest::getRequestId()const -{ - return requestId_; -} - -void DescribeDomainUsageDataRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); -} - -std::string DescribeDomainUsageDataRequest::getInterval()const -{ - return interval_; -} - -void DescribeDomainUsageDataRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/live/src/model/DescribeLiveDomainRealTimeBpsDataRequest.cc b/live/src/model/DescribeLiveDomainRealTimeBpsDataRequest.cc new file mode 100644 index 000000000..41b6e5ee8 --- /dev/null +++ b/live/src/model/DescribeLiveDomainRealTimeBpsDataRequest.cc @@ -0,0 +1,335 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeLiveDomainRealTimeBpsDataRequest; + +DescribeLiveDomainRealTimeBpsDataRequest::DescribeLiveDomainRealTimeBpsDataRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainRealTimeBpsData") +{} + +DescribeLiveDomainRealTimeBpsDataRequest::~DescribeLiveDomainRealTimeBpsDataRequest() +{} + +long DescribeLiveDomainRealTimeBpsDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeLiveDomainRealTimeBpsDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setParameter("IspNameEn", ispNameEn); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeLiveDomainRealTimeBpsDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeLiveDomainRealTimeBpsDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeLiveDomainRealTimeBpsDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeLiveDomainRealTimeBpsDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeLiveDomainRealTimeBpsDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + +std::string DescribeLiveDomainRealTimeBpsDataRequest::getFields()const +{ + return fields_; +} + +void DescribeLiveDomainRealTimeBpsDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setParameter("Fields", fields); +} + diff --git a/live/src/model/DescribeDomainUsageDataResult.cc b/live/src/model/DescribeLiveDomainRealTimeBpsDataResult.cc similarity index 50% rename from live/src/model/DescribeDomainUsageDataResult.cc rename to live/src/model/DescribeLiveDomainRealTimeBpsDataResult.cc index 18b99f575..106706de4 100644 --- a/live/src/model/DescribeDomainUsageDataResult.cc +++ b/live/src/model/DescribeLiveDomainRealTimeBpsDataResult.cc @@ -14,41 +14,41 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Live; using namespace AlibabaCloud::Live::Model; -DescribeDomainUsageDataResult::DescribeDomainUsageDataResult() : +DescribeLiveDomainRealTimeBpsDataResult::DescribeLiveDomainRealTimeBpsDataResult() : ServiceResult() {} -DescribeDomainUsageDataResult::DescribeDomainUsageDataResult(const std::string &payload) : +DescribeLiveDomainRealTimeBpsDataResult::DescribeLiveDomainRealTimeBpsDataResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeDomainUsageDataResult::~DescribeDomainUsageDataResult() +DescribeLiveDomainRealTimeBpsDataResult::~DescribeLiveDomainRealTimeBpsDataResult() {} -void DescribeDomainUsageDataResult::parse(const std::string &payload) +void DescribeLiveDomainRealTimeBpsDataResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allUsageDataPerInterval = value["UsageDataPerInterval"]["DataModule"]; - for (auto value : allUsageDataPerInterval) + auto allRealTimeBpsDataPerInterval = value["RealTimeBpsDataPerInterval"]["DataModule"]; + for (auto value : allRealTimeBpsDataPerInterval) { - DataModule usageDataPerIntervalObject; + DataModule realTimeBpsDataPerIntervalObject; if(!value["TimeStamp"].isNull()) - usageDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + realTimeBpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); if(!value["Value"].isNull()) - usageDataPerIntervalObject.value = value["Value"].asString(); - usageDataPerInterval_.push_back(usageDataPerIntervalObject); + realTimeBpsDataPerIntervalObject.value = value["Value"].asString(); + realTimeBpsDataPerInterval_.push_back(realTimeBpsDataPerIntervalObject); } if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); @@ -56,47 +56,33 @@ void DescribeDomainUsageDataResult::parse(const std::string &payload) startTime_ = value["StartTime"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); - if(!value["Field"].isNull()) - field_ = value["Field"].asString(); - if(!value["Area"].isNull()) - area_ = value["Area"].asString(); if(!value["DataInterval"].isNull()) dataInterval_ = value["DataInterval"].asString(); } -std::vector DescribeDomainUsageDataResult::getUsageDataPerInterval()const -{ - return usageDataPerInterval_; -} - -std::string DescribeDomainUsageDataResult::getField()const -{ - return field_; -} - -std::string DescribeDomainUsageDataResult::getArea()const -{ - return area_; -} - -std::string DescribeDomainUsageDataResult::getEndTime()const +std::string DescribeLiveDomainRealTimeBpsDataResult::getEndTime()const { return endTime_; } -std::string DescribeDomainUsageDataResult::getDomainName()const +std::string DescribeLiveDomainRealTimeBpsDataResult::getDomainName()const { return domainName_; } -std::string DescribeDomainUsageDataResult::getStartTime()const +std::string DescribeLiveDomainRealTimeBpsDataResult::getStartTime()const { return startTime_; } -std::string DescribeDomainUsageDataResult::getDataInterval()const +std::string DescribeLiveDomainRealTimeBpsDataResult::getDataInterval()const { return dataInterval_; } +std::vector DescribeLiveDomainRealTimeBpsDataResult::getRealTimeBpsDataPerInterval()const +{ + return realTimeBpsDataPerInterval_; +} + diff --git a/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.cc b/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.cc new file mode 100644 index 000000000..d89839750 --- /dev/null +++ b/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.cc @@ -0,0 +1,335 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeLiveDomainRealTimeHttpCodeDataRequest; + +DescribeLiveDomainRealTimeHttpCodeDataRequest::DescribeLiveDomainRealTimeHttpCodeDataRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainRealTimeHttpCodeData") +{} + +DescribeLiveDomainRealTimeHttpCodeDataRequest::~DescribeLiveDomainRealTimeHttpCodeDataRequest() +{} + +long DescribeLiveDomainRealTimeHttpCodeDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeLiveDomainRealTimeHttpCodeDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setParameter("IspNameEn", ispNameEn); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeLiveDomainRealTimeHttpCodeDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeLiveDomainRealTimeHttpCodeDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeLiveDomainRealTimeHttpCodeDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeLiveDomainRealTimeHttpCodeDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeLiveDomainRealTimeHttpCodeDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataRequest::getFields()const +{ + return fields_; +} + +void DescribeLiveDomainRealTimeHttpCodeDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setParameter("Fields", fields); +} + diff --git a/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc b/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc new file mode 100644 index 000000000..707df0cc7 --- /dev/null +++ b/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveDomainRealTimeHttpCodeDataResult::DescribeLiveDomainRealTimeHttpCodeDataResult() : + ServiceResult() +{} + +DescribeLiveDomainRealTimeHttpCodeDataResult::DescribeLiveDomainRealTimeHttpCodeDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveDomainRealTimeHttpCodeDataResult::~DescribeLiveDomainRealTimeHttpCodeDataResult() +{} + +void DescribeLiveDomainRealTimeHttpCodeDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRealTimeHttpCodeData = value["RealTimeHttpCodeData"]["UsageData"]; + for (auto value : allRealTimeHttpCodeData) + { + UsageData realTimeHttpCodeDataObject; + if(!value["TimeStamp"].isNull()) + realTimeHttpCodeDataObject.timeStamp = value["TimeStamp"].asString(); + auto allValue = value["Value"]["RealTimeCodeProportionData"]; + for (auto value : allValue) + { + UsageData::RealTimeCodeProportionData valueObject; + if(!value["Code"].isNull()) + valueObject.code = value["Code"].asString(); + if(!value["Proportion"].isNull()) + valueObject.proportion = value["Proportion"].asString(); + if(!value["Count"].isNull()) + valueObject.count = value["Count"].asString(); + realTimeHttpCodeDataObject.value.push_back(valueObject); + } + realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeLiveDomainRealTimeHttpCodeDataResult::getDataInterval()const +{ + return dataInterval_; +} + +std::vector DescribeLiveDomainRealTimeHttpCodeDataResult::getRealTimeHttpCodeData()const +{ + return realTimeHttpCodeData_; +} + diff --git a/live/src/model/DescribeLiveDomainRealTimeTrafficDataRequest.cc b/live/src/model/DescribeLiveDomainRealTimeTrafficDataRequest.cc new file mode 100644 index 000000000..8c6668223 --- /dev/null +++ b/live/src/model/DescribeLiveDomainRealTimeTrafficDataRequest.cc @@ -0,0 +1,335 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeLiveDomainRealTimeTrafficDataRequest; + +DescribeLiveDomainRealTimeTrafficDataRequest::DescribeLiveDomainRealTimeTrafficDataRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainRealTimeTrafficData") +{} + +DescribeLiveDomainRealTimeTrafficDataRequest::~DescribeLiveDomainRealTimeTrafficDataRequest() +{} + +long DescribeLiveDomainRealTimeTrafficDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeLiveDomainRealTimeTrafficDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setParameter("IspNameEn", ispNameEn); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeLiveDomainRealTimeTrafficDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeLiveDomainRealTimeTrafficDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeLiveDomainRealTimeTrafficDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeLiveDomainRealTimeTrafficDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeLiveDomainRealTimeTrafficDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + +std::string DescribeLiveDomainRealTimeTrafficDataRequest::getFields()const +{ + return fields_; +} + +void DescribeLiveDomainRealTimeTrafficDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setParameter("Fields", fields); +} + diff --git a/live/src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc b/live/src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc new file mode 100644 index 000000000..460e7e520 --- /dev/null +++ b/live/src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveDomainRealTimeTrafficDataResult::DescribeLiveDomainRealTimeTrafficDataResult() : + ServiceResult() +{} + +DescribeLiveDomainRealTimeTrafficDataResult::DescribeLiveDomainRealTimeTrafficDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveDomainRealTimeTrafficDataResult::~DescribeLiveDomainRealTimeTrafficDataResult() +{} + +void DescribeLiveDomainRealTimeTrafficDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRealTimeTrafficDataPerInterval = value["RealTimeTrafficDataPerInterval"]["DataModule"]; + for (auto value : allRealTimeTrafficDataPerInterval) + { + DataModule realTimeTrafficDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + realTimeTrafficDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["Value"].isNull()) + realTimeTrafficDataPerIntervalObject.value = value["Value"].asString(); + realTimeTrafficDataPerInterval_.push_back(realTimeTrafficDataPerIntervalObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + +} + +std::string DescribeLiveDomainRealTimeTrafficDataResult::getEndTime()const +{ + return endTime_; +} + +std::vector DescribeLiveDomainRealTimeTrafficDataResult::getRealTimeTrafficDataPerInterval()const +{ + return realTimeTrafficDataPerInterval_; +} + +std::string DescribeLiveDomainRealTimeTrafficDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeLiveDomainRealTimeTrafficDataResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeLiveDomainRealTimeTrafficDataResult::getDataInterval()const +{ + return dataInterval_; +} + diff --git a/live/src/model/DescribeLiveTopDomainsByFlowRequest.cc b/live/src/model/DescribeLiveTopDomainsByFlowRequest.cc new file mode 100644 index 000000000..7c09b6e62 --- /dev/null +++ b/live/src/model/DescribeLiveTopDomainsByFlowRequest.cc @@ -0,0 +1,302 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeLiveTopDomainsByFlowRequest; + +DescribeLiveTopDomainsByFlowRequest::DescribeLiveTopDomainsByFlowRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveTopDomainsByFlow") +{} + +DescribeLiveTopDomainsByFlowRequest::~DescribeLiveTopDomainsByFlowRequest() +{} + +long DescribeLiveTopDomainsByFlowRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeLiveTopDomainsByFlowRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeLiveTopDomainsByFlowRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeLiveTopDomainsByFlowRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeLiveTopDomainsByFlowRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeLiveTopDomainsByFlowRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveTopDomainsByFlowRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveTopDomainsByFlowRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveTopDomainsByFlowRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveTopDomainsByFlowRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveTopDomainsByFlowRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveTopDomainsByFlowRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeLiveTopDomainsByFlowRequest::getLimit()const +{ + return limit_; +} + +void DescribeLiveTopDomainsByFlowRequest::setLimit(long limit) +{ + limit_ = limit; + setParameter("Limit", std::to_string(limit)); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveTopDomainsByFlowRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveTopDomainsByFlowRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeLiveTopDomainsByFlowRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveTopDomainsByFlowRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveTopDomainsByFlowRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveTopDomainsByFlowRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getProduct()const +{ + return product_; +} + +void DescribeLiveTopDomainsByFlowRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeLiveTopDomainsByFlowRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveTopDomainsByFlowRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeLiveTopDomainsByFlowRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveTopDomainsByFlowRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveTopDomainsByFlowRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool DescribeLiveTopDomainsByFlowRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveTopDomainsByFlowRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeLiveTopDomainsByFlowRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveTopDomainsByFlowRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeLiveTopDomainsByFlowRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveTopDomainsByFlowRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeLiveTopDomainsByFlowRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveTopDomainsByFlowRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/live/src/model/DescribeLiveTopDomainsByFlowResult.cc b/live/src/model/DescribeLiveTopDomainsByFlowResult.cc new file mode 100644 index 000000000..8630b0881 --- /dev/null +++ b/live/src/model/DescribeLiveTopDomainsByFlowResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveTopDomainsByFlowResult::DescribeLiveTopDomainsByFlowResult() : + ServiceResult() +{} + +DescribeLiveTopDomainsByFlowResult::DescribeLiveTopDomainsByFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveTopDomainsByFlowResult::~DescribeLiveTopDomainsByFlowResult() +{} + +void DescribeLiveTopDomainsByFlowResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTopDomains = value["TopDomains"]["TopDomain"]; + for (auto value : allTopDomains) + { + TopDomain topDomainsObject; + if(!value["DomainName"].isNull()) + topDomainsObject.domainName = value["DomainName"].asString(); + if(!value["Rank"].isNull()) + topDomainsObject.rank = std::stol(value["Rank"].asString()); + if(!value["TotalTraffic"].isNull()) + topDomainsObject.totalTraffic = value["TotalTraffic"].asString(); + if(!value["TrafficPercent"].isNull()) + topDomainsObject.trafficPercent = value["TrafficPercent"].asString(); + if(!value["MaxBps"].isNull()) + topDomainsObject.maxBps = std::stol(value["MaxBps"].asString()); + if(!value["MaxBpsTime"].isNull()) + topDomainsObject.maxBpsTime = value["MaxBpsTime"].asString(); + if(!value["TotalAccess"].isNull()) + topDomainsObject.totalAccess = std::stol(value["TotalAccess"].asString()); + topDomains_.push_back(topDomainsObject); + } + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DomainCount"].isNull()) + domainCount_ = std::stol(value["DomainCount"].asString()); + if(!value["DomainOnlineCount"].isNull()) + domainOnlineCount_ = std::stol(value["DomainOnlineCount"].asString()); + +} + +std::vector DescribeLiveTopDomainsByFlowResult::getTopDomains()const +{ + return topDomains_; +} + +std::string DescribeLiveTopDomainsByFlowResult::getEndTime()const +{ + return endTime_; +} + +long DescribeLiveTopDomainsByFlowResult::getDomainOnlineCount()const +{ + return domainOnlineCount_; +} + +std::string DescribeLiveTopDomainsByFlowResult::getStartTime()const +{ + return startTime_; +} + +long DescribeLiveTopDomainsByFlowResult::getDomainCount()const +{ + return domainCount_; +} + diff --git a/live/src/model/DescribeUpBpsPeakDataRequest.cc b/live/src/model/DescribeUpBpsPeakDataRequest.cc new file mode 100644 index 000000000..5101773c2 --- /dev/null +++ b/live/src/model/DescribeUpBpsPeakDataRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeUpBpsPeakDataRequest; + +DescribeUpBpsPeakDataRequest::DescribeUpBpsPeakDataRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeUpBpsPeakData") +{} + +DescribeUpBpsPeakDataRequest::~DescribeUpBpsPeakDataRequest() +{} + +std::string DescribeUpBpsPeakDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUpBpsPeakDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeUpBpsPeakDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeUpBpsPeakDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeUpBpsPeakDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeUpBpsPeakDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeUpBpsPeakDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeUpBpsPeakDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeUpBpsPeakDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUpBpsPeakDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeUpBpsPeakDataRequest::getDomainSwitch()const +{ + return domainSwitch_; +} + +void DescribeUpBpsPeakDataRequest::setDomainSwitch(const std::string& domainSwitch) +{ + domainSwitch_ = domainSwitch; + setParameter("DomainSwitch", domainSwitch); +} + diff --git a/live/src/model/DescribeUpBpsPeakDataResult.cc b/live/src/model/DescribeUpBpsPeakDataResult.cc new file mode 100644 index 000000000..32c35256b --- /dev/null +++ b/live/src/model/DescribeUpBpsPeakDataResult.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeUpBpsPeakDataResult::DescribeUpBpsPeakDataResult() : + ServiceResult() +{} + +DescribeUpBpsPeakDataResult::DescribeUpBpsPeakDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUpBpsPeakDataResult::~DescribeUpBpsPeakDataResult() +{} + +void DescribeUpBpsPeakDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDescribeUpPeakTraffics = value["DescribeUpPeakTraffics"]["DescribeUpPeakTraffic"]; + for (auto value : allDescribeUpPeakTraffics) + { + DescribeUpPeakTraffic describeUpPeakTrafficsObject; + if(!value["PeakTime"].isNull()) + describeUpPeakTrafficsObject.peakTime = value["PeakTime"].asString(); + if(!value["QueryTime"].isNull()) + describeUpPeakTrafficsObject.queryTime = value["QueryTime"].asString(); + if(!value["StatName"].isNull()) + describeUpPeakTrafficsObject.statName = value["StatName"].asString(); + if(!value["BandWidth"].isNull()) + describeUpPeakTrafficsObject.bandWidth = value["BandWidth"].asString(); + describeUpPeakTraffics_.push_back(describeUpPeakTrafficsObject); + } + +} + +std::vector DescribeUpBpsPeakDataResult::getDescribeUpPeakTraffics()const +{ + return describeUpPeakTraffics_; +} + diff --git a/live/src/model/DescribeUpBpsPeakOfLineRequest.cc b/live/src/model/DescribeUpBpsPeakOfLineRequest.cc new file mode 100644 index 000000000..89c168493 --- /dev/null +++ b/live/src/model/DescribeUpBpsPeakOfLineRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeUpBpsPeakOfLineRequest; + +DescribeUpBpsPeakOfLineRequest::DescribeUpBpsPeakOfLineRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeUpBpsPeakOfLine") +{} + +DescribeUpBpsPeakOfLineRequest::~DescribeUpBpsPeakOfLineRequest() +{} + +std::string DescribeUpBpsPeakOfLineRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUpBpsPeakOfLineRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeUpBpsPeakOfLineRequest::getLine()const +{ + return line_; +} + +void DescribeUpBpsPeakOfLineRequest::setLine(const std::string& line) +{ + line_ = line; + setParameter("Line", line); +} + +std::string DescribeUpBpsPeakOfLineRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeUpBpsPeakOfLineRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeUpBpsPeakOfLineRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeUpBpsPeakOfLineRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeUpBpsPeakOfLineRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeUpBpsPeakOfLineRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeUpBpsPeakOfLineRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUpBpsPeakOfLineRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeUpBpsPeakOfLineRequest::getDomainSwitch()const +{ + return domainSwitch_; +} + +void DescribeUpBpsPeakOfLineRequest::setDomainSwitch(const std::string& domainSwitch) +{ + domainSwitch_ = domainSwitch; + setParameter("DomainSwitch", domainSwitch); +} + diff --git a/live/src/model/DescribeUpBpsPeakOfLineResult.cc b/live/src/model/DescribeUpBpsPeakOfLineResult.cc new file mode 100644 index 000000000..6c9215446 --- /dev/null +++ b/live/src/model/DescribeUpBpsPeakOfLineResult.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeUpBpsPeakOfLineResult::DescribeUpBpsPeakOfLineResult() : + ServiceResult() +{} + +DescribeUpBpsPeakOfLineResult::DescribeUpBpsPeakOfLineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUpBpsPeakOfLineResult::~DescribeUpBpsPeakOfLineResult() +{} + +void DescribeUpBpsPeakOfLineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDescribeUpBpsPeakOfLines = value["DescribeUpBpsPeakOfLines"]["DescribeUpBpsPeakOfLine"]; + for (auto value : allDescribeUpBpsPeakOfLines) + { + DescribeUpBpsPeakOfLine describeUpBpsPeakOfLinesObject; + if(!value["BandWidth"].isNull()) + describeUpBpsPeakOfLinesObject.bandWidth = std::stof(value["BandWidth"].asString()); + if(!value["PeakTime"].isNull()) + describeUpBpsPeakOfLinesObject.peakTime = value["PeakTime"].asString(); + if(!value["QueryTime"].isNull()) + describeUpBpsPeakOfLinesObject.queryTime = value["QueryTime"].asString(); + if(!value["StatName"].isNull()) + describeUpBpsPeakOfLinesObject.statName = value["StatName"].asString(); + describeUpBpsPeakOfLines_.push_back(describeUpBpsPeakOfLinesObject); + } + +} + +std::vector DescribeUpBpsPeakOfLineResult::getDescribeUpBpsPeakOfLines()const +{ + return describeUpBpsPeakOfLines_; +} + diff --git a/live/src/model/DescribeUpPeakPublishStreamDataRequest.cc b/live/src/model/DescribeUpPeakPublishStreamDataRequest.cc new file mode 100644 index 000000000..689c40099 --- /dev/null +++ b/live/src/model/DescribeUpPeakPublishStreamDataRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeUpPeakPublishStreamDataRequest; + +DescribeUpPeakPublishStreamDataRequest::DescribeUpPeakPublishStreamDataRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeUpPeakPublishStreamData") +{} + +DescribeUpPeakPublishStreamDataRequest::~DescribeUpPeakPublishStreamDataRequest() +{} + +std::string DescribeUpPeakPublishStreamDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUpPeakPublishStreamDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeUpPeakPublishStreamDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeUpPeakPublishStreamDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeUpPeakPublishStreamDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeUpPeakPublishStreamDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeUpPeakPublishStreamDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeUpPeakPublishStreamDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeUpPeakPublishStreamDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUpPeakPublishStreamDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeUpPeakPublishStreamDataRequest::getDomainSwitch()const +{ + return domainSwitch_; +} + +void DescribeUpPeakPublishStreamDataRequest::setDomainSwitch(const std::string& domainSwitch) +{ + domainSwitch_ = domainSwitch; + setParameter("DomainSwitch", domainSwitch); +} + diff --git a/live/src/model/DescribeUpPeakPublishStreamDataResult.cc b/live/src/model/DescribeUpPeakPublishStreamDataResult.cc new file mode 100644 index 000000000..d93ebf3ce --- /dev/null +++ b/live/src/model/DescribeUpPeakPublishStreamDataResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeUpPeakPublishStreamDataResult::DescribeUpPeakPublishStreamDataResult() : + ServiceResult() +{} + +DescribeUpPeakPublishStreamDataResult::DescribeUpPeakPublishStreamDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUpPeakPublishStreamDataResult::~DescribeUpPeakPublishStreamDataResult() +{} + +void DescribeUpPeakPublishStreamDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDescribeUpPeakPublishStreamDatas = value["DescribeUpPeakPublishStreamDatas"]["DescribeUpPeakPublishStreamData"]; + for (auto value : allDescribeUpPeakPublishStreamDatas) + { + DescribeUpPeakPublishStreamData describeUpPeakPublishStreamDatasObject; + if(!value["PublishStreamNum"].isNull()) + describeUpPeakPublishStreamDatasObject.publishStreamNum = std::stoi(value["PublishStreamNum"].asString()); + if(!value["PeakTime"].isNull()) + describeUpPeakPublishStreamDatasObject.peakTime = value["PeakTime"].asString(); + if(!value["QueryTime"].isNull()) + describeUpPeakPublishStreamDatasObject.queryTime = value["QueryTime"].asString(); + if(!value["StatName"].isNull()) + describeUpPeakPublishStreamDatasObject.statName = value["StatName"].asString(); + if(!value["BandWidth"].isNull()) + describeUpPeakPublishStreamDatasObject.bandWidth = value["BandWidth"].asString(); + describeUpPeakPublishStreamDatas_.push_back(describeUpPeakPublishStreamDatasObject); + } + +} + +std::vector DescribeUpPeakPublishStreamDataResult::getDescribeUpPeakPublishStreamDatas()const +{ + return describeUpPeakPublishStreamDatas_; +} + diff --git a/live/src/model/SendRoomNotificationRequest.cc b/live/src/model/SendRoomNotificationRequest.cc index 55b726ed5..24e853a4f 100644 --- a/live/src/model/SendRoomNotificationRequest.cc +++ b/live/src/model/SendRoomNotificationRequest.cc @@ -190,17 +190,6 @@ void SendRoomNotificationRequest::setPopProduct(const std::string& popProduct) setParameter("PopProduct", popProduct); } -std::string SendRoomNotificationRequest::getProduct()const -{ - return product_; -} - -void SendRoomNotificationRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); -} - std::string SendRoomNotificationRequest::getAppUid()const { return appUid_;