lakehouse.databricks.log_analytics_logging.post_la_data

lakehouse.databricks.log_analytics_logging.post_la_data(spark, body, log_type) None

Posts data to the Log Analytics API.

Parameters

sparkspark context

spark context passed from the calling spark instance

bodydict

Dictionary containing the data to be posted to Log Analytics.

log_typestring

String representing the log type of the data to be posted.

Response handling

if the post request response status between 200 and 299, the function prints "Accepted". else the function prints the response code.