Rapidata signal manager
RapidataSignalManager #
Manage signals: schedules that periodically create audience jobs.
A signal binds an audience to a job definition and an interval. The signal service
creates one audience job per interval tick. Use this manager to create, look up,
and find signals; use methods on the returned :class:RapidataSignal to control a
specific signal and reach the jobs it produces.
Access this manager via attr:
RapidataClient.signals.
Source code in src/rapidata/rapidata_client/signal/rapidata_signal_manager.py
create_signal #
create_signal(
name: str,
audience: str | RapidataAudienceBase,
job_definition: str | RapidataJobDefinition,
interval_hours: float,
description: str | None = None,
revision_number: int | None = None,
is_public: bool = False,
) -> RapidataSignal
Create a new signal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Display name for the signal. |
required |
audience
|
str | RapidataAudienceBase
|
The audience each job targets — a :class: |
required |
job_definition
|
str | RapidataJobDefinition
|
The job definition each job is created from — a
:class: |
required |
interval_hours
|
float
|
How often the signal fires, in hours. |
required |
description
|
str | None
|
Optional human-readable description. |
None
|
revision_number
|
int | None
|
Optional explicit revision of |
None
|
is_public
|
bool
|
Whether other users can discover and read this signal. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
RapidataSignal |
RapidataSignal
|
The created signal. |
Source code in src/rapidata/rapidata_client/signal/rapidata_signal_manager.py
get_signal_by_id #
get_signal_by_id(signal_id: str) -> RapidataSignal
Get a signal by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
signal_id
|
str
|
The signal to fetch. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
RapidataSignal |
RapidataSignal
|
The signal. |
Source code in src/rapidata/rapidata_client/signal/rapidata_signal_manager.py
find_signals #
find_signals(
name: str = "", amount: int = 10, page: int = 1
) -> list[RapidataSignal]
Find signals visible to you (your own signals plus public ones).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Filter signals by name (matching signals will contain this string). Defaults to "" for any signal. |
''
|
amount
|
int
|
The maximum number of signals to return. Defaults to 10. |
10
|
page
|
int
|
The page of signals to return. Defaults to 1. |
1
|
Returns:
| Type | Description |
|---|---|
list[RapidataSignal]
|
list[RapidataSignal]: The matching signals. |