Classes¶
spark_expectations.notifications.push.spark_expectations_notify.SparkExpectationsNotify
dataclass
¶
This class implements Notification
Functions¶
construct_message_for_each_rules(rule_name: str, failed_row_count: int, error_drop_percentage: float, set_error_drop_threshold: float, action: str) -> str
¶
This function supports constructing the notification message when rule threshold exceeds certain threshold Args: rule_name: name of the dq rule failed_row_count: number of failed of dq rule error_drop_percentage: error drop percentage Returns: str
Source code in spark_expectations/notifications/push/spark_expectations_notify.py
notify_on_completion() -> None
¶
This function sends notification on completion of spark expectations project Returns: None
Source code in spark_expectations/notifications/push/spark_expectations_notify.py
notify_on_exceeds_of_error_threshold() -> None
¶
This function sends notification on completion of spark expectations project Returns: None
Source code in spark_expectations/notifications/push/spark_expectations_notify.py
notify_on_exceeds_of_error_threshold_each_rules(message: str) -> None
¶
This function sends notification when specific rule error drop percentage exceeds above threshold Args: message: message to be sent in notification Returns: None
Source code in spark_expectations/notifications/push/spark_expectations_notify.py
notify_on_failure(_error: str) -> None
¶
This function sends notification on failure of spark expectations project Args: _error: message or exception for the failure(str)
Returns: None
Source code in spark_expectations/notifications/push/spark_expectations_notify.py
notify_on_start() -> None
¶
This function sends notification on start of spark expectations project Returns: None
Source code in spark_expectations/notifications/push/spark_expectations_notify.py
notify_on_start_completion_failure(_on_start: Any, _on_completion: Any, _on_failure: Any) -> Any
¶
This function orchestrate notification Args: _on_start: function to send notification on start of spark expectations _on_completion: function to send notification on completion of spark expectations _on_failure: function to send notification on failure
Returns: decorated notification function
Source code in spark_expectations/notifications/push/spark_expectations_notify.py
notify_rules_exceeds_threshold(rules: dict) -> None
¶
This functions identifies error drop percentage for rules which exceeds above set threshold Args: rules: lsit of rules which set to do data quality checks Returns: None