Skip to content

Instantly share code, notes, and snippets.

@Palatnyi
Last active August 1, 2022 14:15
Show Gist options
  • Save Palatnyi/f1ea1b7281cbe7bac9b29ed1beebf234 to your computer and use it in GitHub Desktop.
Save Palatnyi/f1ea1b7281cbe7bac9b29ed1beebf234 to your computer and use it in GitHub Desktop.
//alert for operator and drone
{
alertId: '123',
detections: [{
positions: [ {},{} ]
detectionType: 'remote'
detectionId: 9977
}, {
positions: [ {}, {} ]
detectionType: 'drone'
detectionId: 3333
}]
}
// new alert for the ssame device and/or operator
{
alertId: '777',
detections: [{
positions: [ ... ]
detectionType: 'remote'
detectionId: 9977 // same id as for alertId: 123 ???
...
}, {
positions: [ ... ]
detectionType: 'drone'
detectionId: 3333, // same id as for alertId: 123 ???
...
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment