Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.7 KB

README.md

File metadata and controls

62 lines (41 loc) · 1.7 KB

statuscakectl

Statuscake is a Website Uptime & Performance Monitoring tool.

They offer a free plan and paid plans.

This is a small binary written in Golang which allows you to control statuscake via API.

Currently allows you to create/list/delete uptime tests and ssl monitoring.

Configuration

Set the following environment variables from statuscake in your machine.

export STATUSCAKE_USER=your_statuscake_user
export STATUSCAKE_KEY=your_key

Run with Docker

You can also use it with docker:

docker run -e STATUSCAKE_USER=your_statuscake_user -e STATUSCAKE_KEY=your_key omerha/statuscakectl:latest statuscakectl list ssl

Examples

# listing
statuscakectl list ssl
statuscakectl list uptime

# create
statuscakectl create ssl -d domain.com
statuscakectl create uptime --domain https://www.domain.com --checkrate 30 --type HTTP

# delete
statuscakectl delete ssl -d domain.com
statuscakectl delete ssl --id 1111111
statuscakectl delete uptime -d https://www.domain.com
statuscakectl delete uptime --id 1111111

If you'd like to test them out I would appriciate it if you do it via this affiliation link to help support my time working on this cool tool.

Build

# Use go modules add the following env var GO111MODULE=on
go build -ldflags "-s -w"

Contributing

Fork, implement, add tests, pull request, get my everlasting thanks and a respectable place here :).

Copyright

Copyright (c) 2020 Omer Haim, @omerhaim. See LICENSE for further details.