Requesting description for last activity response parameter.

20 views
Skip to first unread message

Praveen Krishnamoorthy

unread,
Feb 16, 2019, 7:53:18 PM2/16/19
to Project Jupyter
Hi,

I posting this question, to get clarification on the response parameter send by the jupyterhub server while sending REST api request to fetch the list of users.

REST API Call : curl -XGET -s -k https://localhost:9443/hub/api/users -H "Authorization: token $apitoken" | jq .

Response :

{

  "kind": "user",

  "name": "jovyan",

  "admin": true,

  "groups": [],

  "server": "/user/jovyan/",

  "pending": null,

  "created": "2019-02-16T20:58:41.009053Z",

  "last_activity": "2019-02-16T23:59:34.296819Z",

  "servers": {

    "": {

      "name": "",

      "last_activity": "2019-02-16T23:50:37.249000Z",

      "started": "2019-02-16T21:12:55.161109Z",

      "pending": null,

      "ready": true,

      "state": {

        "pid": 72

      },

      "url": "/user/jovyan/",

      "progress_url": "/hub/api/users/jovyan/server/progress"

    }

  },

  "auth_state": null

}


Could anyone say me the description/difference between the last activity 2 parameter(highlighted in red) ?


Thanks,

Praveen.

Roland Weber

unread,
Feb 21, 2019, 2:09:13 AM2/21/19
to Project Jupyter
Hello Praveen,

I'd say one is the last activity of the user in general, the other is the last activity of that particular server of the user.

The REST API looks as if a user can start multiple servers:

So the existing servers may have different last activity times. And if the user deletes a server, that would update the user's last activity, while leaving the timestamps for the remaining servers unchanged.

Hope that helps,
  Roland

Reply all
Reply to author
Forward
0 new messages