|
@@ -22,10 +22,6 @@
|
|
|
#include <alibabacloud/core/EndpointProvider.h>
|
|
#include <alibabacloud/core/EndpointProvider.h>
|
|
|
#include <alibabacloud/core/RpcServiceClient.h>
|
|
#include <alibabacloud/core/RpcServiceClient.h>
|
|
|
#include "XtraceExport.h"
|
|
#include "XtraceExport.h"
|
|
|
-#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
|
|
|
|
|
-#include "model/CheckServiceLinkedRoleForDeletingResult.h"
|
|
|
|
|
-#include "model/GetSamplingRequest.h"
|
|
|
|
|
-#include "model/GetSamplingResult.h"
|
|
|
|
|
#include "model/GetTagKeyRequest.h"
|
|
#include "model/GetTagKeyRequest.h"
|
|
|
#include "model/GetTagKeyResult.h"
|
|
#include "model/GetTagKeyResult.h"
|
|
|
#include "model/GetTagValRequest.h"
|
|
#include "model/GetTagValRequest.h"
|
|
@@ -46,8 +42,6 @@
|
|
|
#include "model/QueryMetricResult.h"
|
|
#include "model/QueryMetricResult.h"
|
|
|
#include "model/SearchTracesRequest.h"
|
|
#include "model/SearchTracesRequest.h"
|
|
|
#include "model/SearchTracesResult.h"
|
|
#include "model/SearchTracesResult.h"
|
|
|
-#include "model/UpdateSamplingRequest.h"
|
|
|
|
|
-#include "model/UpdateSamplingResult.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace AlibabaCloud
|
|
namespace AlibabaCloud
|
|
@@ -57,12 +51,6 @@ namespace AlibabaCloud
|
|
|
class ALIBABACLOUD_XTRACE_EXPORT XtraceClient : public RpcServiceClient
|
|
class ALIBABACLOUD_XTRACE_EXPORT XtraceClient : public RpcServiceClient
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
- typedef Outcome<Error, Model::CheckServiceLinkedRoleForDeletingResult> CheckServiceLinkedRoleForDeletingOutcome;
|
|
|
|
|
- typedef std::future<CheckServiceLinkedRoleForDeletingOutcome> CheckServiceLinkedRoleForDeletingOutcomeCallable;
|
|
|
|
|
- typedef std::function<void(const XtraceClient*, const Model::CheckServiceLinkedRoleForDeletingRequest&, const CheckServiceLinkedRoleForDeletingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckServiceLinkedRoleForDeletingAsyncHandler;
|
|
|
|
|
- typedef Outcome<Error, Model::GetSamplingResult> GetSamplingOutcome;
|
|
|
|
|
- typedef std::future<GetSamplingOutcome> GetSamplingOutcomeCallable;
|
|
|
|
|
- typedef std::function<void(const XtraceClient*, const Model::GetSamplingRequest&, const GetSamplingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSamplingAsyncHandler;
|
|
|
|
|
typedef Outcome<Error, Model::GetTagKeyResult> GetTagKeyOutcome;
|
|
typedef Outcome<Error, Model::GetTagKeyResult> GetTagKeyOutcome;
|
|
|
typedef std::future<GetTagKeyOutcome> GetTagKeyOutcomeCallable;
|
|
typedef std::future<GetTagKeyOutcome> GetTagKeyOutcomeCallable;
|
|
|
typedef std::function<void(const XtraceClient*, const Model::GetTagKeyRequest&, const GetTagKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTagKeyAsyncHandler;
|
|
typedef std::function<void(const XtraceClient*, const Model::GetTagKeyRequest&, const GetTagKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTagKeyAsyncHandler;
|
|
@@ -93,20 +81,11 @@ namespace AlibabaCloud
|
|
|
typedef Outcome<Error, Model::SearchTracesResult> SearchTracesOutcome;
|
|
typedef Outcome<Error, Model::SearchTracesResult> SearchTracesOutcome;
|
|
|
typedef std::future<SearchTracesOutcome> SearchTracesOutcomeCallable;
|
|
typedef std::future<SearchTracesOutcome> SearchTracesOutcomeCallable;
|
|
|
typedef std::function<void(const XtraceClient*, const Model::SearchTracesRequest&, const SearchTracesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesAsyncHandler;
|
|
typedef std::function<void(const XtraceClient*, const Model::SearchTracesRequest&, const SearchTracesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesAsyncHandler;
|
|
|
- typedef Outcome<Error, Model::UpdateSamplingResult> UpdateSamplingOutcome;
|
|
|
|
|
- typedef std::future<UpdateSamplingOutcome> UpdateSamplingOutcomeCallable;
|
|
|
|
|
- typedef std::function<void(const XtraceClient*, const Model::UpdateSamplingRequest&, const UpdateSamplingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSamplingAsyncHandler;
|
|
|
|
|
|
|
|
|
|
XtraceClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
|
XtraceClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
|
|
XtraceClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
|
XtraceClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
|
|
XtraceClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
|
XtraceClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
|
|
~XtraceClient();
|
|
~XtraceClient();
|
|
|
- CheckServiceLinkedRoleForDeletingOutcome checkServiceLinkedRoleForDeleting(const Model::CheckServiceLinkedRoleForDeletingRequest &request)const;
|
|
|
|
|
- void checkServiceLinkedRoleForDeletingAsync(const Model::CheckServiceLinkedRoleForDeletingRequest& request, const CheckServiceLinkedRoleForDeletingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
- CheckServiceLinkedRoleForDeletingOutcomeCallable checkServiceLinkedRoleForDeletingCallable(const Model::CheckServiceLinkedRoleForDeletingRequest& request) const;
|
|
|
|
|
- GetSamplingOutcome getSampling(const Model::GetSamplingRequest &request)const;
|
|
|
|
|
- void getSamplingAsync(const Model::GetSamplingRequest& request, const GetSamplingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
- GetSamplingOutcomeCallable getSamplingCallable(const Model::GetSamplingRequest& request) const;
|
|
|
|
|
GetTagKeyOutcome getTagKey(const Model::GetTagKeyRequest &request)const;
|
|
GetTagKeyOutcome getTagKey(const Model::GetTagKeyRequest &request)const;
|
|
|
void getTagKeyAsync(const Model::GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
void getTagKeyAsync(const Model::GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
GetTagKeyOutcomeCallable getTagKeyCallable(const Model::GetTagKeyRequest& request) const;
|
|
GetTagKeyOutcomeCallable getTagKeyCallable(const Model::GetTagKeyRequest& request) const;
|
|
@@ -137,9 +116,6 @@ namespace AlibabaCloud
|
|
|
SearchTracesOutcome searchTraces(const Model::SearchTracesRequest &request)const;
|
|
SearchTracesOutcome searchTraces(const Model::SearchTracesRequest &request)const;
|
|
|
void searchTracesAsync(const Model::SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
void searchTracesAsync(const Model::SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
SearchTracesOutcomeCallable searchTracesCallable(const Model::SearchTracesRequest& request) const;
|
|
SearchTracesOutcomeCallable searchTracesCallable(const Model::SearchTracesRequest& request) const;
|
|
|
- UpdateSamplingOutcome updateSampling(const Model::UpdateSamplingRequest &request)const;
|
|
|
|
|
- void updateSamplingAsync(const Model::UpdateSamplingRequest& request, const UpdateSamplingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
|
|
|
- UpdateSamplingOutcomeCallable updateSamplingCallable(const Model::UpdateSamplingRequest& request) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
private:
|
|
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|