From 1323255516e3f0c16b142d3b10f2b1f85c6226d9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 16 May 2019 13:05:34 +0200 Subject: [PATCH 1/1] node: journal: improve parameter schema Signed-off-by: Thomas Lamprecht --- PMG/API2/Nodes.pm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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, }, -- 2.39.2