-
-
Notifications
You must be signed in to change notification settings - Fork 672
Badges
davidak edited this page Aug 8, 2020
·
2 revisions
Using shields.io you can easily create Badges for your services. Using the URL below, you can format your own SVG badge:
https://img.shields.io/badge/dynamic/json?url=<URL>&label=<LABEL>&query=<$.DATA.SUBDATA>&color=<COLOR>&prefix=<PREFIX>&suffix=<SUFFIX>
-
url- URL for JSON endpoint -
label- Text for the left side of the badge -
query- JSON Path to be set for right side value
- URL: https://demo.statping.com/api/services/1
- JSON Path:
$.online_24_hours - Suffix:
%
https://img.shields.io/badge/dynamic/json?color=blue&label=%20Statping%20Uptime&query=%24.online_24_hours&url=https%3A%2F%2Fdemo.statping.com%2Fapi%2Fservices%2F1&suffix=%
- URL: https://demo.statping.com/health
- JSON Path:
$.services - Suffix:
services
https://img.shields.io/badge/dynamic/json?color=purple&label=Demo%20Site&query=%24.services&url=https://demo.statping.com/health&suffix=%20services
Statping.com | Demo | Docker | Notifiers | API
Email: info@statping.com
