Skip to main content

module data_insight_mixin

Mixin class containing data specific methods To be used by OpenMetadata class

class DataInsightMixin

data insight mixin used to write results

method add_data_insight_report_data

Given a ReportData object convert it to a json payload and send a POST request to the report data endpoint Args:
  • record (ReportData): report data

method add_kpi_result

Given a ReportData object convert it to a json payload and send a POST request to the report data endpoint Args:
  • record (ReportData): report data

method add_web_analytic_events

Get web analytic event

method create_kpi


method delete_report_data

Delete report data for a specific report data type Args:
  • report_data_type (ReportDataType): report date type to delete

method delete_report_data_at_date

Delete report data at a specific date for a specific report data type Args:
  • report_data_type (ReportDataType): report date type to delete
  • date (str): date for which to delete the report data

method delete_web_analytic_event_before_ts_exclusive

Deletes web analytics events before a timestamp Args:
  • event_type (WebAnalyticEventData): web analytic event type
  • tmsp (int): timestamp

method get_aggregated_data_insight_results

summary Args:
  • start_ts (int): description
  • end_ts (int): description
  • data_insight_chart_name (str): description
  • data_report_index (str): description
  • params (Optional[dict], optional): description. Defaults to None.
Returns:
  • DataInsightChartResult: description

method get_data_insight_report_data

Return dict with a list of report data given a start and end date Args:
  • start_ts (type): start_timestamp
  • end_ts (type): end timestampe
  • report_data_type (ReportDataType): report data type
Returns: List[ReportData]:

method get_kpi_result

Given FQN return KPI results Args:
  • fqn (str): fullyQualifiedName

method get_web_analytic_events

Get web analytic event