Hanzo AI
OpenapiPatrol

Get incident

Returns one response whole: the incident, every act performed on it, and the SLA clocks those acts settled.

GET /v1/patrol/incident/{name}

Addresshttps://api.hanzo.ai/v1/patrol/incident/{name}
MethodGET
Operationget_patrol_incident_by_name
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one response whole: the incident, every act performed on it, and the SLA clocks those acts settled. The clocks are derived from the stamps and stored nowhere.

Request

1 field.

FieldInTypeRequiredDescription
namepathstringyesName is the incident's document name, from the path.

Response

StatusBodyMeaning
200patrol.patrolIncidentOutok
defaultproblem-detailsrefused

200 body — 34 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolIncident
data.checkedbodystringChecked is when the premises had been walked.
data.clocksbodypatrol.patrolClock[]Clocks is the SLA clocks, present on a single-incident read.
data.clocks[].elapsedbodyinteger (int64)Elapsed is the seconds run so far, or the seconds it took when settled.
data.clocks[].labelbodystringLabel names the clock: Verify, Dispatch or On site.
data.clocks[].settledbodyinteger (int64)Settled is the seconds it took, or -1 while the clock is still running.
data.clocks[].targetbodyinteger (int64)Target is the contracted seconds.
data.closedbodystringClosed is when the incident was closed.
data.dispatchedbodystringDispatched is when a unit was assigned.
data.enroutebodystringEnroute is when that unit started moving.
data.escalatedbodystringEscalated is when it was escalated, or empty.
data.falsebodybooleanFalse says the activation turned out to be nothing.
data.filedbodystringFiled is when the report was written.
data.namebodystringName is the incident's document name.
data.onsitebodystringOnsite is when it arrived.
data.openedbodystringOpened is when the activation landed.
data.outcomebodystringOutcome is what it came to.
data.refbodystringRef is the receiving centre's own reference.
data.securedbodystringSecured is when the site was made safe.
data.sitebodystringSite is where it is happening.
data.slabodyinteger (int64)SLA is the contracted response time in minutes.
data.statebodystringState is one of received, verified, dispatched, enroute, onsite, checked, secured, filed and closed.
data.stepsbodypatrol.patrolAct[]Steps is the act trail, present on a single-incident read.
data.steps[].actbodystringAct is the act performed.
data.steps[].actorbodystringActor is who performed it.
data.steps[].atbodystringAt is when it happened.
data.steps[].detailbodystringDetail is what they wrote with it.
data.steps[].frombodystringFrom is the state the incident left.
data.steps[].tobodystringTo is the state it landed in.
data.tierbodystringTier is the site's contracted service tier.
data.triggerbodystringTrigger is what the panel reported.
data.unitbodystringUnit is the call sign attending, or empty.
data.verifiedbodystringVerified is when the activation was confirmed real.
data.zonebodystringZone is the panel zone that reported.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol incident get <name>

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page