Comment 0 for bug 1685386

Revision history for this message
Michael Johnson (johnsom) wrote : Create OSC loadbalancer stats command

We need to implement the "openstack loadbalancer stats show" command in the OpenStack client plugin.

usage: openstack loadbalancer stats show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
                           [--max-width <integer>] [--print-empty]
                           [--noindent] [--prefix PREFIX]
                           <lb-id>

Display load balancer statistics

positional arguments:
  <lb-id> Load balancer to display statistics (name or ID)

optional arguments:
  -h, --help show this help message and exit

output formatters:
  output formatter options

  -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, <1 to disable. You can also use
                        the CLIFF_MAX_TERM_WIDTH environment variable, but the
                        parameter takes precedence.
  --print-empty Print empty table if there is no data to show.

json formatter:
  --noindent whether to disable indenting the JSON

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX add a prefix to all variable names

Columns:

   - bytes_in
   - total_connections
   - active_connections
   - bytes_out
   - request_errors

Note: This is not implemented in the API yet.