Index
Module to interact with Analyses.
This module contains class to interact with Analyses in Apps.
PublishedAnalysis ¶
Bases: PublishedContentNode
Analysis object to interact with analysis specific apps endpoints.
parent_node_key
class-attribute
instance-attribute
¶
parent_node_id
class-attribute
instance-attribute
¶
invalid_content
class-attribute
instance-attribute
¶
serialization_type
class-attribute
instance-attribute
¶
working_draft_id
class-attribute
instance-attribute
¶
activated_draft_id
class-attribute
instance-attribute
¶
show_in_viewer_mode
class-attribute
instance-attribute
¶
public_available
class-attribute
instance-attribute
¶
asset_metadata_transport
class-attribute
instance-attribute
¶
creation_date
class-attribute
instance-attribute
¶
created_by_name
class-attribute
instance-attribute
¶
from_transport
classmethod
¶
Creates high-level published content node object from given ContentNodeTransport.
Parameters:
-
client
(Client
) –Client to use to make API calls for given published content node.
-
content_node_transport
(ContentNodeTransport
) –ContentNodeTransport object containing properties of published content node.
Returns:
-
PublishedContentNode
–A PublishedContentNode object with properties from transport and given client.
get_content ¶
Returns content of analysis.
Returns:
-
Optional[AnalysisContent]
–Analysis content.
Examples:
Extract table from analysis content:
resolve_query ¶
Returns Data Query and Query environment for an analysis.
Warning
The method analysis.resolve_query
has been deprecated and will be removed in future versions.
Please use SaolaPy from now on to export PQL queries:
Use this method to resolve queries that are based on analysis KPIs and Variables. The returned DataQuery and QueryEnvironment can than be used to query data via DataModel.export_data_frame.
Parameters:
-
query
(PQL
) –PQL query to be resolved
Returns:
-
Tuple[DataQuery, Optional[QueryEnvironment]]
–Returns Data Query and Query environment
Examples:
Resolving a query from an analysis component to extract the data from the data model: