GET /api/config_reports
列出所有报告

参数

参数名字 描述
search
选填

过滤结果

Validations:

  • Must be a String

order
选填

结果排序

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


GET /api/config_reports/:id
显示报告

参数

参数名字 描述
id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/config_reports
创建报告

参数

参数名字 描述
config_report
必填

Validations:

  • Must be a Hash

config_report[host]
必填

主机名或证书名称

Validations:

  • Must be a String

config_report[reported_at]
必填

报告的 UTC 时间

Validations:

  • Must be a String

config_report[status]
必填

状态类型哈希总计

Validations:

  • Must be a Hash

config_report[metrics]
必填

报告指标哈希,可只为 {}

Validations:

  • Must be a Hash

config_report[logs]
选填 , 允许空值

日志哈希的自选阵列

Validations:

  • Must be an array of any type


DELETE /api/config_reports/:id
删除报告

参数

参数名字 描述
id
必填

Validations:

  • Must be a String


GET /api/hosts/:host_id/config_reports/last
显示主机的最新报告

参数

参数名字 描述
id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.