getStatisticsRangDay(data: IGetStatisticsRangDay)
Requires:
@tuya-miniapp/cloud-api≥1.0.5
Description
Retrieve device statistics for a date range with a daily interval.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request body |
Return Value
Type: Promise<IStatisticsData>
IStatisticsData (keys are dates, etc.; see the sample response in the docs)
Referenced Types
type
IStatisticsDataFlattened data from interval statistics APIs: keys are time slices (e.g., 15-min buckets, hour, day, month; format varies by API), values are statistical result strings; missing data may be placeholders such as `'#'` (see the response examples of each API).Valid Values
ICommonGetStatisticsRang.type
| Value | Description | Since |
|---|---|---|
sum | - | - |
avg | - | - |
minux | - | - |
max | - | - |
min | - | - |
count | - | - |
recent | - | - |