Reports
albert.collections.reports.ReportCollection
Bases: BaseCollection
ReportCollection is a collection class for managing Report entities in the Albert platform.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session
|
AlbertSession
|
The Albert session instance. |
required |
Methods:
Name | Description |
---|---|
get_datascience_report |
Get a datascience report by its report type ID. |
Attributes:
Name | Type | Description |
---|---|---|
base_path |
|
Source code in src/albert/collections/reports.py
get_datascience_report
get_datascience_report(
*,
report_type_id: str,
input_data: dict[str, Any] | None = None,
) -> ReportInfo
Get a datascience report by its report type ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
report_type_id
|
str
|
The report type ID for the report. |
required |
input_data
|
dict[str, Any] | None
|
Additional input data for generating the report (e.g., project IDs and unique IDs). |
None
|
Returns:
Type | Description |
---|---|
ReportInfo
|
The info for the report. |
Examples:
>>> report = client.reports.get_datascience_report(
... report_type_id="RET51",
... input_data={
... "projectId": ["PRO123"],
... "uniqueId": ["DAT123_DAC123"]
... }
... )