jpavlav / uptimerobotpy Goto Github PK
View Code? Open in Web Editor NEWA simple python library to ease interacting with the UptimeRobot API.
License: MIT License
A simple python library to ease interacting with the UptimeRobot API.
License: MIT License
Do you know how to set POST value in Web-hook Alert Contact?
There is only value
field, but Web-hook (type = 5) has option POST Value (JSON format
. In Web GUI it's working, but via API not.
What good library is truly good without tests? Going to get some unittests written out for this one.
Hey @jpavlav, thanks for UptimeRobotPy. It has been of great use for me. Unfortunately editing existing monitors does not seem to work or I'm doing something wrong. Steps to reproduce:
new_monitor
) with an interval of e.g. 600up_robot.edit_monitor(identifier, interval=1200)
) with an interval of e.g. 1200get_all_monitors
)This seems to apply to all parameters except friendly_name
which works correctly.
Tried to change the interval using a cURL request which worked well so it's probably not an upstream issue. Let me know if you need more info.
Considering changing how payloads are handled. Utilizing locals() allowed for some pretty code and less lines overall, but considering the number of possible arguments to many of the calls related to creation or editing of resources such as monitors, psp's, etc, it might be better to create separate classes representing each type of payload.
The classes could have as their attributes the possible arguments to the API call itself. This would demystify things a bit. More code, less concise. More readable, probably less prone to error. Likely going to start working on a refactor to support these ideas.
Have had some experience with TravisCI and that's likely the direction I'm headed with this one too. After tests are written, going to get CI going.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.