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.