Skip to content

Commit

Permalink
Merge branch 'release/2.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Oct 25, 2024
2 parents c6752a6 + 47dea4d commit 2f06b7f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/lexdee.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ defmodule Lexdee do

defdelegate show_resources(client, node \\ nil), to: Resources, as: :show

alias Lexdee.Metrics

defdelegate list_metrics(client, options \\ []), to: Metrics, as: :index

alias Lexdee.Projects

defdelegate list_projects(client, opts \\ []), to: Projects, as: :index
Expand Down
9 changes: 9 additions & 0 deletions lib/lexdee/metrics.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defmodule Lexdee.Metrics do
use Tesla

@path "/1.0/metrics"

def index(client, options \\ []) do
Tesla.get(client, @path, options)
end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Lexdee.MixProject do
def project do
[
app: :lexdee,
version: "2.4.3",
version: "2.4.4",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 2f06b7f

Please sign in to comment.