Example
Baselines are immutable once created. To modify baseline parameters,
create a new baseline and update your monitoring configurations.
Parameters
Human-readable name for the baseline. Should be descriptive
and unique within the model context.
UUID of the model this baseline belongs to. Must be a valid
model that exists in the Fiddler platform.
Environment type (PRE_PRODUCTION or PRODUCTION).
Determines the data environment this baseline monitors.
Baseline type. Supported values:
- “STATIC”: Fixed dataset reference (requires dataset_id)
- “ROLLING_WINDOW”: Sliding time window (requires offset_delta)
- “PREVIOUS_PERIOD”: Previous time period comparison
UUID of the reference dataset. Required for STATIC baselines,
optional for time-based baselines.
Start timestamp for time-based baselines (Unix timestamp).
Defines the beginning of the reference period.
Time offset in days for rolling/previous period baselines.
For ROLLING_WINDOW: size of the sliding window.
For PREVIOUS_PERIOD: how far back to compare.
Aggregation window for time-series analysis.
Controls how data is grouped for comparison.
Example
After initialization, call create() to persist the baseline to the
Fiddler platform. The baseline configuration cannot be modified
after creation.
classmethod get()
Retrieve a baseline by its unique identifier. Fetches a baseline from the Fiddler platform using its UUID. This method returns the complete baseline configuration including metadata and statistics.Parameters
The unique identifier (UUID) of the baseline to retrieve.
Can be provided as a UUID object or string representation.
Returns
The baseline instance with all configuration
and metadata populated from the server.
Raises
- NotFound – If no baseline exists with the specified ID.
- ApiError – If there’s an error communicating with the Fiddler API.
Example
This method makes an API call to fetch the latest baseline information
from the server, including any updated statistics or metadata.
classmethod from_name()
Get the baseline instance of a model from baseline nameParameters
Baseline name
Model identifier
Returns
Baseline instance
classmethod list()
Get a list of all baselines of a model.Returns
Iterator[Baseline]
create()
Create a new baseline.Returns
Baseline