监控

获取主机指标历史数据-CPU、内存、磁盘

获取主机的CPU、内存、磁盘使用率历史数据

get/api/v1/monitor/hosts/{id}/history

Request

  • The document declares no server URL.
  • Auth
    API key in header Authorization

Path parameters

idinteger required

主机ID

Query parameters

metricstring

指标类型(cpu/memory/disk)

startstring

开始时间(格式: 2025-08-02 15:00:00)

endstring

结束时间(格式: 2025-08-02 16:00:00)

durationstring

时间范围(30m/1h/3h/6h/12h/24h)

Response

OK

codeinteger

状态码

dataunknown
messagestring

提示信息

Changes

No recorded changes to this operation across all 1 revision of this API.