Want to know how much website downtime costs, and the impact it can have on your business?
Find out everything you need to know in our new uptime monitoring whitepaper 2021
The StatusCake API allows users of the platform to come up with custom ways of interacting and making our tools work for their specific needs. In this blog post I’m going to look at a few recent projects on GitHub that use the StatusCake API to either save you time or do something interesting with your test data.
vparpoil/status-cake-push-client: Python App to push regular updates to StatusCake (github.com)
In some instances, it’s not possible for StatusCake uptime tests to monitor certain secure system configurations. We offer a workaround for this, push monitoring. Push monitoring is the reverse of a standard uptime test, your server or device contacts our service to let us know it is still active. This is sometimes known as heartbeat monitoring.
This application created by GitHub user vparpoil is a allows a user to easily create the following type of PUSH tests:
Requirements
You can get a unique push test URL by navigating to the Push Test tab found under the uptime monitoring section to the left of the StatusCake status page.
Once you have set up your test you’ll receive a unique URL that will look something like this:
Next, all you need to do is create a tests.json file, and add a test including the required test details and your unique URL in the StatusCakeUrl property, like this basic ping test:
Tip: you can just copy the existing testsSample.json and remove/duplicate tests you need or don’t need.
chelnak/status-cake-exporter: A Prometheus exporter for StatusCake (github.com)
This application created by GitHub user chelnak is a Prometheus exporter for StatusCake test data. Prometheus is a tool that’s used for monitoring applications and services, it allows users to store time series metrics. In this project it is used with Grafana to render the metrics into charts, graphs and other flexible visualizations.
Requirements:
Once you’ve cloned the repo and followed the configuration steps listed in the readme you’ll be able to export the results of your StatusCake uptime tests to Grafana and produce something like this statusmap panel to get a useful visualisation.
This sort of visualisation is bound to win you some brownie points with management!
StatusCakeDev/statuscake-go: StatusCake Go SDK (github.com)
The Go implementation of the StatusCake API client. This is one of ours!
Requirements:
You’ll need to either use Go module support to import the dependencies or just install the StatusCake-go package using the command:
Once installed, open or create a .go file, instantiate an API client and execute a request, like so:
Couldn’t get any simpler than that! You should also keep an eye on our implementations for JavaScript and Python, they are both sill in alpha right now but that shouldn’t stop you from talking a look, we’d love your feedback.
You can view these and our other repositories here.
x-rm/Blink1-StatusCake (github.com)
This application controls a small Blink(1) device. Blink(1) started as a Kickstarter project and allows a user to configure the colour, brightness and pattern of a small USB LED dongle. Users of a Blink(1) device will usually configure this with a service such as IFTTT but GitHub user nmg196 has created a configurable application that checks the status of a user’s StatusCake uptime tests & SSL and will cause the Blink(1) device to emit a bright red warning light if there are any failed tests.
If you own a Blink(1) all you need to do to get set up is clone the repo and update the App.config file with your StatusCake username and API key in before installing the Windows Service. Pretty niche, but this project stood out as being quite a novel use of the StatusCake API!
I’ve touched on a few projects found on GitHub that can enrich your StatusCake experience, but don’t stop here, there are many more out there to be found. Have look yourself, perhaps you’ll find a project that will be a perfect solution for you, or perhaps you’ll get inspired to create your own. Cheers!
Share this
3 min read For any web developer, DevTools provides an irreplaceable aid to debugging code in all common browsers. Both Safari and Firefox offer great solutions in terms of developer tools, however in this post I will be talking about the highlights of the most recent features in my personal favourite browser for coding, Chrome DevTools. For something
6 min read There has certainly been a trend recently of using animations to elevate user interfaces and improve user experiences, and the more subtle versions of these are known as micro animations. Micro animations are an understated way of adding a little bit of fun to everyday user interactions such as hovering over a link, or clicking
2 min read Read about the latest websites that have experienced downtime including Netflix, Twitter, Facebook and more inside!
2 min read Read about how Google suffered an outage due to the soaring temperatures in the UK in July and how they rectified it right here!
3 min read See the results of our website downtime survey to see some of the most shocking and surprising stats! You won’t be disappointed.
6 min read Find out everything you need to know about Dark Mode and what you can do, as a developer, to make it easier to use.
Find out everything you need to know in our new uptime monitoring whitepaper 2021