pub.chive.metrics.recordDwellTime
Record dwell time for a clicked search result (called via beacon API)
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · procedure
| Kind | procedure |
|---|---|
| Authority | metrics.chive.pub |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.impressionIdNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Record dwell time for a clicked search result (called via beacon API)",
"errors": [
{
"name": "InvalidRequest"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"dwellTimeMs": {
"description": "Time spent on the page in milliseconds",
"minimum": 0,
"type": "integer"
},
"impressionId": {
"description": "UUID of the search impression",
"type": "string"
},
"uri": {
"description": "AT-URI of the viewed eprint",
"format": "at-uri",
"type": "string"
}
},
"required": [
"impressionId",
"uri",
"dwellTimeMs"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"success": {
"description": "Whether the dwell time was recorded",
"type": "boolean"
}
},
"required": [
"success"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "pub.chive.metrics.recordDwellTime",
"lexicon": 1,
"revision": 1
}