Generated 2019-09-01 for OceanBasePro.
This commit is contained in:
@@ -160,6 +160,8 @@
|
||||
#include "model/DescribeSQLPlansResult.h"
|
||||
#include "model/DescribeSQLSamplesRequest.h"
|
||||
#include "model/DescribeSQLSamplesResult.h"
|
||||
#include "model/DescribeSQLTuningAdvicesRequest.h"
|
||||
#include "model/DescribeSQLTuningAdvicesResult.h"
|
||||
#include "model/DescribeSampleSqlRawTextsRequest.h"
|
||||
#include "model/DescribeSampleSqlRawTextsResult.h"
|
||||
#include "model/DescribeSecurityIpGroupsRequest.h"
|
||||
@@ -496,6 +498,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSQLSamplesResult> DescribeSQLSamplesOutcome;
|
||||
typedef std::future<DescribeSQLSamplesOutcome> DescribeSQLSamplesOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeSQLSamplesRequest&, const DescribeSQLSamplesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLSamplesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLTuningAdvicesResult> DescribeSQLTuningAdvicesOutcome;
|
||||
typedef std::future<DescribeSQLTuningAdvicesOutcome> DescribeSQLTuningAdvicesOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeSQLTuningAdvicesRequest&, const DescribeSQLTuningAdvicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLTuningAdvicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSampleSqlRawTextsResult> DescribeSampleSqlRawTextsOutcome;
|
||||
typedef std::future<DescribeSampleSqlRawTextsOutcome> DescribeSampleSqlRawTextsOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeSampleSqlRawTextsRequest&, const DescribeSampleSqlRawTextsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSampleSqlRawTextsAsyncHandler;
|
||||
@@ -888,6 +893,9 @@ namespace AlibabaCloud
|
||||
DescribeSQLSamplesOutcome describeSQLSamples(const Model::DescribeSQLSamplesRequest &request)const;
|
||||
void describeSQLSamplesAsync(const Model::DescribeSQLSamplesRequest& request, const DescribeSQLSamplesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLSamplesOutcomeCallable describeSQLSamplesCallable(const Model::DescribeSQLSamplesRequest& request) const;
|
||||
DescribeSQLTuningAdvicesOutcome describeSQLTuningAdvices(const Model::DescribeSQLTuningAdvicesRequest &request)const;
|
||||
void describeSQLTuningAdvicesAsync(const Model::DescribeSQLTuningAdvicesRequest& request, const DescribeSQLTuningAdvicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLTuningAdvicesOutcomeCallable describeSQLTuningAdvicesCallable(const Model::DescribeSQLTuningAdvicesRequest& request) const;
|
||||
DescribeSampleSqlRawTextsOutcome describeSampleSqlRawTexts(const Model::DescribeSampleSqlRawTextsRequest &request)const;
|
||||
void describeSampleSqlRawTextsAsync(const Model::DescribeSampleSqlRawTextsRequest& request, const DescribeSampleSqlRawTextsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSampleSqlRawTextsOutcomeCallable describeSampleSqlRawTextsCallable(const Model::DescribeSampleSqlRawTextsRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_OCEANBASEPRO_MODEL_DESCRIBESQLTUNINGADVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLTUNINGADVICESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace OceanBasePro {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeSQLTuningAdvicesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeSQLTuningAdvicesRequest();
|
||||
~DescribeSQLTuningAdvicesRequest();
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getTenantId() const;
|
||||
void setTenantId(const std::string &tenantId);
|
||||
std::string getSqlId() const;
|
||||
void setSqlId(const std::string &sqlId);
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getDbName() const;
|
||||
void setDbName(const std::string &dbName);
|
||||
std::string getAcceptLanguage() const;
|
||||
void setAcceptLanguage(const std::string &acceptLanguage);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string tenantId_;
|
||||
std::string sqlId_;
|
||||
std::string endTime_;
|
||||
std::string instanceId_;
|
||||
std::string dbName_;
|
||||
std::string acceptLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace OceanBasePro
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLTUNINGADVICESREQUEST_H_
|
||||
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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_OCEANBASEPRO_MODEL_DESCRIBESQLTUNINGADVICESRESULT_H_
|
||||
#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLTUNINGADVICESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OceanBasePro
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeSQLTuningAdvicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
struct Plan
|
||||
{
|
||||
long executions;
|
||||
float avgCpuTime;
|
||||
std::string planHash;
|
||||
float timeoutPercentage;
|
||||
float avgConcurrencyWaitTime;
|
||||
long firstLoadTimeUs;
|
||||
float avgDiskWrites;
|
||||
float avgUserIoWaitTime;
|
||||
long planSize;
|
||||
std::string serverSn;
|
||||
std::string outlineData;
|
||||
std::string planType;
|
||||
long obDbId;
|
||||
float hitPercentage;
|
||||
float avgBufferGets;
|
||||
float execPs;
|
||||
float delayedLargeQueryPercentage;
|
||||
bool tableScan;
|
||||
float largeQueryPercentage;
|
||||
long schemaVersion;
|
||||
long planId;
|
||||
std::string firstLoadTime;
|
||||
float avgRowProcessed;
|
||||
long mergedVersion;
|
||||
bool hitDiagnosis;
|
||||
std::string uid;
|
||||
float avgApplicationWaitTime;
|
||||
long collectTimeUs;
|
||||
float avgElapsedTime;
|
||||
long obServerId;
|
||||
long outlineId;
|
||||
float avgDiskReads;
|
||||
};
|
||||
struct ColumnsItem
|
||||
{
|
||||
std::string columnName;
|
||||
float ndv;
|
||||
std::string minValue;
|
||||
std::string maxValue;
|
||||
};
|
||||
std::string type;
|
||||
std::string columnNames;
|
||||
std::string table;
|
||||
std::string localityType;
|
||||
std::vector<DataItem::ColumnsItem> columns;
|
||||
std::string dbName;
|
||||
Plan plan;
|
||||
};
|
||||
|
||||
|
||||
DescribeSQLTuningAdvicesResult();
|
||||
explicit DescribeSQLTuningAdvicesResult(const std::string &payload);
|
||||
~DescribeSQLTuningAdvicesResult();
|
||||
std::vector<DataItem> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DataItem> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLTUNINGADVICESRESULT_H_
|
||||
Reference in New Issue
Block a user