Field Squared API Services

<back to all web services

ApiTrafficLogs

Returns recent log entries
Pagination - /?recstart=0&reccount=1

The following routes are available for this service:
GET/{Workspace}/ApiTrafficLog
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Returns recent log entriesPagination - /?recstart=0&reccount=1
    */
    public static class ApiTrafficLogs
    {
        public String Workspace = null;
        public ArrayList<ApiLogEntry> Entries = null;
        public Long RecordsAvailable = null;
        
        public String getWorkspace() { return Workspace; }
        public ApiTrafficLogs setWorkspace(String value) { this.Workspace = value; return this; }
        public ArrayList<ApiLogEntry> getEntries() { return Entries; }
        public ApiTrafficLogs setEntries(ArrayList<ApiLogEntry> value) { this.Entries = value; return this; }
        public Long getRecordsAvailable() { return RecordsAvailable; }
        public ApiTrafficLogs setRecordsAvailable(Long value) { this.RecordsAvailable = value; return this; }
    }

    public static class ApiLogEntry
    {
        public String Id = null;
        public String RuleName = null;
        public String Date = null;
        public String Workspace = null;
        public String Url = null;
        public String Method = null;
        public String Payload = null;
        public String Direction = null;
        
        public String getId() { return Id; }
        public ApiLogEntry setId(String value) { this.Id = value; return this; }
        public String getRuleName() { return RuleName; }
        public ApiLogEntry setRuleName(String value) { this.RuleName = value; return this; }
        public String getDate() { return Date; }
        public ApiLogEntry setDate(String value) { this.Date = value; return this; }
        public String getWorkspace() { return Workspace; }
        public ApiLogEntry setWorkspace(String value) { this.Workspace = value; return this; }
        public String getUrl() { return Url; }
        public ApiLogEntry setUrl(String value) { this.Url = value; return this; }
        public String getMethod() { return Method; }
        public ApiLogEntry setMethod(String value) { this.Method = value; return this; }
        public String getPayload() { return Payload; }
        public ApiLogEntry setPayload(String value) { this.Payload = value; return this; }
        public String getDirection() { return Direction; }
        public ApiLogEntry setDirection(String value) { this.Direction = value; return this; }
    }

}

Java ApiTrafficLogs 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}/ApiTrafficLog HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv