From 8d6904a80e94dfb1169bd70086098c5ba8e9840e Mon Sep 17 00:00:00 2001 From: stratacast Date: Thu, 6 Oct 2022 10:06:04 -0700 Subject: [PATCH] Bump 1.5.0. Add mtr & redis check --- changelog.adoc | 7 +++++++ lib/nodeping/checktypes/mtr.ex | 21 +++++++++++++++++++++ lib/nodeping/checktypes/redis.ex | 23 +++++++++++++++++++++++ mix.exs | 2 +- 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 lib/nodeping/checktypes/mtr.ex create mode 100644 lib/nodeping/checktypes/redis.ex diff --git a/changelog.adoc b/changelog.adoc index 9a058c1..a239cb3 100644 --- a/changelog.adoc +++ b/changelog.adoc @@ -13,6 +13,13 @@ have to proceed with a following `List.first/1` to get the map. There will likely also be some upcoming improvements changes as the library is reviewed. +== 2022-10-06 v1.5.0 + +=== Added + +* MTR check added: https://nodeping.com/mtr_check.html +* Redis check added: https://nodeping.com/redis_check.html + == 2022-03-24 v1.4.0 === Added diff --git a/lib/nodeping/checktypes/mtr.ex b/lib/nodeping/checktypes/mtr.ex new file mode 100644 index 0000000..88f5e41 --- /dev/null +++ b/lib/nodeping/checktypes/mtr.ex @@ -0,0 +1,21 @@ +defmodule NodePing.Checktypes.Mtr do + @moduledoc false + + @enforce_keys [:target] + defstruct [ + :target, + label: "", + autodiag: false, + ipv6: false, + type: "MTR", + interval: 15, + enabled: false, + public: false, + runlocations: nil, + homeloc: false, + threshold: 5, + sens: 5, + dep: nil, + notifications: nil + ] +end diff --git a/lib/nodeping/checktypes/redis.ex b/lib/nodeping/checktypes/redis.ex new file mode 100644 index 0000000..006934b --- /dev/null +++ b/lib/nodeping/checktypes/redis.ex @@ -0,0 +1,23 @@ +defmodule NodePing.Checktypes.Redis do + @moduledoc false + + @enforce_keys [:target, :redistype] + defstruct [ + :target, + :redistype, + label: "", + autodiag: false, + type: "REDIS", + interval: 15, + hosts: [], + sentinelname: nil, + enabled: false, + public: false, + runlocations: nil, + homeloc: false, + threshold: 5, + sens: 5, + dep: nil, + notifications: nil + ] +end diff --git a/mix.exs b/mix.exs index 787f66a..caa04dd 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule NodePing.MixProject do def project do [ app: :nodeping, - version: "1.4.0", + version: "1.5.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, description: description(),