full diff

pub.chive.admin.getViewDownloadTimeSeries

From
bafyreibq2rkkave7far7d5pjfry7xihog5qi3htuoftbvs4rqb332g5hba indexed 2026-06-18 13:14 UTC View this version
To
bafyreibq2rkkave7far7d5pjfry7xihog5qi3htuoftbvs4rqb332g5hba indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Get view and download time series data",
66 "errors": [
77 {
88 "name": "AuthenticationRequired"
99 },
1010 {
1111 "name": "AdminRequired"
1212 }
1313 ],
1414 "output": {
1515 "encoding": "application/json",
1616 "schema": {
1717 "properties": {
1818 "buckets": {
1919 "description": "Time series data buckets",
2020 "items": {
2121 "ref": "#timeSeriesBucket",
2222 "type": "ref"
2323 },
2424 "type": "array"
2525 },
2626 "timestamp": {
2727 "description": "Query timestamp",
2828 "format": "datetime",
2929 "type": "string"
3030 }
3131 },
3232 "required": [
3333 "buckets",
3434 "timestamp"
3535 ],
3636 "type": "object"
3737 }
3838 },
3939 "parameters": {
4040 "properties": {
4141 "granularity": {
4242 "description": "Time bucket granularity",
4343 "knownValues": [
4444 "hour",
4545 "day",
4646 "week"
4747 ],
4848 "type": "string"
4949 },
5050 "uri": {
5151 "description": "Specific eprint URI (aggregate if omitted)",
5252 "format": "at-uri",
5353 "type": "string"
5454 }
5555 },
5656 "type": "params"
5757 },
5858 "type": "query"
5959 },
6060 "timeSeriesBucket": {
6161 "description": "A time series data point for views and downloads",
6262 "properties": {
6363 "downloads": {
6464 "description": "Download count in this bucket",
6565 "type": "integer"
6666 },
6767 "timestamp": {
6868 "description": "Bucket timestamp",
6969 "format": "datetime",
7070 "type": "string"
7171 },
7272 "views": {
7373 "description": "View count in this bucket",
7474 "type": "integer"
7575 }
7676 },
7777 "required": [
7878 "timestamp",
7979 "views",
8080 "downloads"
8181 ],
8282 "type": "object"
8383 }
8484 },
8585 "id": "pub.chive.admin.getViewDownloadTimeSeries",
8686 "lexicon": 1,
8787 "revision": 1
8888}