enhance implementation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -16,7 +16,16 @@ type IncidentResultItem struct {
|
||||
SysID string `json:"sys_id"`
|
||||
}
|
||||
|
||||
type Incident struct {
|
||||
// TODO - populate more fields here
|
||||
type SingleIncidentResponse 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.
|
||||
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
|
||||
SysID string `json:"sys_id,omitempty"`
|
||||
}
|
||||
|
||||
type Incoming 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"`
|
||||
|
Reference in New Issue
Block a user