Skip to content

Instantly share code, notes, and snippets.

@Deborah-Digges
Last active February 10, 2020 16:39
Show Gist options
  • Save Deborah-Digges/0ae39b1302cb25a4d7aa1766986207db to your computer and use it in GitHub Desktop.
Save Deborah-Digges/0ae39b1302cb25a4d7aa1766986207db to your computer and use it in GitHub Desktop.
Internal API for querying daily stats data

Path

{tenant}/tlogs/stats?from={fromDate}&to={toDate}

Path Params

  • tenant
  • fromDate: Date string in YYYY-mm-dd format
  • toDate: Date string in YYYY-mm-dd format

Response

[{
	"date": "2019-02-04T00:00:00.000Z",
	"logins": 0,
	"signups": 0,
	"leaked_passwords": 0
}]

Update: we don't want to expose categories as we don't have official categories chosen yet

@Deborah-Digges
Copy link
Author

For reference, this is what the current stats response from the daily/stats API exposed by api2 looks like.

[{
	"date": "2019-02-04T00:00:00.000Z",
	"logins": 0,
	"signups": 0,
	"leaked_passwords": 0,
	"updated_at": "2019-02-04T23:30:06.758Z",
	"created_at": "2019-02-04T19:30:04.687Z"
}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment