| GET | /{Workspace}/IntegrationLog |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class LogEntry:
id: Optional[str] = None
workspace_id: Optional[str] = None
rule_id: Optional[str] = None
date: Optional[str] = None
thread: Optional[str] = None
level: Optional[str] = None
name: Optional[str] = None
message: Optional[str] = None
context: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WorkspaceLogs:
"""
Returns recent log entries, optionally filtered by log level1Pagination - /?recstart=0&reccount=1Log Levels - /?levels=WARN,ERROR
"""
workspace: Optional[str] = None
entries: Optional[List[LogEntry]] = None
records_available: int = 0
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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