# File generated from our OpenAPI spec by Stainless.

from typing import List
from datetime import datetime

from pydantic import Field as FieldInfo

from ...._models import BaseModel

__all__ = ["RouteTimeseriesResponse", "Meta", "MetaDateRange", "SerieIPV4_24s", "SerieIPV6_48s"]


class MetaDateRange(BaseModel):
    end_time: datetime = FieldInfo(alias="endTime")
    """Adjusted end of date range."""

    start_time: datetime = FieldInfo(alias="startTime")
    """Adjusted start of date range."""


class Meta(BaseModel):
    date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")


class SerieIPV4_24s(BaseModel):
    timestamps: List[datetime]

    values: List[int]


class SerieIPV6_48s(BaseModel):
    timestamps: List[datetime]

    values: List[int]


class RouteTimeseriesResponse(BaseModel):
    meta: Meta

    serie_ipv4_24s: SerieIPV4_24s

    serie_ipv6_48s: SerieIPV6_48s
