class DebugImagesRequest(Base): metrics: Sequence[TaskMetric] = ListField( items_types=TaskMetric, validators=[Length(minimum_value=1)]) iters: int = IntField(default=1, validators=validators.Min(1)) navigate_earlier: bool = BoolField(default=True) refresh: bool = BoolField(default=False) scroll_id: str = StringField()
class ScalarMetricsIterRawRequest(TaskEventsRequestBase): batch_size: int = IntField() key: ScalarKeyEnum = ActualEnumField(ScalarKeyEnum, default=ScalarKeyEnum.iter) metric: MetricVariants = EmbeddedField(MetricVariants, required=True) count_total: bool = BoolField(default=False) scroll_id: str = StringField()
class LogEventsRequest(TaskEventsRequestBase): batch_size: int = IntField(default=5000) navigate_earlier: bool = BoolField(default=True) from_timestamp: Optional[int] = IntField() order: Optional[str] = ActualEnumField(LogOrderEnum)
class TaskEventsRequestBase(Base): task: str = StringField(required=True) batch_size: int = IntField(default=500)
class GetDebugImageSampleRequest(TaskMetricVariant): iteration: Optional[int] = IntField() refresh: bool = BoolField(default=False) scroll_id: Optional[str] = StringField()
class HistogramRequestBase(Base): samples: int = IntField(default=2000, validators=[Min(1), Max(6000)]) key: ScalarKeyEnum = ActualEnumField(ScalarKeyEnum, default=ScalarKeyEnum.iter)
class TaskPlotsRequest(Base): task: str = StringField(required=True) iters: int = IntField(default=1) scroll_id: str = StringField() no_scroll: bool = BoolField(default=False) metrics: Sequence[MetricVariants] = ListField(items_types=MetricVariants)
class IterationEvents(Base): iter: int = IntField() events: Sequence[dict] = ListField(items_types=dict)
class LogEventsRequest(Base): task: str = StringField(required=True) batch_size: int = IntField(default=500) navigate_earlier: bool = BoolField(default=True) from_timestamp: Optional[int] = IntField() order: Optional[str] = ActualEnumField(LogOrderEnum)