LoadTransactionSummaryStatistics
Loads the summary statistics of all transactions.
Syntax: GET
/api/Statistics/LoadTransactionSummaryStatistics
PowerScript code example:
|
1 2 3 4 5 6 7 8 9 10 11 |
Integer li_rc String ls_body httpclient lhc_client lhc_client = create httpclient lhc_client.setrequestheader("Content-Type", "application/json;charset=UTF-8",true) li_rc = lhc_client.sendrequest( "Get", "http://172.25.100.32:5000/api/Statistics/LoadTransactionSummaryStatistics") if li_rc = 1 and lhc_client.getresponsestatuscode( ) = 200 then lhc_client.getrequestbody(ls_body) end if |
When successful, it returns the response status code 200 and
the following response body:
When failed, it returns 400 (bad request), 401 (unauthorized),
or 500 (server error).
|
1 2 3 4 5 6 7 |
{ "transactionsCreated": 0, "transactionsStarted": 0, "transactionsSucceeded": 0, "transactionsFailed": 0, "totalRequests": 0 } |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest