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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Integration;

namespace Field2Office.API.Model.Integration
{
    public partial class LogEntry
    {
        public virtual string Id { get; set; }
        public virtual string WorkspaceId { get; set; }
        public virtual string RuleId { get; set; }
        public virtual string Date { get; set; }
        public virtual string Thread { get; set; }
        public virtual string Level { get; set; }
        public virtual string Name { get; set; }
        public virtual string Message { get; set; }
        public virtual string Context { get; set; }
    }

    ///<summary>
    ///Returns recent log entries, optionally filtered by log level1Pagination - /?recstart=0&reccount=1Log Levels - /?levels=WARN,ERROR
    ///</summary>
    public partial class WorkspaceLogs
    {
        public WorkspaceLogs()
        {
            Entries = new List<LogEntry>{};
        }

        public virtual string Workspace { get; set; }
        public virtual List<LogEntry> Entries { get; set; }
        public virtual long RecordsAvailable { get; set; }
    }

}

C# WorkspaceLogs DTOs

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

HTTP + JSON

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