In the ArcGIS Desktop arcpy method CreateMapSDDraft it output a dictionary of the analysis results. This was easy to parse and perform actions before publication takes place. https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/createmapsddraft.htm
In ArcGIS Pro it is a bit unclear the results of the analysis.
The Stage Service does not explicitly state this except in one of the examples uses the arcpy.GetMessages(1) call to get the warnings. This appears to be text and not the easiest to parse.
https://pro.arcgis.com/en/pro-app/latest/tool-reference/server/stage-service.htm
My parsing attempt: analysisMessages = eval(arcpy.GetMessages(1).split('(')[1][:-2].strip())
Is there another way to get the analysis results as a dictionary? It appears we have lost some functionality as we would like to look for any "copy to server" warnings before the publication process.