Support Sampling for jaeger.
This commit is contained in:
84
xtrace/src/model/CheckServiceLinkedRoleForDeletingRequest.cc
Normal file
84
xtrace/src/model/CheckServiceLinkedRoleForDeletingRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/CheckServiceLinkedRoleForDeletingRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::CheckServiceLinkedRoleForDeletingRequest;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::CheckServiceLinkedRoleForDeletingRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "CheckServiceLinkedRoleForDeleting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::~CheckServiceLinkedRoleForDeletingRequest()
|
||||
{}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getSPIRegionId()const
|
||||
{
|
||||
return sPIRegionId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setSPIRegionId(const std::string& sPIRegionId)
|
||||
{
|
||||
sPIRegionId_ = sPIRegionId;
|
||||
setParameter("SPIRegionId", sPIRegionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setDeletionTaskId(const std::string& deletionTaskId)
|
||||
{
|
||||
deletionTaskId_ = deletionTaskId;
|
||||
setParameter("DeletionTaskId", deletionTaskId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
67
xtrace/src/model/CheckServiceLinkedRoleForDeletingResult.cc
Normal file
67
xtrace/src/model/CheckServiceLinkedRoleForDeletingResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/CheckServiceLinkedRoleForDeletingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::~CheckServiceLinkedRoleForDeletingResult()
|
||||
{}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRoleUsagesNode = value["RoleUsages"]["RoleUsagesItem"];
|
||||
for (auto valueRoleUsagesRoleUsagesItem : allRoleUsagesNode)
|
||||
{
|
||||
RoleUsagesItem roleUsagesObject;
|
||||
if(!valueRoleUsagesRoleUsagesItem["Region"].isNull())
|
||||
roleUsagesObject.region = valueRoleUsagesRoleUsagesItem["Region"].asString();
|
||||
auto allResources = value["Resources"]["Resources"];
|
||||
for (auto value : allResources)
|
||||
roleUsagesObject.resources.push_back(value.asString());
|
||||
roleUsages_.push_back(roleUsagesObject);
|
||||
}
|
||||
if(!value["Deletable"].isNull())
|
||||
deletable_ = value["Deletable"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckServiceLinkedRoleForDeletingResult::getDeletable()const
|
||||
{
|
||||
return deletable_;
|
||||
}
|
||||
|
||||
std::vector<CheckServiceLinkedRoleForDeletingResult::RoleUsagesItem> CheckServiceLinkedRoleForDeletingResult::getRoleUsages()const
|
||||
{
|
||||
return roleUsages_;
|
||||
}
|
||||
|
||||
51
xtrace/src/model/GetSamplingRequest.cc
Normal file
51
xtrace/src/model/GetSamplingRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetSamplingRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::GetSamplingRequest;
|
||||
|
||||
GetSamplingRequest::GetSamplingRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "GetSampling")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSamplingRequest::~GetSamplingRequest()
|
||||
{}
|
||||
|
||||
std::string GetSamplingRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetSamplingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetSamplingRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void GetSamplingRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
xtrace/src/model/GetSamplingResult.cc
Normal file
51
xtrace/src/model/GetSamplingResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetSamplingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
GetSamplingResult::GetSamplingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSamplingResult::GetSamplingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSamplingResult::~GetSamplingResult()
|
||||
{}
|
||||
|
||||
void GetSamplingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetSamplingResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -49,3 +49,14 @@ void GetTokenRequest::setAppType(const std::string& appType)
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string GetTokenRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void GetTokenRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
73
xtrace/src/model/GetTraceAnalysisRequest.cc
Normal file
73
xtrace/src/model/GetTraceAnalysisRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTraceAnalysisRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::GetTraceAnalysisRequest;
|
||||
|
||||
GetTraceAnalysisRequest::GetTraceAnalysisRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "GetTraceAnalysis")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTraceAnalysisRequest::~GetTraceAnalysisRequest()
|
||||
{}
|
||||
|
||||
std::string GetTraceAnalysisRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTraceAnalysisRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetTraceAnalysisRequest::getQuery()const
|
||||
{
|
||||
return query_;
|
||||
}
|
||||
|
||||
void GetTraceAnalysisRequest::setQuery(const std::string& query)
|
||||
{
|
||||
query_ = query;
|
||||
setParameter("Query", query);
|
||||
}
|
||||
|
||||
std::string GetTraceAnalysisRequest::getApi()const
|
||||
{
|
||||
return api_;
|
||||
}
|
||||
|
||||
void GetTraceAnalysisRequest::setApi(const std::string& api)
|
||||
{
|
||||
api_ = api;
|
||||
setParameter("Api", api);
|
||||
}
|
||||
|
||||
std::string GetTraceAnalysisRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void GetTraceAnalysisRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
xtrace/src/model/GetTraceAnalysisResult.cc
Normal file
51
xtrace/src/model/GetTraceAnalysisResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/GetTraceAnalysisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
GetTraceAnalysisResult::GetTraceAnalysisResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTraceAnalysisResult::GetTraceAnalysisResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTraceAnalysisResult::~GetTraceAnalysisResult()
|
||||
{}
|
||||
|
||||
void GetTraceAnalysisResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTraceAnalysisResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -76,6 +76,17 @@ void QueryMetricRequest::setFilters(const std::vector<Filters>& filters)
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryMetricRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
|
||||
62
xtrace/src/model/UpdateSamplingRequest.cc
Normal file
62
xtrace/src/model/UpdateSamplingRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/UpdateSamplingRequest.h>
|
||||
|
||||
using AlibabaCloud::Xtrace::Model::UpdateSamplingRequest;
|
||||
|
||||
UpdateSamplingRequest::UpdateSamplingRequest() :
|
||||
RpcServiceRequest("xtrace", "2019-08-08", "UpdateSampling")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSamplingRequest::~UpdateSamplingRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateSamplingRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateSamplingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateSamplingRequest::getSampling()const
|
||||
{
|
||||
return sampling_;
|
||||
}
|
||||
|
||||
void UpdateSamplingRequest::setSampling(const std::string& sampling)
|
||||
{
|
||||
sampling_ = sampling;
|
||||
setParameter("Sampling", sampling);
|
||||
}
|
||||
|
||||
std::string UpdateSamplingRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void UpdateSamplingRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
xtrace/src/model/UpdateSamplingResult.cc
Normal file
51
xtrace/src/model/UpdateSamplingResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/xtrace/model/UpdateSamplingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Xtrace;
|
||||
using namespace AlibabaCloud::Xtrace::Model;
|
||||
|
||||
UpdateSamplingResult::UpdateSamplingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSamplingResult::UpdateSamplingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSamplingResult::~UpdateSamplingResult()
|
||||
{}
|
||||
|
||||
void UpdateSamplingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateSamplingResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user