Skip to content

Index

frequenz.client.common.streaming ¤

Type wrappers for the generated protobuf messages.

Classes¤

frequenz.client.common.streaming.Event ¤

Bases: Enum

A type of streaming event.

Source code in src/frequenz/client/common/streaming/_event.py
@unique
class Event(Enum):
    """A type of streaming event."""

    UNSPECIFIED = deprecated_member(
        0,
        "Event.UNSPECIFIED is deprecated; use the `int` value `0` "
        "instead if you really need to check for this low-level value.",
    )
    """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 = deprecated_member(
    0,
    "Event.UNSPECIFIED is deprecated; use the `int` value `0` instead if you really need to check for this low-level value.",
)

Unspecified event type.

UPDATED class-attribute instance-attribute ¤
UPDATED = 2

Event when an existing resource is updated.