Browse Source

ESS SDK Auto Released By kangning.tkn,Version:1.27.5

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 years ago
parent
commit
e63e5962c8

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-08-27 Version: 1.27.5
+1, add Ess alarm task api, CreateAlarm, DeleteAlarm, DescribeAlarms, DeleteAlarm, EnableAlarm, DisableAlarm
+
+
 2018-08-27 Version: 1.27.4
 1, createInstance supported IpAddress param.
 

+ 2 - 2
services/ess/create_alarm.go

@@ -80,15 +80,15 @@ type CreateAlarmRequest struct {
 	Period               requests.Integer        `position:"Query" name:"Period"`
 	ResourceOwnerAccount string                  `position:"Query" name:"ResourceOwnerAccount"`
 	ScalingGroupId       string                  `position:"Query" name:"ScalingGroupId"`
-	GroupId              string                  `position:"Query" name:"GroupId"`
+	GroupId              requests.Integer        `position:"Query" name:"GroupId"`
 	Description          string                  `position:"Query" name:"Description"`
 	AlarmAction          *[]string               `position:"Query" name:"AlarmAction"  type:"Repeated"`
 	Threshold            requests.Float          `position:"Query" name:"Threshold"`
 	OwnerId              requests.Integer        `position:"Query" name:"OwnerId"`
-	ComparisionOperator  string                  `position:"Query" name:"ComparisionOperator"`
 	Name                 string                  `position:"Query" name:"Name"`
 	EvaluationCount      requests.Integer        `position:"Query" name:"EvaluationCount"`
 	MetricName           string                  `position:"Query" name:"MetricName"`
+	ComparisonOperator   string                  `position:"Query" name:"ComparisonOperator"`
 	Dimension            *[]CreateAlarmDimension `position:"Query" name:"Dimension"  type:"Repeated"`
 	Statistics           string                  `position:"Query" name:"Statistics"`
 }

+ 1 - 1
services/ess/struct_alarm.go

@@ -22,7 +22,6 @@ type Alarm struct {
 	Description        string       `json:"Description" xml:"Description"`
 	MetricType         string       `json:"MetricType" xml:"MetricType"`
 	MetricName         string       `json:"MetricName" xml:"MetricName"`
-	Dimensions         string       `json:"Dimensions" xml:"Dimensions"`
 	Period             int          `json:"Period" xml:"Period"`
 	Statistics         string       `json:"Statistics" xml:"Statistics"`
 	ComparisonOperator string       `json:"ComparisonOperator" xml:"ComparisonOperator"`
@@ -32,4 +31,5 @@ type Alarm struct {
 	ScalingGroupId     string       `json:"ScalingGroupId" xml:"ScalingGroupId"`
 	Enable             bool         `json:"Enable" xml:"Enable"`
 	AlarmActions       AlarmActions `json:"alarmActions" xml:"alarmActions"`
+	Dimensions         Dimensions   `json:"Dimensions" xml:"Dimensions"`
 }

+ 22 - 0
services/ess/struct_dimension.go

@@ -0,0 +1,22 @@
+package ess
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Dimension is a nested struct in ess response
+type Dimension struct {
+	DimensionKey   string `json:"DimensionKey" xml:"DimensionKey"`
+	DimensionValue string `json:"DimensionValue" xml:"DimensionValue"`
+}

+ 21 - 0
services/ess/struct_dimensions.go

@@ -0,0 +1,21 @@
+package ess
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Dimensions is a nested struct in ess response
+type Dimensions struct {
+	Dimension []Dimension `json:"Dimension" xml:"Dimension"`
+}