package models type IncidentResponse struct { ImportSet string `json:"import_set"` StagingTable string `json:"staging_table"` Result []struct { TransformMap string `json:"transform_map"` Table string `json:"table"` DisplayName string `json:"display_name"` DisplayValue string `json:"display_value"` RecordLink string `json:"record_link"` Status string `json:"status"` SysID string `json:"sys_id"` } } type Incident struct { IncidentNumber string `json:"incident_number,omitempty"` // The incident number in ServiceNow. If blank, creates a new incident, if populated with a valid value it updates that record. Description string `json:"description,omitempty"` ShortDescription string `json:"short_description,omitempty"` // 1 = Critical , 2 = High, 3 = Medium, 4 = Low Urgency string `json:"urgency,omitempty"` // integer value, 1-4 // 1 = Critical , 2 = High, 3 = Medium, 4 = Low Impact string `json:"impact,omitempty"` // integer value, 1-4 // State: 1 = New ; 2 = In Progress ; 3 = On Hold ; 6 = Resolved ; 7 = Closed ; 8 = Cancelled State string `json:"state,omitempty"` // integer value, 1-6 (6 is resolved) // Associated DeviceID (UUID from CPDB) ExternalID string `json:"external_id,omitempty"` // CPDB UUID for the configuration item WorkNotes string `json:"work_notes,omitempty"` // Additional notes AssignmentGroup string `json:"assignment_group,omitempty"` AssignedTo string `json:"assigned_to,omitempty"` // Cat/SubCategory to populate the Incident appropriately Category string `json:"category,omitempty"` SubCategory string `json:"subcategory,omitempty"` }