Description
Returns a count of active sessions in a supplied time period and a total count of all sessions.
Parameters
Name | Type | Description |
---|---|---|
end | String, required | An ISO datetime. Get sessions last updated before this time |
start | String, required | An ISO datetime. Get sessions last updated after this time |
Example Request
function(params, credentials) {
let result = this.callWorkerMethod('sitesessionstore', 'getActiveStats', {
"start":"2023-08-01T13:20:00Z",
"end":"2023-08-01T15:00:00Z"
});
return result;
}
Response
Name | Type | Description |
---|---|---|
numActiveSessions | Integer | The total number of sessions |
numActiveSessionsInPeriod | Integer | The number of active sessions in the defined time period |
Example Response
{
"id": 85,
"result": {
"numActiveSessions": 1,
"numActiveSessionsInPeriod": 0
},
"jsonrpc": "2.0"
}
Last modified on 1 August 2023