updown
Version, currently 0.2.03 versions
- 0.2.1latestJul 20, 2019
- 0.2.0not indexedJan 27, 2021
- 0.1.0not indexedJan 27, 2021
github.com/anamba/updown.cr
updown.io API helper
Nothing has been indexed for 0.2.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
updown:
github: anamba/updown.cr
version: ~> 0.2.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
updown.cr - updown.io API helper
See updown.io API Docs for more information on available endpoints and parameters.
Status: Works, but error handling is pretty rough (API documentation is a little sparse in this area, so it needs more real-world testing). Please open issues for anything you that could be improved.
Installation
-
Add the dependency to your
shard.yml:dependencies: updown: github: anamba/updown.cr -
Run
shards install
Usage
Configure API key either by setting UPDOWN_API_KEY in your environment or Updown.settings.api_key = "your key here".
require "updown"
# create a new check
check = Updown::Check.new("https://updown.io")
check.save
# list all existing checks
checks = Updown::Check.all
check = checks.last.get # re-fetch with metrics
# find a single check - to find token, either use `Updown::Check.all`
# or look at check page url (https://updown.io/[token])
check = Updown::Check.get("token") # returns nil if token doesn't exist (or wrong API key)
# change attributes and save
check.period # 300
check.period = 60 # 60
check.save # true (or Updown::Error)
All methods that call the Updown API raise Updown::Error on a non-200 response code.
Contributing
- Fork it (https://github.com/anamba/updown.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Aaron Namba - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.0- Tagged
- Jan 27, 2021
- Commit
a0d7da1f5827- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/anamba/updown.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 3