Example
Baselines are immutable once created. To modify baseline parameters,
create a new baseline and update your monitoring configurations.
Parameters
str
required
Human-readable name for the baseline. Should be descriptive
and unique within the model context.
UUID | str
required
UUID of the model this baseline belongs to. Must be a valid
model that exists in the Fiddler platform.
EnvType
required
Environment type (PRE_PRODUCTION or PRODUCTION).
Determines the data environment this baseline monitors.
str
required
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 | str | None
default:"None"
UUID of the reference dataset. Required for STATIC baselines,
optional for time-based baselines.
int | None
default:"None"
Start timestamp for time-based baselines (Unix timestamp).
Defines the beginning of the reference period.
int | None
default:"None"
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.
WindowBinSize | str | None
default:"None"
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
UUID | str
required
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
str
required
Baseline name
UUID | str
required
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