(msg_path, msg_body, msg_line)
| 194 | """ |
| 195 | |
| 196 | def pack_message(msg_path, msg_body, msg_line): |
| 197 | return { |
| 198 | "body": msg_body, |
| 199 | "attributes": { |
| 200 | "path": {"StringValue": msg_path, "DataType": "String"}, |
| 201 | "line": {"StringValue": str(msg_line), "DataType": "String"}, |
| 202 | }, |
| 203 | } |
| 204 | |
| 205 | def unpack_message(msg): |
| 206 | return ( |