Documentation
¶
Index ¶
- func GetChunkingConfigAttrTypes() map[string]attr.Type
- func GetDelayedDataCheckConfigAttrTypes() map[string]attr.Type
- func GetIndicesOptionsAttrTypes() map[string]attr.Type
- func GetSchema() schema.Schema
- func NewDatafeedResource() resource.Resource
- func WaitForDatafeedState(ctx context.Context, client *clients.ApiClient, datafeedId string, ...) (bool, diag.Diagnostics)
- type ChunkingConfig
- type Datafeed
- type DelayedDataCheckConfig
- type IndicesOptions
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChunkingConfigAttrTypes ¶
GetChunkingConfigAttrTypes returns the attribute types for chunking_config
func GetDelayedDataCheckConfigAttrTypes ¶
GetDelayedDataCheckConfigAttrTypes returns the attribute types for delayed_data_check_config
func GetIndicesOptionsAttrTypes ¶
GetIndicesOptionsAttrTypes returns the attribute types for indices_options
func NewDatafeedResource ¶
Types ¶
type ChunkingConfig ¶
type ChunkingConfig struct {
Mode types.String `tfsdk:"mode"`
TimeSpan types.String `tfsdk:"time_span"`
}
ChunkingConfig represents the chunking configuration
type Datafeed ¶
type Datafeed struct {
ID types.String `tfsdk:"id"`
ElasticsearchConnection types.List `tfsdk:"elasticsearch_connection"`
DatafeedID types.String `tfsdk:"datafeed_id"`
JobID types.String `tfsdk:"job_id"`
Indices types.List `tfsdk:"indices"`
Query jsontypes.Normalized `tfsdk:"query"`
Aggregations jsontypes.Normalized `tfsdk:"aggregations"`
ScriptFields customtypes.JSONWithDefaultsValue[map[string]any] `tfsdk:"script_fields"`
RuntimeMappings jsontypes.Normalized `tfsdk:"runtime_mappings"`
ScrollSize types.Int64 `tfsdk:"scroll_size"`
ChunkingConfig types.Object `tfsdk:"chunking_config"`
Frequency types.String `tfsdk:"frequency"`
QueryDelay types.String `tfsdk:"query_delay"`
DelayedDataCheckConfig types.Object `tfsdk:"delayed_data_check_config"`
MaxEmptySearches types.Int64 `tfsdk:"max_empty_searches"`
IndicesOptions types.Object `tfsdk:"indices_options"`
}
Datafeed represents the Terraform resource model for ML datafeeds
func (*Datafeed) FromAPIModel ¶
FromAPIModel populates the Terraform model from an API model
func (*Datafeed) ToAPIModel ¶
ToAPIModel converts the Terraform model to an API model for creating/updating
type DelayedDataCheckConfig ¶
type DelayedDataCheckConfig struct {
Enabled types.Bool `tfsdk:"enabled"`
CheckWindow types.String `tfsdk:"check_window"`
}
DelayedDataCheckConfig represents the delayed data check configuration
type IndicesOptions ¶
type IndicesOptions struct {
ExpandWildcards types.List `tfsdk:"expand_wildcards"`
AllowNoIndices types.Bool `tfsdk:"allow_no_indices"`
IgnoreThrottled types.Bool `tfsdk:"ignore_throttled"`
}
IndicesOptions represents the indices options for search
Click to show internal directories.
Click to hide internal directories.