Reports
albert.resources.reports
Attributes:
Name | Type | Description |
---|---|---|
ReportItem |
|
ReportInfo
Bases: BaseAlbertModel
Attributes:
Name | Type | Description |
---|---|---|
report_type_id |
str
|
|
report_type |
str
|
|
category |
str
|
|
items |
list[ReportItem]
|
|
ColumnState
FilterModel
FilterState
Bases: BaseAlbertModel
Filters State Object for reports.
Attributes:
Name | Type | Description |
---|---|---|
filter_models |
list[FilterModel]
|
|
filter_models
filter_models: list[FilterModel] = Field(
default_factory=list, alias="filterModels"
)
MetadataState
ChartConfiguration
Bases: BaseAlbertModel
Chart Configuration Object for reports.
Attributes:
Name | Type | Description |
---|---|---|
chart_type |
str | None
|
|
ChartTemplate
Bases: BaseAlbertModel
Chart Template Object for reports.
Attributes:
Name | Type | Description |
---|---|---|
chart_type |
str
|
|
ChartModelState
Bases: BaseAlbertModel
Chart State Object for reports.
Attributes:
Name | Type | Description |
---|---|---|
chart_template |
ChartTemplate | None
|
|
chart_configuration |
ChartConfiguration | None
|
|
chart_configuration
chart_configuration: ChartConfiguration | None = Field(
default=None, alias="chartConfiguration"
)
ColumnMapping
Bases: BaseAlbertModel
Column Mapping Object for reports.
FullAnalyticalReport
Bases: BaseResource
A full analytical report in Albert.
This resource represents a complete analytical report with all its configuration, data, and state information.
Attributes:
Name | Type | Description |
---|---|---|
report_data_id |
str | None
|
Unique Identifier of the Report which is created. Read-only. |
report_type_id |
str
|
Type of report which will be created. Taken from reports/type API. |
report_type |
str | None
|
Type of report which will be created. Name taken from reports/type API. |
name |
str
|
Name of the report. Maximum length 500 characters. |
description |
str | None
|
Description of the report. Maximum length 1000 characters. |
project_id |
str | None
|
Project ID of the report. Not mandatory. |
project_name |
str | None
|
Name of the project. |
parent_id |
str | None
|
Parent ID of the report. Not mandatory. |
report_v2 |
bool | None
|
Whether this is a v2 report. |
input_data |
dict[str, Any] | None
|
Input data for the report. |
report_state |
str | None
|
Any string representing the report state. |
column_state |
List[ColumnState] | None
|
Column state objects. |
filter_state |
FilterState | None
|
Filters state object. |
meta_data_state |
MetadataState | None
|
Metadata state object. |
chart_model_state |
List[ChartModelState] | None
|
Chart state objects. |
field_mapping |
List[ColumnMapping] | None
|
Column mapping objects. |
source_report_id |
str | None
|
Report ID from which to copy states to the new report. |
created_by |
str | None
|
Specifies the createdBy id. |
Methods:
Name | Description |
---|---|
get_raw_dataframe |
Get the raw report data as a pandas DataFrame. |
id
id: ReportId | None = Field(
default=None,
alias=AliasChoices("id", "albertId"),
serialization_alias="id",
exclude=True,
frozen=True,
)
column_state
column_state: list[ColumnState] | None = Field(
default_factory=list, alias="columnState"
)
meta_data_state
meta_data_state: MetadataState | None = Field(
default=None, alias="metaDataState"
)
chart_model_state
chart_model_state: list[ChartModelState] | None = Field(
default_factory=list, alias="chartModelState"
)
field_mapping
field_mapping: list[ColumnMapping] | None = Field(
default_factory=list, alias="FieldMapping"
)
get_raw_dataframe
Get the raw report data as a pandas DataFrame.
Returns:
Type | Description |
---|---|
DataFrame
|
The raw report data. |