provider

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 50 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,

	"entity":                           entityTFFormat,
	"entity_type":                      entityTypeTFFormat,
	"service":                          serviceTFFormat,
	"notable_event_aggregation_policy": notableEventAggregationPolicyTFFormat,
}
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 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 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 New added in v1.0.0

func New() provider.Provider

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 NewResourceCollectionData() resource.Resource

func NewResourceKpiThresholdTemplate added in v1.0.0

func NewResourceKpiThresholdTemplate() resource.Resource

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 ResourceNotableEventAggregationPolicy added in v0.10.11

func ResourceNotableEventAggregationPolicy() *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 KpiThresholdLevelModel added in v1.0.0

type KpiThresholdLevelModel struct {
	SeverityLabel  types.String  `tfsdk:"severity_label"`
	ThresholdValue types.Float64 `tfsdk:"threshold_value"`
	DynamicParam   types.Float64 `tfsdk:"dynamic_param"`
}

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 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)

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 TimeBlockModel struct {
	Interval types.Int64  `tfsdk:"interval"`
	Cron     types.String `tfsdk:"cron"`
}

type TimeVariateThresholdsSpecificationModel added in v1.0.0

type TimeVariateThresholdsSpecificationModel struct {
	Policies types.Set `tfsdk:"policies"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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