接口功能介绍
调用describeDBInstancePerformance接口查询MongoDB实例性能数据。
接口约束
无
URI
GET /v1/openApi/describeDBInstancePerformance
路径参数
无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
resId | 是 | String | 实例ID标识 | 59 | |
beginTime | 否 | String | 开始时间,不填默认30 | 10 | |
timeSpan | 否 | String | 时间单位,不填默认min | min |
请求参数
请求头header参数
无
响应参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
statusCode | 是 | String | 返回码 取值范围:800 成功 |
800 | |
message | 是 | String | 返回消息 | ||
returnObj | 是 | Object | 返回对象 | returnObj |
表 returnObj
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
wiredTigerCachePagesRead | 是 | Object | 写入WiredTiger内存的频率 | ||
wiredTigerCacheTracked | 是 | Object | 内存中脏数据量(WiredTiger引擎) | ||
metricsDocumentUpdatedPersecond | 是 | Object | 每秒文档更新数 | ||
assertsRegularPersecond | 是 | Object | 每秒增加的断言数 | ||
extraInfoPageFaults | 是 | Object | 缺页错误数 | ||
assertsWarningPersecond | 是 | Object | 每秒警告数 | ||
networkBytesoutPersecond | 是 | Object | 每秒发送字节数 | ||
opcountersQueryPersecond | 是 | Object | 每秒查询操作数 | ||
opcountersReplQueryPersecond | 是 | Object | 从节点每秒复制查询操作数 | ||
opcountersReplUpdatePersecond | 是 | Object | 从节点每秒复制更新操作数 | ||
globalLockCurrentQueueWriters | 是 | Object | 当前等待写锁的队列数 | ||
opcountersDeletePersecond | 是 | Object | 每秒删除操作数 | ||
replOplogWin | 是 | Object | 主节点的oplog中可用时间(s) | ||
networkNumrequestsPersecond | 是 | Object | 每秒请求数量 | ||
opcountersReplCommandPersecond | 是 | Object | 从节点每秒复制命令操作数 | ||
wiredTigerCacheBytes | 是 | Object | 内存中数据量(WiredTiger引擎) | ||
memVirtual | 是 | Object | 使用的虚拟内存数(MB) | ||
metricsDocumentInsertedPersecond | 是 | Object | 从节点每秒复制删除操作数 | ||
opcountersCommandPersecond | 是 | Object | 每秒操作数 | ||
wiredTigerCachePagesWrite | 是 | Object | 从WiredTiger内存写入磁盘的频率 | ||
opcountersGetmorePersecond | 是 | Object | 每秒getmore语句操作数 | ||
metricsDocumentDeletedPersecond | 是 | Object | 每秒文档删除数 | ||
globalLockCurrentQueue | 是 | Object | 当前等待读锁的队列数 | ||
replLag | 是 | Object | 主备延时(s) | ||
cursorsTotalOpen | 是 | Object | 打开的总游标数 | ||
globalLockCurrentQueueReaders | 是 | Object | 当前等待读锁的队列数 | ||
assertsMsgPersecond | 是 | Object | 每秒消息数 | ||
oplogSizePh | 是 | Object | 主节点生成oplog的速率 | ||
connectionsCurrent | 是 | Object | 当前的活动连接数 | ||
opcountersUpdatePersecond | 是 | Object | 每秒修改操作数 | ||
opcountersInsertPersecond | 是 | Object | 每秒插入操作数 | ||
opcountersReplGetmorePersecond | 是 | Object | 从节点每秒复制getmore操作数 | ||
createTime | 是 | Object | 创建或更新的时间 | ||
networkBytesinPersecond | 是 | Object | 每秒接收字节数 | ||
replHeadroom | 是 | Object | 主备oplog重叠时长(s) | ||
cursorsTimeOut | 是 | Object | 超时的游标数 | ||
assertsUserPersecond | 是 | Object | 每秒用户断言数 |
请求示例
请求头header
无
请求参数query
/v1/openApi/describeDBInstancePerformance?resId=59&beginTime=10&timeSpan=min
响应示例
{
"statusCode":800,
"message":"查询MongoD实例性能数据成功",
"returnObj":{
"wiredTigerCachePagesRead":[17,17,17,17,17,17,17,17,17,17,17],
"wiredTigerCacheTracked":[4,0,0,0,0,0,0,0,0,0,0],
"metricsDocumentUpdatedPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"assertsRegularPersecond":[0,0,0,0,0,0,0,0,0,0,0],"extraInfoPageFaults":[0,0,0,0,0,0,0,0,0,0,0],
"assertsWarningPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"networkBytesoutPersecond":[30,30,30,30,30,30,30,30,30,30,30],
"opcountersQueryPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersReplQueryPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersReplUpdatePersecond":[0,0,0,0,0,0,0,0,0,0,0],
"globalLockCurrentQueueWriters":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersDeletePersecond":[0,0,0,0,0,0,0,0,0,0,0],
"replOplogWin":[0,0,0,0,0,0,0,0,0,0,0],
"networkNumrequestsPersecond":[2,2,2,2,2,2,2,2,1,2,1],
"opcountersReplCommandPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"wiredTigerCacheBytes":[8562324,8562324,8562324,8562324,8562324,8571143,8571143,8571143,8571143,8571143,8579893],
"memVirtual":[913,913,913,913,913,913,913,913,913,913,913],
"opcountersReplDeletePersecond":[0,0,0,0,0,0,0,0,0,0,0],
"metricsDocumentInsertedPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersCommandPersecond":[2,2,2,2,2,2,2,2,1,2,1],
"wiredTigerCachePagesWrite":[13786,13796,13796,13796,13796,13806,13806,13806,13806,13806,13816],
"opcountersGetmorePersecond":[0,0,0,0,0,0,0,0,0,0,0],
"metricsDocumentDeletedPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"globalLockCurrentQueue":[0,0,0,0,0,0,0,0,0,0,0],
"replLag":[0,0,0,0,0,0,0,0,0,0,0],
"cursorsTotalOpen":[0,0,0,0,0,0,0,0,0,0,0],
"memResident":[95,95,95,95,95,95,95,95,95,95,95],
"globalLockCurrentQueueReaders":[0,0,0,0,0,0,0,0,0,0,0],
"assertsMsgPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersReplInsertPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"oplogSizePh":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],
"connectionsCurrent":[2,2,2,2,2,2,2,2,2,2,2],
"metricsDocumentReturnedPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersUpdatePersecond":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersInsertPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"opcountersReplGetmorePersecond":[0,0,0,0,0,0,0,0,0,0,0],
"createTime":["07/26 15:55","07/26 15:56","07/26 15:57","07/26 15:58","07/26 15:59","07/26 16:00","07/26 16:01","07/26 16:02","07/26 16:03","07/26 16:04","07/26 16:05"],
"networkBytesinPersecond":[0,0,0,0,0,0,0,0,0,0,0],
"replHeadroom":[0,0,0,0,0,0,0,0,0,0,0],
"cursorsTimeOut":[0,0,0,0,0,0,0,0,0,0,0],
"assertsUserPersecond":[0,0,0,0,0,0,0,0,0,0,0]
}
}
状态码
状态码 | 描述 |
---|---|
800 | 表示请求成功。 |
900 | 请求响应失败,失败原因见message |
错误码
无