Monitor 10.11 | pub.monitor.service Folder | pub.monitor.service:getHistory
 
pub.monitor.service:getHistory
Retrieves the status history for a specified service.
Input Parameters
The following table lists the input parameters.
contextID
String Context ID for the service whose status history you want to retrieve. Specify the complete, exact ID.
Note:
Whether Monitor treats contextID as case-sensitive depends on how the underlying database (for example, Oracle, DB2, or SQL server) handles the queries that Monitor issues to obtain data.
Output Parameters
The following table lists the output parameters.
history
Document List The retrieved logged statuses for the specified service. For each logged status, the following fields are returned:
*ROOTCONTEXTID String Context ID of the service's root service. If the service is a top-level service, the root context ID is the same as the context ID.
*PARENTCONTEXTID String Context ID of the service's parent service, if the service was nested or resubmitted.
*CONTEXTID String Context ID for the service.
*STATUS String Status of the service when the message was logged. The getHistory service returns the numerical value that represents the status. For a description of the status values, see Status Reference.
*STATUSDECODE String Status value of the service when the message was logged. The getHistory service returns the keyword value that represents the status. For the list of keyword values, for example, “Started” or “Completed,” see Status Reference.
*SERVICENAME String Name of the service.
*USERID String Integration Server user name of the client that invoked the service.
*RESUBMITTABLE String Whether the service is currently resubmittable.
*true   Service is resubmittable.
*false Service is not resubmittable.
*ERRORMESSAGE String If the service's status was 4 (Failed) when the message was logged, the text of the error message.
*SERVERID String DNS name and port for the Integration Server that ran the service (for example, titan.east.webmethod.com:5555).
*DURATION String If the service's status was 2 (Completed) or 4 (Failed) when the message was logged, length of time the service ran (in milliseconds).
*AUDITTIMESTAMP Number Time the service's status was logged, in epoch time; that is, the number of seconds since January 1, 1970.
*AUDITTIMESTRING String Time the service's status was logged in string format, YYYY-MM-DD hh:mm:ss.SSS zzz, where:
*YYYY-MM-DD is the date
*hh:mm:ss:SSS is the time, including milliseconds
*zzz is the time zone