Sla
Sla(config)
Creates an SLA definition (contract_sla): a timer that tracks service commitments
against task records. SLAs measure response time, resolution time, or other
time-based targets by starting, pausing, resuming, and stopping a clock based on
configurable conditions.
Usage
import { Sla } from '@servicenow/sdk/core'
Sla({
$id: Now.ID['p1-incident-response'],
name: 'Priority 1 Incident Response',
table: 'incident',
duration: Duration({ hours: 4 }),
schedule: 'b1992362eb601100fcfb858ad106fe16',
conditions: {
start: 'priority=1',
stop: 'state=6',
},
})