From 92edf522439abea154beeea31b48491fc54bfc68 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 5 Dec 2022 08:49:53 +0000 Subject: [PATCH] Modify QueryRequestLogs. --- VERSION | 2 +- .../alibabacloud/cloudapi/model/QueryRequestLogsResult.h | 2 +- cloudapi/src/model/QueryRequestLogsResult.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index abb769ba3..e90050a06 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1374 \ No newline at end of file +1.36.1375 \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/QueryRequestLogsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/QueryRequestLogsResult.h index d1a226738..52015b994 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/QueryRequestLogsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/QueryRequestLogsResult.h @@ -43,7 +43,7 @@ namespace AlibabaCloud std::string requestProtocol; std::string customTraceId; std::string statusCode; - int clientIp; + std::string clientIp; std::string requestQueryString; std::string responseSize; std::string serviceLatency; diff --git a/cloudapi/src/model/QueryRequestLogsResult.cc b/cloudapi/src/model/QueryRequestLogsResult.cc index 79dd79344..0e40fc945 100644 --- a/cloudapi/src/model/QueryRequestLogsResult.cc +++ b/cloudapi/src/model/QueryRequestLogsResult.cc @@ -86,7 +86,7 @@ void QueryRequestLogsResult::parse(const std::string &payload) if(!valueRequestLogsRequestLog["StatusCode"].isNull()) requestLogsObject.statusCode = valueRequestLogsRequestLog["StatusCode"].asString(); if(!valueRequestLogsRequestLog["ClientIp"].isNull()) - requestLogsObject.clientIp = std::stoi(valueRequestLogsRequestLog["ClientIp"].asString()); + requestLogsObject.clientIp = valueRequestLogsRequestLog["ClientIp"].asString(); if(!valueRequestLogsRequestLog["ServiceLatency"].isNull()) requestLogsObject.serviceLatency = valueRequestLogsRequestLog["ServiceLatency"].asString(); if(!valueRequestLogsRequestLog["RequestTime"].isNull())