Documentation ¶
Index ¶
- Variables
- func DatasourceCollectionFields() *schema.Resource
- func DatasourceKPIBaseSearch() *schema.Resource
- func DatasourceKPIBaseSearchRead(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 New() provider.Provider
- func NewCollectionAPI(m collectionModel, c models.ClientConfig) *collectionAPI
- func NewCollectionDataAPI(m collectionDataModel, c models.ClientConfig) *collectionDataAPI
- func NewDataSourceCollectionData() datasource.DataSource
- func NewDataSourceEntityType() datasource.DataSource
- func NewDataSourceKpiThresholdTemplate() datasource.DataSource
- func NewResourceCollectionData() resource.Resource
- func NewResourceKpiThresholdTemplate() resource.Resource
- 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 ResourceNotableEventAggregationPolicy() *schema.Resource
- func ResourceService() *schema.Resource
- type KPIBSMetricLookup
- type KpiThresholdLevelModel
- type PolicyModel
- type SDK_ISSUE_588
- type SplunkRequest
- type SplunkSearch
- type SplunkSearchResults
- type TFFormatter
- type ThresholdSettingModel
- type TimeBlockModel
- type TimeVariateThresholdsSpecificationModel
Constants ¶
This section is empty.
Variables ¶
var Formatters map[string]TFFormatter = map[string]TFFormatter{
"kpi_base_search": kpiBSTFFormat,
"entity": entityTFFormat,
"entity_type": entityTypeTFFormat,
"service": serviceTFFormat,
"notable_event_aggregation_policy": notableEventAggregationPolicyTFFormat,
}
var GenerateUUID = func(internalIdentifier string) (string, error) {
return uuid.GenerateUUID()
}
testOverridable
Functions ¶
func DatasourceCollectionFields ¶ added in v0.8.2
func DatasourceKPIBaseSearch ¶ added in v0.10.9
func DatasourceKPIBaseSearchRead ¶ added in v0.10.9
func DatasourceKPIBaseSearchRead(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 New ¶ added in v1.0.0
New is a helper function to simplify provider server and testing implementation.
func NewCollectionAPI ¶ added in v1.0.0
func NewCollectionAPI(m collectionModel, c models.ClientConfig) *collectionAPI
func NewCollectionDataAPI ¶ added in v1.0.0
func NewCollectionDataAPI(m collectionDataModel, c models.ClientConfig) *collectionDataAPI
func NewDataSourceCollectionData ¶ added in v1.0.0
func NewDataSourceCollectionData() datasource.DataSource
func NewDataSourceEntityType ¶ added in v1.0.0
func NewDataSourceEntityType() datasource.DataSource
func NewDataSourceKpiThresholdTemplate ¶ added in v1.0.0
func NewDataSourceKpiThresholdTemplate() datasource.DataSource
func NewResourceCollectionData ¶ added in v1.0.0
func NewResourceKpiThresholdTemplate ¶ added in v1.0.0
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 ResourceNotableEventAggregationPolicy ¶ added in v0.10.11
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 KpiThresholdLevelModel ¶ added in v1.0.0
type PolicyModel ¶ added in v1.0.0
type PolicyModel struct { PolicyName types.String `tfsdk:"policy_name"` Title types.String `tfsdk:"title"` PolicyType types.String `tfsdk:"policy_type"` TimeBlocks types.Set `tfsdk:"time_blocks"` AggregateThresholds ThresholdSettingModel `tfsdk:"aggregate_thresholds"` EntityThresholds ThresholdSettingModel `tfsdk:"entity_thresholds"` }
type SDK_ISSUE_588 ¶ added in v0.10.12
type SDK_ISSUE_588 struct {
// contains filtered or unexported fields
}
func (SDK_ISSUE_588) Error ¶ added in v0.10.12
func (i SDK_ISSUE_588) Error() string
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 }
type ThresholdSettingModel ¶ added in v1.0.0
type ThresholdSettingModel struct { BaseSeverityLabel types.String `tfsdk:"base_severity_label"` GaugeMax types.Float64 `tfsdk:"gauge_max"` GaugeMin types.Float64 `tfsdk:"gauge_min"` IsMaxStatic types.Bool `tfsdk:"is_max_static"` IsMinStatic types.Bool `tfsdk:"is_min_static"` MetricField types.String `tfsdk:"metric_field"` RenderBoundaryMax types.Float64 `tfsdk:"render_boundary_max"` RenderBoundaryMin types.Float64 `tfsdk:"render_boundary_min"` Search types.String `tfsdk:"search"` ThresholdLevels types.Set `tfsdk:"threshold_levels"` }
type TimeBlockModel ¶ added in v1.0.0
type TimeVariateThresholdsSpecificationModel ¶ added in v1.0.0
Source Files ¶
- abstract_resource_kpi_threshold.go
- common.go
- datasource_collection_data.go
- datasource_collection_fields.go
- datasource_entity_type.go
- datasource_kpi_base_search.go
- datasource_kpi_threshold_template.go
- datasource_splunk_lookup.go
- datasource_splunk_search.go
- provider.go
- provider_v6.go
- resource_collection.go
- resource_collection_data.go
- resource_entity.go
- resource_entity_type.go
- resource_kpi_base_search.go
- resource_kpi_threshold_template.go
- resource_notable_event_aggregation_policy.go
- resource_service.go