Field Squared API Services

<back to all web services

WorkspaceLogs

Returns recent log entries, optionally filtered by log level1
Pagination - /?recstart=0&reccount=1Log Levels - /?levels=WARN,ERROR

The following routes are available for this service:
GET/{Workspace}/IntegrationLog
import Foundation
import ServiceStack

/**
* Returns recent log entries, optionally filtered by log level1Pagination - /?recstart=0&reccount=1Log Levels - /?levels=WARN,ERROR
*/
public class WorkspaceLogs : Codable
{
    public var workspace:String
    public var entries:[LogEntry] = []
    public var recordsAvailable:Int

    required public init(){}
}

public class LogEntry : Codable
{
    public var id:String
    public var workspaceId:String
    public var ruleId:String
    public var date:String
    public var thread:String
    public var level:String
    public var name:String
    public var message:String
    public var context:String

    required public init(){}
}


Swift WorkspaceLogs DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv