Cased.Publisher.Datadog (cased v1.0.0)

A publisher used to transmit audit events to Datadog via HTTP/S.

Link to this section Summary

Types

Available options to initialize the publisher.

Functions

Returns a specification to start this module under a supervisor.

Build publisher configuration.

Start and link a publisher process.

Link to this section Types

Specs

config() :: %{
  url: String.t(),
  headers: Mojito.headers(),
  silence: boolean(),
  timeout: pos_integer() | :infinity
}

Specs

init_opt() ::
  {:key, String.t()}
  | {:url, String.t()}
  | {:silence, boolean()}
  | {:timeout, pos_integer() | :infinity}

Specs

init_opts() :: [init_opt()]

Available options to initialize the publisher.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

init(opts :: init_opts()) :: {:ok, any()}

Build publisher configuration.

Link to this function

start_link(opts)

Specs

start_link(opts :: init_opts()) :: GenServer.on_start()

Start and link a publisher process.