Documentation ¶
Index ¶
- Constants
- Variables
- func Get(targetURL string, params map[string]string, authHeader string) ([]byte, error)
- func GetBasicAuthHeader(clientID, clientSecret string) string
- func GetCredentials(novaUrl string) (clientID, clientSecret string, err error)
- func GetUserAgent() string
- func Post(targetURL string, payload io.Reader, authHeader string) ([]byte, error)
- func SaveCredentials(novaUrl string) (clientID, clientSecret string, err error)
- type MetricsGetResponse
- type MetricsLSResponse
- type NovaIngest
- type NovaMetricsSearch
- type NovaResults
- type NovaResultsStats
- type NovaSearch
- type StrMatrix
Constants ¶
View Source
const ( EventIngestor = iota MetricIngestor = iota )
View Source
const AppVersion = "0.3.2"
View Source
const DefaultNovaURL = "https://api.splunknova.com"
Variables ¶
View Source
var HTTPClient *http.Client
Functions ¶
func GetBasicAuthHeader ¶
func GetCredentials ¶
func GetUserAgent ¶
func GetUserAgent() string
func SaveCredentials ¶
Types ¶
type MetricsGetResponse ¶
type MetricsLSResponse ¶
type MetricsLSResponse struct {
Metrics []string `json:"metrics"`
}
type NovaIngest ¶
type NovaIngest struct { Source string Entity string Auth string NovaURL string ErrChan chan error Type int }
NovaIngest creates a new ingest obj
func NewNovaIngestForEvents ¶
func NewNovaIngestForEvents(novaURL, entity, auth string) *NovaIngest
func NewNovaIngestForMetrics ¶
func NewNovaIngestForMetrics(novaURL, entity, auth string) *NovaIngest
func (*NovaIngest) Start ¶
func (n *NovaIngest) Start(r io.Reader)
Start sends lines from stdin to nova
func (*NovaIngest) WaitAndLogErrors ¶
func (n *NovaIngest) WaitAndLogErrors() (errorsEncountered bool)
WaitAndLogErrors blocks on the pipeline to complete and logs all errors
type NovaMetricsSearch ¶
func NewNovaMetricsSearch ¶
func NewNovaMetricsSearch(novaURL, auth string) *NovaMetricsSearch
NewNovaSearch creates a new search obj
func (*NovaMetricsSearch) GetAggregations ¶
func (n *NovaMetricsSearch) GetAggregations(metric_names, aggregations, groupBy, span string) (StrMatrix, error)
func (*NovaMetricsSearch) GetLs ¶
func (n *NovaMetricsSearch) GetLs() (StrMatrix, error)
func (*NovaMetricsSearch) WaitAndLogErrors ¶
func (n *NovaMetricsSearch) WaitAndLogErrors() (errorsEncountered bool)
WaitAndLogErrors blocks on the pipeline to complete and logs all errors
type NovaResults ¶
type NovaResultsStats ¶
type NovaSearch ¶
func NewNovaSearch ¶
func NewNovaSearch(novaURL, auth string) *NovaSearch
NewNovaSearch creates a new search obj
func (*NovaSearch) Search ¶
func (n *NovaSearch) Search(keywords, transforms, report string) StrMatrix
func (*NovaSearch) WaitAndLogErrors ¶
func (n *NovaSearch) WaitAndLogErrors() (errorsEncountered bool)
WaitAndLogErrors blocks on the pipeline to complete and logs all errors
Source Files ¶
Click to show internal directories.
Click to hide internal directories.