Skip to content

Commit

Permalink
Update service.md
Browse files Browse the repository at this point in the history
Signed-off-by: Ashutosh Tripathi <[email protected]>
  • Loading branch information
ashucoder9 authored Nov 22, 2024
1 parent fdbd24a commit 6c60adc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions api/health/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To get an HTTP status code response that indicates the node's health, make a `GE

To filter GET health checks, add a `tag` query parameter to the request. The `tag` parameter is a string. For example, to filter health results by subnetID `29uVeLPJB1eQJkzRemU8g8wZDw5uJRqpab5U2mX9euieVwiEbL`, use the following query:

```
```sh
curl 'http://localhost:9650/ext/health?tag=29uVeLPJB1eQJkzRemU8g8wZDw5uJRqpab5U2mX9euieVwiEbL'
```

Expand All @@ -32,7 +32,7 @@ In this example returned results will contain global health checks and health ch

In order to filter results by multiple tags, use multiple `tag` query parameters. For example, to filter health results by subnetID `29uVeLPJB1eQJkzRemU8g8wZDw5uJRqpab5U2mX9euieVwiEbL` and `28nrH5T2BMvNrWecFcV3mfccjs6axM1TVyqe79MCv2Mhs8kxiY` use the following query:

```
```sh
curl 'http://localhost:9650/ext/health?tag=29uVeLPJB1eQJkzRemU8g8wZDw5uJRqpab5U2mX9euieVwiEbL&tag=28nrH5T2BMvNrWecFcV3mfccjs6axM1TVyqe79MCv2Mhs8kxiY'
```

Expand Down Expand Up @@ -63,7 +63,7 @@ This method returns the last set of health check results.

**Example Call**:

```
```sh
curl -H 'Content-Type: application/json' --data '{
"jsonrpc":"2.0",
"id" :1,
Expand All @@ -76,7 +76,7 @@ curl -H 'Content-Type: application/json' --data '{

**Example Response**:

```
```json
{
"jsonrpc": "2.0",
"result": {
Expand Down Expand Up @@ -195,7 +195,7 @@ This method returns the last evaluation of the startup health check results.

**Example Call**:

```
```sh
curl -H 'Content-Type: application/json' --data '{
"jsonrpc":"2.0",
"id" :1,
Expand All @@ -208,7 +208,7 @@ curl -H 'Content-Type: application/json' --data '{

**Example Response**:

```
```json
{
"jsonrpc": "2.0",
"result": {
Expand Down Expand Up @@ -244,7 +244,7 @@ This method returns healthy.

**Example Call**:

```
```sh
curl -H 'Content-Type: application/json' --data '{
"jsonrpc":"2.0",
"id" :1,
Expand All @@ -254,7 +254,7 @@ curl -H 'Content-Type: application/json' --data '{

**Example Response**:

```
```json
{
"jsonrpc": "2.0",
"result": {
Expand Down

0 comments on commit 6c60adc

Please sign in to comment.