provider

package
v0.10.10 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Formatters map[string]TFFormatter = map[string]TFFormatter{
	"kpi_base_search":        kpiBSTFFormat,
	"kpi_threshold_template": kpiThresholdTemplateTFFormat,
	"entity":                 entityTFFormat,
	"entity_type":            entityTypeTFFormat,
	"service":                serviceTFFormat,
}
View Source
var GenerateUUID = func(internalIdentifier string) (string, error) {
	return uuid.GenerateUUID()
}

testOverridable

Functions

func DatasourceCollectionFields added in v0.8.2

func DatasourceCollectionFields() *schema.Resource

func DatasourceEntityType added in v0.7.9

func DatasourceEntityType() *schema.Resource

func DatasourceKPIBaseSearch added in v0.10.9

func DatasourceKPIBaseSearch() *schema.Resource

func DatasourceKPIBaseSearchRead added in v0.10.9

func DatasourceKPIBaseSearchRead(ctx context.Context, d *schema.ResourceData, m interface{}) (diags diag.Diagnostics)

func DatasourceKPIThresholdTemplate added in v0.7.9

func DatasourceKPIThresholdTemplate() *schema.Resource

func DatasourceKPIThresholdTemplateRead added in v0.7.9

func DatasourceKPIThresholdTemplateRead(ctx context.Context, d *schema.ResourceData, m interface{}) (diags diag.Diagnostics)

func DatasourceSplunkLookup added in v0.7.9

func DatasourceSplunkLookup() *schema.Resource

func DatasourceSplunkSearch added in v0.7.9

func DatasourceSplunkSearch() *schema.Resource

func InitSplunkSearchLimiter added in v0.7.9

func InitSplunkSearchLimiter(concurrency int)

func JSONify added in v0.7.9

func JSONify(base *models.Base, formatter TFFormatter) (json.RawMessage, error)

func NewResourceTemplate added in v0.7.9

func NewResourceTemplate(data *schema.ResourceData, resourceSchema map[string]*schema.Schema, title, resourceType string) (rt *resourceTemplate, err error)

func Provider

func Provider() *schema.Provider

Provider returns the ITSI provider

func ResourceCollection added in v0.7.9

func ResourceCollection() *schema.Resource

func ResourceCollectionEntries added in v0.7.9

func ResourceCollectionEntries() *schema.Resource

func ResourceCollectionEntry added in v0.7.9

func ResourceCollectionEntry() *schema.Resource

func ResourceEntity added in v0.7.9

func ResourceEntity() *schema.Resource

func ResourceEntityType added in v0.10.5

func ResourceEntityType() *schema.Resource

func ResourceKPIBaseSearch added in v0.7.9

func ResourceKPIBaseSearch() *schema.Resource

func ResourceKPIThresholdTemplate added in v0.7.9

func ResourceKPIThresholdTemplate() *schema.Resource

func ResourceService added in v0.7.9

func ResourceService() *schema.Resource

* GENERATED_SEARCH_ATTRIBUTES: * UI generates these searches via get_kpi_searches POST request * with following mappings: * 'search' <= 'kpi_base_search', * 'kpi_base_search' <= 'kpi_base_search', * * 'search_aggregate' <= 'single_value_search', * 'search_entities' <= 'single_value_search', * * 'search_time_series' <= 'time_series_search', * 'search_time_series_aggregate' <= 'time_series_search', * * 'search_time_series_entities' <= 'entity_time_series_search, * 'search_time_compare' <= 'compare_search', * 'search_alert' <= 'alert_search, * 'search_alert_entities' (!) Didn't mapped in UI. Default "" * * BUT in case all base search field are passed splunk generates it automatically after POST/PUT service * * KPI BASE SEARCH is managed through terraform resource, so if kpi base searches' content is changed, splunk responsibility * to update linked fields, there is no need to save linked values in the resource. *

Types

type KPIBSMetricLookup added in v0.7.9

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

type SplunkRequest added in v0.7.9

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

func NewSplunkRequest added in v0.7.9

func NewSplunkRequest(client models.ClientConfig, searches []SplunkSearch, concurrency int, joinFields []string, ismv bool, mvseparator string) *SplunkRequest

func (*SplunkRequest) ID added in v0.7.9

func (sr *SplunkRequest) ID() string

func (*SplunkRequest) Run added in v0.7.9

func (sr *SplunkRequest) Run(ctx context.Context) (results []map[string]splunk.Value, diags diag.Diagnostics)

func (*SplunkRequest) Search added in v0.7.9

func (sr *SplunkRequest) Search(ctx context.Context, s SplunkSearch) (results []map[string]splunk.Value, diags diag.Diagnostics)

type SplunkSearch added in v0.7.9

type SplunkSearch struct {
	Query               string
	User                string
	App                 string
	EarliestTime        string
	LatestTime          string
	AllowPartialResults bool
	Timeout             int
}

type SplunkSearchResults added in v0.7.9

type SplunkSearchResults struct {
	Results []map[string]splunk.Value
	Diags   diag.Diagnostics
}

type TFFormatter added in v0.7.9

type TFFormatter func(*models.Base) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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