Calling the REST APIs
To call the REST APIs you need the address of the Reveille server and the user login (including Windows domain, username, and password) for access. The Reveille server uses NTLM authentication for access.
The code examples demonstrate both a GET and a POST REST API call.
The GET does a call to get all monitors on the Reveille server that the user has permission to view. For example:
Request
GET http://localhost/Reveille/API/Monitors/AllMonitors
Accept: application/json
Response
["DemoMonitor","TestMonitor1","TestMonitor2","TestMonitor3"]
The POST sends filter data to the server to get the desired information. For example, to get the last 10 transactions for application id 3 in a selected time period.
Request
POST http://localhost/ReveilleUserAnalytics/API/Application/3/ApplicationDetails
Accept: application/json
ContentType: application/josn
{
"Type": "L10",
"Transactions": "",
"UserIds": "",
"CustomField1Value": "",
"ClientIps": "",
"ServerIps": "",
"Errors": true,
"NonErrors": true,
"StartDateTime": "2017-01-06T16:33:22.0313235-05:00",
"EndDateTime": "2017-02-20T16:33:22.0313235-05:00",
"SortExpression": ""
}
Response
[{"RecordNumber":9852,"ApplicationId":3,"TransactionName":"Logout","StartDateTime":"2017-02-20T11:28:29.333","UserId":"D6prepp","ClientIp":"192.168.10.133","ServerIp":"10.0.60.104","StatusCode":0,"ResponseTime":0.020999999716877937,"CustomFieldNames":["Repository","","","","","","","","",""],"CustomFieldValues":["D6PREPP04","","","","","","","","",""]},
{"RecordNumber":9851,"ApplicationId":3,"TransactionName":"Search","StartDateTime":"2017-02-20T11:28:21.453","UserId":"D6prepp","ClientIp":"192.168.10.133","ServerIp":"10.0.60.104","StatusCode":0,"ResponseTime":6.2930002212524414,"CustomFieldNames":["Repository","Search","","","","","","","",""],"CustomFieldValues":["D6PREPP04","test","","","","","","","",""]},
{"RecordNumber":9850,"ApplicationId":3,"TransactionName":"View Document","StartDateTime":"2017-02-20T11:28:20.463","UserId":"D6prepp","ClientIp":"192.168.10.133","ServerIp":"10.0.60.104","StatusCode":0,"ResponseTime":0.74099999666213989,"CustomFieldNames":["Repository","Document","Type","Format","ObjectId","","","","",""],"CustomFieldValues":["D6PREPP04","Readme.txt","dm_document","crtext","090000048011991c","","","","",""]},
{"RecordNumber":9849,"ApplicationId":3,"TransactionName":"Login","StartDateTime":"2017-02-20T11:28:13.433","UserId":"D6prepp","ClientIp":"192.168.10.133","ServerIp":"10.0.60.104","StatusCode":0,"ResponseTime":7.0019998550415039,"CustomFieldNames":["Repository","Browser","","","","","","","",""],"CustomFieldValues":["D6PREPP04","IE 8.0","","","","","","","",""]}, … ]
Was this helpful?
Please tell us why:
Thank you.