GET /api/reports
Vypsat všechny výkazy

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

search
optional

výsledky filtru

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Číslo stránky, začíná od jedničky

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.


GET /api/reports/:id
Zobrazit výkaz

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

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
Vytvořit výkaz

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

report
required

Validations:

  • Must be a Hash

report[host]
required

Název stroje nebo certifikátu

Validations:

  • Must be a String

report[reported_at]
required

UTC čas výkazu

Validations:

  • Must be a String

report[status]
required

Hash of status type totals

Validations:

  • Must be a Hash

report[metrics]
required

Hash of report metrics, can be just {}

Validations:

  • Must be a Hash

report[logs]
optional , nil allowed

Optional array of log hashes

Validations:

  • Must be an array of any type


DELETE /api/reports/:id
Smazat výkaz

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String


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

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

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.