GET /api/reports
List all reports

Parâmentros

Nome parâmetro Descrição
search
opcional

filtrar resultados


Value:

Must be String

order
opcional

ordenar resultados


Value:

Must be String

page
opcional

paginar resultados


Value:

Must be String

per_page
opcional

número de entradas por requisições


Value:

Must be String


GET /api/reports/:id
Exibir um relatório

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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/reports
Criar um relatório

Parâmentros

Nome parâmetro Descrição
report
requerido

Value:

Must be a Hash

report[host]
requerido

Hostname ou nome do certificado


Value:

Must be String

report[reported_at]
requerido

hora UTC do relatório


Value:

Must be String

report[status]
requerido

Hash of status type totals


Value:

Must be Hash

report[metrics]
requerido

Hash of report metrics, can be just {}


Value:

Must be Hash

report[logs]
opcional , nulo permitido

Optional array of log hashes


Value:

Must be an array of any type


DELETE /api/reports/:id
Apagar um report

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

Must be String


GET /api/hosts/:host_id/reports/last
Show the last report for a host

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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