bcgov / DBC-APIM

DataBC OPEN API Services
Apache License 2.0
1 stars 0 forks source link

Heartbeat - Status check #47

Closed BK01 closed 7 years ago

BK01 commented 7 years ago

Enable python script to check if web services are online that don't necessarily have the execution time listed in response.

Perform this for Geomark and BCGNWS.

Output: textfile as well as JS, HTML visual chart.

This issue covers issues #24 and issue #6

banders commented 7 years ago

I have modified the Heartbeat.py script to support APIs that:

Also improved error handling.

Pull request is here.

@ll911 can you please merge the PR and update the Jenkins job to also test BCGNWS and Geomark. Here are the command line statements:

python heartbeat.py -url "http://apps.gov.bc.ca/pub/bcgnws/names/search?name=victoria&outputFormat=json" -o ../data/bcgnws-heartbeat.txt

python heartbeat.py -url "https://apps.gov.bc.ca/pub/geomark/geomarks/gm-7A4A2A93A090493186442C1A48B179C4/point.json?srid=4326" -o ../data/geomark-heartbeat.txt

banders commented 7 years ago

I have also modified the 'gh-pages' branch to include heartbeat graphs for BCGNWS and Geomark.

Pull request is here.