From 99f2f36419b6d8675efdd033ad20afe16849e584 Mon Sep 17 00:00:00 2001 From: Leandro Padua <10764017+leandropadua@users.noreply.github.com> Date: Tue, 20 Jul 2021 20:44:01 +1000 Subject: [PATCH] Ingest API to return response of POST calls Return response code to the user when posting data using ingestion sdk. --- signalfx/ingest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/signalfx/ingest.py b/signalfx/ingest.py index 08f32ed..d3d930b 100644 --- a/signalfx/ingest.py +++ b/signalfx/ingest.py @@ -284,6 +284,7 @@ def _post(self, data, url, session=None, timeout=None): _logger.debug('Sending to SignalFx %s (%d %s)', 'succeeded' if response.ok else 'failed', response.status_code, response.text) + return response class ProtoBufSignalFxIngestClient(_BaseSignalFxIngestClient):