geopython / GeoHealthCheck

Service Status and QoS Checker for OGC Web Services
https://geohealthcheck.org
MIT License
84 stars 71 forks source link

Short report as widget on external sites #260

Open pvgenuchten opened 5 years ago

pvgenuchten commented 5 years ago

I want to suggest this new feature for geohealthcheck: provide a method that exposes a javascript snippet or dynamic image representing the current/recent state of a service to be represented as a logo on an external website (like a catalog) having a reference to a wms/wfs service monitored by geohealthcheck.

We need a mechanism to identify a certain monitoring by url#layername (instead of using resource-id, which is not known in the external website.

The external website would include a snippet like:

<a href="https://demo.geohealthcheck.org/resource?url=http://example.com/address/wms#adr:address">
<img src="https://demo.geohealthcheck.org/summary?url=http://example.com/address/wms#adr:address&width=200&height=100" />
</a>

Geohealthcheck will return an image presenting the current (or last month) service quality (or 404 if the service is not monitored).

image

An additional feature could be that in case the service is not monitored yet, a monitor could be automatically set up (is that risky?)

justb4 commented 5 years ago

Good suggestion! Via #257 #262 currently working on summary reporting via API (with content-type negotiation). So this fits well! Need to work out details. Getting single Layer status is tricky as status is run per endpoint. Setting up a monitor automatically set up could be risky, there is an existing issue #20 to at least setup programmatically. Basic Auth via API is planned. We will need a more structured API approach like OAS anyway.

pvgenuchten commented 5 years ago

Ok, to not go into individual layers, but only mention full service quality