Skip to content

iter_get_property_value_history async

iter_get_property_value_history(
    workspace_id: Id,
    selected_properties: SelectedPropertyList,
    *,
    config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
    entity_id: Optional[EntityId] = None,
    component_name: Optional[Name] = None,
    component_path: Optional[ComponentPath] = None,
    component_type_id: Optional[ComponentTypeId] = None,
    property_filters: Optional[PropertyFilters] = None,
    start_date_time: Optional[Timestamp] = None,
    end_date_time: Optional[Timestamp] = None,
    interpolation: Optional[InterpolationParameters] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    order_by_time: Optional[OrderByTime] = None,
    start_time: Optional[Time] = None,
    end_time: Optional[Time] = None,
) -> AsyncIterator[GetPropertyValueHistoryResponse]
Source code in docs_src/capo_iottwinmaker/_services/async_io_t_twin_maker.py
async def iter_get_property_value_history(
    self,
    workspace_id: "capo_iottwinmaker.types.id.Id",
    selected_properties: "capo_iottwinmaker.types.selected_property_list.SelectedPropertyList",
    *,
    config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
    entity_id: Optional["capo_iottwinmaker.types.entity_id.EntityId"] = None,
    component_name: Optional["capo_iottwinmaker.types.name.Name"] = None,
    component_path: Optional[
        "capo_iottwinmaker.types.component_path.ComponentPath"
    ] = None,
    component_type_id: Optional[
        "capo_iottwinmaker.types.component_type_id.ComponentTypeId"
    ] = None,
    property_filters: Optional[
        "capo_iottwinmaker.types.property_filters.PropertyFilters"
    ] = None,
    start_date_time: Optional["capo_iottwinmaker.types.timestamp.Timestamp"] = None,
    end_date_time: Optional["capo_iottwinmaker.types.timestamp.Timestamp"] = None,
    interpolation: Optional[
        "capo_iottwinmaker.types.interpolation_parameters.InterpolationParameters"
    ] = None,
    next_token: Optional["capo_iottwinmaker.types.next_token.NextToken"] = None,
    max_results: Optional["capo_iottwinmaker.types.max_results.MaxResults"] = None,
    order_by_time: Optional[
        "capo_iottwinmaker.types.order_by_time.OrderByTime"
    ] = None,
    start_time: Optional["capo_iottwinmaker.types.time.Time"] = None,
    end_time: Optional["capo_iottwinmaker.types.time.Time"] = None,
) -> "AsyncIterator[capo_iottwinmaker.types.get_property_value_history_response.GetPropertyValueHistoryResponse]":
    _token = next_token
    while True:
        _response = await self.get_property_value_history(
            workspace_id,
            selected_properties,
            config_overrides=config_overrides,
            entity_id=entity_id,
            component_name=component_name,
            component_path=component_path,
            component_type_id=component_type_id,
            property_filters=property_filters,
            start_date_time=start_date_time,
            end_date_time=end_date_time,
            interpolation=interpolation,
            next_token=_token,
            max_results=max_results,
            order_by_time=order_by_time,
            start_time=start_time,
            end_time=end_time,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break