Skip to content

Commit 9f8cc47

Browse files
committed
ARMS SDK Auto Released By shichun.fsc,Version:2.3.0
发布日志: 1, ARMS SDK 2018-12-19 go sdk upload
1 parent ee6e2ce commit 9f8cc47

File tree

7 files changed

+125
-32
lines changed

7 files changed

+125
-32
lines changed

aliyun-python-sdk-arms/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-12-21 Version: 2.3.0
2+
1, ARMS SDK 2018-12-19 go sdk upload
3+
14
2018-10-16 Version: 2.2.0
25
1, This version add MetricQuery interface to support retcode and apm metric query.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.0"
1+
__version__ = "2.3.0"

aliyun-python-sdk-arms/aliyunsdkarms/request/v20181015/ARMSQueryDataSetRequest.py renamed to aliyun-python-sdk-arms/aliyunsdkarms/request/v20181219/ARMSQueryDataSetRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class ARMSQueryDataSetRequest(RpcRequest):
2222

2323
def __init__(self):
24-
RpcRequest.__init__(self, 'ARMS', '2018-10-15', 'ARMSQueryDataSet')
24+
RpcRequest.__init__(self, 'ARMS', '2018-12-19', 'ARMSQueryDataSet','arms')
2525

2626
def get_DateStr(self):
2727
return self.get_query_params().get('DateStr')
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 CreateAppRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'ARMS', '2018-12-19', 'CreateApp','arms')
25+
26+
def get_AppName(self):
27+
return self.get_query_params().get('AppName')
28+
29+
def set_AppName(self,AppName):
30+
self.add_query_param('AppName',AppName)
31+
32+
def get_AppId(self):
33+
return self.get_query_params().get('AppId')
34+
35+
def set_AppId(self,AppId):
36+
self.add_query_param('AppId',AppId)
37+
38+
def get_Source(self):
39+
return self.get_query_params().get('Source')
40+
41+
def set_Source(self,Source):
42+
self.add_query_param('Source',Source)
43+
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+
50+
def get_Config(self):
51+
return self.get_query_params().get('Config')
52+
53+
def set_Config(self,Config):
54+
self.add_query_param('Config',Config)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 DeleteAppRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'ARMS', '2018-12-19', 'DeleteApp','arms')
25+
26+
def get_AppId(self):
27+
return self.get_query_params().get('AppId')
28+
29+
def set_AppId(self,AppId):
30+
self.add_query_param('AppId',AppId)
31+
32+
def get_Type(self):
33+
return self.get_query_params().get('Type')
34+
35+
def set_Type(self,Type):
36+
self.add_query_param('Type',Type)

aliyun-python-sdk-arms/aliyunsdkarms/request/v20181015/MetricQueryRequest.py renamed to aliyun-python-sdk-arms/aliyunsdkarms/request/v20181219/MetricQueryRequest.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,36 @@
2121
class MetricQueryRequest(RpcRequest):
2222

2323
def __init__(self):
24-
RpcRequest.__init__(self, 'ARMS', '2018-10-15', 'MetricQuery')
24+
RpcRequest.__init__(self, 'ARMS', '2018-12-19', 'MetricQuery','arms')
25+
26+
def get_EndTime(self):
27+
return self.get_query_params().get('EndTime')
28+
29+
def set_EndTime(self,EndTime):
30+
self.add_query_param('EndTime',EndTime)
31+
32+
def get_OrderBy(self):
33+
return self.get_query_params().get('OrderBy')
34+
35+
def set_OrderBy(self,OrderBy):
36+
self.add_query_param('OrderBy',OrderBy)
37+
38+
def get_Filterss(self):
39+
return self.get_query_params().get('Filterss')
40+
41+
def set_Filterss(self,Filterss):
42+
for i in range(len(Filterss)):
43+
if Filterss[i].get('Value') is not None:
44+
self.add_query_param('Filters.' + str(i + 1) + '.Value' , Filterss[i].get('Value'))
45+
if Filterss[i].get('Key') is not None:
46+
self.add_query_param('Filters.' + str(i + 1) + '.Key' , Filterss[i].get('Key'))
47+
48+
49+
def get_StartTime(self):
50+
return self.get_query_params().get('StartTime')
51+
52+
def set_StartTime(self,StartTime):
53+
self.add_query_param('StartTime',StartTime)
2554

2655
def get_IintervalInSec(self):
2756
return self.get_query_params().get('IintervalInSec')
@@ -55,35 +84,6 @@ def get_Limit(self):
5584
def set_Limit(self,Limit):
5685
self.add_query_param('Limit',Limit)
5786

58-
def get_EndTime(self):
59-
return self.get_query_params().get('EndTime')
60-
61-
def set_EndTime(self,EndTime):
62-
self.add_query_param('EndTime',EndTime)
63-
64-
def get_OrderBy(self):
65-
return self.get_query_params().get('OrderBy')
66-
67-
def set_OrderBy(self,OrderBy):
68-
self.add_query_param('OrderBy',OrderBy)
69-
70-
def get_StartTime(self):
71-
return self.get_query_params().get('StartTime')
72-
73-
def set_StartTime(self,StartTime):
74-
self.add_query_param('StartTime',StartTime)
75-
76-
def get_Filterss(self):
77-
return self.get_query_params().get('Filterss')
78-
79-
def set_Filterss(self,Filterss):
80-
for i in range(len(Filterss)):
81-
if Filterss[i].get('Value') is not None:
82-
self.add_query_param('Filters.' + str(i + 1) + '.Value' , Filterss[i].get('Value'))
83-
if Filterss[i].get('Key') is not None:
84-
self.add_query_param('Filters.' + str(i + 1) + '.Key' , Filterss[i].get('Key'))
85-
86-
8787
def get_Dimensionss(self):
8888
return self.get_query_params().get('Dimensionss')
8989

0 commit comments

Comments
 (0)