Logger.Backend.Humio.Client behaviour (logger_humio_backend v0.2.2) View Source

Defines the HTTP client interface used to send messages to the Humio ingest APIs

Link to this section Summary

Link to this section Types

Specs

params() :: %{
  base_url: String.t(),
  path: String.t(),
  body: String.t(),
  headers: [tuple()]
}

Specs

response() :: %{status: 100..599, body: String.t()}

Specs

result() :: {:ok, response()} | {:error, any()}

Link to this section Callbacks

Specs

send(params()) :: result()