Packages

A stateless Elixir wrapper for the Logpoint SIEM API. Covers searching, incidents, alert rules, user-defined lists, and repos with builder patterns for rules and notifications.

Retired package: Renamed - Renamed to guardsix

Current section

Files

Jump to
logpoint_api lib logpoint_api net alert_rule_client.ex
Raw

lib/logpoint_api/net/alert_rule_client.ex

defmodule LogpointApi.Net.AlertRuleClient do
@moduledoc false
alias LogpointApi.Net.BaseClient
defdelegate new(base_url, ssl_verify \\ true), to: BaseClient
def get(req, path, token, params \\ %{}) do
req = Req.merge(req, auth: {:bearer, token})
BaseClient.decode_response(Req.get(req, url: path, params: params))
end
def post(req, path, token, body) do
req = Req.merge(req, auth: {:bearer, token})
BaseClient.decode_response(Req.post(req, url: path, json: body))
end
def post_form(req, path, token, body) do
req = Req.merge(req, auth: {:bearer, token})
BaseClient.decode_response(Req.post(req, url: path, form: body))
end
end