Skip to content

Commit adcd0c6

Browse files
committed
支持根据属性查询弹性强度时返回库存健康度
1 parent c986b20 commit adcd0c6

File tree

6 files changed

+66
-1
lines changed

6 files changed

+66
-1
lines changed

aliyun-python-sdk-ess/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-14 Version: 2.3.31
2+
- 支持根据属性查询弹性强度时返回库存健康度
3+
14
2025-01-14 Version: 2.3.30
25
- InstanceRefresh support SkipMatching.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.3.30'
1+
__version__ = '2.3.31'

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/CreateScalingGroupRequest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ def get_CapacityOptions(self): # Struct
154154
def set_CapacityOptions(self, CapacityOptions): # Struct
155155
if CapacityOptions.get('CompensateWithOnDemand') is not None:
156156
self.add_query_param('CapacityOptions.CompensateWithOnDemand', CapacityOptions.get('CompensateWithOnDemand'))
157+
if CapacityOptions.get('PriceComparisonMode') is not None:
158+
self.add_query_param('CapacityOptions.PriceComparisonMode', CapacityOptions.get('PriceComparisonMode'))
157159
if CapacityOptions.get('OnDemandBaseCapacity') is not None:
158160
self.add_query_param('CapacityOptions.OnDemandBaseCapacity', CapacityOptions.get('OnDemandBaseCapacity'))
159161
if CapacityOptions.get('SpotAutoReplaceOnDemand') is not None:

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/CreateScalingRuleRequest.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def __init__(self):
3131
if hasattr(self, "endpoint_regional"):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

34+
def get_MetricType(self): # String
35+
return self.get_query_params().get('MetricType')
36+
37+
def set_MetricType(self, MetricType): # String
38+
self.add_query_param('MetricType', MetricType)
3439
def get_AlarmDimensions(self): # RepeatList
3540
return self.get_query_params().get('AlarmDimension')
3641

@@ -71,6 +76,11 @@ def get_ScalingRuleName(self): # String
7176

7277
def set_ScalingRuleName(self, ScalingRuleName): # String
7378
self.add_query_param('ScalingRuleName', ScalingRuleName)
79+
def get_HybridMonitorNamespace(self): # String
80+
return self.get_query_params().get('HybridMonitorNamespace')
81+
82+
def set_HybridMonitorNamespace(self, HybridMonitorNamespace): # String
83+
self.add_query_param('HybridMonitorNamespace', HybridMonitorNamespace)
7484
def get_Cooldown(self): # Integer
7585
return self.get_query_params().get('Cooldown')
7686

@@ -141,6 +151,25 @@ def get_PredictiveValueBuffer(self): # Integer
141151

142152
def set_PredictiveValueBuffer(self, PredictiveValueBuffer): # Integer
143153
self.add_query_param('PredictiveValueBuffer', PredictiveValueBuffer)
154+
def get_HybridMetricss(self): # RepeatList
155+
return self.get_query_params().get('HybridMetrics')
156+
157+
def set_HybridMetricss(self, HybridMetrics): # RepeatList
158+
for depth1 in range(len(HybridMetrics)):
159+
if HybridMetrics[depth1].get('Statistic') is not None:
160+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Statistic', HybridMetrics[depth1].get('Statistic'))
161+
if HybridMetrics[depth1].get('Expression') is not None:
162+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Expression', HybridMetrics[depth1].get('Expression'))
163+
if HybridMetrics[depth1].get('Id') is not None:
164+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Id', HybridMetrics[depth1].get('Id'))
165+
if HybridMetrics[depth1].get('MetricName') is not None:
166+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.MetricName', HybridMetrics[depth1].get('MetricName'))
167+
if HybridMetrics[depth1].get('Dimensions') is not None:
168+
for depth2 in range(len(HybridMetrics[depth1].get('Dimensions'))):
169+
if HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionValue') is not None:
170+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Dimensions.' + str(depth2 + 1) + '.DimensionValue', HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionValue'))
171+
if HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionKey') is not None:
172+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Dimensions.' + str(depth2 + 1) + '.DimensionKey', HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionKey'))
144173
def get_ScaleOutEvaluationCount(self): # Integer
145174
return self.get_query_params().get('ScaleOutEvaluationCount')
146175

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/ModifyScalingGroupRequest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def get_CapacityOptions(self): # Struct
120120
def set_CapacityOptions(self, CapacityOptions): # Struct
121121
if CapacityOptions.get('CompensateWithOnDemand') is not None:
122122
self.add_query_param('CapacityOptions.CompensateWithOnDemand', CapacityOptions.get('CompensateWithOnDemand'))
123+
if CapacityOptions.get('PriceComparisonMode') is not None:
124+
self.add_query_param('CapacityOptions.PriceComparisonMode', CapacityOptions.get('PriceComparisonMode'))
123125
if CapacityOptions.get('OnDemandBaseCapacity') is not None:
124126
self.add_query_param('CapacityOptions.OnDemandBaseCapacity', CapacityOptions.get('OnDemandBaseCapacity'))
125127
if CapacityOptions.get('SpotAutoReplaceOnDemand') is not None:

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/ModifyScalingRuleRequest.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def __init__(self):
3131
if hasattr(self, "endpoint_regional"):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

34+
def get_MetricType(self): # String
35+
return self.get_query_params().get('MetricType')
36+
37+
def set_MetricType(self, MetricType): # String
38+
self.add_query_param('MetricType', MetricType)
3439
def get_ResourceOwnerId(self): # Long
3540
return self.get_query_params().get('ResourceOwnerId')
3641

@@ -76,6 +81,11 @@ def get_ScalingRuleName(self): # String
7681

7782
def set_ScalingRuleName(self, ScalingRuleName): # String
7883
self.add_query_param('ScalingRuleName', ScalingRuleName)
84+
def get_HybridMonitorNamespace(self): # String
85+
return self.get_query_params().get('HybridMonitorNamespace')
86+
87+
def set_HybridMonitorNamespace(self, HybridMonitorNamespace): # String
88+
self.add_query_param('HybridMonitorNamespace', HybridMonitorNamespace)
7989
def get_Cooldown(self): # Integer
8090
return self.get_query_params().get('Cooldown')
8191

@@ -141,6 +151,25 @@ def get_PredictiveValueBuffer(self): # Integer
141151

142152
def set_PredictiveValueBuffer(self, PredictiveValueBuffer): # Integer
143153
self.add_query_param('PredictiveValueBuffer', PredictiveValueBuffer)
154+
def get_HybridMetricss(self): # RepeatList
155+
return self.get_query_params().get('HybridMetrics')
156+
157+
def set_HybridMetricss(self, HybridMetrics): # RepeatList
158+
for depth1 in range(len(HybridMetrics)):
159+
if HybridMetrics[depth1].get('Statistic') is not None:
160+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Statistic', HybridMetrics[depth1].get('Statistic'))
161+
if HybridMetrics[depth1].get('Expression') is not None:
162+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Expression', HybridMetrics[depth1].get('Expression'))
163+
if HybridMetrics[depth1].get('Id') is not None:
164+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Id', HybridMetrics[depth1].get('Id'))
165+
if HybridMetrics[depth1].get('MetricName') is not None:
166+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.MetricName', HybridMetrics[depth1].get('MetricName'))
167+
if HybridMetrics[depth1].get('Dimensions') is not None:
168+
for depth2 in range(len(HybridMetrics[depth1].get('Dimensions'))):
169+
if HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionValue') is not None:
170+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Dimensions.' + str(depth2 + 1) + '.DimensionValue', HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionValue'))
171+
if HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionKey') is not None:
172+
self.add_query_param('HybridMetrics.' + str(depth1 + 1) + '.Dimensions.' + str(depth2 + 1) + '.DimensionKey', HybridMetrics[depth1].get('Dimensions')[depth2].get('DimensionKey'))
144173
def get_ScaleOutEvaluationCount(self): # Integer
145174
return self.get_query_params().get('ScaleOutEvaluationCount')
146175

0 commit comments

Comments
 (0)