Documentation
¶
Index ¶
- type Account
- type AccountPrivilege
- type AuditFile
- type Backup
- type BackupSpec
- type Binlog
- type DBAccessPrivilege
- type DBInstance
- type DBInstanceAttribute
- type DBInstanceSpec
- type Database
- type ErrorLog
- type File
- type FileDownloadURL
- type ImportFile
- type IndexPerformanceResult
- type MissingIndexResult
- type QueryPerformanceResult
- type WhiteList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v1.0.6
type Account struct {
/* 账号名称 (Optional) */
AccountName string `json:"accountName"`
/* 账号状态,building:创建中,running:运行中 (Optional) */
AccountStatus string `json:"accountStatus"`
/* 账户权限列表 (Optional) */
AccountPrivileges []AccountPrivilege `json:"accountPrivileges"`
}
type AccountPrivilege ¶
type Backup ¶
type Backup struct {
/* 备份ID (Optional) */
BackupId string `json:"backupId"`
/* 备份名称 (Optional) */
BackupName string `json:"backupName"`
/* 备份所属实例ID (Optional) */
InstanceId string `json:"instanceId"`
/* 备份状态 </br> COMPLETED:备份完成</br>FAILED:备份失败</br>BUILDING:备份中</br>DELETING:删除中 (Optional) */
BackupStatus string `json:"backupStatus"`
/* 备份开始时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
BackupStartTime string `json:"backupStartTime"`
/* 备份结束时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
BackupEndTime string `json:"backupEndTime"`
/* 备份类型,全量备份或增量备份</br>full:全量</br>diff:增量 (Optional) */
BackupType string `json:"backupType"`
/* 备份模式,系统自动备份或手动备份</br>Automated:自动备份</br>Manual:手工备份 (Optional) */
BackupMode string `json:"backupMode"`
/* 备份粒度,实例备份或者多库备份</br>instance:实例备份</br>dbs:数据库备份 (Optional) */
BackupUnit string `json:"backupUnit"`
/* 备份文件列表,仅SQL Server支持该参数,文件名的命名规则为:</br>全备:数据库名+.bak; </br>增量:数据库名+.diff (Optional) */
BackupFiles []string `json:"backupFiles"`
/* 整个备份集大小,单位:Byte (Optional) */
BackupSizeByte int `json:"backupSizeByte"`
}
type BackupSpec ¶
type Binlog ¶ added in v1.0.9
type Binlog struct {
/* binlog日志备份ID (Optional) */
BinlogBackupId string `json:"binlogBackupId"`
/* binlog日志名称 (Optional) */
BinlogName string `json:"binlogName"`
/* binlog日志大小,单位KB (Optional) */
BinlogSizeKB int `json:"binlogSizeKB"`
/* binlog开始时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
BinlogStartTime string `json:"binlogStartTime"`
/* binlog结束时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
BinlogEndTime string `json:"binlogEndTime"`
}
type DBAccessPrivilege ¶ added in v1.0.6
type DBInstance ¶ added in v1.0.6
type DBInstance struct {
/* 数据库实例ID (Optional) */
InstanceId string `json:"instanceId"`
/* 数据库实例名称 (Optional) */
InstanceName string `json:"instanceName"`
/* 实例类别,目前仅支持主实例,对应值为master (Optional) */
InstanceType string `json:"instanceType"`
/* 数据库类型 MySQL|SQL Server (Optional) */
Engine string `json:"engine"`
/* 数据库版本 MySQL支持5.6、5.7 SQL Server支持2008 R2、2012 EE、2014 EE、2016 EE (Optional) */
EngineVersion string `json:"engineVersion"`
/* 地域ID (Optional) */
RegionId string `json:"regionId"`
/* 可用区ID, 第一个ID必须为主实例所在的可用区 (Optional) */
AzId []string `json:"azId"`
/* 实例状态 (Optional) */
InstanceStatus string `json:"instanceStatus"`
/* 实例创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* 计费配置 (Optional) */
Charge charge.Charge `json:"charge"`
}
type DBInstanceAttribute ¶ added in v1.0.6
type DBInstanceAttribute struct {
/* 数据库实例ID (Optional) */
InstanceId string `json:"instanceId"`
/* 数据库实例名称 (Optional) */
InstanceName string `json:"instanceName"`
/* 实例类别,目前仅支持主实例,对应值为master (Optional) */
InstanceType string `json:"instanceType"`
/* 数据库类型 MySQL|SQL Server (Optional) */
Engine string `json:"engine"`
/* 数据库版本 MySQL支持5.6、5.7 SQL Server支持2008 R2、2012 EE、2014 EE、2016 EE (Optional) */
EngineVersion string `json:"engineVersion"`
/* 实例规格代码 (Optional) */
InstanceClass string `json:"instanceClass"`
/* 磁盘,单位GB (Optional) */
InstanceStorageGB int `json:"instanceStorageGB"`
/* CPU核数 (Optional) */
InstanceCPU int `json:"instanceCPU"`
/* 内存大小,单位MB (Optional) */
InstanceMemoryMB int `json:"instanceMemoryMB"`
/* 地域ID (Optional) */
RegionId string `json:"regionId"`
/* 可用区ID, 第一个ID必须为主实例所在的可用区 (Optional) */
AzId []string `json:"azId"`
/* VPC的ID (Optional) */
VpcId string `json:"vpcId"`
/* 子网的ID (Optional) */
SubnetId string `json:"subnetId"`
/* 实例提供给应用访问的实例内网域名 (Optional) */
InternalDomainName string `json:"internalDomainName"`
/* 实例提供给应用访问的实例公网域名 (Optional) */
PublicDomainName string `json:"publicDomainName"`
/* 应用访问端口 (Optional) */
InstancePort string `json:"instancePort"`
/* 访问模式 (Optional) */
ConnectionMode string `json:"connectionMode"`
/* 审计状态 (Optional) */
AuditStatus string `json:"auditStatus"`
/* 实例状态 (Optional) */
InstanceStatus string `json:"instanceStatus"`
/* 实例创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* 计费配置 (Optional) */
Charge charge.Charge `json:"charge"`
}
type DBInstanceSpec ¶ added in v1.0.6
type DBInstanceSpec struct {
/* 数据库实例名,如不填则缺省为instanceId (Optional) */
InstanceName *string `json:"instanceName"`
/* 数据库类型 MySQL|SQL Server */
Engine string `json:"engine"`
/* 数据库版本 MySQL支持5.6、5.7 SQL Server支持2008 R2、2012 EE、2014 EE、2016 EE */
EngineVersion string `json:"engineVersion"`
/* 实例规格代码 */
InstanceClass string `json:"instanceClass"`
/* 磁盘大小,单位GB */
InstanceStorageGB int `json:"instanceStorageGB"`
/* 可用区ID, 第一个ID必须为主实例所在的可用区。如两个可用区一样,也需输入两个azId */
AzId []string `json:"azId"`
/* VPC的ID */
VpcId string `json:"vpcId"`
/* 子网ID */
SubnetId string `json:"subnetId"`
/* 计费配置 */
ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`
}
type Database ¶ added in v1.0.6
type Database struct {
/* 数据库名称 (Optional) */
DbName string `json:"dbName"`
/* 数据库状态 building:创建中, running:运行中</br>- SQL Server:支持</br>- MySQL:暂不支持 (Optional) */
DbStatus string `json:"dbStatus"`
/* 字符集名称,mysql字符集包括:utf8;SQL Server字符集包括:Chinese_PRC_CI_AS、Chinese_PRC_CS_AS、SQL_Latin1_General_CP1_CI_AS、SQL_Latin1_General_CP1_CS_AS、Chinese_PRC_BIN (Optional) */
CharacterSetName string `json:"characterSetName"`
/* 该数据库相关账户权限列表 (Optional) */
AccessPrivilege []DBAccessPrivilege `json:"accessPrivilege"`
}
type ErrorLog ¶ added in v1.0.6
type ErrorLog struct {
/* 错误日志名称 (Optional) */
Name string `json:"name"`
/* 错误日志大小,单位Byte (Optional) */
SizeByte int64 `json:"sizeByte"`
/* 错误日志最后更新时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
LastUpdateTime string `json:"lastUpdateTime"`
/* 错误日志上传时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
UploadTime string `json:"uploadTime"`
/* 公网下载链接 (Optional) */
PublicURL string `json:"publicURL"`
/* 内网下载链接 (Optional) */
InternalURL string `json:"internalURL"`
}
type FileDownloadURL ¶
type ImportFile ¶
type ImportFile struct {
/* 上传的备份文件名称 (Optional) */
Name string `json:"name"`
SharedFileGid string `json:"sharedFileGid"`
/* 文件大小,单位Byte (Optional) */
SizeByte int `json:"sizeByte"`
/* 文件上传完成时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
UploadTime string `json:"uploadTime"`
/* 是否所属当前实例. “true”或者“false” (Optional) */
IsLocal string `json:"isLocal"`
}
type IndexPerformanceResult ¶ added in v1.0.6
type IndexPerformanceResult struct {
/* 数据库名 (Optional) */
Db string `json:"db"`
/* 表名 (Optional) */
Table string `json:"table"`
/* 索引名 (Optional) */
Index string `json:"index"`
/* 索引大小,单位KB (Optional) */
SizeKB int `json:"sizeKB"`
/* 服务器启动以来,累计索引搜索次数 (Optional) */
UserSeeks int `json:"userSeeks"`
/* 服务器启动以来,累计表扫描次数 (Optional) */
UserScans int `json:"userScans"`
/* 服务器启动以来,累计索引更新次数 (Optional) */
UserUpdates int `json:"userUpdates"`
/* 最近索引搜索时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
LastUserSeek string `json:"lastUserSeek"`
/* 最近表扫描时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
LastUserScan string `json:"lastUserScan"`
/* 最近索引更新时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
LastUserUpdate string `json:"lastUserUpdate"`
}
type MissingIndexResult ¶ added in v1.0.6
type MissingIndexResult struct {
/* 数据库名 (Optional) */
Db string `json:"db"`
/* 表名 (Optional) */
Table string `json:"table"`
/* 构成相等谓词的列的逗号分隔列表,谓词的形式如下:table.column =constant_value (Optional) */
EqualityColumns string `json:"equalityColumns"`
/* 用于查询的涵盖列的逗号分隔列表,即创建索引的SQL语句中,Include后的字段 (Optional) */
InequalityColumns string `json:"inequalityColumns"`
/* 构成不等谓词的列的逗号分隔列表,例如以下形式的谓词:table.column > constant_value“=”之外的任何比较运算符都表示不相等。 (Optional) */
IncludedColumns string `json:"includedColumns"`
/* 实现此缺失索引后,用户查询可能获得的平均百分比收益。 该值表示如果实现此缺失索引,则查询成本将按此百分比平均下降。 (Optional) */
AvgUserImpact int `json:"avgUserImpact"`
/* 由可能使用了组中建议索引的用户查询所导致的扫描次数。 (Optional) */
UserScans int `json:"userScans"`
/* 由可能使用了组中建议索引的用户查询所导致的搜索次数。 (Optional) */
UserSeeks int `json:"userSeeks"`
}
type QueryPerformanceResult ¶ added in v1.0.6
type QueryPerformanceResult struct {
/* sql语句 (Optional) */
Sql string `json:"sql"`
/* 上次执行时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
LastExecutionTime string `json:"lastExecutionTime"`
/* 平均执行时长,单位毫秒(ms) (Optional) */
ElapsedTime int `json:"elapsedTime"`
/* 执行次数 (Optional) */
ExecutionCount int `json:"executionCount"`
/* 平均CPU使用时间,单位毫秒(ms) (Optional) */
WorkerTime int `json:"workerTime"`
/* 平均逻辑读次数 (Optional) */
LogicalReads int `json:"logicalReads"`
/* 平均逻辑写次数 (Optional) */
LogicalWrites int `json:"logicalWrites"`
/* 平均物理读次数 (Optional) */
PhysicalReads int `json:"physicalReads"`
/* 上次返回记录数 (Optional) */
LastRows int `json:"lastRows"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.