Skip to main content
POST
Count cluster log lines per interval and level (browser session)

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Path Parameters

cluster_id
string<uuid>
required

Body

application/json
step_seconds
integer
required

The width of one bar in seconds: at least 10, and at most 500 bars over the window.

Required range: x >= 10
start
string
end
string
since
string
namespaces
string[]
pods
string[]
containers
string[]
source
enum<string>
default:auto

The same source choice as the history query, so the bars and the lines come from one store.

Available options:
auto,
connected,
ankra_hosted

Response

Line counts per bar and level

provider
string
source
string

ankra_hosted when Ankra hosted logs answered; absent for a connected source.

note
string
cluster_attribution
object
start
string

The first bar's start: the requested start taken down to the whole second.

end
string

The last bar's end: the requested end taken up to the whole second. The last bar is shorter than step_seconds when the window is not a whole number of steps.

step_seconds
integer
exact
boolean

True when every count is the store's own over every line of its bar; false when part was sampled or capped, which note then says.

kept_days
integer | null

How many days the store keeps a line: 7 for Ankra hosted logs, null for a store of your own.

buckets
object[]

Every bar of the window in order, start + n * step_seconds. A bar with no lines is zeros.