Row Commands

Following commands are used to operate on rows in json files stored locally under dashboards/rows directory. These commands need Dashboard Context. Please set Dashboard Context before using them.

  • copy - Copies a row from one position to another. This command can be used to copy a row on the same dashboard and as well as to copy a row to other dashboards.

    $ wizzy copy row SOURCE DESTINATION
    

    SOURCE represents row number on the dashboard in context. Should be a ROW_NUMBER. DESTINATION can represent a row number on the same dashboard or on a different dashboard. Can be a ROW_NUMBER or DASHBOARD_SLUG.ROW_NUMBER. For example, If you want to copy 2nd row as 4th row in the context dashboard, use:

    $ wizzy copy row 2 4
    

    For example, If you want to copy 2nd row from the context dashboard as 1st row in some other dashboard, use:

    $ wizzy copy row 2 cpu-stats.1
    
  • move - Moves a row from one position to another. This command can be used to move a row on the same dashboard and as well as to move a row to other dashboards.

    $ wizzy move row SOURCE DESTINATION
    

    For example:

    $ wizzy move row 2 4
    $ wizzy move row 2 cpu-stats.1
    
  • remove - Removes a row from the context dashboard

    $ wizzy remove row ROW_NUMBER
    

    ROW_NUMBER represents row number on the dashboard in context. For example, to delete 2nd row from your local json:

    $ wizzy remove row 2
    
  • extract - Copies row json object and saves it as a separate file under rows directory. This command is useful if you want to re-use this row in many dashboards. Later you can use insert command to insert this row into any dashboard. Needs dashboard context to be set.

    $ wizzy extract row ROW_NUMBER ROW_NAME
    

    For example:

    $ wizzy extract row 2 memory-stats-row
    
  • insert - Inserts an extracted row from rows directory into a dashboard. If DASHBOARD_SLUG is not specified then this command will insert the row in context dashboard.

    $ wizzy insert row ROW_NAME <DESTINATION_SLUG>
    

    For example:

    $ wizzy insert row memory-stats-row
    $ wizzy insert row memory-stats-row cassandra-stats
    

_Note: ROWNUMBER starts from 1.