at.happyproto.fleet.getCapacity
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"collection": {
"properties": {
"configured": {
"type": "boolean"
},
"crawl": {
"type": "string"
},
"nsid": {
"type": "string"
},
"records": {
"type": "integer"
},
"subscribers": {
"type": "integer"
}
},
"required": [
"nsid"
],
"type": "object"
},
"main": {
"description": "Store capacity: the latest totals, a daily trend, per-collection counts and what each tenant holds. Proxied from the provisioner. Admin only.",
"errors": [
{
"description": "This endpoint requires an authenticated caller.",
"name": "AuthRequired"
},
{
"description": "The caller is not HappyProto staff, or the provisioner does not treat them as staff.",
"name": "Forbidden"
},
{
"description": "The provisioner refused the range or grain, for example a range that runs backwards or is too long.",
"name": "InvalidRequest"
},
{
"description": "Passed through from the provisioner.",
"name": "NotFound"
},
{
"description": "Passed through from the provisioner.",
"name": "InvalidSlug"
},
{
"description": "Passed through from the provisioner.",
"name": "SlugTaken"
},
{
"description": "Passed through from the provisioner.",
"name": "NotEntitled"
},
{
"description": "Passed through from the provisioner.",
"name": "InstanceLimit"
},
{
"description": "Passed through from the provisioner.",
"name": "NoCapacity"
},
{
"description": "Passed through from the provisioner.",
"name": "OperationInProgress"
},
{
"description": "The provisioner could not complete the request.",
"name": "Upstream"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"collections": {
"items": {
"ref": "#collection",
"type": "ref"
},
"type": "array"
},
"latest": {
"ref": "#totals",
"type": "ref"
},
"tenants": {
"items": {
"ref": "#tenant",
"type": "ref"
},
"type": "array"
},
"trend": {
"items": {
"ref": "#trendPoint",
"type": "ref"
},
"type": "array"
}
},
"required": [
"trend",
"collections",
"tenants"
],
"type": "object"
}
},
"parameters": {
"properties": {
"from": {
"description": "Start of the range. Defaults to 30 days before `to`.",
"format": "datetime",
"type": "string"
},
"to": {
"description": "End of the range. Defaults to now.",
"format": "datetime",
"type": "string"
}
},
"type": "params"
},
"type": "query"
},
"tenant": {
"properties": {
"apiClients": {
"type": "integer"
},
"collectionCount": {
"type": "integer"
},
"diskBytes": {
"type": "integer"
},
"gaps7d": {
"description": "Hours with no usage report in the last 7 days.",
"type": "integer"
},
"id": {
"type": "string"
},
"lastHour": {
"ref": "#tenantLastHour",
"type": "ref"
},
"plan": {
"type": "string"
},
"recordsVisible": {
"type": "integer"
},
"seats": {
"type": "integer"
},
"slug": {
"type": "string"
}
},
"required": [
"id",
"slug"
],
"type": "object"
},
"tenantLastHour": {
"properties": {
"cpuUsec": {
"description": "CPU time used in the hour, in microseconds.",
"type": "integer"
},
"egressBytes": {
"type": "integer"
},
"hour": {
"format": "datetime",
"type": "string"
},
"memAvgBytes": {
"type": "integer"
}
},
"required": [
"hour"
],
"type": "object"
},
"totals": {
"description": "The newest hourly snapshot of the shared store. Absent before the first one.",
"properties": {
"databaseBytes": {
"type": "integer"
},
"diskCapacityBytes": {
"type": "integer"
},
"diskFreeBytes": {
"type": "integer"
},
"feedBytes": {
"type": "integer"
},
"hour": {
"format": "datetime",
"type": "string"
},
"overlayBytes": {
"type": "integer"
},
"records": {
"type": "integer"
},
"recordsBytes": {
"type": "integer"
},
"recordsIndexBytes": {
"type": "integer"
}
},
"required": [
"hour"
],
"type": "object"
},
"trendPoint": {
"properties": {
"databaseBytes": {
"type": "integer"
},
"day": {
"description": "UTC date, YYYY-MM-DD.",
"type": "string"
},
"records": {
"type": "integer"
}
},
"required": [
"day"
],
"type": "object"
}
},
"id": "at.happyproto.fleet.getCapacity",
"lexicon": 1
}
Metadata
- DID
-
did:plc:mo7vq4jbioxwafy5zkcc3eux - CID
-
bafyreibxd2ydhlxhaoa2t4cjei4xinanjfhtq3pser27plp3aeepcho3nm - Indexed At
- 2026-10-27 18:16 UTC
- AT-URI
-
at://did:plc:mo7vq4jbioxwafy5zkcc3eux/com.atproto.lexicon.schema/at.happyproto.fleet.getCapacity
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
One tenant's metered usage by hour or day, with the hours that have no report. Proxied from the provisioner. Admin only.
-
Fleet and per-instance growth rates from instance_daily_deltas. Counter resets are excluded by the view, so a wiped volume lowers no rate. Admin only.
-
Disk and memory distribution, and bytes per record. Memory is reported as separate anonymous and file-backed figures and is never totalled. Admin only.