diff --git a/infra/modules/sagemaker_deployment/lambda_function/sns_to_microsoft_teams.py b/infra/modules/sagemaker_deployment/lambda_function/sns_to_microsoft_teams.py index 6432278..c1aa4b9 100644 --- a/infra/modules/sagemaker_deployment/lambda_function/sns_to_microsoft_teams.py +++ b/infra/modules/sagemaker_deployment/lambda_function/sns_to_microsoft_teams.py @@ -40,8 +40,7 @@ def lambda_handler(event, context): "@type": "MessageCard", "@context": "http://schema.org/extensions", "themeColor": colour, - "title": f"Transition to {new_state} on {endpoint_name} for the - alarm named {alarm_name}", + "title": f"Transition to {new_state} on {endpoint_name} for alarm {alarm_name}", "text": f"Triggered at {readable_time_str} on {readable_date_str}", "potentialAction": [ { @@ -60,6 +59,5 @@ def lambda_handler(event, context): headers=headers, ) logger.info( - f"Completed with response code {response.status} and - full response data {response.data}" + f"Completed with code {response.status} and full response {response.data}" ) diff --git a/infra/modules/sagemaker_output_mover/lambda_function/s3_move_output.py b/infra/modules/sagemaker_output_mover/lambda_function/s3_move_output.py index cb80d8a..f2ca3a7 100644 --- a/infra/modules/sagemaker_output_mover/lambda_function/s3_move_output.py +++ b/infra/modules/sagemaker_output_mover/lambda_function/s3_move_output.py @@ -37,8 +37,7 @@ def process_message(record): ) s3.meta.client.copy(copy_source, input_file_bucket, s3_filepath_output) logger.info( - f"Output from endpoint {endpoint_name} with user_id {federated_user_id} - moved to user's theia workspace" + f"Output from endpoint:{endpoint_name} with user_id:{federated_user_id} moved to user's workspace" ) except Exception as e: logger.error(e)