Skip to content

Commit

Permalink
Merge pull request #108 from HathorNetwork/dev
Browse files Browse the repository at this point in the history
Release: v0.12.0
  • Loading branch information
luislhl committed Dec 5, 2023
2 parents 23f4972 + 68bd025 commit 1cb6793
Show file tree
Hide file tree
Showing 11 changed files with 578 additions and 53 deletions.
80 changes: 79 additions & 1 deletion docs/apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ servers:
info:
title: tx-mining-service API
description: This service is used to resolving transactions before propagating them into the network
version: 0.11.0
version: 0.12.0
paths:
/health-check:
get:
Expand All @@ -19,6 +19,84 @@ paths:
summary: Success
value:
success: true
/health:
get:
summary: Check if the service and its components are up and running
responses:
'200':
description: Success
content:
application/json:
examples:
success:
summary: Success
value:
status: pass
description: Health status of TxMiningService
checks:
manager:
- status: pass
output: Everything is OK
component_name: manager
component_type: internal
fullnode:
- status: pass
output: Fullnode is responding correctly
component_name: fullnode
component_type: http
'503':
description: Service Unhealthy
content:
application/json:
examples:
no-miners:
summary: No miners connected
value:
status: fail
description: Health status of TxMiningService
checks:
manager:
- status: fail
output: No miners connected
component_name: manager
component_type: internal
fullnode:
- status: pass
output: Fullnode is responding correctly
component_name: fullnode
component_type: http
fullnode-not-responding:
summary: Fullnode is not responding
value:
status: fail
description: Health status of TxMiningService
checks:
manager:
- status: pass
output: Everything is OK
component_name: manager
component_type: internal
fullnode:
- status: fail
output: "Couldn't connect to fullnode: error"
component_name: fullnode
component_type: http
no-jobs-submitted:
summary: No jobs submitted
value:
status: fail
description: Health status of TxMiningService
checks:
manager:
- status: fail
output: No miners submitted a job in the last 1 hour
component_name: manager
component_type: internal
fullnode:
- status: pass
output: Fullnode is responding correctly
component_name: fullnode
component_type: http
/mining-status:
get:
summary: General information and statistics about mining
Expand Down
Loading

0 comments on commit 1cb6793

Please sign in to comment.