original_docstring: ListVolumeStats returns high-level activity measurements for a single volume, list of volumes, or all volumes (if you omit the volumeIDs parameter). Measurement values are cumulative from the creation of the volume.
docstring: ListVolumeStats returns high-level activity measurements for a single volume, list of volumes, or all volumes (if you omit the volumeIDs parameter). Measurement values are cumulative from the creation of the volume.
docstring_tokens: ListVolumeStats returns high - level activity measurements for a single volume list of volumes or all volumes ( if you omit the volumeIDs parameter ) . Measurement values are cumulative from the creation of the volume .
code: def liststats(ctx,
             # Optional main parameter
             volumeids = None):
      """ListVolumeStats returns high-level activity measurements for a single volume, list of volumes, or all volumes (if you omit the volumeIDs parameter). Measurement values are cumulative from the creation of the volume."""
  
      
  
      cli_utils.establish_connection(ctx)
      
  
      volumeids = parser.parse_array(volumeids)
      
  
      
  
      ctx.logger.info(""": """"""volumeids = """+str(volumeids)+""";"""+"")
      try:
          _ListVolumeStatsResult = ctx.element.list_volume_stats(volume_ids=volumeids)
      except common.ApiServerError as e:
          ctx.logger.error(e.message)
          exit()
      except BaseException as e:
          ctx.logger.error(e.__str__())
          exit()
      if ctx.json:
          print(simplejson.dumps(simplejson.loads(_ListVolumeStatsResult), indent=4))
          return
      else:
          cli_utils.print_result(_ListVolumeStatsResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def liststats ( ctx , volumeids = None ) : cli_utils . establish_connection ( ctx ) volumeids = parser . parse_array ( volumeids ) ctx . logger . info ( """: """ """volumeids = """ + str ( volumeids ) + """;""" + "" ) try : _ListVolumeStatsResult = ctx . element . list_volume_stats ( volume_ids = volumeids ) except common . ApiServerError as e : ctx . logger . error ( e . message ) exit ( ) except BaseException as e : ctx . logger . error ( e . __str__ ( ) ) exit ( ) if ctx . json : print ( simplejson . dumps ( simplejson . loads ( _ListVolumeStatsResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _ListVolumeStatsResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: ListVolumeStats returns high-level activity measurements for a single volume, list of volumes, or all volumes (if you omit the volumeIDs parameter).
short_docstring_tokens: ListVolumeStats returns high - level activity measurements for a single volume list of volumes or all volumes ( if you omit the volumeIDs parameter ) .
comment: # Optional main parameter$SEP$"""ListVolumeStats returns high-level activity measurements for a single volume, list of volumes, or all volumes (if you omit the volumeIDs parameter). Measurement values are cumulative from the creation of the volume."""