Skip to content

Index

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 src/frequenz/client/common/streaming/_event.py
@enum.unique
class Event(enum.Enum):
    """Enum representing the type of streaming event."""

    UNSPECIFIED = 0
    """Unspecified event type."""

    CREATED = 1
    """Event when a new resource is created."""

    UPDATED = 2
    """Event when an existing resource is updated."""

    DELETED = 3
    """Event when a resource is deleted."""
Attributes¤
CREATED class-attribute instance-attribute ¤
CREATED = 1

Event when a new resource is created.

DELETED class-attribute instance-attribute ¤
DELETED = 3

Event when a resource is deleted.

UNSPECIFIED class-attribute instance-attribute ¤
UNSPECIFIED = 0

Unspecified event type.

UPDATED class-attribute instance-attribute ¤
UPDATED = 2

Event when an existing resource is updated.