Generated 2019-09-01 for OceanBasePro.

This commit is contained in:
sdk-team
2025-07-11 06:51:02 +00:00
parent 9a6e36ba1b
commit 8e06520db5
5 changed files with 27 additions and 27 deletions

View File

@@ -1 +1 @@
1.36.2085
1.36.2086

View File

@@ -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<DataItem::SqlListItem> sqlList;
std::string userName;
std::string lastExecutedTime;
float avgRetryCount;
double avgRetryCount;
double avgGetPlanTime;
double cpuTime;
float sumRetryCount;
double sumRetryCount;
std::vector<std::string> 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;

View File

@@ -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<AllProcessListItem::ProcessSqlListsItem> 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<AllProcessListItem> allProcessList;
};

View File

@@ -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());

View File

@@ -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);