Ask about logs
Changed onAnswer a natural-language question about one project's stored logs. Returns a plain-language answer, what was measured over which window (explanation, window), how exact and complete the numbers are (meta), and a queryId. An overview (what is broken, recent errors, what changed, what is new, with no specific topic, field or request for lines) is searched: its results are the window's kinds of log lines, with their counts in the window and the window before and example lines; every other question is measured exactly. A question may be asked in any language, and is answered in it. The period it names is read from it, on the clock of timeZone ("the last 6 hours", "this afternoon", "since midnight", "between 18:00 and 19:00", "this hour against the previous hour", which reads both hours and compares them); a window replaces that period, and the answer says so. A period that cannot be read is said to be, and the last hour is read instead. With results: true it also returns the rows, value, table, series or kinds of log lines the answer was written from. Pass the queryId to logs.executeQuery to run the same query again over any window with no model involved. When nothing matches, status is not_found: the answer names the window that was read, interpretedAs how the question was read, and the queryId runs the same query over a wider window. A question that asks nothing about the project's logs, or about another project's, is refused with nothing searched (status error, rejection.code not_about_logs or other_project, no queryId), and one no query can answer as asked is refused as unsupported_question; one that asks to change or delete logs is answered with the lines it names (writeDeclined), since logs are read-only.
Request
- Base URL: https://api.sazabi.com/v1
- URL: https://api.sazabi.com/v1/logs/ask
- Auth: none declared
Request body
Response
OK
Changes
- ▲
removed the required property
from the response with the status - ○
added the new optional request property
- ○
added the optional property
//to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added
subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7to theresponse propertyanyOflist for the response status - ○
removed
subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7from theresponse propertyanyOflist for the response status
- ▲
- ○
added
subschema #1to theresponse propertyanyOflist for the response status
- ○