Skip to content

Commit

Permalink
2021-08-24 API updates and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
NodePing committed Aug 28, 2021
1 parent 129bd68 commit 0695a25
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 8 deletions.
28 changes: 23 additions & 5 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
All notable changes to this project will be documented in this file.

## [Unreleased]

(Placeholder for unreleased content)

## [1.2.5]

### Added

- `autodiag` flag for check creation
- Verify subminute interval check creation works
- Add `autodiagnotifications` to account creation and update options

## [1.2.4]

### Added
Expand All @@ -18,7 +27,6 @@ All notable changes to this project will be documented in this file.
- Added the `sendheaders` field to the HTTP Parse check
- Improved the `create_check.httpparse_check` docstring


## [1.2.2]

### Added
Expand Down Expand Up @@ -53,67 +61,77 @@ Fixed the `disabled_checks` function to check the `enable` field to see if the c
2020-08-25

### Added

- Added the `servername` variable to `create_check.ssl_check`

## [1.1.3]

2020-07-16

### Fixed

- Failed import fixed for Python 2.7

## [1.1.2]

2020-05-06

### Added

- Support for getting diagnostics data <https://nodeping.com/docs-api-diagnostics.html>

## [1.1.1]

### Added

- Support for creating AGENT checks <https://nodeping.com/agent_check.html>
- Test added for creating an AGENT check

## [1.1]

### Added

- Support for the new maintenance functionality <https://nodeping.com/docs-api-maintenance.html>

## [1.0]

### Added

- New tests via pytest
- Code reuse was simplified with a couple functions in a _utils.py file for simple URL creation as well as a function that will escape strings that are used in URLs
- Code reuse was simplified with a couple functions in a \_utils.py file for simple URL creation as well as a function that will escape strings that are used in URLs

### Changed

- Error outputs are different. Instead of ambiguous errors or 403 Forbidden results due to an invalid token or customerid, error responses given directly from the API will be provided in dictionary format.

### Fixed
- group_contacts.py update_groups got a required vairable "name" for the name of the contact group that will be modified. Previously, group changes resulted in a new group being created instead of updated.

- group_contacts.py update_groups got a required vairable "name" for the name of the contact group that will be modified. Previously, group changes resulted in a new group being created instead of updated.

## [0.9.9_3]

### Changed

- Added Spec10DNS create check functionality
- Added Spec10RDDS create check functionality
- Added a verify parameter to verify DNSSEC when creating a DNS check (default is False)

### Fixed

- Contacts were not being created properly outside of email and sms contact types.
- Refer to the README and contacts.create_contact docstring. Instead of a list of addresses, it is now a list of dictionaries with the address and type.

## [0.9.9] - 2019-08-10

### Changed

- update_checks.update
- **checktype** parameter now required. This is the TYPE for the check (PING, HTTP, DNS, etc.)
- update_checks.update_many
- The `checkids` type was changed to a dictionary from a list to match the checktype with the check
- When updating many checks, the dict would look like {checkid1: TYPE, checkid2: TYPE}



### Fixed

- update_checks.update properly updates all fields. The lack of checktype could cause some fields for a check to not update
- update_checks.update_many properly updates all fields, for the same reason as above.
6 changes: 4 additions & 2 deletions nodeping_api/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def create_subaccount(token,
email,
timezone,
location,
emailme=False
emailme=False,
autodiagnotifications=False
):
""" Create a subaccount with your NodePing account.
Expand Down Expand Up @@ -79,7 +80,8 @@ def update_account(token,
timezone=None,
location=None,
emailme=False,
status=None
status=None,
autodiagnotifications=False
):
""" Update information about the parent account or subaccounts
Expand Down
Loading

0 comments on commit 0695a25

Please sign in to comment.