查詢實例性能數據v2
更新時間 2025-09-23 10:18:59
最近更新時間: 2025-09-23 10:18:59
分享文章
接口功能介紹
查詢文檔數據庫實例性能數據
接口約束
無
URI
GET /DDS2/v2/openApi/describeDBInstancePerformance
路徑參數 無
Query參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| resId | 是 | String | 實例ID標識 | 59 | |
| tag | 是 | String | 監控指標,取值:cpu、memory、disk、connection、TPS-QPS、network、globalLock、cursor、pageFaults、asserts、wiredTiger、oplog | cpu | |
| beginTime | 否 | String | 開始時間,不填默認30 | 10 | |
| timeSpan | 否 | String | 時間單位有(min,hour,day),不填默認min | min |
請求參數
請求頭header參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| project-id | 否 | String | 項目id | 0 | |
| regionId | 是 | String | 資源池id | bb9fdb42056f11eda1610242ac110002 |
請求體body參數 無
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | String | 返回碼 取值范圍:800 成功 | 800 | |
| message | String | 返回消息 | 查詢MongoD實例性能數據成功 | |
| returnObj | Object | 返回對象 | returnObj | |
| error | String | 錯誤碼。當接口失敗時才返回具體錯誤編碼,成功不返回或者為空。 | ||
| 表 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 | 每秒消息數 | ||
| opcountersReplInsertPersecond | Object | 從節點每秒復制插入操作數 | ||
| oplogSizePh | Object | 主節點生成oplog的速率 | ||
| connectionsCurrent | Object | 當前的活動連接數 | ||
| metricsDocumentReturnedPersecond | Object | 每秒文檔返回數 | ||
| opcountersUpdatePersecond | Object | 每秒修改操作數 | ||
| opcountersInsertPersecond | Object | 每秒插入操作數 | ||
| opcountersReplGetmorePersecond | Object | 從節點每秒復制getmore操作數 | ||
| createTime | Object | 創建或更新的時間 | ||
| networkBytesinPersecond | Object | 每秒接收字節數 | ||
| replHeadroom | Object | 主備oplog重疊時長(s) | ||
| cursorsTimeOut | Object | 超時的游標數 | ||
| assertsUserPersecond | Object | 每秒用戶斷言數 |
枚舉參數
無
請求示例
請求url
/v1/openApi/describeDBInstancePerformance?resId=59&tag=cpu&beginTime=10&timeSpan=min
請求頭header
regionId=bb9fdb42056f11eda1610242ac110002
project-id=0
請求體body
無
響應示例
{
"statusCode": 800,
"message": "查詢MongoD實例性能數據成功",
"returnObj": {
"wiredTigerCachePagesRead": [
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17
]
}
}
狀態碼
請參考
錯誤碼
請參考