dlp_incidents

package
v3.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignLabels

func AssignLabels(ctx context.Context, service *services.Service, dlpIncidentID string, labels []common.Label) (*common.IncidentDetails, *http.Response, error)

func CreateNotes

func CreateNotes(ctx context.Context, service *services.Service, dlpIncidentID int, note string) (*common.IncidentDetails, *http.Response, error)

func DeleteDLPIncident

func DeleteDLPIncident(ctx context.Context, service *services.Service, dlpIncidentID string) (*http.Response, error)

Deletes the DLP incident for the specified incident ID.

func FilterIncidentSearch

func FilterIncidentSearch(ctx context.Context, service *services.Service, filters common.CommonDLPIncidentFiltering, paginationParams *common.PaginationParams) ([]common.IncidentDetails, *common.Cursor, error)

func GetDLPIncident

func GetDLPIncident(ctx context.Context, service *services.Service, dlpIncidentID string, fields []string) (*common.IncidentDetails, *http.Response, error)

Gets the DLP incident details based on the incident ID.

func GetIncidentTransactions

func GetIncidentTransactions(ctx context.Context, service *services.Service, transactionID string, paginationParams *common.PaginationParams) ([]common.IncidentDetails, *common.Cursor, error)

############################ DLP INCIDENT TRANSACTIONS ############################ Gets the list of all DLP incidents associated with the transaction ID. A transaction ID can contain one or more DLP incidents.

func UpdateIncidentStatus

func UpdateIncidentStatus(ctx context.Context, service *services.Service, dlpIncidentID string, close string) (*common.IncidentDetails, *http.Response, error)

Types

type ChangeData

type ChangeData struct {
	Before string `json:"before"`
	After  string `json:"after"`
}

type ChangeHistory

type ChangeHistory struct {
	ChangeType    string     `json:"changeType"`
	ChangedAt     string     `json:"changedAt"`
	ChangedByName string     `json:"changedByName"`
	ChangeData    ChangeData `json:"changeData"`
	Comment       string     `json:"comment"`
}

type CreateNoteRequest

type CreateNoteRequest struct {
	Notes string `json:"notes"`
}

##################### ADDS NOTES TO DLP INCIDENTS #####################

type DLPIncidentEvidence

type DLPIncidentEvidence struct {
	FileName       string `json:"fileName"`
	FileType       string `json:"fileType"`
	AdditionalInfo string `json:"additionalInfo"`
	EvidenceURL    string `json:"evidenceURL"`
}

func GetDLPIncidentEvidence

func GetDLPIncidentEvidence(ctx context.Context, service *services.Service, dlpIncidentID string) (*DLPIncidentEvidence, *http.Response, error)

type DLPIncidentTicketsResponse

type DLPIncidentTicketsResponse struct {
	Tickets []Ticket `json:"tickets"`
}

##################### DLP INCIDENT GENERATED TICKETS #####################

type DLPIncidentTriggerData

type DLPIncidentTriggerData map[string]string

func GetDLPIncidentTriggers

func GetDLPIncidentTriggers(ctx context.Context, service *services.Service, dlpIncidentID string) (DLPIncidentTriggerData, *http.Response, error)

type IncidentGroup

type IncidentGroup struct {
	ID                              int    `json:"id"`
	Name                            string `json:"name"`
	Description                     string `json:"description"`
	Status                          string `json:"status"`
	IncidentGroupType               string `json:"incidentGroupType"`
	IsDLPIncidentGroupAlreadyMapped bool   `json:"isDLPIncidentGroupAlreadyMapped"`
	IsDLPAdminConfigAlreadyMapped   bool   `json:"isDLPAdminConfigAlreadyMapped"`
}

type IncidentGroupRequest

type IncidentGroupRequest struct {
	IncidentGroupIDs []int `json:"incidentGroupIds"`
}

##################### INCIDENT GROUP SEARCH #####################

type IncidentGroupsResponse

type IncidentGroupsResponse struct {
	IncidentGroups []IncidentGroup `json:"incidentGroups"`
}

func AssignIncidentGroups

func AssignIncidentGroups(ctx context.Context, service *services.Service, dlpIncidentID int, groupIDs []int) (*IncidentGroupsResponse, *http.Response, error)

type IncidentHistoryResponse

type IncidentHistoryResponse struct {
	IncidentID    string          `json:"incidentId"`
	StartDate     string          `json:"startDate"`
	EndDate       string          `json:"endDate"`
	ChangeHistory []ChangeHistory `json:"changeHistory"`
}

##################### DLP INCIDENT CHANGE HISTORY #####################

func HistoryDLPIncident

func HistoryDLPIncident(ctx context.Context, service *services.Service, dlpIncidentID string) (*IncidentHistoryResponse, *http.Response, error)

Gets the details of updates made to an incident based on the given ID and timeline.

type LabelsRequest

type LabelsRequest struct {
	Labels []common.Label `json:"labels"`
}

##################### ASSIGNS LABELS TO DLP INCIDENTS #####################

type ResolutionDetailsRequest

type ResolutionDetailsRequest struct {
	ResolutionLabel common.Label `json:"resolutionLabel"`
	ResolutionCode  string       `json:"resolutionCode"`
	Notes           string       `json:"notes"`
}

type Ticket

type Ticket struct {
	TicketType          string     `json:"ticketType"`
	TicketingSystemName string     `json:"ticketingSystemName"`
	ProjectID           string     `json:"projectId"`
	ProjectName         string     `json:"projectName"`
	TicketInfo          TicketInfo `json:"ticketInfo"`
}

func GetDLPIncidentTickets

func GetDLPIncidentTickets(ctx context.Context, service *services.Service, dlpIncidentID string, paginationParams *common.PaginationParams) ([]Ticket, *common.Cursor, error)

Gets the information of the ticket generated for the incident. For example, ticket type, ticket ID, ticket status, etc.

type TicketInfo

type TicketInfo struct {
	TicketID  string `json:"ticketId"`
	TicketURL string `json:"ticketUrl"`
	State     string `json:"state"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL