strongloop/strong-mesh-models — pull request #4 by kraman (2014-11-05 19:25:52+00:00)
Title: Remove Action model and move to more RESTful style

Action map:

* `start` => `Service.status = start`
* Sets `Service.startTime`
* When instance starts, records `Instance.deploymentStartTime`
* When process starts, records `Process.startTime`
* `stop` => `Service.status = stop`
* Sets `Service.startTime = null`
* When instance stops, sets `Instance.deploymentStartTime = null`
* When process stops, records `Process.stopTime` and `Process.exitCode`
* `soft-stop` => `Service.status = soft-stop`
* Resets `Service.status = stop`
* Rest same as `stop`
* `restart` => `Service.status = restart`
* Resets `Service.status = start`
* When old process stops, records `Process.stopTime` and `Process.exitCode`
* Rest same as `start`
* `soft-restart` => `Service.status = soft-restart`
* Same as `restart`
* `set-size` => `Instance.numProcesses = #`
* When old process stops, records `Process.stopTime` and `Process.exitCode`
* When new process starts, records `Process.startTime`
* `start-tracking-objects` => `Process.objectTrackingOn = true`
* Sets `objectTrackingStatus = running`
* Sets `objectTrackingStartTime`
* `start-tracking-objects` => `Process.objectTrackingOn = false`
* Sets `objectTrackingStatus = stopped`
* Sets `objectTrackingStartTime = null`
* `start-cpu-profiling` => `Process.cpuProfilingOn = true`
* Sets `cpuProfilingStatus = running`
* Sets `cpuProfilingStartTime`
* `stop-cpu-profiling` => `Process.cpuProfilingOn = false`
* Sets `cpuProfilingStatus = stopped`
* Sets `cpuProfilingStartTime = null`
* `heap-snapshot