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 java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Returns recent log entries, optionally filtered by log level1Pagination - /?recstart=0&reccount=1Log Levels - /?levels=WARN,ERROR
    */
    public static class WorkspaceLogs
    {
        public String Workspace = null;
        public ArrayList<LogEntry> Entries = null;
        public Long RecordsAvailable = null;
        
        public String getWorkspace() { return Workspace; }
        public WorkspaceLogs setWorkspace(String value) { this.Workspace = value; return this; }
        public ArrayList<LogEntry> getEntries() { return Entries; }
        public WorkspaceLogs setEntries(ArrayList<LogEntry> value) { this.Entries = value; return this; }
        public Long getRecordsAvailable() { return RecordsAvailable; }
        public WorkspaceLogs setRecordsAvailable(Long value) { this.RecordsAvailable = value; return this; }
    }

    public static class LogEntry
    {
        public String Id = null;
        public String WorkspaceId = null;
        public String RuleId = null;
        public String Date = null;
        public String Thread = null;
        public String Level = null;
        public String Name = null;
        public String Message = null;
        public String Context = null;
        
        public String getId() { return Id; }
        public LogEntry setId(String value) { this.Id = value; return this; }
        public String getWorkspaceId() { return WorkspaceId; }
        public LogEntry setWorkspaceId(String value) { this.WorkspaceId = value; return this; }
        public String getRuleId() { return RuleId; }
        public LogEntry setRuleId(String value) { this.RuleId = value; return this; }
        public String getDate() { return Date; }
        public LogEntry setDate(String value) { this.Date = value; return this; }
        public String getThread() { return Thread; }
        public LogEntry setThread(String value) { this.Thread = value; return this; }
        public String getLevel() { return Level; }
        public LogEntry setLevel(String value) { this.Level = value; return this; }
        public String getName() { return Name; }
        public LogEntry setName(String value) { this.Name = value; return this; }
        public String getMessage() { return Message; }
        public LogEntry setMessage(String value) { this.Message = value; return this; }
        public String getContext() { return Context; }
        public LogEntry setContext(String value) { this.Context = value; return this; }
    }

}

Java WorkspaceLogs DTOs

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

HTTP + CSV

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/csv