Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Auo/juppy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

41 Commits

Repository files navigation

Juppy

Java CI

A Java uptime monitor for personal use, currently there is no authentication or role handling.

Inspired by a tweet from @levelsio, stating that uptime monitors shouldn't be built because it's a saturated market.

I couldn't say no to that, it just seemed like a little fun project to tinker with.

UI

Navigate to the ip where you're hosting it and the specified port, default 3000.

API Endpoints

Method Path Description
GET /api/runners get all runners
GET /api/runners/:id get specific runner
DELETE /api/runners/:id remove runner
POST /api/runners create runner to ping URL
GET /api/results/:id results of runner
GET /health-check 200 OK if running

Configuration

A path needs to be pass along to the service when launching it. This path should point out a configuration file.

Example config file

# path to sqlite database, otherwise memory database will be used
sqlite.path=/path/to/dbfile.db
logback.path=/path/logback.xml
# port to run service on, default 3000
server.port=3000
# user agent for runner
runner.user-agent=
# mail settings
# all settings prefix with "mail." will be used
mail.auth=true
mail.smtp.host=host
mail.smtp.port=port
mail.smtp.starttls.enable=true
# who result is mailed from
mail.from=
# where result should be mailed
mail.to=
# should be the same as mail.from ( if authentication is used )
# these credentials will be used when authentication with the smtp server
mail.auth.username=
mail.auth.password=

Example logback.xml

<configuration debug="true">
 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
 <encoder>
 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
 </encoder>
 </appender>
 <root level="debug">
 <appender-ref ref="STDOUT" />
 </root>
</configuration>

Run

Build the project locally with Maven, mvn clean install and then go to the target directory.

To launch the application, run java -jar juppy-1.0-SNAPSHOT-jar-with-dependencies.jar /path/to/config.properties

About

Uptime monitor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /