import { GetCreatorViewershipMetricsRequest } from "livepeer/models/operations";
let value: GetCreatorViewershipMetricsRequest = {};
Field | Type | Required | Description |
---|---|---|---|
from |
operations.QueryParamFrom | ➖ | Start timestamp for the query range (inclusive) |
to |
operations.QueryParamTo | ➖ | End timestamp for the query range (exclusive) |
timeStep |
operations.QueryParamTimeStep | ➖ | The time step to aggregate viewership metrics by |
assetId |
string | ➖ | The asset ID to filter metrics for |
streamId |
string | ➖ | The stream ID to filter metrics for |
creatorId |
string | ➖ | The creator ID to filter the query results |
breakdownBy |
operations.GetCreatorViewershipMetricsQueryParamBreakdownBy[] | ➖ | The list of fields to break down the query results. Specify this query-string multiple times to break down by multiple fields. |