mirror of https://github.com/statping/statping
Updated Bulk Import Services (markdown)
parent
c7a632097c
commit
7ea0d87c83
|
@ -1,4 +1,4 @@
|
||||||
You can import multiple services when the Statping service first loads by creating a file named [service.yml](https://github.com/statping/statping/wiki/services.yml). It will insert the new service into the database, and will not be re-added on reboot.
|
You can import multiple services when Statping first loads by creating a file named [service.yml](https://github.com/statping/statping/wiki/services.yml) in the working directory for Statping. It will insert the new service into the database, and will not be re-added on reboot. All services must be an array under the `services:` field.
|
||||||
|
|
||||||
## Custom Yaml
|
## Custom Yaml
|
||||||
With Yaml, you can insert "anchors" to make receptive fields simple! Checkout the example below. The `&tcpservice` anchor will return all the fields belonging to `x-tcpservice:`. To reuse these fields for each service, you can insert `<<: *tcpservice` and thats it!
|
With Yaml, you can insert "anchors" to make receptive fields simple! Checkout the example below. The `&tcpservice` anchor will return all the fields belonging to `x-tcpservice:`. To reuse these fields for each service, you can insert `<<: *tcpservice` and thats it!
|
||||||
|
@ -40,4 +40,11 @@ services:
|
||||||
- name: Statping Github
|
- name: Statping Github
|
||||||
domain: https://github.com/statping/statping
|
domain: https://github.com/statping/statping
|
||||||
<<: *httpservice
|
<<: *httpservice
|
||||||
|
```
|
||||||
|
|
||||||
|
## Duplicates
|
||||||
|
Services that have already been added into the database will not be added again. This is done by creating a SHA256 hash of the following fields...
|
||||||
|
|
||||||
|
```
|
||||||
|
sha256(name:EXAMPLEdomain:HTTP://DOMAIN.COMport:8080type:HTTPmethod:GET)
|
||||||
```
|
```
|
Loading…
Reference in New Issue