1
0
Fork 0
arangodb/js/apps/system/aardvark/api-docs/log.json

74 lines
4.3 KiB
JSON

{
"basePath": "/",
"swaggerVersion": "1.1",
"apiVersion": "0.1",
"apis": [
{
"operations": [
{
"errorResponses": [
{
"reason": "is returned if invalid values are specified for <em>upto</em> or <em>level</em>. ",
"code": "400"
},
{
"reason": "is returned if the log is requested for any database other than <em>_system</em>. ",
"code": "403"
}
],
"parameters": [
{
"dataType": "String",
"paramType": "query",
"name": "upto",
"description": "Returns all log entries up to log level <em>upto</em>. Note that <em>upto</em> must be: - <em>fatal</em> or <em>0</em> - <em>error</em> or <em>1</em> - <em>warning</em> or <em>2</em> - <em>info</em> or <em>3</em> - <em>debug</em> or <em>4</em> The default value is <em>info</em>. "
},
{
"dataType": "String",
"paramType": "query",
"name": "level",
"description": "Returns all log entries of log level <em>level</em>. Note that the URL parameters <em>upto</em> and <em>level</em> are mutually exclusive. "
},
{
"dataType": "Number",
"paramType": "query",
"name": "start",
"description": "Returns all log entries such that their log entry identifier (<em>lid</em> value) is greater or equal to <em>start</em>. "
},
{
"dataType": "Number",
"paramType": "query",
"name": "size",
"description": "Restricts the result to at most <em>size</em> log entries. "
},
{
"dataType": "Number",
"paramType": "query",
"name": "offset",
"description": "Starts to return log entries skipping the first <em>offset</em> log entries. <em>offset</em> and <em>size</em> can be used for pagination. "
},
{
"dataType": "String",
"paramType": "query",
"name": "search",
"description": "Only return the log entries containing the text specified in <em>search</em>. "
},
{
"dataType": "String",
"paramType": "query",
"name": "sort",
"description": "Sort the log entries either ascending (if <em>sort</em> is <em>asc</em>) or descending (if <em>sort</em> is <em>desc</em>) according to their <em>lid</em> values. Note that the <em>lid</em> imposes a chronological order. The default value is <em>asc</em>. "
}
],
"notes": "Returns fatal, error, warning or info log messages from the server's global log. The result is a JSON object with the following attributes: <br><br>- <em>lid</em>: a list of log entry identifiers. Each log message is uniquely identified by its <b>lid</b> and the identifiers are in ascending order. <br><br>- <em>level</em>: a list of the log-levels for all log entries.<br><br>- <em>timestamp</em>: a list of the timestamps as seconds since 1970-01-01 for all log entries. <br><br>- <em>text</em> a list of the texts of all log entries<br><br>- <em>totalAmount</em>: the total amount of log entries before pagination.<br><br>",
"summary": "reads the global log from the server",
"httpMethod": "GET",
"examples": "",
"nickname": "readsTheGlobalLogFromTheServer"
}
],
"path": "/_api/log"
}
]
}