class TaskMetricsRequest(Base): tasks: Sequence[str] = ListField(items_types=str, validators=[Length(minimum_value=1)]) event_type: EventType = ActualEnumField(EventType, required=True)
class HistogramRequestBase(Base): samples: int = IntField(default=6000, validators=[Min(1), Max(6000)]) key: ScalarKeyEnum = ActualEnumField(ScalarKeyEnum, default=ScalarKeyEnum.iter)
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)
class HistogramRequestBase(Base): samples: int = IntField(default=10000) key: ScalarKeyEnum = ActualEnumField(ScalarKeyEnum, default=ScalarKeyEnum.iter)