juhalehtonen / ex_uptimerobot Goto Github PK
View Code? Open in Web Editor NEWSmall Elixir wrapper for Uptime Robot API
License: MIT License
Small Elixir wrapper for Uptime Robot API
License: MIT License
PSP support was added recently, but tests for them are still missing.
The ExUnit tests currently in place use the Mock library, so the new tests should follow suit.
All PSP-related API methods are currently missing:
The editMWindow API method is missing.
The README currently mentions how not all features of the Uptime Robot API are supported. This should be corrected once all API method wrappers are added.
Currently all function names are more or less identical to how the official API names its methods.
However, since we are already separating different types of API calls to their own modules, it would make sense to clean up the function names and let the distinctively named modules to handle the separation.
For example, there's no real need for the function to get maintenance windows to be called ExUptimerobot.MaintenanceWindow.get_maintenance_windows()
when it could just be ExUptimerobot.MaintenanceWindow.get()
. The same applies for everything else, such as how ExUptimerobot.Monitor.new_monitor()
could just as well be ExUptimerobot.Monitor.new()
.
I'm not planning on introducing this change right away, but rather would like to collect some data and thoughts about the change first. In case anyone has any further thoughts on this, please do share.
The following are not present:
Currently the tests are calling the real API, which can result in unexpected behaviour and inconsistent results (timeouts at any point in time can make the build fail).
This could be achieved with something like https://github.com/jjh42/mock
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.