investigations

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultURL                           = "https://api.ctpx.secureworks.com/graphql"
	DefaultFields graphql.ResponseFields = `` /* 229-byte string literal not displayed */

)

Functions

This section is empty.

Types

type AlertsOutput

type AlertsOutput struct {
	ID string `json:"id"`
}

type EventsOutput

type EventsOutput struct {
	ID string `json:"id"`
}

type GenesisAlertsOutput

type GenesisAlertsOutput struct {
	ID string `json:"id"`
}

type GenesisEventsOutput

type GenesisEventsOutput struct {
	ID string `json:"id"`
}

type GetInvestigationInput

type GetInvestigationInput struct {
	TenantID string
	ID       string
}

type IInvestigationSvc

type IInvestigationSvc interface {
	GetInvestigation(*GetInvestigationInput, graphql.ResponseFields, ...graphql.RequestOption) (*InvestigationOutput, error)
}

IInvestigationSvc defines what the the Investigation API can do

type InvestigationOutput

type InvestigationOutput struct {
	ID            string                `json:"id"`
	CreatedAt     string                `json:"created_at"`
	CreatedBy     string                `json:"created_by"`
	UpdatedAt     string                `json:"updated_at"`
	TenantID      string                `json:"tenant_id"`
	Description   string                `json:"description"`
	Status        string                `json:"status"`
	KeyFindings   string                `json:"key_findings"`
	AssigneeID    string                `json:"assignee_id"`
	GenesisAlerts []GenesisAlertsOutput `json:"genesis_alerts"`
	GenesisEvents []GenesisEventsOutput `json:"genesis_events"`
	Alerts        []AlertsOutput        `json:"alerts"`
	Events        []EventsOutput        `json:"events"`
	Priority      int                   `json:"priority"`
	Type          string                `json:"type"`
}

type InvestigationSvc

type InvestigationSvc struct {
	// contains filtered or unexported fields
}

InvestigationsSvc is the concrete implementation of the interface against the real api

func NewInvestigationSvc

func NewInvestigationSvc(c *client.Client, serviceName string) *InvestigationSvc

NewInvestigationsSvc takes a client from `client` package -- see examples/notifications.go for an example

func (*InvestigationSvc) GetInvestigation

Jump to

Keyboard shortcuts

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