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:
- <b>
record
</b> (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:
- <b>
record
</b> (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:
- <b>
report_data_type
</b> (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:
- <b>
report_data_type
</b> (ReportDataType): report date type to delete - <b>
date
</b> (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:
- <b>
event_type
</b> (WebAnalyticEventData): web analytic event type - <b>
tmsp
</b> (int): timestamp
method get_aggregated_data_insight_results
summary
Args:
- <b>
start_ts
</b> (int): description - <b>
end_ts
</b> (int): description - <b>
data_insight_chart_name
</b> (str): description - <b>
data_report_index
</b> (str): description - <b>
params
</b> (Optional[dict], optional): description. Defaults to None.
Returns:
- <b>
DataInsightChartResult
</b>: description
method get_data_insight_report_data
Return dict with a list of report data given a start and end date
Args:
- <b>
start_ts
</b> (type): start_timestamp - <b>
end_ts
</b> (type): end timestampe - <b>
report_data_type
</b> (ReportDataType): report data type
Returns: List[ReportData]:
method get_kpi_result
Given FQN return KPI results
Args:
- <b>
fqn
</b> (str): fullyQualifiedName
method get_web_analytic_events
Get web analytic event