utils

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CreateAlerts = "createAlerts"
View Source
const GetAlertsNames = "getAlertsNames"
View Source
const GetTriggeredAlerts = "getTriggeredAlerts"
View Source
const GetTriggeredInstances = "getTriggeredInstances"
View Source
const JobsPathv2 = "services/search/v2/jobs/"
View Source
const SavedSearchesPath = "services/saved/searches/"

Variables

This section is empty.

Functions

func CreateEndpoint

func CreateEndpoint(client *splunk.SplunkClient, service string)

func GetTestHostname added in v1.7.0

func GetTestHostname(server *httptest.Server) string

func GetTestPort added in v1.7.0

func GetTestPort(server *httptest.Server) string

func GetTestToken added in v1.7.0

func GetTestToken() string

func MockRequest added in v1.7.0

func MockRequest(response string, sslVerificationActivated bool) *httptest.Server

mock an http server

func MultitpleMockRequest added in v1.7.0

func MultitpleMockRequest(responses []map[string]interface{}, sslVerificationActivated bool) *httptest.Server

func ValidateAlertQuery added in v1.7.0

func ValidateAlertQuery(alertQuery string) string

func ValidateSearchQuery

func ValidateSearchQuery(searchQuery string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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