Skip to content

Commit 6c52949

Browse files
committed
CMS SDK Auto Released By kun.dang,Version:7.0.2
发布日志: 1, Adding Modified Instance Management Interface.
1 parent 1de05f6 commit 6c52949

File tree

7 files changed

+218
-14
lines changed

7 files changed

+218
-14
lines changed

aliyun-python-sdk-cms/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-04-13 Version: 7.0.2
2+
1, Adding Modified Instance Management Interface.
3+
14
2019-04-11 Version: 7.0.1
25
1, Fixed inconsistency between input and output parameters of alarm rule list interface.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "7.0.1"
1+
__version__ = "7.0.2"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
class CreateMonitorAgentProcessRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2019-01-01', 'CreateMonitorAgentProcess','cms')
25+
26+
def get_InstanceId(self):
27+
return self.get_query_params().get('InstanceId')
28+
29+
def set_InstanceId(self,InstanceId):
30+
self.add_query_param('InstanceId',InstanceId)
31+
32+
def get_ProcessName(self):
33+
return self.get_query_params().get('ProcessName')
34+
35+
def set_ProcessName(self,ProcessName):
36+
self.add_query_param('ProcessName',ProcessName)
37+
38+
def get_ProcessUser(self):
39+
return self.get_query_params().get('ProcessUser')
40+
41+
def set_ProcessUser(self,ProcessUser):
42+
self.add_query_param('ProcessUser',ProcessUser)
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
class DescribeAlertHistoryListRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2019-01-01', 'DescribeAlertHistoryList','cms')
25+
26+
def get_GroupId(self):
27+
return self.get_query_params().get('GroupId')
28+
29+
def set_GroupId(self,GroupId):
30+
self.add_query_param('GroupId',GroupId)
31+
32+
def get_AlertStatus(self):
33+
return self.get_query_params().get('AlertStatus')
34+
35+
def set_AlertStatus(self,AlertStatus):
36+
self.add_query_param('AlertStatus',AlertStatus)
37+
38+
def get_Namespace(self):
39+
return self.get_query_params().get('Namespace')
40+
41+
def set_Namespace(self,Namespace):
42+
self.add_query_param('Namespace',Namespace)
43+
44+
def get_PageSize(self):
45+
return self.get_query_params().get('PageSize')
46+
47+
def set_PageSize(self,PageSize):
48+
self.add_query_param('PageSize',PageSize)
49+
50+
def get_EndTime(self):
51+
return self.get_query_params().get('EndTime')
52+
53+
def set_EndTime(self,EndTime):
54+
self.add_query_param('EndTime',EndTime)
55+
56+
def get_RuleName(self):
57+
return self.get_query_params().get('RuleName')
58+
59+
def set_RuleName(self,RuleName):
60+
self.add_query_param('RuleName',RuleName)
61+
62+
def get_State(self):
63+
return self.get_query_params().get('State')
64+
65+
def set_State(self,State):
66+
self.add_query_param('State',State)
67+
68+
def get_StartTime(self):
69+
return self.get_query_params().get('StartTime')
70+
71+
def set_StartTime(self,StartTime):
72+
self.add_query_param('StartTime',StartTime)
73+
74+
def get_Page(self):
75+
return self.get_query_params().get('Page')
76+
77+
def set_Page(self,Page):
78+
self.add_query_param('Page',Page)
79+
80+
def get_RuleId(self):
81+
return self.get_query_params().get('RuleId')
82+
83+
def set_RuleId(self,RuleId):
84+
self.add_query_param('RuleId',RuleId)
85+
86+
def get_MetricName(self):
87+
return self.get_query_params().get('MetricName')
88+
89+
def set_MetricName(self,MetricName):
90+
self.add_query_param('MetricName',MetricName)
91+
92+
def get_Ascending(self):
93+
return self.get_query_params().get('Ascending')
94+
95+
def set_Ascending(self,Ascending):
96+
self.add_query_param('Ascending',Ascending)

aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeMonitorGroupsRequest.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ def get_PageSize(self):
4141
def set_PageSize(self,PageSize):
4242
self.add_query_param('PageSize',PageSize)
4343

44-
def get_Type(self):
45-
return self.get_query_params().get('Type')
46-
47-
def set_Type(self,Type):
48-
self.add_query_param('Type',Type)
49-
5044
def get_Keyword(self):
5145
return self.get_query_params().get('Keyword')
5246

@@ -63,10 +57,4 @@ def get_PageNumber(self):
6357
return self.get_query_params().get('PageNumber')
6458

6559
def set_PageNumber(self,PageNumber):
66-
self.add_query_param('PageNumber',PageNumber)
67-
68-
def get_BindUrls(self):
69-
return self.get_query_params().get('BindUrls')
70-
71-
def set_BindUrls(self,BindUrls):
72-
self.add_query_param('BindUrls',BindUrls)
60+
self.add_query_param('PageNumber',PageNumber)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
class DescribeMonitoringAgentStatusesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2019-01-01', 'DescribeMonitoringAgentStatuses','cms')
25+
26+
def get_InstanceIds(self):
27+
return self.get_query_params().get('InstanceIds')
28+
29+
def set_InstanceIds(self,InstanceIds):
30+
self.add_query_param('InstanceIds',InstanceIds)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
class ModifyMonitorGroupInstancesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2019-01-01', 'ModifyMonitorGroupInstances','cms')
25+
26+
def get_Instancess(self):
27+
return self.get_query_params().get('Instancess')
28+
29+
def set_Instancess(self,Instancess):
30+
for i in range(len(Instancess)):
31+
if Instancess[i].get('InstanceId') is not None:
32+
self.add_query_param('Instances.' + str(i + 1) + '.InstanceId' , Instancess[i].get('InstanceId'))
33+
if Instancess[i].get('InstanceName') is not None:
34+
self.add_query_param('Instances.' + str(i + 1) + '.InstanceName' , Instancess[i].get('InstanceName'))
35+
if Instancess[i].get('RegionId') is not None:
36+
self.add_query_param('Instances.' + str(i + 1) + '.RegionId' , Instancess[i].get('RegionId'))
37+
if Instancess[i].get('Category') is not None:
38+
self.add_query_param('Instances.' + str(i + 1) + '.Category' , Instancess[i].get('Category'))
39+
40+
41+
def get_GroupId(self):
42+
return self.get_query_params().get('GroupId')
43+
44+
def set_GroupId(self,GroupId):
45+
self.add_query_param('GroupId',GroupId)

0 commit comments

Comments
 (0)