Get Job Statistics
/essbase/rest/v1/jobs/statistics/{userId}
Returns the job statistics for the currently logged in user, including number of jobs that are successful, number of jobs containing errors, number of jobs containing warnings, and the number of jobs running.
Request
-
userId(required): string
User Id of the logged in user
Response
- application/json
200 Response
OK
Job statistics returned successfully.
object
-
errCt:
integer(int64)
Number of jobs with errors.
-
runningCt:
integer(int64)
Number of jobs running now.
-
succesCt:
integer(int64)
Number of successful jobs.
-
warningCt:
integer(int64)
Number of jobs with warnings.
500 Response
Internal Server Error.
503 Response
Naming Exception or Server Exception.
Examples
The following example shows how to return jobs statistics for a user.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat
.
Script with cURL Command
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/jobs/statistics/power1" -H "accept: application/json" -u %User%:%Password%
Example of Response Body
{
"errCt": 6,
"succesCt": 12,
"warningCt": 2,
"runningCt": 1
}