# Imison v0.1.0 - API Reference

## Modules

- [Imison](Imison.md): Error tracker that runs inside the host's Phoenix app.
- [Imison.Config](Imison.Config.md): The validated options of a running Imison instance.
- [Imison.Migration](Imison.Migration.md): Creates and upgrades Imison's tables in the host's database, one version at a time.
- [Imison.Registry](Imison.Registry.md): Local process storage for Imison instances.

- Notifications
  - [Imison.Notifications.Channel](Imison.Notifications.Channel.md): A way of delivering notifications, such as `Imison.Notifications.Channels.Email`.
  - [Imison.Notifications.Channels.Email](Imison.Notifications.Channels.Email.md): Emails notifications through the host's Swoosh mailer.
  - [Imison.Notifications.Channels.Slack](Imison.Notifications.Channels.Slack.md): Posts each notification to a Slack channel through an incoming webhook.
  - [Imison.Notifications.Channels.Webhook](Imison.Notifications.Channels.Webhook.md): POSTs each notification as JSON to a URL of your choice.
  - [Imison.Notifications.Message](Imison.Notifications.Message.md): The channel-neutral content of one notification, handed to a channel's
`c:Imison.Notifications.Channel.deliver/3`.

- Dashboard
  - [Imison.Web.Assets](Imison.Web.Assets.md): Serves the dashboard's stylesheet, fonts and script from Imison itself.
  - [Imison.Web.ErrorLive](Imison.Web.ErrorLive.md): An error's detail page (`docs/design/error-detail.html`): its kind,
message, location, status, occurrence count and first and last seen, then
one occurrence's stack trace, request, Logger metadata and runtime. The
occurrence is the one named by `?occurrence=<id>`, or the latest when the
URL names none, names another error's occurrence or gives no number; Older
and Newer step to its neighbours by patching the URL. Panels with nothing to show are
left out, and an error without occurrences has no occurrence navigation. An
unknown id sends the developer back to the list with a message.
  - [Imison.Web.ErrorsLive](Imison.Web.ErrorsLive.md): The error list, the dashboard's home page (`docs/design/errors.html`): one
tab per status with its count, a search over kind, message and location,
and the most recently seen errors first. The status and the search live in
the URL (`?status=resolved&q=timeout`).
  - [Imison.Web.Layouts](Imison.Web.Layouts.md): The dashboard's root layout, which loads Imison's own assets, and the app
shell shared by its pages, with the markup of `docs/design/`.

  - [Imison.Web.NotificationsLive](Imison.Web.NotificationsLive.md): The notifications screen (`docs/design/notifications.html`): one panel per
module in the `channels` option, then the rules, which apply to every
channel that's on (a new error, a resolved error that comes back, an error
that keeps happening, the daily summary).
  - [Imison.Web.Paths](Imison.Web.Paths.md): URL paths of the routes of a dashboard mounted at `dashboard_path` with
`Imison.Web.Router.imison_dashboard/2`: login, logout, an error's detail
page and the notifications screen.

  - [Imison.Web.Router](Imison.Web.Router.md): Mounts the dashboard in the host app's router.
  - [Imison.Web.SessionController](Imison.Web.SessionController.md): Signs in to the dashboard and out of it, at `<path>/login` and `<path>/logout`
of a dashboard mounted with `Imison.Web.Router.imison_dashboard/2`.
  - [Imison.Web.SessionHTML](Imison.Web.SessionHTML.md): The login page (`docs/design/login.html`): the sign-in form over a mosaic of heat cells.

## Mix Tasks

- [mix imison.install](Mix.Tasks.Imison.Install.md): Installs Imison in a Phoenix app: its config, its place in the supervision
tree, the migration that creates its tables and the dashboard route.

