dev.cocore.compute.modelActivity

cocore.dev

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Aggregate receipt activity per model and per time window. Walks the most-recent indexed receipts (capped at 5000), groups by `body.model`, and tallies requests + tokens across the hour/day/week/month windows, with per-provider breakdowns.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "generatedAt": {
              "format": "datetime",
              "type": "string"
            },
            "models": {
              "items": {
                "properties": {
                  "byProvider": {
                    "items": {
                      "properties": {
                        "did": {
                          "format": "did",
                          "type": "string"
                        },
                        "stats": {
                          "ref": "dev.cocore.defs#activityWindows",
                          "type": "ref"
                        }
                      },
                      "required": [
                        "did",
                        "stats"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "modelId": {
                    "type": "string"
                  },
                  "totals": {
                    "ref": "dev.cocore.defs#activityWindows",
                    "type": "ref"
                  }
                },
                "required": [
                  "modelId",
                  "totals",
                  "byProvider"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "generatedAt",
            "models"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "dev.cocore.compute.modelActivity",
  "lexicon": 1
}

Validate Record

Validate a record against dev.cocore.compute.modelActivity

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:5quuhkmwe2q4k3azfsgg7kdz
CID
bafyreiadqfgpn32doyy44rr3zp45ktksnc5qpc7rmugeuerrgo7rauafaq
Indexed At
2026-06-21 00:58 UTC
AT-URI
at://did:plc:5quuhkmwe2q4k3azfsgg7kdz/com.atproto.lexicon.schema/dev.cocore.compute.modelActivity

Referenced Schemas (1)

  • dev.cocore.defs#activityWindows

Similar Lexicons

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

  • Network latency rollup derived purely from indexed receipts' signed `startedAt`/`completedAt` pairs — the last ≤100 per group (overall, per-provider, per-model). No side metrics store: the receipts are the source of…

Lexicon Garden

@