Closed NikoGrano closed 3 years ago
Thanks! Looks good.
All good for me, will issue a Vigil release and bump all Reporter libraries.
Note that I've normalized code w/ Vigil code style + remapped the DELETE URL to contain the replica_id
, which is more RESTful. Ref: 12ef1153a8aab80613986c8a3ae1a016f55d0ed4
Thanks again!
NodeJS library updated, I've done it a bit differently and integrated the flush
option in the existing .end()
method: https://github.com/valeriansaliou/node-vigil-reporter#2-teardown-reporter
v1.3.0
of the library has been published on NPM.
Thanks, I started working on typescript implementation before you published new one. https://github.com/NikoGrano/ts-vigil-reporter
Feel free to mention. if you want.
Thanks added :)
In some cases replica is required to be removed to avoid false-positives. Example case.
Endpoint URL:
HTTP DELETE https://status.example.com/reporter/<probe_id>/<node_id>/
Where:
node_id
: The parent node of the reporting replicaprobe_id
: The parent probe of the nodeRequest headers:
Authorization
header with aBasic
authentication where the password is your configuredreporter_token
.Content-Type
toapplication/json; charset=utf-8
, and ensure you submit the request data as UTF-8.Request data:
Adjust the request data to your replica context and send it as
HTTP DELETE
:Where:
replica
: The replica unique identifier (eg. the server LAN IP)First time writing rust, don't shoot me 😅
ref #77