Files
aliyun-openapi-cpp-sdk/ess/include/alibabacloud/ess/model/ModifyScalingRuleRequest.h
2025-04-25 07:04:42 +00:00

141 lines
5.2 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.
*/
#ifndef ALIBABACLOUD_ESS_MODEL_MODIFYSCALINGRULEREQUEST_H_
#define ALIBABACLOUD_ESS_MODEL_MODIFYSCALINGRULEREQUEST_H_
#include <alibabacloud/ess/EssExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ess {
namespace Model {
class ALIBABACLOUD_ESS_EXPORT ModifyScalingRuleRequest : public RpcServiceRequest {
public:
struct AlarmDimension {
std::string dimensionValue;
std::string dimensionKey;
};
struct StepAdjustment {
float metricIntervalUpperBound;
float metricIntervalLowerBound;
int scalingAdjustment;
};
struct HybridMetrics {
std::string statistic;
std::string expression;
std::string id;
std::string metricName;
struct Dimensions {
std::string dimensionValue;
std::string dimensionKey;
};
std::vector<Dimensions> dimensions;
};
ModifyScalingRuleRequest();
~ModifyScalingRuleRequest();
std::string getMetricType() const;
void setMetricType(const std::string &metricType);
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::vector<AlarmDimension> getAlarmDimension() const;
void setAlarmDimension(const std::vector<AlarmDimension> &alarmDimension);
std::vector<StepAdjustment> getStepAdjustment() const;
void setStepAdjustment(const std::vector<StepAdjustment> &stepAdjustment);
bool getDisableScaleIn() const;
void setDisableScaleIn(bool disableScaleIn);
std::string getScalingRuleId() const;
void setScalingRuleId(const std::string &scalingRuleId);
int getInitialMaxSize() const;
void setInitialMaxSize(int initialMaxSize);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getScalingRuleName() const;
void setScalingRuleName(const std::string &scalingRuleName);
std::string getHybridMonitorNamespace() const;
void setHybridMonitorNamespace(const std::string &hybridMonitorNamespace);
int getCooldown() const;
void setCooldown(int cooldown);
std::string getPredictiveValueBehavior() const;
void setPredictiveValueBehavior(const std::string &predictiveValueBehavior);
int getScaleInEvaluationCount() const;
void setScaleInEvaluationCount(int scaleInEvaluationCount);
std::string getMetricName() const;
void setMetricName(const std::string &metricName);
std::string getPredictiveScalingMode() const;
void setPredictiveScalingMode(const std::string &predictiveScalingMode);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
int getAdjustmentValue() const;
void setAdjustmentValue(int adjustmentValue);
int getEstimatedInstanceWarmup() const;
void setEstimatedInstanceWarmup(int estimatedInstanceWarmup);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
int getPredictiveTaskBufferTime() const;
void setPredictiveTaskBufferTime(int predictiveTaskBufferTime);
std::string getAdjustmentType() const;
void setAdjustmentType(const std::string &adjustmentType);
long getOwnerId() const;
void setOwnerId(long ownerId);
int getPredictiveValueBuffer() const;
void setPredictiveValueBuffer(int predictiveValueBuffer);
std::vector<HybridMetrics> getHybridMetrics() const;
void setHybridMetrics(const std::vector<HybridMetrics> &hybridMetrics);
int getScaleOutEvaluationCount() const;
void setScaleOutEvaluationCount(int scaleOutEvaluationCount);
int getMinAdjustmentMagnitude() const;
void setMinAdjustmentMagnitude(int minAdjustmentMagnitude);
float getTargetValue() const;
void setTargetValue(float targetValue);
private:
std::string metricType_;
long resourceOwnerId_;
std::vector<AlarmDimension> alarmDimension_;
std::vector<StepAdjustment> stepAdjustment_;
bool disableScaleIn_;
std::string scalingRuleId_;
int initialMaxSize_;
std::string accessKeyId_;
std::string scalingRuleName_;
std::string hybridMonitorNamespace_;
int cooldown_;
std::string predictiveValueBehavior_;
int scaleInEvaluationCount_;
std::string metricName_;
std::string predictiveScalingMode_;
std::string resourceOwnerAccount_;
int adjustmentValue_;
int estimatedInstanceWarmup_;
std::string ownerAccount_;
int predictiveTaskBufferTime_;
std::string adjustmentType_;
long ownerId_;
int predictiveValueBuffer_;
std::vector<HybridMetrics> hybridMetrics_;
int scaleOutEvaluationCount_;
int minAdjustmentMagnitude_;
float targetValue_;
};
} // namespace Model
} // namespace Ess
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ESS_MODEL_MODIFYSCALINGRULEREQUEST_H_