Coder Social home page Coder Social logo

uptimerobotpy's People

Contributors

bcrobster avatar dependabot[bot] avatar flaixman avatar jpavlav avatar parsley72 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uptimerobotpy's Issues

Write Unit Tests

What good library is truly good without tests? Going to get some unittests written out for this one.

Editing existing monitor does not work

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:

  1. create a monitor (new_monitor) with an interval of e.g. 600
  2. update this monitor (up_robot.edit_monitor(identifier, interval=1200)) with an interval of e.g. 1200
  3. query the monitor (get_all_monitors)
  4. the interval of the monitor is still at 600

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.

Use of locals() vague

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.

Set up CI

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.