Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRows = errors.New("timesketch: no rows in result set")
View Source
var StarredEventsChip = Chip{ Type: "label", Field: "label", Value: "__ts_star", Operator: "must", Active: true, }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string Username string Password string // contains filtered or unexported fields }
func (Client) ListSketches ¶
type Response ¶
type Response[T any] struct { Meta struct { CurrentPage int `json:"current_page"` CurrentUser string `json:"current_user"` HasNext bool `json:"has_next"` HasPrev bool `json:"has_prev"` NextPage string `json:"next_page"` PrevPage string `json:"prev_page"` TotalItems int `json:"total_items"` TotalPages int `json:"total_pages"` Attributes map[string]struct { Ontology string `json:"ontology"` Values struct { Data []struct { Type string `json:"type"` IOC string `json:"ioc"` Tags []string `json:"tags"` ExternalURI string `json:"externalURI"` } `json:"data"` } `json:"value"` } `json:"attributes"` Mappings []Field `json:"mappings"` } `json:"meta"` Objects []T `json:"objects"` }
type Sketch ¶
type Sketch struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Timelines []Timeline `json:"timelines"` // copied over from meta Mappings []Field `json:"mappings"` Attributes map[string]struct { Ontology string `json:"ontology"` Values struct { Data []struct { Type string `json:"type"` IOC string `json:"ioc"` Tags []string `json:"tags"` ExternalURI string `json:"externalURI"` } `json:"data"` } `json:"value"` } `json:"attributes"` }
Click to show internal directories.
Click to hide internal directories.