api

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 25 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypeEmail string = "EmailAction"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypeHumioRepo string = "HumioRepoAction"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypeOpsGenie string = "OpsGenieAction"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypePagerDuty string = "PagerDutyAction"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypeSlack string = "SlackAction"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypeSlackPostMessage string = "SlackPostMessageAction"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypeVictorOps string = "VictorOpsAction"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	ActionTypeWebhook string = "WebhookAction"
)
View Source
const (
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	QueryOwnershipTypeUser string = "User"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	QueryOwnershipTypeOrganization string = "Organization"
)
View Source
const JSONContentType string = "application/json"

JSONContentType is "application/json" Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

View Source
const LogScaleVersionWithParserAPIv2 = "1.129.0"

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

View Source
const ZIPContentType string = "application/zip"

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

Variables

View Source
var ErrUserNotFound = errors.New("user not found")

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

Functions

func ActionNotFound deprecated added in v0.29.0

func ActionNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func AggregateAlertNotFound deprecated added in v0.36.0

func AggregateAlertNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func AlertNotFound deprecated added in v0.29.0

func AlertNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func CloneHeader added in v0.26.0

func CloneHeader(in http.Header) http.Header

CloneHeader creates a deep copy of an http.Header. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func CloneRequest added in v0.26.0

func CloneRequest(req *http.Request) *http.Request

CloneRequest creates a shallow copy of the request along with a deep copy of the Headers. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func FilterAlertNotFound deprecated added in v0.34.0

func FilterAlertNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func IngestTokenNotFound deprecated added in v0.37.0

func IngestTokenNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func NewHttpTransport deprecated added in v0.28.7

func NewHttpTransport(config Config) *http.Transport

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func ParserNotFound deprecated added in v0.29.0

func ParserNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func RepositoryNotFound deprecated added in v0.37.0

func RepositoryNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func ScheduledSearchNotFound deprecated added in v0.35.0

func ScheduledSearchNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func SearchDomainNotFound deprecated added in v0.37.0

func SearchDomainNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func ViewNotFound deprecated added in v0.37.0

func ViewNotFound(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

Types

type Action deprecated added in v0.29.0

type Action struct {
	Type string `graphql:"__typename" yaml:"type" json:"type"`
	ID   string `graphql:"id"         yaml:"-"    json:"id"`
	Name string `graphql:"name"       yaml:"name" json:"name"`

	EmailAction            EmailAction            `graphql:"... on EmailAction"            yaml:"emailAction,omitempty" json:"emailAction,omitempty"`
	HumioRepoAction        HumioRepoAction        `graphql:"... on HumioRepoAction"        yaml:"humioRepoAction,omitempty" json:"humioRepoAction,omitempty"`
	OpsGenieAction         OpsGenieAction         `graphql:"... on OpsGenieAction"         yaml:"opsGenieAction,omitempty" json:"opsGenieAction,omitempty"`
	PagerDutyAction        PagerDutyAction        `graphql:"... on PagerDutyAction"        yaml:"pagerDutyAction,omitempty" json:"pagerDutyAction,omitempty"`
	SlackAction            SlackAction            `graphql:"... on SlackAction"            yaml:"slackAction,omitempty" json:"slackAction,omitempty"`
	SlackPostMessageAction SlackPostMessageAction `graphql:"... on SlackPostMessageAction" yaml:"slackPostMessageAction,omitempty" json:"slackPostMessageAction,omitempty"`
	VictorOpsAction        VictorOpsAction        `graphql:"... on VictorOpsAction"        yaml:"victorOpsAction,omitempty" json:"victorOpsAction,omitempty"`
	WebhookAction          WebhookAction          `graphql:"... on WebhookAction"          yaml:"webhookAction,omitempty" json:"webhookAction,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Actions deprecated added in v0.29.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Actions) Add deprecated added in v0.29.0

func (n *Actions) Add(viewName string, newAction *Action) (*Action, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Actions) Delete deprecated added in v0.29.0

func (n *Actions) Delete(viewName, actionName string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Actions) Get deprecated added in v0.29.0

func (n *Actions) Get(viewName, actionName string) (*Action, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Actions) GetByID deprecated added in v0.29.0

func (n *Actions) GetByID(viewName, actionID string) (*Action, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Actions) List deprecated added in v0.29.0

func (n *Actions) List(viewName string) ([]Action, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Actions) Update deprecated added in v0.29.0

func (n *Actions) Update(viewName string, newAction *Action) (*Action, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type AggregateAlert deprecated added in v0.36.0

type AggregateAlert struct {
	ID                    string   `graphql:"id"                    yaml:"-"                       json:"id"`
	Name                  string   `graphql:"name"                  yaml:"name"                    json:"name"`
	Description           string   `graphql:"description"           yaml:"description,omitempty"   json:"description,omitempty"`
	QueryString           string   `graphql:"queryString"           yaml:"queryString"             json:"queryString"`
	SearchIntervalSeconds int      `graphql:"searchIntervalSeconds" yaml:"searchIntervalSeconds"   json:"searchIntervalSeconds"`
	ActionNames           []string `graphql:"actionNames"           yaml:"actionNames"             json:"actionNames"`
	Labels                []string `graphql:"labels"                yaml:"labels"                  json:"labels"`
	Enabled               bool     `graphql:"enabled"               yaml:"enabled"                 json:"enabled"`
	ThrottleField         string   `graphql:"throttleField"         yaml:"throttleField,omitempty" json:"throttleField,omitempty"`
	ThrottleTimeSeconds   int      `graphql:"throttleTimeSeconds"   yaml:"throttleTimeSeconds"     json:"throttleTimeSeconds"`
	QueryOwnershipType    string   `graphql:"queryOwnership"        yaml:"queryOwnershipType"      json:"queryOwnershipType"`
	TriggerMode           string   `graphql:"triggerMode"           yaml:"triggerMode"             json:"triggerMode"`
	QueryTimestampType    string   `graphql:"queryTimestampType"    yaml:"queryTimestampType"      json:"queryTimestampType"`
	RunAsUserID           string   `graphql:"runAsUserId"           yaml:"runAsUserId,omitempty"   json:"runAsUserId,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type AggregateAlerts deprecated added in v0.36.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*AggregateAlerts) Create deprecated added in v0.36.0

func (a *AggregateAlerts) Create(viewName string, newAggregateAlert *AggregateAlert) (*AggregateAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*AggregateAlerts) Delete deprecated added in v0.36.0

func (a *AggregateAlerts) Delete(viewName, aggregateAlertID string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*AggregateAlerts) Get deprecated added in v0.36.0

func (a *AggregateAlerts) Get(viewName string, aggregateAlertID string) (*AggregateAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*AggregateAlerts) List deprecated added in v0.36.0

func (a *AggregateAlerts) List(viewName string) ([]*AggregateAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*AggregateAlerts) Update deprecated added in v0.36.0

func (a *AggregateAlerts) Update(viewName string, updatedAggregateAlert *AggregateAlert) (*AggregateAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Alert deprecated added in v0.25.0

type Alert struct {
	ID                 string   `graphql:"id"                 yaml:"-"                            json:"id"`
	Name               string   `graphql:"name"               yaml:"name"                         json:"name"`
	QueryString        string   `graphql:"queryString"        yaml:"queryString"                  json:"queryString"`
	QueryStart         string   `graphql:"queryStart"         yaml:"queryStart"                   json:"queryStart"`
	ThrottleField      string   `graphql:"throttleField"      yaml:"throttleField"                json:"throttleField"`
	TimeOfLastTrigger  int      `graphql:"timeOfLastTrigger"  yaml:"timeOfLastTrigger"            json:"timeOfLastTrigger"`
	IsStarred          bool     `graphql:"isStarred"          yaml:"isStarred"                    json:"isStarred"`
	Description        string   `graphql:"description"        yaml:"description,omitempty"        json:"description"`
	ThrottleTimeMillis int      `graphql:"throttleTimeMillis" yaml:"throttleTimeMillis"           json:"throttleTimeMillis"`
	Enabled            bool     `graphql:"enabled"            yaml:"enabled"                      json:"enabled"`
	Actions            []string `graphql:"actions"            yaml:"actions"                      json:"actions"`
	Labels             []string `graphql:"labels"             yaml:"labels,omitempty"             json:"labels,omitempty"`
	LastError          string   `graphql:"lastError"          yaml:"lastError"                    json:"lastError"`
	RunAsUserID        string   `graphql:"runAsUserId"        yaml:"runAsUserId,omitempty"        json:"runAsUserId,omitempty"`
	QueryOwnershipType string   `graphql:"queryOwnershipType" yaml:"queryOwnershipType,omitempty" json:"queryOwnershipType,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Alerts deprecated added in v0.25.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Alerts) Add deprecated added in v0.25.0

func (a *Alerts) Add(viewName string, newAlert *Alert) (*Alert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Alerts) Delete deprecated added in v0.25.0

func (a *Alerts) Delete(viewName, alertName string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Alerts) Get deprecated added in v0.25.0

func (a *Alerts) Get(viewName, alertName string) (*Alert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Alerts) List deprecated added in v0.25.0

func (a *Alerts) List(viewName string) ([]Alert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Alerts) Update deprecated added in v0.25.0

func (a *Alerts) Update(viewName string, newAlert *Alert) (*Alert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Client deprecated

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func NewClient deprecated

func NewClient(config Config) *Client

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func NewClientWithTransport deprecated added in v0.28.7

func NewClientWithTransport(config Config, httpTransport *http.Transport) *Client

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Actions deprecated added in v0.29.0

func (c *Client) Actions() *Actions

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Address deprecated

func (c *Client) Address() *url.URL

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) AggregateAlerts deprecated added in v0.36.0

func (c *Client) AggregateAlerts() *AggregateAlerts

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Alerts deprecated added in v0.25.0

func (c *Client) Alerts() *Alerts

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) CACertificate deprecated added in v0.26.0

func (c *Client) CACertificate() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) ClusterNodes deprecated added in v0.25.0

func (c *Client) ClusterNodes() *ClusterNodes

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Clusters deprecated added in v0.25.0

func (c *Client) Clusters() *Clusters

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Config deprecated added in v0.28.1

func (c *Client) Config() Config

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) FeatureFlags deprecated added in v0.29.0

func (c *Client) FeatureFlags() *FeatureFlags

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Files deprecated added in v0.28.2

func (c *Client) Files() *Files

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) FilterAlerts deprecated added in v0.34.0

func (c *Client) FilterAlerts() *FilterAlerts

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Groups deprecated added in v0.28.1

func (c *Client) Groups() *Groups

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) HTTPRequest deprecated added in v0.25.0

func (c *Client) HTTPRequest(httpMethod string, path string, body io.Reader) (*http.Response, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) HTTPRequestContext deprecated added in v0.25.0

func (c *Client) HTTPRequestContext(ctx context.Context, httpMethod string, path string, body io.Reader, contentType string) (*http.Response, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Health deprecated added in v0.25.0

func (c *Client) Health() (Health, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) HealthString deprecated added in v0.25.0

func (c *Client) HealthString() (string, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) IngestTokens deprecated

func (c *Client) IngestTokens() *IngestTokens

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Insecure deprecated added in v0.26.0

func (c *Client) Insecure() bool

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Licenses deprecated added in v0.12.0

func (c *Client) Licenses() *Licenses

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Mutate deprecated

func (c *Client) Mutate(mutation interface{}, variables map[string]interface{}) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Organizations deprecated added in v0.28.1

func (c *Client) Organizations() *Organizations

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Packages added in v0.27.0

func (c *Client) Packages() *Packages

Packages constructs a Packages API client. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Parsers deprecated

func (c *Client) Parsers() *Parsers

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Query deprecated

func (c *Client) Query(query interface{}, variables map[string]interface{}) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) QueryJobs deprecated added in v0.25.0

func (c *Client) QueryJobs() *QueryJobs

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Repositories deprecated added in v0.13.0

func (c *Client) Repositories() *Repositories

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Roles deprecated added in v0.31.0

func (c *Client) Roles() *Roles

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) ScheduledSearches deprecated added in v0.35.0

func (c *Client) ScheduledSearches() *ScheduledSearches

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) SearchDomains deprecated added in v0.37.0

func (s *Client) SearchDomains() *SearchDomains

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Status deprecated added in v0.4.0

func (c *Client) Status() (*StatusResponse, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Token deprecated

func (c *Client) Token() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Users deprecated

func (c *Client) Users() *Users

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Viewer deprecated added in v0.4.0

func (c *Client) Viewer() *Viewer

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Client) Views deprecated added in v0.5.0

func (c *Client) Views() *Views

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Cluster deprecated added in v0.25.0

type Cluster struct {
	Nodes                               []ClusterNode
	ClusterInfoAgeSeconds               float64
	UnderReplicatedSegmentSize          float64
	OverReplicatedSegmentSize           float64
	MissingSegmentSize                  float64
	ProperlyReplicatedSegmentSize       float64
	TargetUnderReplicatedSegmentSize    float64
	TargetOverReplicatedSegmentSize     float64
	TargetMissingSegmentSize            float64
	TargetProperlyReplicatedSegmentSize float64
	IngestPartitions                    []IngestPartition
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ClusterNode deprecated added in v0.25.0

type ClusterNode struct {
	Id                      int
	Name                    string
	Uri                     string
	Uuid                    string
	ClusterInfoAgeSeconds   float64
	InboundSegmentSize      float64
	OutboundSegmentSize     float64
	CanBeSafelyUnregistered bool
	CurrentSize             float64
	PrimarySize             float64
	SecondarySize           float64
	TotalSizeOfPrimary      float64
	TotalSizeOfSecondary    float64
	FreeOnPrimary           float64
	FreeOnSecondary         float64
	WipSize                 float64
	TargetSize              float64
	SolitarySegmentSize     float64
	IsAvailable             bool
	LastHeartbeat           string
	// Zone holds the availability zone as configured in the `ZONE` configuration of the Humio server.
	Zone string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ClusterNodes deprecated added in v0.25.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ClusterNodes) Get deprecated added in v0.25.0

func (n *ClusterNodes) Get(nodeID int) (ClusterNode, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ClusterNodes) List deprecated added in v0.25.0

func (n *ClusterNodes) List() ([]ClusterNode, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ClusterNodes) Unregister deprecated added in v0.25.0

func (n *ClusterNodes) Unregister(nodeID int, force bool) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Clusters deprecated added in v0.25.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Clusters) Get deprecated added in v0.25.0

func (c *Clusters) Get() (Cluster, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Config deprecated

type Config struct {
	Address           *url.URL
	UserAgent         string
	Token             string
	CACertificatePEM  string
	Insecure          bool
	ProxyOrganization string
	DialContext       func(ctx context.Context, network, addr string) (net.Conn, error)
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func DefaultConfig deprecated

func DefaultConfig() Config

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type DefaultGroupEnum deprecated added in v0.27.0

type DefaultGroupEnum string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

const (
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	DefaultGroupEnumMember DefaultGroupEnum = "Member"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	DefaultGroupEnumAdmin DefaultGroupEnum = "Admin"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	DefaultGroupEnumEliminator DefaultGroupEnum = "Eliminator"
)

func (*DefaultGroupEnum) ParseString deprecated added in v0.27.0

func (e *DefaultGroupEnum) ParseString(s string) bool

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (DefaultGroupEnum) String deprecated added in v0.27.0

func (e DefaultGroupEnum) String() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type EmailAction deprecated added in v0.29.0

type EmailAction struct {
	Recipients      []string `graphql:"emailRecipients: recipients" yaml:"recipients,omitempty" json:"recipients,omitempty"`
	SubjectTemplate string   `graphql:"emailSubjectTemplate: subjectTemplate" yaml:"subjectTemplate,omitempty" json:"subjectTemplate,omitempty"`
	BodyTemplate    string   `graphql:"emailBodyTemplate: bodyTemplate" yaml:"bodyTemplate,omitempty" json:"bodyTemplate,omitempty"`
	UseProxy        bool     `graphql:"emailUseProxy: useProxy" yaml:"useProxy,omitempty" json:"useProxy,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type EntityNotFound deprecated added in v0.29.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (EntityNotFound) EntityType deprecated added in v0.29.0

func (e EntityNotFound) EntityType() EntityType

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (EntityNotFound) Error deprecated added in v0.29.0

func (e EntityNotFound) Error() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (EntityNotFound) Key deprecated added in v0.29.0

func (e EntityNotFound) Key() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type EntityType deprecated added in v0.29.0

type EntityType string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

const (
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeSearchDomain EntityType = "search-domain"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeRepository EntityType = "repository"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeView EntityType = "view"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeIngestToken EntityType = "ingest-token"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeParser EntityType = "parser"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeAction EntityType = "action"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeAlert EntityType = "alert"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeFilterAlert EntityType = "filter-alert"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeScheduledSearch EntityType = "scheduled-search"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	EntityTypeAggregateAlert EntityType = "aggregate-alert"
)

func (EntityType) String deprecated added in v0.29.0

func (e EntityType) String() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type FeatureFlag deprecated added in v0.29.0

type FeatureFlag string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type FeatureFlags deprecated added in v0.29.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FeatureFlags) DisableForOrganization deprecated added in v0.29.0

func (f *FeatureFlags) DisableForOrganization(organizationID string, flag FeatureFlag) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FeatureFlags) DisableForUser deprecated added in v0.29.0

func (f *FeatureFlags) DisableForUser(userID string, flag FeatureFlag) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FeatureFlags) DisableGlobally deprecated added in v0.29.0

func (f *FeatureFlags) DisableGlobally(flag FeatureFlag) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FeatureFlags) EnableForOrganization deprecated added in v0.29.0

func (f *FeatureFlags) EnableForOrganization(organizationID string, flag FeatureFlag) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FeatureFlags) EnableForUser deprecated added in v0.29.0

func (f *FeatureFlags) EnableForUser(userID string, flag FeatureFlag) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FeatureFlags) EnableGlobally deprecated added in v0.29.0

func (f *FeatureFlags) EnableGlobally(flag FeatureFlag) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FeatureFlags) SupportedFlags deprecated added in v0.29.0

func (f *FeatureFlags) SupportedFlags() ([]FeatureFlag, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type File deprecated added in v0.28.2

type File struct {
	ID          string
	Name        string
	ContentHash string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Files deprecated added in v0.28.2

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Files) Delete deprecated added in v0.28.2

func (f *Files) Delete(viewName string, fileName string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Files) Download deprecated added in v0.28.2

func (f *Files) Download(viewName string, fileName string) (io.Reader, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Files) List deprecated added in v0.28.2

func (f *Files) List(viewName string) ([]File, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Files) Upload deprecated added in v0.28.2

func (f *Files) Upload(viewName string, fileName string, reader io.Reader) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type FilterAlert deprecated added in v0.34.0

type FilterAlert struct {
	ID                  string   `graphql:"id"                  yaml:"-"                             json:"id"`
	Name                string   `graphql:"name"                yaml:"name"                          json:"name"`
	Description         string   `graphql:"description"         yaml:"description,omitempty"         json:"description,omitempty"`
	QueryString         string   `graphql:"queryString"         yaml:"queryString"                   json:"queryString"`
	ActionNames         []string `graphql:"actionNames"         yaml:"actionNames"                   json:"actionNames"`
	Labels              []string `graphql:"labels"              yaml:"labels"                        json:"labels"`
	Enabled             bool     `graphql:"enabled"             yaml:"enabled"                       json:"enabled"`
	QueryOwnershipType  string   `graphql:"queryOwnership"      yaml:"queryOwnershipType"            json:"queryOwnershipType"`
	ThrottleTimeSeconds int      `graphql:"throttleTimeSeconds" yaml:"throttleTimeSeconds,omitempty" json:"throttleTimeSeconds,omitempty"`
	ThrottleField       string   `graphql:"throttleField"       yaml:"throttleField,omitempty"       json:"throttleField,omitempty"`
	RunAsUserID         string   `graphql:"runAsUserId"         yaml:"runAsUserId,omitempty"         json:"runAsUserId,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type FilterAlerts deprecated added in v0.34.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FilterAlerts) Create deprecated added in v0.34.0

func (fa *FilterAlerts) Create(viewName string, newFilterAlert *FilterAlert) (*FilterAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FilterAlerts) Delete deprecated added in v0.34.0

func (fa *FilterAlerts) Delete(viewName, filterAlertID string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FilterAlerts) Get deprecated added in v0.34.0

func (fa *FilterAlerts) Get(viewName string, filterAlertID string) (*FilterAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FilterAlerts) List deprecated added in v0.34.0

func (fa *FilterAlerts) List(viewName string) ([]FilterAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*FilterAlerts) Update deprecated added in v0.34.0

func (fa *FilterAlerts) Update(viewName string, updatedFilterAlert *FilterAlert) (*FilterAlert, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Group deprecated added in v0.28.1

type Group struct {
	ID          string
	DisplayName string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Groups deprecated added in v0.28.1

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Groups) AddUserToGroup deprecated added in v0.28.1

func (g *Groups) AddUserToGroup(groupID string, userID string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Groups) List deprecated added in v0.28.1

func (g *Groups) List() ([]Group, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Groups) RemoveUserFromGroup deprecated added in v0.28.1

func (g *Groups) RemoveUserFromGroup(groupID string, userID string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Health deprecated added in v0.25.0

type Health struct {
	Status        StatusValue   `json:"status"`
	StatusMessage string        `json:"statusMessage"`
	Uptime        string        `json:"uptime"`
	Version       string        `json:"version"`
	OK            []HealthCheck `json:"oks"`
	Warn          []HealthCheck `json:"warnings"`
	Down          []HealthCheck `json:"down"`
	// contains filtered or unexported fields
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Health) ChecksMap deprecated added in v0.25.0

func (h *Health) ChecksMap() map[string]HealthCheck

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Health) Json deprecated added in v0.25.0

func (h *Health) Json() []byte

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type HealthCheck deprecated added in v0.25.0

type HealthCheck struct {
	Name          string                 `json:"name"`
	Status        StatusValue            `json:"status"`
	StatusMessage string                 `json:"statusMessage"`
	Fields        map[string]interface{} `json:"fields"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type HttpHeaderEntryInput deprecated added in v0.29.0

type HttpHeaderEntryInput struct {
	Header string `graphql:"header"  yaml:"header" json:"header"`
	Value  string `graphql:"value"   yaml:"value" json:"value"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type HumioRepoAction deprecated added in v0.29.0

type HumioRepoAction struct {
	IngestToken string `graphql:"humioRepoIngestToken: ingestToken" yaml:"ingestToken,omitempty" json:"ingestToken,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type IngestPartition deprecated added in v0.25.0

type IngestPartition struct {
	Id      int
	NodeIds []int
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type IngestToken deprecated

type IngestToken struct {
	Name           string `json:"name"`
	Token          string `json:"token"`
	AssignedParser string `json:"parser"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type IngestTokens deprecated

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*IngestTokens) Add deprecated

func (i *IngestTokens) Add(repositoryName string, tokenName string, parser string) (*IngestToken, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*IngestTokens) Get deprecated added in v0.25.0

func (i *IngestTokens) Get(repoName, tokenName string) (*IngestToken, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*IngestTokens) List deprecated

func (i *IngestTokens) List(repo string) ([]IngestToken, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*IngestTokens) Remove deprecated

func (i *IngestTokens) Remove(repositoryName string, tokenName string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*IngestTokens) Update deprecated added in v0.25.0

func (i *IngestTokens) Update(repositoryName string, tokenName string, parser string) (*IngestToken, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type InstallationErrors deprecated added in v0.28.10

type InstallationErrors struct {
	InstallationErrors []string `json:"installationErrors"`
	ParseErrors        []string `json:"parseErrors"`
	ResponseType       string   `json:"responseType"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type InstalledPackage added in v0.28.0

type InstalledPackage struct {
	ID          string
	InstalledBy *struct {
		Username  string
		Timestamp string
	}
	UpdatedBy *struct {
		Username  string
		Timestamp string
	}
	Source          string
	AvailableUpdate string
}

InstalledPackage contain the details of an installed package Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type License deprecated added in v0.9.0

type License interface {
	ExpiresAt() string
	IssuedAt() string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Licenses deprecated added in v0.12.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Licenses) Get deprecated added in v0.12.0

func (l *Licenses) Get() (License, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Licenses) Install deprecated added in v0.12.0

func (l *Licenses) Install(license string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type OnPremLicense deprecated added in v0.12.0

type OnPremLicense struct {
	ID            string
	ExpiresAtVal  string
	IssuedAtVal   string
	IssuedTo      string
	NumberOfSeats int
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (OnPremLicense) ExpiresAt deprecated added in v0.12.0

func (l OnPremLicense) ExpiresAt() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (OnPremLicense) IssuedAt deprecated added in v0.12.0

func (l OnPremLicense) IssuedAt() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type OpsGenieAction deprecated added in v0.29.0

type OpsGenieAction struct {
	ApiUrl   string `graphql:"opsGenieApiUrl: apiUrl" yaml:"apiUrl,omitempty" json:"apiUrl,omitempty"`
	GenieKey string `graphql:"opsGenieGenieKey: genieKey" yaml:"genieKey,omitempty" json:"genieKey,omitempty"`
	UseProxy bool   `graphql:"opsGenieUseProxy: useProxy" yaml:"useProxy,omitempty" json:"useProxy,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Organization deprecated added in v0.28.1

type Organization struct {
	ID          string
	Name        string
	Description *string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Organizations deprecated added in v0.28.1

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Organizations) CreateOrganization deprecated added in v0.28.1

func (o *Organizations) CreateOrganization(name string) (Organization, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Packages added in v0.27.0

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

Packages is a API client for working with Humio packages. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Packages) CreateArchive added in v0.27.0

func (p *Packages) CreateArchive(packageDirPath string, targetFileName string) error

CreateArchive creates a archive by bundling the files in packageDirPath in a zip file. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Packages) InstallArchive added in v0.27.0

func (p *Packages) InstallArchive(viewName string, pathToZip string, queryOwnership string) (*ValidationResponse, error)

InstallArchive installs a local package (zip file). Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Packages) InstallFromDirectory added in v0.27.0

func (p *Packages) InstallFromDirectory(packageDirPath string, targetRepoOrView string, queryOwnership string) (*ValidationResponse, error)

InstallFromDirectory installs a package from a directory containing the package files. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Packages) ListInstalled added in v0.28.0

func (p *Packages) ListInstalled(viewName string) ([]InstalledPackage, error)

ListInstalled returns a list of installed packages Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Packages) UninstallPackage added in v0.27.0

func (p *Packages) UninstallPackage(viewName string, packageID string) error

UninstallPackage uninstalls a package by name. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Packages) Validate added in v0.27.0

func (p *Packages) Validate(viewName string, absPath string) (*ValidationResponse, error)

Validate checks a package declaration validity against a Humio server. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type PagerDutyAction deprecated added in v0.29.0

type PagerDutyAction struct {
	Severity   string `graphql:"pagerDutySeverity: severity" yaml:"severity,omitempty" json:"severity,omitempty"`
	RoutingKey string `graphql:"pagerDutyRoutingKey: routingKey" yaml:"routingKey,omitempty" json:"routingKey,omitempty"`
	UseProxy   bool   `graphql:"pagerDutyUseProxy: useProxy" yaml:"useProxy,omitempty" json:"useProxy,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Parser deprecated

type Parser struct {
	ID                             string
	Name                           string
	Script                         string           `json:"script"                                   yaml:",flow"`
	TestCases                      []ParserTestCase `json:"testCases"                                yaml:"testCases"`
	FieldsToTag                    []string         `json:"tagFields"                                yaml:"tagFields"`
	FieldsToBeRemovedBeforeParsing []string         `json:"fieldsToBeRemovedBeforeParsing,omitempty" yaml:"fieldsToBeRemovedBeforeParsing"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ParserListItem deprecated

type ParserListItem struct {
	ID        string
	Name      string
	IsBuiltIn bool
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ParserTestCase deprecated

type ParserTestCase struct {
	Event      ParserTestEvent            `json:"event"      yaml:"event"`
	Assertions []ParserTestCaseAssertions `json:"assertions" yaml:"assertions"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ParserTestCaseAssertions deprecated added in v0.35.0

type ParserTestCaseAssertions struct {
	OutputEventIndex int               `json:"outputEventIndex" yaml:"outputEventIndex"`
	FieldsNotPresent []string          `json:"fieldsNotPresent" yaml:"fieldsNotPresent"`
	FieldsHaveValues map[string]string `json:"fieldsHaveValues" yaml:"fieldsHaveValues"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ParserTestEvent deprecated added in v0.35.0

type ParserTestEvent struct {
	RawString string `json:"rawString" yaml:"rawString"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Parsers deprecated

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Parsers) Add deprecated

func (p *Parsers) Add(repositoryName string, newParser *Parser, allowOverwritingExistingParser bool) (*Parser, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Parsers) Delete deprecated added in v0.35.0

func (p *Parsers) Delete(repositoryName string, parserName string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Parsers) Export deprecated added in v0.27.0

func (p *Parsers) Export(repositoryName string, parserName string) (string, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Parsers) Get deprecated

func (p *Parsers) Get(repositoryName string, parserName string) (*Parser, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Parsers) List deprecated

func (p *Parsers) List(repositoryName string) ([]ParserListItem, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Query deprecated added in v0.25.0

type Query struct {
	QueryString                string            `json:"queryString"`
	Start                      string            `json:"start,omitempty"`
	End                        string            `json:"end,omitempty"`
	Live                       bool              `json:"isLive,omitempty"`
	TimezoneOffset             *int              `json:"timeZoneOffsetMinutes,omitempty"`
	Arguments                  map[string]string `json:"arguments,omitempty"`
	ShowQueryEventDistribution bool              `json:"showQueryEventDistribution,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type QueryError deprecated added in v0.25.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (QueryError) Error deprecated added in v0.25.0

func (e QueryError) Error() string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type QueryJobs deprecated added in v0.25.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (QueryJobs) Create deprecated added in v0.25.0

func (q QueryJobs) Create(repository string, query Query) (string, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*QueryJobs) Delete deprecated added in v0.25.0

func (q *QueryJobs) Delete(repository string, id string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*QueryJobs) Poll deprecated added in v0.25.0

func (q *QueryJobs) Poll(repository string, id string) (QueryResult, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*QueryJobs) PollContext deprecated added in v0.25.0

func (q *QueryJobs) PollContext(ctx context.Context, repository string, id string) (QueryResult, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type QueryResult deprecated added in v0.25.0

type QueryResult struct {
	Cancelled bool                     `json:"cancelled"`
	Done      bool                     `json:"done"`
	Events    []map[string]interface{} `json:"events"`
	Metadata  QueryResultMetadata      `json:"metaData"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type QueryResultMetadata deprecated added in v0.25.0

type QueryResultMetadata struct {
	EventCount       uint64                 `json:"eventCount"`
	ExtraData        map[string]interface{} `json:"extraData"`
	FieldOrder       []string               `json:"fieldOrder"`
	IsAggregate      bool                   `json:"isAggregate"`
	PollAfter        int                    `json:"pollAfter"`
	ProcessedBytes   uint64                 `json:"processedBytes"`
	ProcessedEvents  uint64                 `json:"processedEvents"`
	QueryStart       uint64                 `json:"queryStart"`
	QueryEnd         uint64                 `json:"queryEnd"`
	ResultBufferSize uint64                 `json:"resultBufferSize"`
	TimeMillis       uint64                 `json:"timeMillis"`
	TotalWork        uint64                 `json:"totalWork"`
	WorkDone         uint64                 `json:"workDone"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type RepoListItem deprecated added in v0.13.0

type RepoListItem struct {
	ID        string
	Name      string
	SpaceUsed int64 `graphql:"compressedByteSize"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Repositories deprecated added in v0.13.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) Create deprecated added in v0.24.0

func (r *Repositories) Create(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) Delete deprecated added in v0.26.0

func (r *Repositories) Delete(name, reason string, allowDataDeletion bool) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) DisableS3Archiving deprecated added in v0.34.0

func (r *Repositories) DisableS3Archiving(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) EnableS3Archiving deprecated added in v0.34.0

func (r *Repositories) EnableS3Archiving(name string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) Get deprecated added in v0.13.0

func (r *Repositories) Get(name string) (Repository, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) List deprecated added in v0.13.0

func (r *Repositories) List() ([]RepoListItem, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) UpdateAutomaticSearch deprecated added in v0.35.0

func (r *Repositories) UpdateAutomaticSearch(name string, automaticSearch bool) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) UpdateDescription deprecated added in v0.26.0

func (r *Repositories) UpdateDescription(name, description string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) UpdateIngestBasedRetention deprecated added in v0.26.0

func (r *Repositories) UpdateIngestBasedRetention(name string, ingestInGB float64, allowDataDeletion bool) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) UpdateS3ArchivingConfiguration deprecated added in v0.34.0

func (r *Repositories) UpdateS3ArchivingConfiguration(name string, bucket string, region string, format string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) UpdateStorageBasedRetention deprecated added in v0.26.0

func (r *Repositories) UpdateStorageBasedRetention(name string, storageInGB float64, allowDataDeletion bool) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) UpdateTimeBasedRetention deprecated added in v0.26.0

func (r *Repositories) UpdateTimeBasedRetention(name string, retentionInDays float64, allowDataDeletion bool) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Repositories) UpdateUserGroup deprecated added in v0.27.0

func (r *Repositories) UpdateUserGroup(name, username string, groups ...DefaultGroupEnum) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Repository deprecated added in v0.13.0

type Repository struct {
	ID                       string
	Name                     string
	Description              string
	RetentionDays            float64                      `graphql:"timeBasedRetention"`
	IngestRetentionSizeGB    float64                      `graphql:"ingestSizeBasedRetention"`
	StorageRetentionSizeGB   float64                      `graphql:"storageSizeBasedRetention"`
	SpaceUsed                int64                        `graphql:"compressedByteSize"`
	S3ArchivingConfiguration humiographql.S3Configuration `graphql:"s3ArchivingConfiguration"`
	AutomaticSearch          bool                         `graphql:"automaticSearch"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Role deprecated added in v0.5.0

type Role struct {
	ID                string   `graphql:"id"`
	DisplayName       string   `graphql:"displayName"`
	Color             string   `graphql:"color"`
	Description       string   `graphql:"description"`
	ViewPermissions   []string `graphql:"viewPermissions"`
	SystemPermissions []string `graphql:"systemPermissions"`
	OrgPermissions    []string `graphql:"organizationPermissions"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Roles deprecated added in v0.31.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Roles) Create deprecated added in v0.31.0

func (r *Roles) Create(role *Role) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Roles) Get deprecated added in v0.31.0

func (r *Roles) Get(rolename string) (*Role, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Roles) GetRoleID deprecated added in v0.31.0

func (r *Roles) GetRoleID(rolename string) (string, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Roles) List deprecated added in v0.31.0

func (r *Roles) List() ([]Role, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Roles) RemoveRole deprecated added in v0.31.0

func (r *Roles) RemoveRole(rolename string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Roles) Update deprecated added in v0.31.0

func (r *Roles) Update(rolename string, newRole *Role) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ScheduledSearch deprecated added in v0.35.0

type ScheduledSearch struct {
	ID                 string   `graphql:"id"                         yaml:"-"                          json:"id"`
	Name               string   `graphql:"name"                       yaml:"name"                       json:"name"`
	Description        string   `graphql:"description"                yaml:"description,omitempty"      json:"description,omitempty"`
	QueryString        string   `graphql:"queryString"                yaml:"queryString"                json:"queryString"`
	QueryStart         string   `graphql:"queryStart"                 yaml:"queryStart"                 json:"queryStart"`
	QueryEnd           string   `graphql:"queryEnd"                   yaml:"queryEnd"                   json:"queryEnd"`
	TimeZone           string   `graphql:"timeZone"                   yaml:"timeZone"                   json:"timeZone"`
	Schedule           string   `graphql:"schedule"                   yaml:"schedule"                   json:"schedule"`
	BackfillLimit      int      `graphql:"backfillLimit"              yaml:"backfillLimit"              json:"backfillLimit"`
	Enabled            bool     `graphql:"enabled"                    yaml:"enabled"                    json:"enabled"`
	ActionNames        []string `graphql:"actionNames"                yaml:"actionNames"                json:"actionNames"`
	RunAsUserID        string   `graphql:"runAsUserId"                yaml:"runAsUserId,omitempty"      json:"runAsUserId,omitempty"`
	Labels             []string `graphql:"labels"                     yaml:"labels"                     json:"labels"`
	QueryOwnershipType string   `graphql:"queryOwnership"             yaml:"queryOwnershipType"         json:"queryOwnershipType"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ScheduledSearches deprecated added in v0.35.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ScheduledSearches) Create deprecated added in v0.35.0

func (a *ScheduledSearches) Create(viewName string, newScheduledSearch *ScheduledSearch) (*ScheduledSearch, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ScheduledSearches) Delete deprecated added in v0.35.0

func (a *ScheduledSearches) Delete(viewName, scheduledSearchID string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ScheduledSearches) Get deprecated added in v0.35.0

func (a *ScheduledSearches) Get(viewName string, scheduledSearchId string) (*ScheduledSearch, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ScheduledSearches) List deprecated added in v0.35.0

func (a *ScheduledSearches) List(viewName string) ([]ScheduledSearch, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ScheduledSearches) Update deprecated added in v0.35.0

func (a *ScheduledSearches) Update(viewName string, updateScheduledSearch *ScheduledSearch) (*ScheduledSearch, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type SearchDomain deprecated added in v0.37.0

type SearchDomain struct {
	Name            string
	Description     string
	AutomaticSearch bool
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type SearchDomainListItem deprecated added in v0.37.0

type SearchDomainListItem struct {
	Name            string
	Typename        string `graphql:"__typename"`
	AutomaticSearch bool
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type SearchDomains deprecated added in v0.37.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*SearchDomains) Get deprecated added in v0.37.0

func (s *SearchDomains) Get(name string) (*SearchDomain, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*SearchDomains) List deprecated added in v0.37.0

type SearchDomainsQueryData deprecated added in v0.37.0

type SearchDomainsQueryData struct {
	Name            string
	Description     string
	AutomaticSearch bool
	Typename        graphql.String `graphql:"__typename"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type SlackAction deprecated added in v0.29.0

type SlackAction struct {
	Url      string                 `graphql:"slackUrl: url" yaml:"url,omitempty" json:"url,omitempty"`
	Fields   []SlackFieldEntryInput `graphql:"slackFields: fields" yaml:"fields,omitempty" json:"fields,omitempty"`
	UseProxy bool                   `graphql:"slackUseProxy: useProxy" yaml:"useProxy,omitempty" json:"useProxy,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type SlackFieldEntryInput deprecated added in v0.29.0

type SlackFieldEntryInput struct {
	FieldName string `graphql:"fieldName" yaml:"fieldName" json:"fieldName"`
	Value     string `graphql:"value"     yaml:"value" json:"value"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type SlackPostMessageAction deprecated added in v0.29.0

type SlackPostMessageAction struct {
	ApiToken string                 `graphql:"slackPostMessageApiToken: apiToken" yaml:"apiToken,omitempty" json:"apiToken,omitempty"`
	Channels []string               `graphql:"slackPostMessageChannels: channels" yaml:"channels,omitempty" json:"channels,omitempty"`
	Fields   []SlackFieldEntryInput `graphql:"slackPostMessageFields: fields" yaml:"fields,omitempty" json:"fields,omitempty"`
	UseProxy bool                   `graphql:"slackPostMessageUseProxy: useProxy" yaml:"useProxy,omitempty" json:"useProxy,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type StatusResponse deprecated added in v0.4.0

type StatusResponse struct {
	Status  string
	Version string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (StatusResponse) AtLeast deprecated added in v0.35.0

func (s StatusResponse) AtLeast(ver string) (bool, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (StatusResponse) IsDown deprecated added in v0.25.0

func (s StatusResponse) IsDown() bool

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type StatusValue deprecated added in v0.25.0

type StatusValue string

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

const (
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	StatusOK StatusValue = "OK"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	StatusWarn StatusValue = "WARN"
	// Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example
	StatusDown StatusValue = "DOWN"
)

type UnversionedPackageSpecifier added in v0.28.0

type UnversionedPackageSpecifier string

UnversionedPackageSpecifier is the ID of a package, e.g foo/bar Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type User deprecated

type User struct {
	ID          string
	Username    string
	FullName    string
	Email       string
	Company     string
	CountryCode string
	Picture     string
	IsRoot      bool
	CreatedAt   string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type UserChangeSet deprecated

type UserChangeSet struct {
	IsRoot      *bool
	FullName    *string
	Company     *string
	CountryCode *string
	Picture     *string
	Email       *string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Users deprecated

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Users) Add deprecated added in v0.5.0

func (u *Users) Add(username string, changeset UserChangeSet) (User, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Users) Get deprecated

func (u *Users) Get(username string) (User, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Users) List deprecated

func (u *Users) List() ([]User, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Users) Remove deprecated

func (u *Users) Remove(username string) (User, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Users) RotateToken deprecated added in v0.32.1

func (u *Users) RotateToken(userID string) (string, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Users) Update deprecated

func (u *Users) Update(username string, changeset UserChangeSet) (User, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ValidationResponse added in v0.27.0

type ValidationResponse struct {
	InstallationErrors []string `json:"installationErrors"`
	ParseErrors        []string `json:"parseErrors"`
}

ValidationResponse contain the results of a package validation. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*ValidationResponse) IsValid added in v0.27.0

func (resp *ValidationResponse) IsValid() bool

IsValid returns true if there are no errors in the package Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type VersionedPackageSpecifier added in v0.27.0

type VersionedPackageSpecifier string

VersionedPackageSpecifier is the ID and version of a package, e.g foo/bar@2.0.1 Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type VictorOpsAction deprecated added in v0.29.0

type VictorOpsAction struct {
	MessageType string `graphql:"victorOpsMessageType: messageType" yaml:"messageType,omitempty" json:"messageType,omitempty"`
	NotifyUrl   string `graphql:"victorOpsNotifyUrl: notifyUrl" yaml:"notifyUrl,omitempty" json:"notifyUrl,omitempty"`
	UseProxy    bool   `graphql:"victorOpsUseProxy: useProxy" yaml:"useProxy,omitempty" json:"useProxy,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type View deprecated added in v0.5.0

type View struct {
	Name            string
	Description     string
	Connections     []ViewConnection
	AutomaticSearch bool
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ViewConnection deprecated added in v0.15.0

type ViewConnection struct {
	RepoName string
	Filter   string
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ViewConnectionInput deprecated added in v0.28.1

type ViewConnectionInput struct {
	RepositoryName graphql.String `json:"repositoryName"`
	Filter         graphql.String `json:"filter"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ViewListItem deprecated added in v0.11.0

type ViewListItem struct {
	Name            string
	Typename        string `graphql:"__typename"`
	AutomaticSearch bool
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type ViewQueryData deprecated added in v0.15.0

type ViewQueryData struct {
	Name            string
	Description     string
	AutomaticSearch bool
	ViewInfo        struct {
		Connections []struct {
			Repository struct{ Name string }
			Filter     string
		}
	} `graphql:"... on View"`
	Typename graphql.String `graphql:"__typename"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Viewer deprecated added in v0.4.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Viewer) ApiToken added in v0.25.0

func (c *Viewer) ApiToken() (string, error)

ApiToken fetches the api token for the user who is currently authenticated. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Viewer) Username added in v0.4.0

func (c *Viewer) Username() (string, error)

Username fetches the username associated with the API Token in use. Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type Views deprecated added in v0.5.0

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

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Views) Create deprecated added in v0.28.1

func (c *Views) Create(name, description string, connections []ViewConnectionInput) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Views) Delete deprecated added in v0.28.1

func (c *Views) Delete(name, reason string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Views) Get deprecated added in v0.5.0

func (c *Views) Get(name string) (*View, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Views) List deprecated added in v0.11.0

func (c *Views) List() ([]ViewListItem, error)

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Views) UpdateAutomaticSearch deprecated added in v0.35.0

func (c *Views) UpdateAutomaticSearch(name string, automaticSearch bool) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Views) UpdateConnections deprecated added in v0.28.1

func (c *Views) UpdateConnections(name string, connections []ViewConnectionInput) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

func (*Views) UpdateDescription deprecated added in v0.28.1

func (c *Views) UpdateDescription(name string, description string) error

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

type WebhookAction deprecated added in v0.29.0

type WebhookAction struct {
	Method       string                 `graphql:"webhookMethod: method" yaml:"method,omitempty" json:"method,omitempty"`
	Url          string                 `graphql:"webhookUrl: url" yaml:"url,omitempty" json:"url,omitempty"`
	Headers      []HttpHeaderEntryInput `graphql:"webhookHeaders: headers" yaml:"headers,omitempty" json:"headers,omitempty"`
	BodyTemplate string                 `graphql:"webhookBodyTemplate: bodyTemplate" yaml:"bodyTemplate,omitempty" json:"bodyTemplate,omitempty"`
	IgnoreSSL    bool                   `graphql:"webhookIgnoreSSL: ignoreSSL" yaml:"ignoreSSL,omitempty" json:"ignoreSSL,omitempty"`
	UseProxy     bool                   `graphql:"webhookUseProxy: useProxy" yaml:"useProxy,omitempty" json:"useProxy,omitempty"`
}

Deprecated: Should no longer be used. https://github.com/CrowdStrike/logscale-go-api-client-example

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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