PromEx.GrafanaClient.Connection (PromEx v0.1.6-alpha) View Source

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

Link to this section Summary

Functions

Build a connection struct for connecting to Grafana.

Link to this section Types

Specs

t() :: %PromEx.GrafanaClient.Connection{
  auth_token: String.t(),
  base_url: String.t(),
  finch_process: module()
}

Link to this section Functions

Link to this function

build(finch_process, base_url, auth_token)

View Source

Specs

build(
  finch_process :: module(),
  base_url :: String.t(),
  auth_token :: String.t()
) :: t()

Build a connection struct for connecting to Grafana.