Skip to main content

Alerts

Alerts are the backbone of reporting and it keeps all elements of an alert. Alerts can be queried by string parameters and camera. Alert API works with unix timestamp as the start and end time of the queried alerts and those are required for all type of API calls. So it returns alerts, which created in the given time period only.

It is recommended to use frequent API calls by keeping the distance between start and end time, because it is easier to manage less alerts at a time. However there is no limitation on start and end times, it is completely up to your scripting structure.

Export alerts based on time interval

GET/alerts/export

Arguments

Query String Parameters
  • start Long required The timestamp where the alerts are happened later
  • end Long required The timestamp where the alerts are happened earlier
  • facilityId List[UUID] optional
  • cameraId List[UUID] optional
  • format Enum optional
    • CSV (default)
    • JSON
    • JSONL
  • alertType List[Enum] optional
    • HELMET
    • FACE_MASK
    • GLOVE...
  • alertRuleId List[UUID] optional
  • severity List[Enum] optional
    • LOW
    • MEDIUM
    • HIGH
  • observation Boolean optional
  • limit Int optional
  • falsePositive Boolean optional
  • customerFalsePositive Boolean optional
  • intenseyeBookmark Boolean optional
  • bookmark Boolean optional

Returns

Returns list of alert objects for given parameters.

FieldTypeDescription
idUUIDUnique identifier for alert
nameEnumAlert name ex: GLOVE, HELMET
localCreatedAtDateTimeAlert creation date
alertRuleIdUUIDAlert rule id
cameraIdUUIDUnique identifier for a camera in which alert is created from
facilityIdUUIDUnique identifier for a facility
severityEnumSeverity type ex: HIGH, MEDIUM & LOW
observationBooleanThe field shows that an alert is created for just observation or not
falsePositiveBooleanThe field shows that an alert is marked as false positive by Intenseye team
customerFalsePositiveBooleanThe field shows that an alert is marked as false positive by customers
intenseyeBookmarkBooleanThe field shows that an alert is marked by Intenseye team
bookmarkBooleanThe field shows that an alert is marked by customer
bannerInfoStringReturns banner in fo on alert image. Ex: Speed limit Motorcycle-30.00kph/31.97kph

P.S: To include NOT reported alerts in falsePositive and customerFalsePositive fields, both parameters must be used in the query parameters as null

id,name,localCreatedAt,alertRuleId,cameraId,facilityId,severity,observation,falsePositive,customerFalsePositive,intenseyeBookmark,bookmark,bannerInfo
a68b9378-1a8b-427a-bc6b-a644212a0cb8,HELMET,2022-10-04T20:47:00Z,bd087d4f-13e2-4044-900e-7188b1d4cc0d,d875c064-e8d9-434e-9cee-6996f1549888,3fa85f64-5717-4562-b3fc-2c963f66afa6,LOW,false,true,false,false,Speed limit Motorcycle-30.00kph/31.97kph
cccd2663-1fa4-40c9-9739-162e474f5c88,GLOVE,2022-10-04T20:51:00Z,bd087d4f-13e2-4044-900e-7188b1d4cc0d,d875c064-e8d9-434e-9cee-6996f1549888,3fa85f64-5717-4562-b3fc-2c963f66afa6,LOW,false,false,false,true,Speed limit Motorcycle-30.00kph/31.97kph