Stream#
lit.sdk.services.stream
#
This module defines the Stream class and associated functions for managing real-time data-streaming services. It provides functionality to start, stop, restart, and retrieve the status of streams, as well as a function to get a list of available streams.
Stream
#
Bases: Service
Represents a real-time data-streaming service worker.
name
instance-attribute
#
The name of the Stream.
team
instance-attribute
#
The name of the team that owns the Stream.
__init__(team, name)
#
Initializes a new instance of Stream.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
team
|
str
|
The name of the team that owns the Stream. |
required |
name
|
str
|
The name of the Stream. |
required |
restart()
#
Restarts the stream.
Returns:
| Type | Description |
|---|---|
ServiceActionStatus
|
An object containing the status of the operation. |
Examples:
start()
#
Starts the stream.
Returns:
| Type | Description |
|---|---|
ServiceActionStatus
|
An object containing the status of the operation. |
Examples:
status()
#
Retrieves the status of the stream.
Returns:
| Type | Description |
|---|---|
ServiceStatus
|
An object containing the current status of the stream. |
Examples:
stop()
#
Stops the stream.
Returns:
| Type | Description |
|---|---|
ServiceActionStatus
|
An object containing the status of the operation. |
Examples: