mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-10-23 19:12:38 +00:00
feat(api): differentiate traces and pings
This commit is contained in:
12 files changed
+90
-20
No files matched your search
@@ -1941,6 +1941,12 @@ const docTemplate = `{
|
||||
"name": "scope",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by type: TRACE or PING (default: all)",
|
||||
"name": "type",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by first_heard_at \u003e= since (epoch ms)",
|
||||
@@ -3123,6 +3129,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"snr": {
|
||||
"description": "signal-to-noise ratio in dB, if available",
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
@@ -3358,6 +3365,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"packets": {
|
||||
"description": "all packets observed for this trace",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.TracePacket"
|
||||
@@ -3381,27 +3389,33 @@ const docTemplate = `{
|
||||
"type": "integer"
|
||||
},
|
||||
"packetHash": {
|
||||
"description": "hex-encoded packet hash",
|
||||
"type": "string"
|
||||
},
|
||||
"rawPath": {
|
||||
"description": "hops as received in the packet",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.RawHop"
|
||||
}
|
||||
},
|
||||
"resolvedRoute": {
|
||||
"description": "hops resolved to known nodes",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.ResolvedHop"
|
||||
}
|
||||
},
|
||||
"routeType": {
|
||||
"description": "numeric route type",
|
||||
"type": "integer"
|
||||
},
|
||||
"routeTypeName": {
|
||||
"description": "human-readable route type",
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"description": "transport scope name, if known",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
@@ -3428,6 +3442,10 @@ const docTemplate = `{
|
||||
"traceTag": {
|
||||
"description": "hex-encoded 4-byte tag",
|
||||
"type": "string"
|
||||
},
|
||||
"traceType": {
|
||||
"description": "TRACE or PING",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1939,6 +1939,12 @@
|
||||
"name": "scope",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by type: TRACE or PING (default: all)",
|
||||
"name": "type",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by first_heard_at \u003e= since (epoch ms)",
|
||||
@@ -3121,6 +3127,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"snr": {
|
||||
"description": "signal-to-noise ratio in dB, if available",
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
@@ -3356,6 +3363,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"packets": {
|
||||
"description": "all packets observed for this trace",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.TracePacket"
|
||||
@@ -3379,27 +3387,33 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"packetHash": {
|
||||
"description": "hex-encoded packet hash",
|
||||
"type": "string"
|
||||
},
|
||||
"rawPath": {
|
||||
"description": "hops as received in the packet",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.RawHop"
|
||||
}
|
||||
},
|
||||
"resolvedRoute": {
|
||||
"description": "hops resolved to known nodes",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.ResolvedHop"
|
||||
}
|
||||
},
|
||||
"routeType": {
|
||||
"description": "numeric route type",
|
||||
"type": "integer"
|
||||
},
|
||||
"routeTypeName": {
|
||||
"description": "human-readable route type",
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"description": "transport scope name, if known",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
@@ -3426,6 +3440,10 @@
|
||||
"traceTag": {
|
||||
"description": "hex-encoded 4-byte tag",
|
||||
"type": "string"
|
||||
},
|
||||
"traceType": {
|
||||
"description": "TRACE or PING",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -755,6 +755,7 @@ definitions:
|
||||
description: hex-encoded path hash
|
||||
type: string
|
||||
snr:
|
||||
description: signal-to-noise ratio in dB, if available
|
||||
type: number
|
||||
type: object
|
||||
github_com_MeshCore-Beacon_beacon-server_internal_api.Region:
|
||||
@@ -912,6 +913,7 @@ definitions:
|
||||
github_com_MeshCore-Beacon_beacon-server_internal_api.TraceDetail:
|
||||
properties:
|
||||
packets:
|
||||
description: all packets observed for this trace
|
||||
items:
|
||||
$ref: '#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.TracePacket'
|
||||
type: array
|
||||
@@ -928,20 +930,26 @@ definitions:
|
||||
description: epoch ms
|
||||
type: integer
|
||||
packetHash:
|
||||
description: hex-encoded packet hash
|
||||
type: string
|
||||
rawPath:
|
||||
description: hops as received in the packet
|
||||
items:
|
||||
$ref: '#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.RawHop'
|
||||
type: array
|
||||
resolvedRoute:
|
||||
description: hops resolved to known nodes
|
||||
items:
|
||||
$ref: '#/definitions/github_com_MeshCore-Beacon_beacon-server_internal_api.ResolvedHop'
|
||||
type: array
|
||||
routeType:
|
||||
description: numeric route type
|
||||
type: integer
|
||||
routeTypeName:
|
||||
description: human-readable route type
|
||||
type: string
|
||||
scope:
|
||||
description: transport scope name, if known
|
||||
type: string
|
||||
type: object
|
||||
github_com_MeshCore-Beacon_beacon-server_internal_api.TraceTagSummary:
|
||||
@@ -961,6 +969,9 @@ definitions:
|
||||
traceTag:
|
||||
description: hex-encoded 4-byte tag
|
||||
type: string
|
||||
traceType:
|
||||
description: TRACE or PING
|
||||
type: string
|
||||
type: object
|
||||
internal_api_handlers.APIError:
|
||||
properties:
|
||||
@@ -2246,6 +2257,10 @@ paths:
|
||||
in: query
|
||||
name: scope
|
||||
type: string
|
||||
- description: 'Filter by type: TRACE or PING (default: all)'
|
||||
in: query
|
||||
name: type
|
||||
type: string
|
||||
- description: Filter by first_heard_at >= since (epoch ms)
|
||||
in: query
|
||||
name: since
|
||||
|
||||
Reference in new issue
Block a user