api/nodes journal: fix parameter types and add minimum

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-05-15 16:12:20 +02:00
parent ddc562ee6d
commit dd011a8935

View File

@ -715,18 +715,21 @@ __PACKAGE__->register_method({
properties => {
node => get_standard_option('pve-node'),
since => {
type=> 'number',
type=> 'integer',
minimum => 0,
description => "Display all log since this UNIX epoch. Conflicts with 'startcursor'.",
optional => 1,
},
until => {
type=> 'number',
type=> 'integer',
minimum => 0,
description => "Display all log until this UNIX epoch. Conflicts with 'endcursor'.",
optional => 1,
},
lastentries => {
description => "Limit to the last X lines. Conflicts with a range.",
type => 'integer',
minimum => 0,
optional => 1,
},
startcursor => {