prefect.events.schemas.labelling
LabelDiver
diver = LabelDiver({ 'hello.world': 'foo', 'hello.world.again': 'bar' }) assert str(diver.hello.world) == 'foo' assert str(diver.hello.world.again) == 'bar'
Labelled
as_label_value_array
as_label_value_array(self) -> List[Dict[str, str]]
get
get(self, label: str, default: Optional[str] = None) -> Optional[str]
has_all_labels
has_all_labels(self, labels: Dict[str, str]) -> bool
items
items(self) -> Iterable[Tuple[str, str]]
keys
keys(self) -> Iterable[str]
labels
labels(self) -> LabelDiver
Was this page helpful?