{
"id": "app.didpic.admin.stats",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"service",
"env",
"cursors",
"actors",
"resync",
"scan",
"push",
"moderation"
],
"properties": {
"env": {
"type": "string"
},
"push": {
"ref": "#queueStats",
"type": "ref"
},
"scan": {
"ref": "#queueStats",
"type": "ref"
},
"actors": {
"type": "integer",
"minimum": 0
},
"resync": {
"ref": "#queueStats",
"type": "ref"
},
"cursors": {
"type": "array",
"items": {
"ref": "#cursorState",
"type": "ref"
}
},
"service": {
"type": "string"
},
"moderation": {
"type": "object",
"required": [
"openReports",
"openAppeals"
],
"properties": {
"openAppeals": {
"type": "integer",
"minimum": 0
},
"openReports": {
"type": "integer",
"minimum": 0
}
}
}
}
},
"encoding": "application/json"
},
"description": "System observability snapshot for the admin dashboard. Cursors per ingester source, queue counts (resync/scan/push), moderation queue counts."
},
"queueStats": {
"type": "object",
"required": [
"pending",
"inProgress",
"failed"
],
"properties": {
"failed": {
"type": "integer",
"minimum": 0
},
"pending": {
"type": "integer",
"minimum": 0
},
"inProgress": {
"type": "integer",
"minimum": 0
}
}
},
"cursorState": {
"type": "object",
"required": [
"sourceId",
"value",
"updatedAt",
"ageSeconds"
],
"properties": {
"value": {
"type": "string"
},
"sourceId": {
"type": "string"
},
"updatedAt": {
"type": "string",
"format": "datetime"
},
"ageSeconds": {
"type": "integer",
"minimum": 0
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}