import { IncidentsService } from '@grafana/incident'; async function createIncident() { const service = new IncidentsService({ url: 'http://localhost:3000' }); try { const result = await service.createIncident({ title: 'Another Incident created from script', severity: 'pending', labels: [], roomPrefix: 'incident', isDrill: false, status: 'active', refs: [], }); console.log('result', JSON.stringify(result)); } catch (e) { console.log('error', e.message); } } createIncident();