Web App Plugins

<back to all web services

GetProcess

The following routes are available for this service:
All Verbs/process/{Id}
All Verbs/process/current
GetProcess Parameters:
NameParameterData TypeRequiredDescription
Idpathint?No
GetProcessResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformProcessInfoNo
ProcessInfo Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
CpuTimeformstringNo
UserTimeformstringNo
MemoryBytesformlongNo
MemoryPeakBytesformlongNo
ActiveThreadsformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /process/{Id} HTTP/1.1 
Host: plugins.web-app.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetProcess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServerInfo">
  <Id>0</Id>
</GetProcess>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetProcessResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServerInfo">
  <Result>
    <ActiveThreads>0</ActiveThreads>
    <CpuTime>String</CpuTime>
    <Id>0</Id>
    <MemoryBytes>0</MemoryBytes>
    <MemoryPeakBytes>0</MemoryPeakBytes>
    <Name>String</Name>
    <UserTime>String</UserTime>
  </Result>
</GetProcessResponse>