Documentation ¶
Index ¶
- Variables
- func DatasourceCollectionFields() *schema.Resource
- func DatasourceEntityType() *schema.Resource
- func DatasourceKPIThresholdTemplate() *schema.Resource
- func DatasourceKPIThresholdTemplateRead(ctx context.Context, d *schema.ResourceData, m interface{}) (diags diag.Diagnostics)
- func DatasourceSplunkLookup() *schema.Resource
- func DatasourceSplunkSearch() *schema.Resource
- func InitSplunkSearchLimiter(concurrency int)
- func JSONify(base *models.Base, formatter TFFormatter) (json.RawMessage, error)
- func NewResourceTemplate(data *schema.ResourceData, resourceSchema map[string]*schema.Schema, ...) (rt *resourceTemplate, err error)
- func Provider() *schema.Provider
- func ResourceCollection() *schema.Resource
- func ResourceCollectionEntries() *schema.Resource
- func ResourceCollectionEntry() *schema.Resource
- func ResourceEntity() *schema.Resource
- func ResourceEntityType() *schema.Resource
- func ResourceKPIBaseSearch() *schema.Resource
- func ResourceKPIThresholdTemplate() *schema.Resource
- func ResourceService() *schema.Resource
- type KPIBSMetricLookup
- type SplunkRequest
- type SplunkSearch
- type SplunkSearchResults
- type TFFormatter
Constants ¶
This section is empty.
Variables ¶
var Formatters map[string]TFFormatter = map[string]TFFormatter{
"kpi_base_search": kpiBSTFFormat,
"kpi_threshold_template": kpiThresholdTemplateTFFormat,
"entity": entityTFFormat,
"entity_type": entityTypeTFFormat,
"service": serviceTFFormat,
}
var GenerateUUID = func(internalIdentifier string) (string, error) {
return uuid.GenerateUUID()
}
testOverridable
Functions ¶
func DatasourceCollectionFields ¶ added in v0.8.2
func DatasourceEntityType ¶ added in v0.7.9
func DatasourceKPIThresholdTemplate ¶ added in v0.7.9
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 DatasourceSplunkSearch ¶ added in v0.7.9
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 ResourceCollection ¶ added in v0.7.9
func ResourceCollectionEntries ¶ added in v0.7.9
func ResourceCollectionEntry ¶ added in v0.7.9
func ResourceEntity ¶ added in v0.7.9
func ResourceEntityType ¶ added in v0.10.5
func ResourceKPIBaseSearch ¶ added in v0.7.9
func ResourceKPIThresholdTemplate ¶ added in v0.7.9
func ResourceService ¶ added in v0.7.9
* 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 SplunkSearchResults ¶ added in v0.7.9
type SplunkSearchResults struct { Results []map[string]splunk.Value Diags diag.Diagnostics }
Source Files ¶
- abstract_resource_kpi_threshold.go
- common.go
- datasource_collection_fields.go
- datasource_entity_type.go
- datasource_kpi_threshold_template.go
- datasource_splunk_lookup.go
- datasource_splunk_search.go
- provider.go
- resource_collection.go
- resource_entity.go
- resource_entity_type.go
- resource_kpi_base_search.go
- resource_kpi_threshold_template.go
- resource_service.go