- Java 11 +
- Gradle 7.3
- Open a terminal and go to root project folder (
monitor
) - Execute
gradlew test
- Open a terminal and go to root project folder (
monitor
) - Execute
gradlew bootRun
- On a browser go to
http://localhost:8080/http-monitor
- Monitoring page refresh automatically each 30secs.
logging.level.root
: logging level, defaultinfo
logging.file.name
: full path to the file to be logged, defaultmonitor.log
undermonitor project folder
monitor.http.defaultCheckPeriodInMillis
: monitoring check period in milliseconds, default60000
monitor.http.monitoredObjectsFilePath
: full path to.json
file which has urls to be monitored. defaultsrc/main/resources/urls.json
- modify
src/main/resources/urls.json
file adding/removing url objects - URL object parameters:
- name: validator's name
- url: url to be validated
- regexValidator: String or regex expression to be found in the page
{
"name": "WikiFinland",
"url": "https://en.wikipedia.org/wiki/Finland",
"regexValidator": "(Arg\\w music | tango)"
}