bus
Get metrics
Changed onReturns the metrics for the specified key
get/bus/metric/{key}
Request
- The document declares no server URL.
- Authnone declared
Path parameters
key'contract' | 'contractprune' | 'performance' | 'wallet' required
The type of metric to fetch
Query parameters
startstring date-time required
Start time for the metrics query
ninteger required
Number of intervals to fetch
intervalinteger required
Interval duration in milliseconds
Example:30000
contractidstring
A unique identifier for a file contract
hostkeystring
A ed25519 public key
hostversionstring
Response
Successfully retrieved metrics
Example response
[
{
"revisionNumber": 246
}
]Changes
- breaking
removed the media type
text/plainfor the response with the status - info
api tag
busadded
- breaking
- info
endpoint added
- info