Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

send_event method does not return http status #121

Description

@leandropadua

Currently the response is not available to the user to make decisions based on the http response code.
For example, the current code will not raise an exception if the API_TOKEN is invalid and will give an impression that it was a successful execution.
The status code is only visible as a debug message (DEBUG: Sending to SignalFx failed (401 Unauthorized)), which is not accessible in code.

with signalfx.SignalFx(ingest_endpoint=SFX_INGESTION_ENDPOINT).ingest(SFX_API_TOKEN) as sfx:
    sfx.send_event(event_type='deployments')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions