full diff

pub.chive.admin.getMetricsOverview

From
bafyreieo2jfjl4e4ewfxa2fwbbhsxoy53lg4kphzyalpawbxigk73lgdou indexed 2026-06-18 13:14 UTC View this version
To
bafyreieo2jfjl4e4ewfxa2fwbbhsxoy53lg4kphzyalpawbxigk73lgdou 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 metrics overview with trending eprints for a given period",
66 "errors": [
77 {
88 "name": "AuthenticationRequired"
99 },
1010 {
1111 "name": "AdminRequired"
1212 }
1313 ],
1414 "output": {
1515 "encoding": "application/json",
1616 "schema": {
1717 "properties": {
1818 "period": {
1919 "description": "Period information",
2020 "ref": "#periodInfo",
2121 "type": "ref"
2222 },
2323 "trending": {
2424 "description": "Trending eprints in the period",
2525 "items": {
2626 "ref": "#trendingEprint",
2727 "type": "ref"
2828 },
2929 "type": "array"
3030 }
3131 },
3232 "type": "object"
3333 }
3434 },
3535 "parameters": {
3636 "properties": {
3737 "days": {
3838 "default": 7,
3939 "description": "Number of days to aggregate",
4040 "maximum": 90,
4141 "minimum": 1,
4242 "type": "integer"
4343 }
4444 },
4545 "type": "params"
4646 },
4747 "type": "query"
4848 },
4949 "periodInfo": {
5050 "description": "Time period information",
5151 "properties": {
5252 "days": {
5353 "description": "Number of days in the period",
5454 "type": "integer"
5555 },
5656 "endDate": {
5757 "description": "Period end date",
5858 "format": "datetime",
5959 "type": "string"
6060 },
6161 "startDate": {
6262 "description": "Period start date",
6363 "format": "datetime",
6464 "type": "string"
6565 }
6666 },
6767 "required": [
6868 "days",
6969 "startDate",
7070 "endDate"
7171 ],
7272 "type": "object"
7373 },
7474 "trendingEprint": {
7575 "description": "A trending eprint with engagement metrics",
7676 "properties": {
7777 "authorDid": {
7878 "description": "Author DID",
7979 "format": "did",
8080 "type": "string"
8181 },
8282 "authorHandle": {
8383 "description": "Author handle",
8484 "type": "string"
8585 },
8686 "downloads": {
8787 "description": "Total downloads in period",
8888 "type": "integer"
8989 },
9090 "title": {
9191 "description": "Eprint title",
9292 "type": "string"
9393 },
9494 "uri": {
9595 "description": "Eprint AT URI",
9696 "format": "at-uri",
9797 "type": "string"
9898 },
9999 "velocity": {
100100 "description": "Engagement velocity in milliunits",
101101 "type": "integer"
102102 },
103103 "views": {
104104 "description": "Total views in period",
105105 "type": "integer"
106106 }
107107 },
108108 "required": [
109109 "uri",
110110 "title",
111111 "views",
112112 "downloads"
113113 ],
114114 "type": "object"
115115 }
116116 },
117117 "id": "pub.chive.admin.getMetricsOverview",
118118 "lexicon": 1,
119119 "revision": 1
120120}