TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Interface DeviceStatisticsQuery

    interface DeviceStatisticsQuery {
        end_date?: string | Date;
        periodicity?: "hour" | "day" | "month";
        start_date?: string | Date;
        timezone?: string;
    }
    Index

    Properties

    end_date?: string | Date

    End of the range. Must not be before start_date.

    periodicity?: "hour" | "day" | "month"

    Interval between items. Also sets the default range and the longest range allowed: 1 month for hour, 3 months for day, and 12 months for month.

    "hour"
    
    start_date?: string | Date

    Start of the range. Send it together with end_date. If either one is missing, the default range for periodicity is used: the last 24 hours for hour, the last 3 months for day, and the last 12 months for month.

    timezone?: string

    IANA timezone used to read start_date and end_date as local times. Send the dates as strings without a UTC offset when you set it.

    "UTC"