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