118 lines
3.5 KiB
C++
118 lines
3.5 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(std::string("MetricScope"), metricScope);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getClusterId() const {
|
|
return clusterId_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setClusterId(const std::string &clusterId) {
|
|
clusterId_ = clusterId;
|
|
setParameter(std::string("ClusterId"), clusterId);
|
|
}
|
|
|
|
int GetCloudMetricLogsRequest::getAggregationInterval() const {
|
|
return aggregationInterval_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setAggregationInterval(int aggregationInterval) {
|
|
aggregationInterval_ = aggregationInterval;
|
|
setParameter(std::string("AggregationInterval"), std::to_string(aggregationInterval));
|
|
}
|
|
|
|
bool GetCloudMetricLogsRequest::getReverse() const {
|
|
return reverse_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setReverse(bool reverse) {
|
|
reverse_ = reverse;
|
|
setParameter(std::string("Reverse"), reverse ? "true" : "false");
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getAccessKeyId() const {
|
|
return accessKeyId_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
|
accessKeyId_ = accessKeyId;
|
|
setParameter(std::string("AccessKeyId"), accessKeyId);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getAggregationType() const {
|
|
return aggregationType_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setAggregationType(const std::string &aggregationType) {
|
|
aggregationType_ = aggregationType;
|
|
setParameter(std::string("AggregationType"), aggregationType);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getFilter() const {
|
|
return filter_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setFilter(const std::string &filter) {
|
|
filter_ = filter;
|
|
setParameter(std::string("Filter"), filter);
|
|
}
|
|
|
|
std::string GetCloudMetricLogsRequest::getMetricCategories() const {
|
|
return metricCategories_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setMetricCategories(const std::string &metricCategories) {
|
|
metricCategories_ = metricCategories;
|
|
setParameter(std::string("MetricCategories"), metricCategories);
|
|
}
|
|
|
|
int GetCloudMetricLogsRequest::getFrom() const {
|
|
return from_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setFrom(int from) {
|
|
from_ = from;
|
|
setParameter(std::string("From"), std::to_string(from));
|
|
}
|
|
|
|
int GetCloudMetricLogsRequest::getTo() const {
|
|
return to_;
|
|
}
|
|
|
|
void GetCloudMetricLogsRequest::setTo(int to) {
|
|
to_ = to;
|
|
setParameter(std::string("To"), std::to_string(to));
|
|
}
|
|
|