def list_monitor_data(kwargs=None, call=None):
 if (call != 'function'):
  raise SaltCloudSystemExit('The list_monitor_data must be called with -f or --function.')
 if (not isinstance(kwargs, dict)):
  kwargs = {}
 ret = {}
 params = {'Action': 'GetMonitorData', 'RegionId': get_location()}
 if ('name' in kwargs):
  params['InstanceId'] = kwargs['name']
 items = query(params=params)
 monitorData = items['MonitorData']
 for data in monitorData['InstanceMonitorData']:
  ret[data['InstanceId']] = {}
  for item in data:
   ret[data['InstanceId']][item] = str(data[item])
 return ret

def list_monitor_data ( kwargs = None , call = None ) : if ( call != 'function' ) : raise SaltCloudSystemExit ( 'The list_monitor_data must be called with -f or --function.' ) if ( not isinstance ( kwargs , dict ) ) : kwargs = { } ret = { } params = { 'Action' : 'GetMonitorData' , 'RegionId' : get_location ( ) } if ( 'name' in kwargs ) : params [ 'InstanceId' ] = kwargs [ 'name' ] items = query ( params = params ) monitorData = items [ 'MonitorData' ] for data in monitorData [ 'InstanceMonitorData' ] : ret [ data [ 'InstanceId' ] ] = { } for item in data : ret [ data [ 'InstanceId' ] ] [ item ] = str ( data [ item ] ) return ret
get monitor data of the instance .