Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client contains Splunk config information as well as an http client for requests.
func NewClient ¶
func NewClient(c *Config, sc *scalersconfig.ScalerConfig) (*Client, error)
NewClient returns a new Splunk client.
func (*Client) SavedSearch ¶
func (c *Client) SavedSearch(name string) (*SearchResponse, error)
SavedSearch fetches the results of a saved search/report in Splunk.
type Config ¶
type Config struct { Host string Username string Password string APIToken string HTTPTimeout time.Duration UnsafeSsl bool }
Config contains the information required to authenticate with a Splunk instance.
type SearchResponse ¶
SearchResponse is used for unmarshalling search results.
Click to show internal directories.
Click to hide internal directories.