]> git.proxmox.com Git - pmg-api.git/commitdiff
node: journal: improve parameter schema
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 May 2019 11:05:34 +0000 (13:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 May 2019 11:05:34 +0000 (13:05 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PMG/API2/Nodes.pm

index 6aa9a48dab825605e4b7025d0ac4ff505d9e4c74..cb6e88aca679016bb8b12cb9d6cc0c841136c722 100644 (file)
@@ -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,
            },