GET /api/reports
Elenca tutte le notifiche

Params

Param Name Description
search
Optional

filtra i risultati

Validations:

  • Must be String

order
Optional

ordina risultati

Validations:

  • Must be String

page
Optional

paginazione risultati

Validations:

  • Must be String

per_page
Optional

numero di voci per richiesta

Validations:

  • Must be String


GET /api/reports/:id
Mostra una notifica

Params

Param Name Description
id
Required

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/reports
Crea una notifica

Params

Param Name Description
report
Required

Validations:

  • Must be a Hash

report[host]
Required

Hostname o certname

Validations:

  • Must be String

report[reported_at]
Required

Orario UTC della notifica

Validations:

  • Must be String

report[status]
Required

Hash dei totali del tipo di stato

Validations:

  • Must be Hash

report[metrics]
Required

Hash per le metriche della notifica, può essere solo {}

Validations:

  • Must be Hash

report[logs]
Optional , <span class="translation_missing" title="translation missing: it.apipie.nil_allowed">Nil Allowed</span>

Insieme opzionale di log hash

Validations:

  • Must be an array of any type


DELETE /api/reports/:id
Cancella una notifica

Params

Param Name Description
id
Required

Validations:

  • Must be String


GET /api/hosts/:host_id/reports/last
Mostra l'ultima notifica per un host

Params

Param Name Description
id
Required

Validations:

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