pub.chive.admin.getViewDownloadTimeSeries
Get view and download time series data
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.main.parameters.properties.granularityNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get view and download time series data",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "AdminRequired"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"buckets": {
"description": "Time series data buckets",
"items": {
"ref": "#timeSeriesBucket",
"type": "ref"
},
"type": "array"
},
"timestamp": {
"description": "Query timestamp",
"format": "datetime",
"type": "string"
}
},
"required": [
"buckets",
"timestamp"
],
"type": "object"
}
},
"parameters": {
"properties": {
"granularity": {
"description": "Time bucket granularity",
"knownValues": [
"hour",
"day",
"week"
],
"type": "string"
},
"uri": {
"description": "Specific eprint URI (aggregate if omitted)",
"format": "at-uri",
"type": "string"
}
},
"type": "params"
},
"type": "query"
},
"timeSeriesBucket": {
"description": "A time series data point for views and downloads",
"properties": {
"downloads": {
"description": "Download count in this bucket",
"type": "integer"
},
"timestamp": {
"description": "Bucket timestamp",
"format": "datetime",
"type": "string"
},
"views": {
"description": "View count in this bucket",
"type": "integer"
}
},
"required": [
"timestamp",
"views",
"downloads"
],
"type": "object"
}
},
"id": "pub.chive.admin.getViewDownloadTimeSeries",
"lexicon": 1,
"revision": 1
}