DEPRECATED. See https://github.com/geoblacklight/geo_monitor for the Rails engine version.
GeoMonitor is a application that monitors the health and availability of GeoServer hosts and layers. Built at Stanford University out of the desire to build a better discovery application for geospatial data, GeoBlacklight.
- RESTful API
- Host status pings
- Individual layer status using WMS requests
- Host and layer availability history
*Requires PostgreSQL 9.
This should be an array of geoblacklight-schema documents.
$ curl -L https://raw.githubusercontent.com/geoblacklight/geoblacklight-schema/master/examples/selected.json -o data/transformed.json
$ rake db:create
$ rake db:seed
$ rake ping:hosts
$ rake ci
# All layers
$ rake layers:check_all
# Check empties (layers that have not been checked yet)
$ rake layers:check_empties
# Check Stanford layers (private layers restricted to Stanford network)
$ rake layers:check_stanford
These rake tasks can be setup on cron jobs using the whenever gem. See /config/schedule.rb
every '15 * * * *' do
rake 'layers:check_stanford'
end
This task removes all but the last 200 statuses for each layer and saves them to a csv in data
$ rake cleanup:status
Documented support RESTful paths support json requests.
HTTP Verb | Path | Description |
---|---|---|
GET | /hosts/:id | Get a list of Layers on a given Host [:id] |
Supported parameters:
format
'html' and 'json'status
'OK', '??', and 'FAIL'page
1, 2, 3, etc.
Example request: http://127.0.0.1:3000/hosts/1?format=json&status=OK&page=3
- Fork it ( http://github.com//geomonitor/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 new Pull Request