GET /api/reports
Alle Berichte auflisten

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

search
optional

Ergebnisse filtern

Validations:

  • Must be a String

order
optional

Feld und Reihenfolge sortieren, z.B. 'id DESC'

Validations:

  • Must be a String

page
optional

Seitennummer, beginnend bei 1

Validations:

  • Must be a number.

per_page
optional

Anzahl der angezeigten Ergebnisse pro Seite

Validations:

  • Must be a number.


GET /api/reports/:id
Bericht anzeigen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

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
Bericht erstellen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

report
verpflichtend

Validations:

  • Must be a Hash

report[host]
verpflichtend

Hostname oder Zertifikatsname

Validations:

  • Must be a String

report[reported_at]
verpflichtend

UTC-Zeit des Berichts

Validations:

  • Must be a String

report[status]
verpflichtend

Hash der Statustypensummen

Validations:

  • Must be a Hash

report[metrics]
verpflichtend

Hash der Berichtmetriken, kann einfach nur {} sein

Validations:

  • Must be a Hash

report[logs]
optional , nil erlaubt

Optionales Array der Log-Hashes

Validations:

  • Must be an array of any type


DELETE /api/reports/:id
Bericht löschen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

Validations:

  • Must be a String


GET /api/hosts/:host_id/reports/last
Letzten Bericht für einen Host anzeigen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

Validations:

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