Skip to content

Commit 4f466c9

Browse files
publish jdcloud-sdk-python 1.6.144
1 parent 0fee993 commit 4f466c9

68 files changed

Lines changed: 2212 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

jdcloud_sdk/services/smartdba/__init__.py

Whitespace-only changes.

jdcloud_sdk/services/smartdba/apis/__init__.py

Whitespace-only changes.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudclient import JDCloudClient
20+
from jdcloud_sdk.core.config import Config
21+
22+
23+
class SmartdbaClient(JDCloudClient):
24+
25+
def __init__(self, credential, config=None, logger=None):
26+
if config is None:
27+
config = Config('smartdba.jdcloud-api.com')
28+
29+
super(SmartdbaClient, self).__init__(credential, config, 'smartdba', '2.0.0', logger)

jdcloud_sdk/services/smartdba/client/__init__.py

Whitespace-only changes.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class AlarmDetail(object):
21+
22+
def __init__(self, instanceId=None, instanceName=None, metric=None, triggerCondition=None, alarmLevel=None, alarmLevelTag=None, firstAlarmTime=None, lastAlarmTime=None, durationTime=None, frequency=None):
23+
"""
24+
:param instanceId: (Optional) 实例id
25+
:param instanceName: (Optional) 实例名称
26+
:param metric: (Optional) 监控项
27+
:param triggerCondition: (Optional) 触发条件
28+
:param alarmLevel: (Optional) 告警级别,从低到高为‘告警’,‘严重’,‘致命’
29+
:param alarmLevelTag: (Optional) 告警级别标记
30+
:param firstAlarmTime: (Optional) 首次告警时间
31+
:param lastAlarmTime: (Optional) 最近一次告警时间
32+
:param durationTime: (Optional) 持续时间,单位:min
33+
:param frequency: (Optional) 发生次数
34+
"""
35+
36+
self.instanceId = instanceId
37+
self.instanceName = instanceName
38+
self.metric = metric
39+
self.triggerCondition = triggerCondition
40+
self.alarmLevel = alarmLevel
41+
self.alarmLevelTag = alarmLevelTag
42+
self.firstAlarmTime = firstAlarmTime
43+
self.lastAlarmTime = lastAlarmTime
44+
self.durationTime = durationTime
45+
self.frequency = frequency
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class AlarmHistoryDetail(object):
21+
22+
def __init__(self, instanceId=None, instanceName=None, metric=None, triggerCondition=None, alarmLevel=None, alarmLevelTag=None, alarmTime=None, durationTime=None):
23+
"""
24+
:param instanceId: (Optional) 实例id
25+
:param instanceName: (Optional) 实例名称
26+
:param metric: (Optional) 监控项
27+
:param triggerCondition: (Optional) 触发条件
28+
:param alarmLevel: (Optional) 告警级别,从低到高为‘告警’,‘严重’,‘致命’
29+
:param alarmLevelTag: (Optional) 告警级别标记
30+
:param alarmTime: (Optional) 告警时间
31+
:param durationTime: (Optional) 持续时间,单位:min
32+
"""
33+
34+
self.instanceId = instanceId
35+
self.instanceName = instanceName
36+
self.metric = metric
37+
self.triggerCondition = triggerCondition
38+
self.alarmLevel = alarmLevel
39+
self.alarmLevelTag = alarmLevelTag
40+
self.alarmTime = alarmTime
41+
self.durationTime = durationTime
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class BufferPoolInfo(object):
21+
22+
def __init__(self, dirtyPagePct=None, freePagePct=None, totalPages=None):
23+
"""
24+
:param dirtyPagePct: (Optional) 脏页比例,如 0.999923456
25+
:param freePagePct: (Optional) 空闲页比例,如 0.999923456
26+
:param totalPages: (Optional) buffer pool 总页数
27+
"""
28+
29+
self.dirtyPagePct = dirtyPagePct
30+
self.freePagePct = freePagePct
31+
self.totalPages = totalPages
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class ClusterCreateSpec(object):
21+
22+
def __init__(self, connectType, region, databaseType, clusterGid=None, name=None, host=None, port=None, accountName=None, password=None):
23+
"""
24+
:param connectType: 接入类型 public, rds, ecs, gateway
25+
:param region: 地域
26+
:param databaseType: 数据库库类型:MySQL,Redis,TiDB 目前只支持MySQL
27+
:param clusterGid: (Optional) rds实例id,云数据库需要
28+
:param name: (Optional) 用户名,自建数据库需要
29+
:param host: (Optional) 主机域名,自建数据库需要
30+
:param port: (Optional) 端口号,自建数据库需要
31+
:param accountName: (Optional) 数据库账号,自建数据库需要
32+
:param password: (Optional) 数据库密码,自建数据库需要
33+
"""
34+
35+
self.connectType = connectType
36+
self.region = region
37+
self.databaseType = databaseType
38+
self.clusterGid = clusterGid
39+
self.name = name
40+
self.host = host
41+
self.port = port
42+
self.accountName = accountName
43+
self.password = password
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class ClusterDetail(object):
21+
22+
def __init__(self, instanceGid=None, connectType=None, databaseType=None, createTime=None, instanceId=None, instanceName=None, region=None, instanceType=None, engine=None, engineVersion=None, instanceClass=None, instanceStatus=None):
23+
"""
24+
:param instanceGid: (Optional) 全局实例id
25+
:param connectType: (Optional) 接入类型,目前取值为:rds
26+
:param databaseType: (Optional) 数据库接入类型,如:MYSQL
27+
:param createTime: (Optional) 创建时间
28+
:param instanceId: (Optional) rds实例id
29+
:param instanceName: (Optional) rds实例名称
30+
:param region: (Optional) 地域代码
31+
:param instanceType: (Optional) 实例类型,如:cluster,standalone
32+
:param engine: (Optional) 数据库引擎 MySQL
33+
:param engineVersion: (Optional) 实例版本信息 5.7
34+
:param instanceClass: (Optional) 实例规格
35+
:param instanceStatus: (Optional) 实例运行状态
36+
"""
37+
38+
self.instanceGid = instanceGid
39+
self.connectType = connectType
40+
self.databaseType = databaseType
41+
self.createTime = createTime
42+
self.instanceId = instanceId
43+
self.instanceName = instanceName
44+
self.region = region
45+
self.instanceType = instanceType
46+
self.engine = engine
47+
self.engineVersion = engineVersion
48+
self.instanceClass = instanceClass
49+
self.instanceStatus = instanceStatus
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class ConnectView(object):
21+
22+
def __init__(self, running=None, total=None, max=None, ratio=None, message=None):
23+
"""
24+
:param running: (Optional) 活跃连接数
25+
:param total: (Optional) 总连接数
26+
:param max: (Optional) 最大连接数
27+
:param ratio: (Optional) 连接使用率
28+
:param message: (Optional) 扣分说明
29+
"""
30+
31+
self.running = running
32+
self.total = total
33+
self.max = max
34+
self.ratio = ratio
35+
self.message = message

0 commit comments

Comments
 (0)