pub.chive.admin.getMetricsOverview
Get metrics overview with trending eprints for a given period
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · query
| Kind | query |
|---|---|
| Authority | admin.chive.pub |
| Indexed |
Checks
Validunlimited-stringdefs.trendingEprint.properties.authorHandleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.trendingEprint.properties.titleNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get metrics overview with trending eprints for a given period",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "AdminRequired"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"period": {
"description": "Period information",
"ref": "#periodInfo",
"type": "ref"
},
"trending": {
"description": "Trending eprints in the period",
"items": {
"ref": "#trendingEprint",
"type": "ref"
},
"type": "array"
}
},
"type": "object"
}
},
"parameters": {
"properties": {
"days": {
"default": 7,
"description": "Number of days to aggregate",
"maximum": 90,
"minimum": 1,
"type": "integer"
}
},
"type": "params"
},
"type": "query"
},
"periodInfo": {
"description": "Time period information",
"properties": {
"days": {
"description": "Number of days in the period",
"type": "integer"
},
"endDate": {
"description": "Period end date",
"format": "datetime",
"type": "string"
},
"startDate": {
"description": "Period start date",
"format": "datetime",
"type": "string"
}
},
"required": [
"days",
"startDate",
"endDate"
],
"type": "object"
},
"trendingEprint": {
"description": "A trending eprint with engagement metrics",
"properties": {
"authorDid": {
"description": "Author DID",
"format": "did",
"type": "string"
},
"authorHandle": {
"description": "Author handle",
"type": "string"
},
"downloads": {
"description": "Total downloads in period",
"type": "integer"
},
"title": {
"description": "Eprint title",
"type": "string"
},
"uri": {
"description": "Eprint AT URI",
"format": "at-uri",
"type": "string"
},
"velocity": {
"description": "Engagement velocity in milliunits",
"type": "integer"
},
"views": {
"description": "Total views in period",
"type": "integer"
}
},
"required": [
"uri",
"title",
"views",
"downloads"
],
"type": "object"
}
},
"id": "pub.chive.admin.getMetricsOverview",
"lexicon": 1,
"revision": 1
}