Query History

List query history

Lists the caller's query history, most recently run first. With count_only=true it answers {"count": n} (QueryHistoryCountResponse), the number of entries the filters match. Empty, or a count of 0, when ZO_QUERY_HISTORY_ENABLED is false.

get/api/{org_id}/query_history

Request

Path parameters

org_idstring required

Organization name

Query parameters

sourcestring

Comma list of sources (logs, traces, metrics, dbm, profiles); omitted means metrics.

statusstring

ok or error.

streamstring

Exact stream name the entry ran on.

qstring

Case-insensitive substring of the query text or the stream names.

starredboolean

Only starred (true) or only unstarred (false) entries.

ran_frominteger

Entries last run at or after this time, in microseconds.

ran_tointeger

Entries last run at or before this time, in microseconds.

limitinteger

Defaults to 50, at most 200.

offsetinteger

Entries to skip, for paging. Defaults to 0, at most 9223372036854775807.

count_onlyboolean

Answer {"count": n}, the number of entries the filters match, instead of the entries.

Response

The entries, or with count_only=true the count

OR

Changes

No recorded changes to this operation across all 1 revision of this API.