Skip to content

streaming

frequenz.client.common.streaming ¤

Type wrappers for the generated protobuf messages.

Classes¤

frequenz.client.common.streaming.Event ¤

Bases: Enum

Enum representing the type of streaming event.

Source code in frequenz/client/common/streaming/__init__.py
class Event(Enum):
    """Enum representing the type of streaming event."""

    UNSPECIFIED = PBEvent.EVENT_UNSPECIFIED
    """Unspecified event type."""

    CREATED = PBEvent.EVENT_CREATED
    """Event when a new resource is created."""

    UPDATED = PBEvent.EVENT_UPDATED
    """Event when an existing resource is updated."""

    DELETED = PBEvent.EVENT_DELETED
    """Event when a resource is deleted."""
Attributes¤
CREATED class-attribute instance-attribute ¤
CREATED = EVENT_CREATED

Event when a new resource is created.

DELETED class-attribute instance-attribute ¤
DELETED = EVENT_DELETED

Event when a resource is deleted.

UNSPECIFIED class-attribute instance-attribute ¤
UNSPECIFIED = EVENT_UNSPECIFIED

Unspecified event type.

UPDATED class-attribute instance-attribute ¤
UPDATED = EVENT_UPDATED

Event when an existing resource is updated.