Legacy | Vitals stop

  • Command: vitals

  • Subcommand: stop

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Ends the collection of device vitals. The collected information is saved as a CSV file in the repository. Once script execution is complete, the CSV file is available for download from the Single Test Report.

If the script contains several start/stop pairs for the same device, there will be a single CSV file for the device, provided the device remains open. Numerous open/close device actions in the scrip will result in several CSV files. In other words, a CSV file is generated per device closure.

If the data collection frequency interval, defined by the Vitals start function, is shorter than the script runtime, no CSV file is created.

CSV file naming convention

The CSV file is created once the script is completed or the device has been closed. The naming convention includes the device IMEI and timestamp representing the time the script was completed.

Parameters

Name Value Default Description
deviceID*     The device for this command.

* Mandatory parameter

Request & Response 

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_09_26_26_940?operation=command&securityToken=<your_token>&command=vitals&subcommand=start&param.deviceId=6370E775
Copy

JSON response

{
  "reason": "Success",
  "timer.elapsed": "31",
  "returnValue": "[[TimedCollectedMonitorValues: Timestamp:timestamp: 1478598241535, formatted date:2016-11-08:09-44-01-535, Monitors:{[DeviceVital: VitalId:outputs.monitors.memory.cache]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:299556, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:299556, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.kernel]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:6, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:6, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.user]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:10, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:10, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:322464990, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.free]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:65576, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:65576, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:121570518, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.used]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:1679968, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:1679968, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.total]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:17, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:17, Type:INTEGER]]}], [TimedCollectedMonitorValues: Timestamp:timestamp: 1478598242629, formatted date:2016-11-08:09-44-02-629, Monitors:{[DeviceVital: VitalId:outputs.monitors.memory.cache]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:299556, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:299556, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.kernel]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:10, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:10, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.user]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:5, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:5, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:322464990, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.free]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:65600, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:65600, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:121570518, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.used]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:1679944, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:1679944, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.total]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:18, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:18, Type:INTEGER]]}], [TimedCollectedMonitorValues: Timestamp:timestamp: 1478598243707, formatted date:2016-11-08:09-44-03-707, Monitors:{[DeviceVital: VitalId:outputs.monitors.memory.cache]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:299556, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:299556, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.kernel]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:11, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:11, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.user]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:6, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:6, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:322464990, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.free]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:65440, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:65440, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:121570518, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.used]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:1680104, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:1680104, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.total]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:19, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:19, Type:INTEGER]]}], [TimedCollectedMonitorValues: Timestamp:timestamp: 1478598244801, formatted date:2016-11-08:09-44-04-801, Monitors:{[DeviceVital: VitalId:outputs.monitors.memory.cache]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:299556, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:299556, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.kernel]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:3, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:3, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.user]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:6, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:6, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:322464990, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.mobile.in]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:0, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.free]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:65472, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:65472, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.network.wlan.out]=[DeltaCollectedMonitor: CalculatedValue:[CollectedMonitorValue: Value:0, Type:INTEGER], StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculationType:DELTA, MonitorValue:[CollectedMonitorValue: Value:121570518, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.memory.used]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:1680072, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:1680072, Type:INTEGER]], [DeviceVital: VitalId:outputs.monitors.cpu.total]=[CollectedMonitor: StatusInfo:[CollectedMonitorStatusInfo: Message:null, Status:SUCCEEDED], CalculatedValue:[CollectedMonitorValue: Value:11, Type:INTEGER], CalculationType:DEFAULT, MonitorValue:[CollectedMonitorValue: Value:11, Type:INTEGER]]}]]",
  "testGridReportUrl": "https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "description": "Success",
  "timer.system": "31",
  "completed": "true",
  "flowEndCode": "SUCCEEDED",
  "executionId": "john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "timer.ux": "0",
  "singleTestReportUrl": "https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml&ownerId=john@perfectomobile.com&sharingCode=166ca97d-a844-443e-bb78-99da59f69f8f",
  "reportKey": "PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml",
  "timer.device": "0"}