Skip to main content
POST
/
api
/
event
/
getPolicyAlertGroupsForDevice
Get recent policy alerts for device, grouped by time
curl --request POST \
  --url https://api2.rhombussystems.com/api/event/getPolicyAlertGroupsForDevice \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-scheme: <x-auth-scheme>' \
  --data '
{
  "deviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
  "lastTimestampMs": 1640995200000,
  "lastUuid": "AAAAAAAAAAAAAAAAAAAAAA",
  "maxResults": 100
}
'
{
  "error": true,
  "errorMsg": "<string>",
  "policyAlertGroups": [
    {
      "endTime": 1641081600000,
      "policyAlerts": [
        {
          "airQualityIndex": 123,
          "airQualityIndexThreshold": 123,
          "alertMonitoringThreatCaseUuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "alertMonitoringVerified": true,
          "alertingEventFaces": [
            {
              "faceId": "<string>",
              "faceName": "<string>",
              "imageS3Bucket": "<string>",
              "imageS3Key": "<string>",
              "imageS3Region": "<string>",
              "labels": [
                "<string>"
              ],
              "personUuid": "AAAAAAAAAAAAAAAAAAAAAA"
            }
          ],
          "alertingEventVehicles": [
            {
              "imageS3Bucket": "<string>",
              "imageS3Key": "<string>",
              "imageS3Region": "<string>",
              "labels": [
                "<string>"
              ],
              "licensePlateNumber": "<string>",
              "vehicleName": "<string>"
            }
          ],
          "cd": "<string>",
          "cdn": "<string>",
          "ch2oPpb": 123,
          "ch2oPpbThreshold": 123,
          "clipLocation": {
            "region": "<string>"
          },
          "clipLocationMap": {},
          "clipLocationMapV2": {},
          "cllmBooleanValue": true,
          "cllmCheckCondition": {
            "operator": "GT",
            "value": "<string>"
          },
          "cllmIntegerValue": 123,
          "cllmPromptTypeEnum": "COUNT",
          "cllmPromptUuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "co2": 123,
          "co2Ppm": 123,
          "co2PpmThreshold": 123,
          "co2Threshold": 123,
          "coConcentration": 123,
          "coConcentrationThreshold": 123,
          "componentUuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "delayedProcessing": true,
          "deleted": true,
          "deviceType": "BLE_TRACKER",
          "deviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "durationSec": 123,
          "egressBoundaryDevices": [
            "AAAAAAAAAAAAAAAAAAAAAA"
          ],
          "ethanol": 123,
          "ethanolThreshold": 123,
          "finalized": true,
          "heatIndexDegF": 123,
          "heatIndexDegFThreshold": 123,
          "humidityPercent1616": 123,
          "humidityPercentThreshold1616": 123,
          "humidityPermyriad": 123,
          "humidityThresholdPermyriad": 123,
          "iaq": 123,
          "iaqThreshold": 123,
          "ingressBoundaryDevices": [
            "AAAAAAAAAAAAAAAAAAAAAA"
          ],
          "leakDetected": true,
          "locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "maxLuf": 123,
          "notificationSent": true,
          "noxIdx": 123,
          "noxIdxThreshold": 123,
          "numHumans": 123,
          "orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "peopleCountHighThreshold": 123,
          "peopleCountLowThreshold": 123,
          "pm10p0": 123,
          "pm10p0Threshold": 123,
          "pm1p0": 123,
          "pm1p0Threshold": 123,
          "pm25": 123,
          "pm25Threshold": 123,
          "pm4p0": 123,
          "pm4p0Threshold": 123,
          "policyAlertTriggers": [
            "SOUND_LOUD"
          ],
          "policyUuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "pressure": 123,
          "pressureThreshold": 123,
          "probeTempC": 123,
          "probeTempCThreshold": 123,
          "probeTempThreshold": 123,
          "relHumid": 123,
          "relHumidThreshold": 123,
          "saved": true,
          "shared": true,
          "subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA",
          "tamperByMovementChange": 123,
          "tampered": true,
          "tempC": 123,
          "tempCThreshold": 123,
          "tempProbePresent": true,
          "temperatureCelsius1616": 123,
          "temperatureCelsiusThreshold1616": 123,
          "temperaturePermyriad": 123,
          "temperatureThresholdPermyriad": 123,
          "textDescription": "<string>",
          "thcPercent": 123,
          "thcPercentThreshold": 123,
          "thumbnailLocation": {
            "region": "<string>"
          },
          "thumbnailLocationV2": "<string>",
          "timestampMs": 123,
          "tvoc": 123,
          "tvocThreshold": 123,
          "type": "POLICY_ALERT_V2",
          "uuid": "AAAAAAAAAAAAAAAAAAAAAA",
          "vapeDetected": true,
          "vapeSmokePercent": 123,
          "vapeSmokePercentThreshold": 123,
          "vocIdx": 123,
          "vocIdxThreshold": 123
        }
      ],
      "startTime": 1640995200000
    }
  ],
  "warningMsg": "<string>"
}

Authorizations

x-auth-apikey
string
header
required

Your API key for Rhombus.

Headers

x-auth-scheme
string
default:api-token
required

Authentication scheme indicator ("api-token").

Required string length: 9

Body

application/json

Request object for retrieving policy alert groups for a specific device.

deviceUuid
string<RUUID> | null

base 64 (url-safe) uuid string

Example:

"AAAAAAAAAAAAAAAAAAAAAA"

lastTimestampMs
integer<int64> | null

Last timestamp for pagination (required with LastUuid)

Example:

1640995200000

lastUuid
string<RUUID> | null

base 64 (url-safe) uuid string

Example:

"AAAAAAAAAAAAAAAAAAAAAA"

maxResults
integer<int32> | null

Maximum number of results to return

Example:

100

Response

200 - application/json

OK

Response object containing policy alert groups for a specific device.

error
boolean | null
errorMsg
string | null
policyAlertGroups
object[] | null

List of policy alert groups for the device

warningMsg
string | null