diff --git a/VERSION b/VERSION index 1f7e53dc6..44e679834 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2085 \ No newline at end of file +1.36.2086 \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasAnomalySQLListResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasAnomalySQLListResult.h index 5006fab1f..a7d536b3f 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasAnomalySQLListResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasAnomalySQLListResult.h @@ -41,17 +41,17 @@ namespace AlibabaCloud double sumDbTime; std::string userName; std::string lastExecutedTime; - float avgRetryCount; + double avgRetryCount; double avgGetPlanTime; double cpuTime; - float sumRetryCount; + double sumRetryCount; std::string sqlId; - std::string sumElapsedTime; + double sumElapsedTime; std::string suggestion; std::string sqlTextShort; double avgElapsedTime; std::string dbName; - float avgLogicalReads; + double avgLogicalReads; std::string diagnosis; std::string riskLevel; double avgDbTime; @@ -64,18 +64,18 @@ namespace AlibabaCloud std::vector sqlList; std::string userName; std::string lastExecutedTime; - float avgRetryCount; + double avgRetryCount; double avgGetPlanTime; double cpuTime; - float sumRetryCount; + double sumRetryCount; std::vector diagTypes; std::string sqlId; - std::string sumElapsedTime; + double sumElapsedTime; std::string suggestion; std::string sqlTextShort; double avgElapsedTime; std::string dbName; - float avgLogicalReads; + double avgLogicalReads; std::string diagnosis; std::string riskLevel; double avgDbTime; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h index 4c4e18efd..08b873580 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h @@ -73,7 +73,7 @@ namespace AlibabaCloud long executeTime; std::string proxySessId; std::string serverIp; - std::string planId; + long planId; std::string sqlText; long cpuTime; std::string clientIp; @@ -90,7 +90,7 @@ namespace AlibabaCloud long executeTime; std::string proxySessId; std::string serverIp; - std::string planId; + long planId; std::string sqlText; long cpuTime; std::string clientIp; @@ -108,7 +108,7 @@ namespace AlibabaCloud long executeTime; std::string proxySessId; std::string serverIp; - std::string planId; + long planId; std::string sqlText; std::vector processSqlLists; long cpuTime; @@ -122,9 +122,9 @@ namespace AlibabaCloud long sessionId; }; SessionStatistics sessionStatistics; - int totalSessionCount; - int activeSessionCount; - int idleSessionCount; + long totalSessionCount; + long activeSessionCount; + long idleSessionCount; std::string obVersion; std::vector allProcessList; }; diff --git a/oceanbasepro/src/model/DescribeOasAnomalySQLListResult.cc b/oceanbasepro/src/model/DescribeOasAnomalySQLListResult.cc index b49b5aa15..1c7f73436 100644 --- a/oceanbasepro/src/model/DescribeOasAnomalySQLListResult.cc +++ b/oceanbasepro/src/model/DescribeOasAnomalySQLListResult.cc @@ -78,11 +78,11 @@ void DescribeOasAnomalySQLListResult::parse(const std::string &payload) if(!valueDataDataItem["SumDbTime"].isNull()) dataObject.sumDbTime = valueDataDataItem["SumDbTime"].asString(); if(!valueDataDataItem["AvgRetryCount"].isNull()) - dataObject.avgRetryCount = std::stof(valueDataDataItem["AvgRetryCount"].asString()); + dataObject.avgRetryCount = valueDataDataItem["AvgRetryCount"].asString(); if(!valueDataDataItem["SumRetryCount"].isNull()) - dataObject.sumRetryCount = std::stof(valueDataDataItem["SumRetryCount"].asString()); + dataObject.sumRetryCount = valueDataDataItem["SumRetryCount"].asString(); if(!valueDataDataItem["AvgLogicalReads"].isNull()) - dataObject.avgLogicalReads = std::stof(valueDataDataItem["AvgLogicalReads"].asString()); + dataObject.avgLogicalReads = valueDataDataItem["AvgLogicalReads"].asString(); auto allSqlListNode = valueDataDataItem["SqlList"]["SqlListItem"]; for (auto valueDataDataItemSqlListSqlListItem : allSqlListNode) { @@ -120,11 +120,11 @@ void DescribeOasAnomalySQLListResult::parse(const std::string &payload) if(!valueDataDataItemSqlListSqlListItem["SumDbTime"].isNull()) sqlListObject.sumDbTime = valueDataDataItemSqlListSqlListItem["SumDbTime"].asString(); if(!valueDataDataItemSqlListSqlListItem["AvgRetryCount"].isNull()) - sqlListObject.avgRetryCount = std::stof(valueDataDataItemSqlListSqlListItem["AvgRetryCount"].asString()); + sqlListObject.avgRetryCount = valueDataDataItemSqlListSqlListItem["AvgRetryCount"].asString(); if(!valueDataDataItemSqlListSqlListItem["SumRetryCount"].isNull()) - sqlListObject.sumRetryCount = std::stof(valueDataDataItemSqlListSqlListItem["SumRetryCount"].asString()); + sqlListObject.sumRetryCount = valueDataDataItemSqlListSqlListItem["SumRetryCount"].asString(); if(!valueDataDataItemSqlListSqlListItem["AvgLogicalReads"].isNull()) - sqlListObject.avgLogicalReads = std::stof(valueDataDataItemSqlListSqlListItem["AvgLogicalReads"].asString()); + sqlListObject.avgLogicalReads = valueDataDataItemSqlListSqlListItem["AvgLogicalReads"].asString(); auto allDiagTypes1 = value["DiagTypes"]["DiagTypes"]; for (auto value : allDiagTypes1) sqlListObject.diagTypes1.push_back(value.asString()); diff --git a/oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc b/oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc index dca4f2406..87b952510 100644 --- a/oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc +++ b/oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc @@ -41,11 +41,11 @@ void DescribeProcessStatsCompositionResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["TotalSessionCount"].isNull()) - data_.totalSessionCount = std::stoi(dataNode["TotalSessionCount"].asString()); + data_.totalSessionCount = std::stol(dataNode["TotalSessionCount"].asString()); if(!dataNode["ActiveSessionCount"].isNull()) - data_.activeSessionCount = std::stoi(dataNode["ActiveSessionCount"].asString()); + data_.activeSessionCount = std::stol(dataNode["ActiveSessionCount"].asString()); if(!dataNode["IdleSessionCount"].isNull()) - data_.idleSessionCount = std::stoi(dataNode["IdleSessionCount"].asString()); + data_.idleSessionCount = std::stol(dataNode["IdleSessionCount"].asString()); if(!dataNode["ObVersion"].isNull()) data_.obVersion = dataNode["ObVersion"].asString(); auto allAllProcessListNode = dataNode["AllProcessList"]["AllProcessListItem"]; @@ -81,7 +81,7 @@ void DescribeProcessStatsCompositionResult::parse(const std::string &payload) if(!dataNodeAllProcessListAllProcessListItem["TraceId"].isNull()) allProcessListItemObject.traceId = dataNodeAllProcessListAllProcessListItem["TraceId"].asString(); if(!dataNodeAllProcessListAllProcessListItem["PlanId"].isNull()) - allProcessListItemObject.planId = dataNodeAllProcessListAllProcessListItem["PlanId"].asString(); + allProcessListItemObject.planId = std::stol(dataNodeAllProcessListAllProcessListItem["PlanId"].asString()); if(!dataNodeAllProcessListAllProcessListItem["DynamicSql"].isNull()) allProcessListItemObject.dynamicSql = dataNodeAllProcessListAllProcessListItem["DynamicSql"].asString() == "true"; if(!dataNodeAllProcessListAllProcessListItem["ServerSn"].isNull()) @@ -119,7 +119,7 @@ void DescribeProcessStatsCompositionResult::parse(const std::string &payload) if(!dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["TraceId"].isNull()) processSqlListsObject.traceId = dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["TraceId"].asString(); if(!dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["PlanId"].isNull()) - processSqlListsObject.planId = dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["PlanId"].asString(); + processSqlListsObject.planId = std::stol(dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["PlanId"].asString()); if(!dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["DynamicSql"].isNull()) processSqlListsObject.dynamicSql = dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["DynamicSql"].asString() == "true"; auto allProcessSqlListNode = dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItem["ProcessSqlList"]["ProcessSqlListItem"]; @@ -155,7 +155,7 @@ void DescribeProcessStatsCompositionResult::parse(const std::string &payload) if(!dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItemProcessSqlListProcessSqlListItem["TraceId"].isNull()) processSqlListObject.traceId = dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItemProcessSqlListProcessSqlListItem["TraceId"].asString(); if(!dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItemProcessSqlListProcessSqlListItem["PlanId"].isNull()) - processSqlListObject.planId = dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItemProcessSqlListProcessSqlListItem["PlanId"].asString(); + processSqlListObject.planId = std::stol(dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItemProcessSqlListProcessSqlListItem["PlanId"].asString()); if(!dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItemProcessSqlListProcessSqlListItem["DynamicSql"].isNull()) processSqlListObject.dynamicSql = dataNodeAllProcessListAllProcessListItemProcessSqlListsProcessSqlListsItemProcessSqlListProcessSqlListItem["DynamicSql"].asString() == "true"; processSqlListsObject.processSqlList.push_back(processSqlListObject);