Application
API reference for Application
Application
Represents a GenAI Application container for organizing GenAI application resources.
An Application is a logical container within a Project that groups related GenAI application resources including datasets, experiments, evaluators, and monitoring configurations. Applications provide resource organization, access control, and lifecycle management for GenAI App monitoring workflows.
Key Features:
Resource Organization: Container for related GenAI application resources
Project Context: Applications are scoped within projects for isolation
Access Management: Application-level permissions and access control
Monitoring Coordination: Centralized monitoring and alerting configuration
Lifecycle Management: Coordinated creation, updates, and deletion of resources
Application Lifecycle:
Creation: Create application with unique name within a project
Configuration: Set up datasets, evaluators, and monitoring
Operations: Publish logs, monitor performance, manage alerts
Maintenance: Update configurations and resources
Cleanup: Delete application when no longer needed
Example
classmethod get_by_id(id_)
Retrieve an application by its unique identifier.
Fetches an application from the Fiddler platform using its UUID. This is the most direct way to retrieve an application when you know its ID.
Parameters
id – The unique identifier (UUID) of the application to retrieve. Can be provided as a UUID object or string representation.
id_ (UUID | str)
Returns
The application instance with all metadata and configuration. Return type: Application
Raises
NotFound – If no application exists with the specified ID.
ApiError – If there’s an error communicating with the Fiddler API.
Example
classmethod get_by_name(name, project_id)
Retrieve an application by name within a project.
Finds and returns an application using its name within the specified project. This is useful when you know the application name and project but not its UUID. Application names are unique within a project, making this a reliable lookup method.
Parameters
name
str
✗
None
The name of the application to retrieve. Application names are unique within a project and are case-sensitive.
project_id
UUID | str
✗
None
The UUID of the project containing the application. Can be provided as a UUID object or string representation.
Returns
The application instance matching the specified name. Return type: Application
Raises
NotFound – If no application exists with the specified name in the project.
ApiError – If there’s an error communicating with the Fiddler API.
Example
classmethod list(project_id)
List all applications in a project.
Retrieves all applications that the current user has access to within the specified project. Returns an iterator for memory efficiency when dealing with many applications.
Parameters
project_id
UUID | str
✗
None
The UUID of the project to list applications from. Can be provided as a UUID object or string representation.
Yields
Application – Application instances for all accessible applications in the project.
Raises
ApiError – If there’s an error communicating with the Fiddler API. Return type: Iterator[Application]
Example
classmethod create(name, project_id)
Create a new application in a project.
Creates a new application within the specified project on the Fiddler platform. The application must have a unique name within the project.
Parameters
name
str
✗
None
Application name, must be unique within the project.
project_id
UUID | str
✗
None
The UUID of the project to create the application in. Can be provided as a UUID object or string representation.
Returns
The newly created application instance with server-assigned fields. Return type: Application
Raises
Conflict – If an application with the same name already exists in the project.
ValidationError – If the application configuration is invalid (e.g., invalid name format).
ApiError – If there’s an error communicating with the Fiddler API.
Example
classmethod get_or_create(name, project_id)
Get an existing application by name or create a new one if it doesn’t exist.
This is a convenience method that attempts to retrieve an application by name within a project, and if not found, creates a new application with that name. Useful for idempotent application setup in automation scripts and deployment pipelines.
Parameters
name
str
✗
None
The name of the application to retrieve or create.
project_id
UUID | str
✗
None
The UUID of the project to search/create the application in. Can be provided as a UUID object or string representation.
Returns
Either the existing application with the specified name, : or a newly created application if none existed. Return type: Application
Raises
ValidationError – If the application name format is invalid.
ApiError – If there’s an error communicating with the Fiddler API.
Example
Last updated
Was this helpful?