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

@leandropadua

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions