# `PromEx.GrafanaClient.Connection`
[🔗](https://github.com/akoutmos/prom_ex/blob/master/lib/prom_ex/grafana_client/connection.ex#L1)

This struct encapsulates all of the data necessary
to connect to a Grafana instance.

# `t`

```elixir
@type t() :: %PromEx.GrafanaClient.Connection{
  authorization: String.t(),
  base_url: String.t(),
  finch_process: module()
}
```

# `build`

```elixir
@spec build(finch_process :: module(), grafana_config :: map()) :: t()
```

Build a connection struct for connecting to Grafana.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
