Skip to content

dp3.api.routers.telemetry

get_sources_validity async

get_sources_validity() -> dict[str, datetime]

Get validity of all data sources

Returns timestamps (datetimes) of current validity of all sources. This should be latest t2 of incoming datapoints for given data source.

Source code in dp3/api/routers/telemetry.py
@router.get("/sources_validity")
async def get_sources_validity() -> dict[str, datetime]:
    """Get validity of all data sources

    Returns timestamps (datetimes) of current validity of all sources.
    This should be latest `t2` of incoming datapoints for given data source.
    """
    return TELEMETRY_READER.get_sources_validity()