Get last pings from specific Scanner of ScannerType
GET/scanner/:scanner_type_guid/instance/:scanner_guid/pings
Retrieves the ScannerPings from a specific Scanner of a specific ScannerType. If the limit is not set, it will return the last 10 pings.
Request
Path Parameters
The guid of the ScannerType.
The guid of the Scanner.
- application/json
Body
Input data
Default value: 10
The amount of last pings to retrieve.
Responses
- 200
- 404
ScannerPings of Scanner found.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The guid of the Scanner that is being pinged.
The timestamp on which the ScannerPing was entered into the database.
The timestamp on which the ScannerPing was originally submitted.
The name of the Scanner that is being pinged.
The current battery_percentage of the Scanner.
Possible values: [charging
, discharging
]
The current charging status of the battery of the Scanner.
Possible values: <= 100
The percentage wise network quality of the Scanner.
Possible values: [wifi
, 1G
, 2G
, 3G
, 3.5G
, 4G
, 4.5G
, 5G
, unknown
]
The type of network connection of the Scanner.
The latitude in LatLng format of the Scanner location.
The longitude in LatLng format of the Scanner location.
Possible values: <= 1000000
The precision of said location.
[
{
"scanner_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "string",
"submitted_at": "string",
"name": "string",
"battery_percentage": 0,
"battery_status": "charging",
"network_quality": 0,
"network_type": "wifi",
"latitude": 0,
"longitude": 0,
"precision": 0
}
]
ScannerType or Scanner not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}