Skip to content

Releases: mmahacek/PyONMS

v0.1.3

26 Feb 20:14
f229a05
Compare
Choose a tag to compare

[0.1.3] 2024-02-26

What's Changed

  • Revert nodes get functions to default components to NodeComponents.NONE instead of ALL.
  • Added Enlkind endpoint and models.
  • Update local testing/linting configuration.
  • Add testing for utils methods.
  • Add mypy for type checking during development.
  • Add pyonms.utils.check_ip_address() to validate IP addresses.
  • Fix type hint for models.Info's version and datetimeformatConfig attributes.
  • Rename all _to_dict() methods to to_dict(). Added stub method reference to keep backward compatibility.

Full Changelog: v0.1.2...v0.1.3

v0.1.2

21 Dec 22:55
7d01ee3
Compare
Choose a tag to compare

What's Changed

  • Updated ApiPayloadError exception to trigger when API returns HTTP 400+.

Full Changelog: v0.1.1...v0.1.2

v0.1.1

21 Dec 22:22
bea15bf
Compare
Choose a tag to compare

Breaking Change

  • Add ApiPayloadError exception when API returns HTTP 500-599. Previously many error responses were steamrolled over.

What's Changed

  • Renamed internal uri parameters to be url.
  • Deprecate MethodNotImplemented exception. Replaced with base NotImplementedError.
  • Docstring updates to satisfy pylint.
  • Prevent Event.id from being sent as part of the event payload when posting to the events endpoint.
  • Update get_foreign_sources() and get_requisitions() to no longer use custom _get() method.
  • Endpoint._put() method now returns the Requests.Response object instead of null.
  • Tweaks to testing framework settings.
  • Added NodeComponents.NONE option.
  • Fix type hint on Endpoint_post.data attribute.
  • Add Node/IP/Service metadata modification to the Nodes endpoint.

Full Changelog: v0.0.13...v0.0.14

v0.0.13

01 Dec 17:59
cd741ef
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.12...v0.0.13

v0.0.12

01 Dec 04:08
eba5a15
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.11...v0.0.12

v0.0.11

29 Nov 19:18
db13367
Compare
Choose a tag to compare

What's Changed

  • Add lastAutomationTime and firstAutomationTime parameters to the Alarm model
  • Apply pylint suggestions
  • Add option to set a timeout for REST calls
  • Slightly improve error handling on some REST calls

Full Changelog: v0.0.10...v0.0.11

v0.0.10

11 Sep 23:29
18b5c5f
Compare
Choose a tag to compare

Potentially Breaking Change

  • If a GET call returns an error 500, previously we suppressed the error and returned a None value. Now we will raise an InvalidValueError exception and print out the error message.

What's Changed

  • Added User Defined Link endpoint
  • Requisition endpoint updates
    • Added category add/remove methods
    • Ability to merge existing and new node if adding interfaces
    • Added method to send just one node to a requisition via REST
  • Event model rework - converted parameters from list to dict
  • Update reload_daemon method to use new event model
  • Add FIQL support to alarms, events, and nodes
    • For get_alarms, get_events, and get_nodes methods, you can add a fiql parameter to specify a valid search.
  • Option to ignore SSL certs

Full Changelog: v0.0.9...v0.0.10

v0.0.9

02 Aug 23:13
f0eaf11
Compare
Choose a tag to compare

What's Changed

  • Fix event object to_dict() method
  • Add OnmsMonitoredService status enum values
  • Add list of running daemons to Info object
  • Update alarm object to handle situation fields
  • Check for valid daemon name in reload_daemon()
  • Add support for creating/updating/deleting User Defined Links
  • Fix handling for non-JSON responses
  • Import/type hint/doc updates

Full Changelog: v0.0.8...v0.0.9

v0.0.8

12 Apr 01:29
d53f742
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.6...v0.0.8

v0.0.6

24 Feb 00:35
ba4a39d
Compare
Choose a tag to compare
v0.0.6 Pre-release
Pre-release

What's Changed

Added:

  • Health and Info endpoints. When creating a new PyONMS instance, these endpoints will be called to gather info and populate the info and health_status attributes.
  • Improvements to the Requisitions and Foreign Source endpoints.
    • Methods to add/remove Foreign Source detectors and policies
    • Method to add metadata to Requisition objects
  • Cleanup of import references

Full Changelog: v0.0.5...v0.0.6