From: Thomas Lamprecht Date: Thu, 16 May 2019 11:05:34 +0000 (+0200) Subject: node: journal: improve parameter schema X-Git-Url: https://git.proxmox.com/?p=pmg-api.git;a=commitdiff_plain;h=1323255516e3f0c16b142d3b10f2b1f85c6226d9;hp=8b4a5410e5ca333d68f26deacd35b62946bc640f node: journal: improve parameter schema Signed-off-by: Thomas Lamprecht --- diff --git a/PMG/API2/Nodes.pm b/PMG/API2/Nodes.pm index 6aa9a48..cb6e88a 100644 --- a/PMG/API2/Nodes.pm +++ b/PMG/API2/Nodes.pm @@ -274,27 +274,30 @@ __PACKAGE__->register_method({ properties => { node => get_standard_option('pve-node'), since => { - type=> 'number', - description => "Display all log since this UNIX epoch.", + description => "Display all log since this UNIX epoch. Conflicts with 'startcursor'.", + type => 'integer', + minimum => 0, optional => 1, }, until => { - type=> 'number', - description => "Display all log until this UNIX epoch.", + description => "Display all log until this UNIX epoch. Conflicts with 'endcursor'.", + type => 'integer', + minimum => 0, optional => 1, }, lastentries => { - description => "Limit to the last X lines.", + description => "Limit to the last X lines. Conflicts with a range.", type => 'integer', + minimum => 0, optional => 1, }, startcursor => { - description => "Start after the given Cursor.", + description => "Start after the given Cursor. Conflicts with 'since'.", type => 'string', optional => 1, }, endcursor => { - description => "End before the given Cursor.", + description => "End before the given Cursor. Conflicts with 'until'.", type => 'string', optional => 1, },