- Split
requirements.txt
to just the necessary packages for operation and createdrequirements-dev.txt
for development. - Fix processing of
Info
endpoint services. - Update pytest to use environment variables for server credentials.
- Address pylint and mypy findings.
- [Development Tool] Docker Compose file for creating test Horizon instance.
Full Changelog: https://github.com/mmahacek/PyONMS/compare/v0.1.3...v0.1.4
- Revert nodes get functions to default components to
NodeComponents.NONE
instead ofALL
. - Added
Enlinkd
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
'sversion
anddatetimeformatConfig
attributes. - Rename all
_to_dict()
methods toto_dict()
. Added stub method reference to keep backward compatibility.
Full Changelog: https://github.com/mmahacek/PyONMS/compare/v0.1.2...v0.1.3
- Updated
ApiPayloadError
exception to trigger when API returns HTTP 400+.
Full Changelog: https://github.com/mmahacek/PyONMS/compare/v0.1.1...v0.1.2
- Add
ApiPayloadError
exception when API returns HTTP 500-599. Previously many error responses were steamrolled over.
- Renamed internal
uri
parameters to beurl
. - Deprecate
MethodNotImplemented
exception. Replaced with baseNotImplementedError
. - Docstring updates to satisfy pylint.
- Prevent
Event.id
from being sent as part of the event payload when posting to theevents
endpoint. - Update
get_foreign_sources()
andget_requisitions()
to no longer use custom_get()
method. Endpoint._put()
method now returns theRequests.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: https://github.com/mmahacek/PyONMS/compare/v0.0.13...v0.1.1
- Fixed
foreign_source
model for processingparameter
s. - Updated
dao
andmodel
module bases to allow importing within from thepyonms
module - Remove deprecated cloud portal module
- Remove deprecated Antora documentation
Full Changelog: https://github.com/mmahacek/PyONMS/compare/v0.0.12...v0.0.13
- Added IP Interface endpoint
Full Changelog: https://github.com/mmahacek/PyONMS/compare/v0.0.11...v0.0.12
- 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: https://github.com/mmahacek/PyONMS/compare/v0.0.10...v0.0.11
- If a GET call returns an error 500, previously we suppressed the error and returned a
None
value. Now we will raise anInvalidValueError
exception and print out the error message.
- 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
, andget_nodes
methods, you can add afiql
parameter to specify a valid search.
- For
- Option to ignore SSL certs
Full Changelog: https://github.com/mmahacek/PyONMS/compare/v0.0.9...v0.0.10
- 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: https://github.com/mmahacek/PyONMS/compare/v0.0.8...v0.0.9
- Requisition endpoint - add
set_asset
method - Change from a Process Pool to Thread Pool
- Update docstrings, type hinting, and packaging settings
Full Changelog: https://github.com/mmahacek/PyONMS/compare/v0.0.6...v0.0.8
Version skipped due to packaging issues.
Added:
- Health and Info endpoints. When creating a new
PyONMS
instance, these endpoints will be called to gather info and populate theinfo
andhealth_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: https://github.com/mmahacek/PyONMS/compare/v0.0.5...v0.0.6
First GitHub release