2020-01-01 22:37:59 +01:00
|
|
|
---
|
|
|
|
title: Activity
|
|
|
|
description: Represents a weekly bucket of instance activity.
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: entities
|
|
|
|
---
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
|
|
|
"week": "1574640000",
|
|
|
|
"statuses": "37125",
|
|
|
|
"logins": "14239",
|
|
|
|
"registrations": "542"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `week` {#week}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** Midnight at the first day of the week.\
|
|
|
|
**Type:** String \(UNIX Timestamp\)\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.1.2
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `statuses` {#statuses}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** Statuses created since the week began.\
|
|
|
|
**Type:** String \(cast from an integer\)\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.1.2
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `logins` {#logins}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** User logins since the week began.\
|
|
|
|
**Type:** String \(cast from an integer\)\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.1.2
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `registrations` {#registrations}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** User registrations since the week began.\
|
|
|
|
**Type:** String \(cast from an integer\)\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.1.2
|
|
|
|
|
|
|
|
## See also
|
|
|
|
|
|
|
|
* [GET /api/v1/instance/activity](../methods/instance/#weekly-activity)
|
|
|
|
|
|
|
|
{{< page-ref page="methods/instance.md" >}}
|
|
|
|
|
|
|
|
{{< caption-link url="https://github.com/tootsuite/mastodon/blob/master/app/controllers/api/v1/instances/activity_controller.rb" caption="app/controllers/api/v1/instances/activity\_controller.rb" >}}
|
|
|
|
|
|
|
|
|
|
|
|
|