logic_monitor v0.0.9 API Reference

Modules

The LogicMonitor Elixir package provides access to the LogicMonitor REST API as outlined here, including handling the LMv1 API Token Authentication described here. The sub-modules (Alerts, ApiTokens, etc…) provide access to specific resources, and the Request module is available for direct access or for unimplemented calls

Provides access to the Alerts resource

Provides access to the API Tokens Resource

Provides access to the Audit Logs (formerly Access Logs) Resource as described here

Provides access to the Devices resource

Mock Client for use in testing. Theory behind this approach to mocks explained by José Valim here

Mock module to replace System.system_time in testing. Provides a predictable timestamp to verify authorization hashing algorithm is functioning correctly

Helper module to convert parameters passed as a keyword list into a querystring

Provides the base request function and helper functions for GET and POST. Requests are authenticated using LMv1 Authentication as described here. All request functions return either {:ok, {status, data}} or {:error, reason}