Appsignal.CheckIn.Event (AppSignal v2.15.6)

View Source

Summary

Functions

Removes redundant cron check-in events from the given list of events. This is done by removing redundant pairs of events -- that is, for each identifier, only keep one complete pair of start and finish events.

Types

check_in_type()

@type check_in_type() :: :cron | :heartbeat

kind()

@type kind() :: :start | :finish

t()

@type t() :: %Appsignal.CheckIn.Event{
  check_in_type: check_in_type(),
  digest: String.t() | nil,
  identifier: String.t(),
  kind: kind() | nil,
  timestamp: integer()
}

Functions

cron(cron, kind)

@spec cron(Appsignal.CheckIn.Cron.t(), kind()) :: t()

deduplicate_cron(events)

@spec deduplicate_cron([t()]) :: [t()]

Removes redundant cron check-in events from the given list of events. This is done by removing redundant pairs of events -- that is, for each identifier, only keep one complete pair of start and finish events.

describe(events)

@spec describe([t()]) :: String.t()

heartbeat(identifier)

@spec heartbeat(String.t()) :: t()

redundant?(event, new_event)

@spec redundant?(t(), t()) :: boolean()