io.atcr.hold.stats

atcr.io

Documentation

Repository statistics stored in the hold's embedded PDS. Tracks pull/push counts per owner+repository combination. Record key is deterministic: base32(sha256(ownerDID + "/" + repository)[:16]).

main record

Repository statistics stored in the hold's embedded PDS. Tracks pull/push counts per owner+repository combination. Record key is deterministic: base32(sha256(ownerDID + "/" + repository)[:16]).

Record Key any Any valid record key

Properties

lastPull string datetime Optional

RFC3339 timestamp of last pull

lastPush string datetime Optional

RFC3339 timestamp of last push

ownerDid string did Required

DID of the image owner (e.g., did:plc:xyz123)

pullCount integer Required

Number of manifest downloads

minimum: 0
pushCount integer Required

Number of manifest uploads

minimum: 0
repository string Required

Repository name (e.g., myapp)

maxLength: 256 bytes
updatedAt string datetime Required

RFC3339 timestamp of when this record was last updated

View raw schema
{
  "key": "any",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "ownerDid",
      "repository",
      "pullCount",
      "pushCount",
      "updatedAt"
    ],
    "properties": {
      "lastPull": {
        "type": "string",
        "format": "datetime",
        "description": "RFC3339 timestamp of last pull"
      },
      "lastPush": {
        "type": "string",
        "format": "datetime",
        "description": "RFC3339 timestamp of last push"
      },
      "ownerDid": {
        "type": "string",
        "format": "did",
        "description": "DID of the image owner (e.g., did:plc:xyz123)"
      },
      "pullCount": {
        "type": "integer",
        "minimum": 0,
        "description": "Number of manifest downloads"
      },
      "pushCount": {
        "type": "integer",
        "minimum": 0,
        "description": "Number of manifest uploads"
      },
      "updatedAt": {
        "type": "string",
        "format": "datetime",
        "description": "RFC3339 timestamp of when this record was last updated"
      },
      "repository": {
        "type": "string",
        "maxLength": 256,
        "description": "Repository name (e.g., myapp)"
      }
    }
  },
  "description": "Repository statistics stored in the hold's embedded PDS. Tracks pull/push counts per owner+repository combination. Record key is deterministic: base32(sha256(ownerDID + \"/\" + repository)[:16])."
}

Lexicon Garden

@