dev.knotless.getUsage

How an appview is used, day by day, for its operators: it takes a service token for this method from one of the accounts it names as its operators, or the session cookie of one logged in to its pages. What it counted itself (requests, page views, visitors by a hash forgotten each day, what its handlers saw) beside what its index says the network wrote.

Details · query
Kindquery
Authorityknotless.dev
Indexed

Query

query · GET

Parameters

query string

days

integer

How many days back, today (UTC) the last.

  • minimum: 1
  • maximum: 400
  • default: 14

Output

application/json

agents

array

Requests by the User-Agent of each crawler or script, most first: the bot client, by name. At most twenty, and at most the last 30 days.

itemsref
Reference

clients

requiredarray

Requests by kind of client: browser, git, cli, bot or other.

itemsref
Reference

days

requiredarray

Each day asked about, oldest first.

itemsref
Reference

events

array

What the handlers saw, by name and subject.

itemsref
Reference

Why what the handlers saw failed, most often first: at most a hundred, and at most the last 30 days.

itemsref
Reference

funnels

array

Of the accounts that did one thing in the days asked, not having in the 30 days before, how many went on to another.

itemsref
Reference

hours

array

Each hour the appview took requests in, oldest first: when failures and slow answers came.

itemsref
Reference
Reference

pages

requiredarray

Pages drawn in a browser, by the route that drew them.

itemsref
Reference

referrers

requiredarray

The sites that sent visitors to the pages, by host.

itemsref
Reference

routes

requiredarray

Requests by route, busiest first: the hundred busiest, and every write and every route with a request over two seconds.

itemsref
Reference

The index's statements that took a tenth of a slow request or more, the most time first: at most fifty, and at most the last 30 days.

itemsref
Reference

#count

object

Something, and how many times.

Properties

n

requiredinteger
  • minimum: 0

name

requiredstring

#day

object

One day, in UTC.

Properties

authors

requiredinteger

Accounts that made a repository, pushed, or wrote in a thread.

  • minimum: 0

checks

requiredinteger

Check runs started.

  • minimum: 0

comments

requiredinteger
  • minimum: 0

day

requiredstring

YYYY-MM-DD.

errors

requiredinteger

Of those, failed (5xx).

  • minimum: 0

issues

requiredinteger
  • minimum: 0

pulls

requiredinteger
  • minimum: 0

pushes

requiredinteger
  • minimum: 0

repos

requiredinteger

Repositories made, from the index.

  • minimum: 0

requests

requiredinteger

Requests taken, but for health checks.

  • minimum: 0

views

requiredinteger

Pages they drew.

  • minimum: 0

visitors

requiredinteger

People whose browsers drew a page, each once.

  • minimum: 0

#event

object

Something the handlers saw, over the days asked.

Properties

accounts

requiredinteger

Accounts that did anything of this name in the days asked, at most the last 30, as only the signed-in are known and none is kept longer.

  • minimum: 0

calls

requiredinteger
  • minimum: 0

failed

requiredinteger
  • minimum: 0

meanMs

requiredinteger

Mean milliseconds; 0 for what is not timed.

  • minimum: 0

name

requiredstring

What it was.

  • knownValues: mcp.tool | mcp.resource | mcp.signin | git.fetch | cli.version | gateway.delegated | gateway.push | gateway.commit | gateway.served

subject

requiredstring

Of what: the tool, the repository as asked for, the version; empty for none.

#failure

object

Why something the handlers saw failed, and how often.

Properties

error

requiredstring

What it answered, cut at 300 characters.

n

requiredinteger

Times it failed so.

  • minimum: 0

name

requiredstring

The event's name, as an event's.

subject

requiredstring

Of what, as an event's.

#funnel

object

Accounts that did one thing in the days asked, not having in the 30 days before, and of them those that did the other then or within 30 days.

Properties

from

requiredstring

An event's name.

reached

requiredinteger
  • minimum: 0

started

requiredinteger
  • minimum: 0

to

requiredstring

An event's name.

#hour

object

Properties

errors

requiredinteger

Of those, the ones it failed (5xx).

  • minimum: 0

hour

requiredstring

The hour, as YYYY-MM-DDTHH in UTC.

overTwo

requiredinteger

Of those, the ones that took over two seconds.

  • minimum: 0

requests

requiredinteger
  • minimum: 0

#network

object

The network as the index has it now.

Properties

accounts

requiredinteger

Accounts that ever made a repository, pushed, or wrote in a thread.

  • minimum: 0

authorsMonth

requiredinteger

And in the last 30.

  • minimum: 0

authorsWeek

requiredinteger

Accounts that did so in the last 7 days.

  • minimum: 0

repos

requiredinteger
  • minimum: 0

#route

object

A route, by the pattern it matched, and how it answered.

Properties

errors

requiredinteger

Failed (5xx).

  • minimum: 0

meanMs

requiredinteger

Mean milliseconds to the answer's head.

  • minimum: 0

method

requiredstring

The HTTP method.

overHalf

requiredinteger

Requests that took over half a second.

  • minimum: 0

overTwo

requiredinteger

Requests that took over two seconds.

  • minimum: 0

requests

requiredinteger
  • minimum: 0

route

requiredstring

Its pattern, as /api/{authority}/{repo}/tree.

surface

requiredstring

Where it is.

  • knownValues: pages | api | git | xrpc | mcp | install | other

#statement

object

A statement the index ran slowly, and how often.

Properties

calls

requiredinteger

Times it ran slowly.

  • minimum: 0

maxMs

requiredinteger

The longest of them, in milliseconds.

  • minimum: 0

meanMs

requiredinteger

Mean milliseconds of those runs.

  • minimum: 0

sql

requiredstring

As written, its whitespace closed up and cut at 500 characters, with no value it was given.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • What an appview shows anyone of how it is used: the network as its index has it now, and each of the last 30 days, what the network wrote in it and how many people drew its pages (by a hash forgotten each day). Its operators read the rest with dev.knotless.getUsage.