Sazabi
APILogs

Get a log query

Get one stored log query by its queryId: the question it answered (or the spec's plain-words reading), how it was read, the times it read, the kind of results it returned, and its log query spec. Any queryId a logs.ask answer or logs.executeQuery run returned can be read, runs included. Run it again with logs.executeQuery. An unknown id, or one from another project, is not found.

GET https://api.sazabi.com/v1/logs/queries/{queryId}

GET
/logs/queries/{queryId}

Path Parameters

queryId*string

queryId of a logs.ask answer or a logs.executeQuery run in the project.

Formatuuid

Query Parameters

projectId?string

Project the query belongs to. Auto-filled from CLI and SDK context when omitted.

Formatuuid

Response Body

application/json

curl -X GET "https://example.com/logs/queries/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "queryId": "10210520-b895-40ca-bce5-474f9643bf53",  "question": "string",  "interpretedAs": "string",  "window": {    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z"  },  "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",  "resultsKind": "string",  "createdAt": "2019-08-24T14:15:22Z",  "spec": {    "property1": null,    "property2": null  }}