StreamStat
is used to represent the views of a particular stream. It provides information on the number of viewers that began or stopped watching and also the number of active viewers. It is also aggregated via the stat period. These stat periods are five minute intervals.
Field | Description |
---|---|
accountId | The account ID of the user that owns the stream |
streamId | A unique identifier of the stream |
from | The start date of the stat period |
to | The end date of the stat period |
active | The number of active viewers at the end of the stat period |
numStarted | The number of viewers that began watching in the stat period |
numEnded | The number of viewers that stopped watching in the stat period |
Example
An example of how a query with this model can be made, viewing streamStats
with pagination.
{
streamStatPagination( page: 1, perPage: 10) {
count,
items {
accountId
from
to
active
numStarted
numEnded
streamId
}
pageInfo {
currentPage
perPage
pageCount
itemCount
hasNextPage
hasPreviousPage
}
}
}