Просмотр исходного кода

DescribeCameraStatistics add filed.

sdk-team 6 лет назад
Родитель
Сommit
e051f5848b

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-06-03 Version: 1.36.442
+- DescribeCameraStatistics add filed.
+
 2020-06-02 Version: 1.36.441
 - Edit SearchTraces api.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.441
+1.36.442

+ 1 - 0
reid/include/alibabacloud/reid/model/DescribeCameraStatisticsResult.h

@@ -41,6 +41,7 @@ namespace AlibabaCloud
 						float right;
 						float bottom;
 					};
+					long maxDataTime;
 					std::vector<PvStatisticResult::Rect> pvRects;
 					long locationId;
 					long processCursor;

+ 3 - 3
reid/src/ReidClient.cc

@@ -31,21 +31,21 @@ ReidClient::ReidClient(const Credentials &credentials, const ClientConfiguration
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.7");
 }
 
 ReidClient::ReidClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.7");
 }
 
 ReidClient::ReidClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.7");
 }
 
 ReidClient::~ReidClient()

+ 2 - 0
reid/src/model/DescribeCameraStatisticsResult.cc

@@ -53,6 +53,8 @@ void DescribeCameraStatisticsResult::parse(const std::string &payload)
 			pvStatisticResultsObject.locationId = std::stol(valuePvStatisticResultsPvStatisticResult["LocationId"].asString());
 		if(!valuePvStatisticResultsPvStatisticResult["PvType"].isNull())
 			pvStatisticResultsObject.pvType = valuePvStatisticResultsPvStatisticResult["PvType"].asString();
+		if(!valuePvStatisticResultsPvStatisticResult["MaxDataTime"].isNull())
+			pvStatisticResultsObject.maxDataTime = std::stol(valuePvStatisticResultsPvStatisticResult["MaxDataTime"].asString());
 		auto allPvRectsNode = allPvStatisticResultsNode["PvRects"]["Rect"];
 		for (auto allPvStatisticResultsNodePvRectsRect : allPvRectsNode)
 		{