140 lines
3.3 KiB
C++
140 lines
3.3 KiB
C++
/*
|
|
* 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/ehpc/model/GetCloudMetricLogsRequest.h>
|
|
|
|
using AlibabaCloud::EHPC::Model::GetCloudMetricLogsRequest;
|
|
|
|
GetCloudMetricLogsRequest::GetCloudMetricLogsRequest() :
|
|
RpcServiceRequest("ehpc", "2018-04-12", "GetCloudMetricLogs")
|
|
{
|
|
setMethod(HttpRequest::Method::GET);
|
|
}
|
|
|
|
GetCloudMetricLogsRequest::~GetCloudMetricLogsRequest()
|
|
{}
|
|
|
|
std::string GetCloudMetricLogsRequest::getMetricScope()const
|
|
{
|
|
return metricScope_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setMetricScope(const std::string& metricScope)
|
|
{
|
|
metricScope_ = metricScope;
|
|
setParameter("MetricScope", metricScope);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getClusterId()const
|
|
{
|
|
return clusterId_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setClusterId(const std::string& clusterId)
|
|
{
|
|
clusterId_ = clusterId;
|
|
setParameter("ClusterId", clusterId);
|
|
}
|
|
|
|
int GetCloudMetricLogsRequest::getAggregationInterval()const
|
|
{
|
|
return aggregationInterval_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setAggregationInterval(int aggregationInterval)
|
|
{
|
|
aggregationInterval_ = aggregationInterval;
|
|
setParameter("AggregationInterval", std::to_string(aggregationInterval));
|
|
}
|
|
|
|
bool GetCloudMetricLogsRequest::getReverse()const
|
|
{
|
|
return reverse_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setReverse(bool reverse)
|
|
{
|
|
reverse_ = reverse;
|
|
setParameter("Reverse", reverse ? "true" : "false");
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getAccessKeyId()const
|
|
{
|
|
return accessKeyId_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
{
|
|
accessKeyId_ = accessKeyId;
|
|
setParameter("AccessKeyId", accessKeyId);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getAggregationType()const
|
|
{
|
|
return aggregationType_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setAggregationType(const std::string& aggregationType)
|
|
{
|
|
aggregationType_ = aggregationType;
|
|
setParameter("AggregationType", aggregationType);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getFilter()const
|
|
{
|
|
return filter_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setFilter(const std::string& filter)
|
|
{
|
|
filter_ = filter;
|
|
setParameter("Filter", filter);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getMetricCategories()const
|
|
{
|
|
return metricCategories_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setMetricCategories(const std::string& metricCategories)
|
|
{
|
|
metricCategories_ = metricCategories;
|
|
setParameter("MetricCategories", metricCategories);
|
|
}
|
|
|
|
int GetCloudMetricLogsRequest::getFrom()const
|
|
{
|
|
return from_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setFrom(int from)
|
|
{
|
|
from_ = from;
|
|
setParameter("From", std::to_string(from));
|
|
}
|
|
|
|
int GetCloudMetricLogsRequest::getTo()const
|
|
{
|
|
return to_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setTo(int to)
|
|
{
|
|
to_ = to;
|
|
setParameter("To", std::to_string(to));
|
|
}
|
|
|