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

129 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.
*/
#ifndef ALIBABACLOUD_ESS_MODEL_DESCRIBESCALINGRULESRESULT_H_
#define ALIBABACLOUD_ESS_MODEL_DESCRIBESCALINGRULESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ess/EssExport.h>
namespace AlibabaCloud
{
namespace Ess
{
namespace Model
{
class ALIBABACLOUD_ESS_EXPORT DescribeScalingRulesResult : public ServiceResult
{
public:
struct ScalingRule
{
struct Alarm
{
struct Dimension
{
std::string dimensionValue;
std::string dimensionKey;
};
std::string metricName;
std::string comparisonOperator;
std::string metricType;
std::vector<Alarm::Dimension> dimensions;
int evaluationCount;
std::string alarmTaskName;
std::string alarmTaskId;
std::string statistics;
float threshold;
};
struct StepAdjustment
{
float metricIntervalUpperBound;
float metricIntervalLowerBound;
int scalingAdjustment;
};
struct AlarmDimension
{
std::string dimensionValue;
std::string dimensionKey;
};
struct HybridMetric
{
struct Dimension2
{
std::string dimensionValue;
std::string dimensionKey;
};
std::string metricName;
std::string statistic;
std::string expression;
std::vector<HybridMetric::Dimension2> dimensions1;
std::string id;
};
std::vector<ScalingRule::StepAdjustment> stepAdjustments;
int cooldown;
std::string predictiveValueBehavior;
std::string metricType;
std::vector<ScalingRule::HybridMetric> hybridMetrics;
std::string scalingRuleAri;
std::string metricName;
std::string scalingRuleName;
int scaleOutEvaluationCount;
int initialMaxSize;
std::string scalingRuleType;
int estimatedInstanceWarmup;
int predictiveTaskBufferTime;
int predictiveValueBuffer;
float targetValue;
std::string scalingGroupId;
std::vector<ScalingRule::Alarm> alarms;
std::string scalingRuleId;
int minAdjustmentMagnitude;
bool disableScaleIn;
int maxSize;
std::string adjustmentType;
int minSize;
std::vector<ScalingRule::AlarmDimension> alarmDimensions;
int adjustmentValue;
std::string hybridMonitorNamespace;
std::string predictiveScalingMode;
int scaleInEvaluationCount;
};
DescribeScalingRulesResult();
explicit DescribeScalingRulesResult(const std::string &payload);
~DescribeScalingRulesResult();
std::vector<ScalingRule> getScalingRules()const;
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ScalingRule> scalingRules_;
int totalCount_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ESS_MODEL_DESCRIBESCALINGRULESRESULT_H_