| GET | /{Workspace}/IntegrationLog |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
/**
* Returns recent log entries, optionally filtered by log level1Pagination - /?recstart=0&reccount=1Log Levels - /?levels=WARN,ERROR
*/
open class WorkspaceLogs
{
var Workspace:String? = null
var Entries:ArrayList<LogEntry> = ArrayList<LogEntry>()
var RecordsAvailable:Long? = null
}
open class LogEntry
{
var Id:String? = null
var WorkspaceId:String? = null
var RuleId:String? = null
var Date:String? = null
var Thread:String? = null
var Level:String? = null
var Name:String? = null
var Message:String? = null
var Context:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/IntegrationLog HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/json