Skip to navigation

Get Usage

Records held and searched, per index and in total, over the last days days.

Authentication

AuthorizationBearer

A write key, issued by Captain. Server side only. Sent as Authorization: Bearer <key>.

Query parameters

daysintegerOptional1-90Defaults to 30

Response

usage
daysintegerOptional
start_datestringOptional
end_datestringOptional
indexeslist of objectsOptional
totalobjectOptional
partialbooleanOptional

true when the search log was too large to read whole within one request’s budget: the numbers cover what was counted

partial_reasonenumOptional

row_budget: more searches than one request holds (500,000); time_budget: more than about 3.5 seconds of reading; counting (usage): days still being counted

Allowed values: