pub.chive.metrics.getMetrics

lexicons.governance.chive.pub

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get comprehensive metrics for an eprint",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "totalDownloads": {
              "description": "Total download count",
              "minimum": 0,
              "type": "integer"
            },
            "totalViews": {
              "description": "Total view count",
              "minimum": 0,
              "type": "integer"
            },
            "uniqueViews": {
              "description": "Unique viewer count",
              "minimum": 0,
              "type": "integer"
            },
            "views24h": {
              "description": "Views in last 24 hours",
              "minimum": 0,
              "type": "integer"
            },
            "views30d": {
              "description": "Views in last 30 days",
              "minimum": 0,
              "type": "integer"
            },
            "views7d": {
              "description": "Views in last 7 days",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "totalViews",
            "uniqueViews",
            "totalDownloads",
            "views24h",
            "views7d",
            "views30d"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "AT-URI of the eprint",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "pub.chive.metrics.getMetrics",
  "lexicon": 1,
  "revision": 1
}

Validate Record

Validate a record against pub.chive.metrics.getMetrics

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:egjghlwgts2hlcer2txilxeh
CID
bafyreidzvithrbc5f42qo7t5tvzgg44arxnwpk4z72tmmv2tduecrm6nje
Indexed At
2026-06-18 13:14 UTC
AT-URI
at://did:plc:egjghlwgts2hlcer2txilxeh/com.atproto.lexicon.schema/pub.chive.metrics.getMetrics

Similar Lexicons

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

Lexicon Garden

@