## Description
Copying over the health check from the
https://github.com/MystenLabs/sui/blob/main/crates/sui-rest-api/src/health.rs
into a route that's enabled by default on the fullnode.
This should be removed once the REST api is enabled for all fullnodes
## Test plan
tested locally
usage example (on a local sui-node starting from genesis):
```
$ curl localhost:9000/health
up%
$ curl 'localhost:9000/health?threshold_seconds=10000'
down%
$ curl 'localhost:9000/health?threshold_seconds=1000000000'
up%
```
---
## Release notes
Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.
For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.
- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] Indexer:
- [x] JSON-RPC: feature: adds a configurable health check endpoint for
json rpc fullnodes to report down if too far behind
- [ ] GraphQL:
- [ ] CLI:
- [ ] Rust SDK:
- [ ] REST API: