| 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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