{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Metric 1 Output", "required": [ "version", "age", "last_update", "payment_rating", "up_time", "channels_info" ], "type": "object", "properties": { "version": { "description": "Version of the metrics output", "type": "integer", "minimum": 1 }, "age": { "description": "First time that the node it is see on services", "type": "integer" }, "last_update": { "type": "integer", "description": "The last time expressed in unix time that the rating was updated" }, "forwards_rating": { "type": "object", "properties": { "one_day": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last day", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the last day", "type": "integer", "minimum": 0 }, "local_failure": { "description": "local failure in percentage in the last day", "type": "integer", "minimum": 0 } } }, "ten_days": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last 10 days", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the last 10 days", "type": "integer", "minimum": 0 }, "local_failure": { "description": "local failure in percentage in the last 10 days", "type": "integer", "minimum": 0 } } }, "thirty_days": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last 30 days", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the last 30 days", "type": "integer", "minimum": 0 }, "local_failure": { "description": "Local failure in percentage in the last 30 days", "type": "integer", "minimum": 0 } } }, "six_months": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last 6 month", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the 6 month", "type": "integer", "minimum": 0 }, "local_failure": { "description": "Local failure in percentage in the last 6 month", "type": "integer", "minimum": 0 } } }, "full": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the known period", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the known period", "type": "integer", "minimum": 0 }, "local_failure": { "description": "Local failure in percentage in the known period", "type": "integer", "minimum": 0 } } } }, "up_time": { "type": "object", "properties": { "one_day": { "description": "Node Up time in the last day", "type": "integer", "minimum": 0 }, "ten_days": { "description": "Node Up time in the last 10 days", "type": "integer", "minimum": 0 }, "thirty_days": { "description": "Node Up time in the last 30 days", "type": "integer", "minimum": 0 }, "six_months": { "description": "Node Up time in the last 6 month", "type": "integer", "minimum": 0 }, "full": { "description": "Node Up time in the know period", "type": "integer", "minimum": 0 } } }, "channels_info": { "type": "array", "description": "The list of channels where the node is connected with and has a channel", "items": { "type": "object", "requirements": [ "channel_id", "node_id", "age", "capacity", "fee", "limits" ], "properties": { "age": { "type": "integer", "description": "Unix timestamp of the first time that the channels is known by the server" }, "channel_id": { "type": "string", "description": "The unique channel identifier" }, "node_id": { "type": "string", "description": "The public key of the node" }, "alias": { "type": "string", "description": "The alias of the node" }, "direction": { "type": "string", "description": "The direction of the channel" }, "capacity": { "type": "integer", "description": "Actual capacity of the channels expressed in milli satoshi" }, "fee": { "type": "object", "description": "Fee information related to the node", "properties": { "base": { "type": "integer", "description": "Base fee of the node", "minimum": 0 }, "per_msat": { "type": "integer", "description": "Per Millisatoshi fee of the node", "minimum": 0 } } }, "limits": { "type": "object", "description": "HTLC min and max limit of the node", "properties": { "min": { "type": "integer", "description": "The smallest payment source will allow via this channel express in msat" }, "max": { "type": "integer", "description": "The largest payment source will allow via this channel express in msat" } } }, "forwards_rating": { "type": "object", "properties": { "one_day": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last day", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the last day", "type": "integer", "minimum": 0 }, "local_failure": { "description": "local failure in percentage in the last day", "type": "integer", "minimum": 0 } } }, "ten_days": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last 10 days", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the last 10 days", "type": "integer", "minimum": 0 }, "local_failure": { "description": "Local failure in percentage in the last 10 days", "type": "integer", "minimum": 0 } } }, "thirty_days": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last 30 days", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the last 30 days", "type": "integer", "minimum": 0 }, "local_failure": { "description": "Local failure in percentage in the last 30 days", "type": "integer", "minimum": 0 } } }, "six_months": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the last 6 month", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the 6 month", "type": "integer", "minimum": 0 }, "local_failure": { "description": "Local failure in percentage in the last 6 month", "type": "integer", "minimum": 0 } } }, "full": { "type": "object", "properties": { "success": { "description": "Success rating in percentage in the known period", "type": "integer", "minimum": 0 }, "failure": { "description": "Failure rating in percentage in the known period", "type": "integer", "minimum": 0 }, "local_failure": { "description": "Local failure in percentage in the known period", "type": "integer", "minimum": 0 } } } }, "up_time": { "type": "object", "properties": { "one_day": { "description": "Node Up time in the last day", "type": "integer", "minimum": 0 }, "ten_days": { "description": "Node Up time in the last 10 days", "type": "integer", "minimum": 0 }, "thirty_days": { "description": "Node Up time in the last 30 days", "type": "integer", "minimum": 0 }, "six_months": { "description": "Node Up time in the last 6 month", "type": "integer", "minimum": 0 }, "full": { "description": "Node Up time in the know period", "type": "integer", "minimum": 0 } } } } } } } } } }