Documentation
¶
Index ¶
- func GetSchema() schema.Schema
- func NewAnomalyDetectionJobResource() resource.Resource
- type AnalysisConfigAPIModel
- type AnalysisConfigTFModel
- type AnalysisLimitsAPIModel
- type AnalysisLimitsTFModel
- type AnomalyDetectionJobAPIModel
- type AnomalyDetectionJobTFModel
- type AnomalyDetectionJobUpdateAPIModel
- type ChunkingConfigAPIModel
- type CustomRuleAPIModel
- type CustomRuleTFModel
- type DataDescriptionAPIModel
- type DataDescriptionTFModel
- type DelayedDataCheckConfigAPIModel
- type DetectorAPIModel
- type DetectorTFModel
- type IndicesOptionsAPIModel
- type ModelPlotConfigAPIModel
- type ModelPlotConfigTFModel
- type PerPartitionCategorizationAPIModel
- type PerPartitionCategorizationTFModel
- type RuleConditionAPIModel
- type RuleConditionTFModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalysisConfigAPIModel ¶
type AnalysisConfigAPIModel struct {
BucketSpan string `json:"bucket_span"`
CategorizationFieldName string `json:"categorization_field_name,omitempty"`
CategorizationFilters []string `json:"categorization_filters,omitempty"`
Detectors []DetectorAPIModel `json:"detectors"`
Influencers []string `json:"influencers,omitempty"`
Latency string `json:"latency,omitempty"`
ModelPruneWindow string `json:"model_prune_window,omitempty"`
MultivariateByFields *bool `json:"multivariate_by_fields,omitempty"`
PerPartitionCategorization *PerPartitionCategorizationAPIModel `json:"per_partition_categorization,omitempty"`
SummaryCountFieldName string `json:"summary_count_field_name,omitempty"`
}
AnalysisConfigAPIModel represents the analysis configuration in API format
type AnalysisConfigTFModel ¶
type AnalysisConfigTFModel struct {
BucketSpan types.String `tfsdk:"bucket_span"`
CategorizationFieldName types.String `tfsdk:"categorization_field_name"`
CategorizationFilters types.List `tfsdk:"categorization_filters"`
Detectors types.List `tfsdk:"detectors"`
Influencers types.List `tfsdk:"influencers"`
Latency types.String `tfsdk:"latency"`
ModelPruneWindow types.String `tfsdk:"model_prune_window"`
MultivariateByFields types.Bool `tfsdk:"multivariate_by_fields"`
PerPartitionCategorization types.Object `tfsdk:"per_partition_categorization"`
SummaryCountFieldName types.String `tfsdk:"summary_count_field_name"`
}
AnalysisConfigTFModel represents the analysis configuration
type AnalysisLimitsAPIModel ¶
type AnalysisLimitsAPIModel struct {
CategorizationExamplesLimit *int64 `json:"categorization_examples_limit,omitempty"`
ModelMemoryLimit string `json:"model_memory_limit,omitempty"`
}
AnalysisLimitsAPIModel represents analysis limits in API format
type AnalysisLimitsTFModel ¶
type AnalysisLimitsTFModel struct {
CategorizationExamplesLimit types.Int64 `tfsdk:"categorization_examples_limit"`
ModelMemoryLimit customtypes.MemorySize `tfsdk:"model_memory_limit"`
}
AnalysisLimitsTFModel represents analysis limits configuration
type AnomalyDetectionJobAPIModel ¶
type AnomalyDetectionJobAPIModel struct {
JobID string `json:"job_id"`
Description string `json:"description,omitempty"`
Groups []string `json:"groups,omitempty"`
AnalysisConfig AnalysisConfigAPIModel `json:"analysis_config"`
AnalysisLimits *AnalysisLimitsAPIModel `json:"analysis_limits,omitempty"`
DataDescription DataDescriptionAPIModel `json:"data_description"`
ModelPlotConfig *ModelPlotConfigAPIModel `json:"model_plot_config,omitempty"`
AllowLazyOpen *bool `json:"allow_lazy_open,omitempty"`
BackgroundPersistInterval string `json:"background_persist_interval,omitempty"`
CustomSettings map[string]interface{} `json:"custom_settings,omitempty"`
DailyModelSnapshotRetentionAfterDays *int64 `json:"daily_model_snapshot_retention_after_days,omitempty"`
ModelSnapshotRetentionDays *int64 `json:"model_snapshot_retention_days,omitempty"`
RenormalizationWindowDays *int64 `json:"renormalization_window_days,omitempty"`
ResultsIndexName string `json:"results_index_name,omitempty"`
ResultsRetentionDays *int64 `json:"results_retention_days,omitempty"`
// Read-only fields
CreateTime interface{} `json:"create_time,omitempty"`
JobType string `json:"job_type,omitempty"`
JobVersion string `json:"job_version,omitempty"`
ModelSnapshotID string `json:"model_snapshot_id,omitempty"`
}
AnomalyDetectionJobAPIModel represents the API model for ML anomaly detection jobs
type AnomalyDetectionJobTFModel ¶
type AnomalyDetectionJobTFModel struct {
ID types.String `tfsdk:"id"`
ElasticsearchConnection types.List `tfsdk:"elasticsearch_connection"`
JobID types.String `tfsdk:"job_id"`
Description types.String `tfsdk:"description"`
Groups types.Set `tfsdk:"groups"`
AnalysisConfig types.Object `tfsdk:"analysis_config"`
AnalysisLimits types.Object `tfsdk:"analysis_limits"`
DataDescription types.Object `tfsdk:"data_description"`
ModelPlotConfig types.Object `tfsdk:"model_plot_config"`
AllowLazyOpen types.Bool `tfsdk:"allow_lazy_open"`
BackgroundPersistInterval types.String `tfsdk:"background_persist_interval"`
CustomSettings jsontypes.Normalized `tfsdk:"custom_settings"`
DailyModelSnapshotRetentionAfterDays types.Int64 `tfsdk:"daily_model_snapshot_retention_after_days"`
ModelSnapshotRetentionDays types.Int64 `tfsdk:"model_snapshot_retention_days"`
RenormalizationWindowDays types.Int64 `tfsdk:"renormalization_window_days"`
ResultsIndexName types.String `tfsdk:"results_index_name"`
ResultsRetentionDays types.Int64 `tfsdk:"results_retention_days"`
// Read-only computed fields
CreateTime types.String `tfsdk:"create_time"`
JobType types.String `tfsdk:"job_type"`
JobVersion types.String `tfsdk:"job_version"`
ModelSnapshotID types.String `tfsdk:"model_snapshot_id"`
}
AnomalyDetectionJobTFModel represents the Terraform resource model for ML anomaly detection jobs
type AnomalyDetectionJobUpdateAPIModel ¶
type AnomalyDetectionJobUpdateAPIModel struct {
Description *string `json:"description,omitempty"`
Groups []string `json:"groups,omitempty"`
AnalysisLimits *AnalysisLimitsAPIModel `json:"analysis_limits,omitempty"`
ModelPlotConfig *ModelPlotConfigAPIModel `json:"model_plot_config,omitempty"`
AllowLazyOpen *bool `json:"allow_lazy_open,omitempty"`
BackgroundPersistInterval *string `json:"background_persist_interval,omitempty"`
CustomSettings map[string]interface{} `json:"custom_settings,omitempty"`
DailyModelSnapshotRetentionAfterDays *int64 `json:"daily_model_snapshot_retention_after_days,omitempty"`
ModelSnapshotRetentionDays *int64 `json:"model_snapshot_retention_days,omitempty"`
RenormalizationWindowDays *int64 `json:"renormalization_window_days,omitempty"`
ResultsRetentionDays *int64 `json:"results_retention_days,omitempty"`
}
AnomalyDetectionJobUpdateAPIModel represents the API model for updating ML anomaly detection jobs This includes only the fields that can be updated after job creation
func (*AnomalyDetectionJobUpdateAPIModel) BuildFromPlan ¶
func (u *AnomalyDetectionJobUpdateAPIModel) BuildFromPlan(ctx context.Context, plan, state *AnomalyDetectionJobTFModel) (bool, fwdiags.Diagnostics)
BuildFromPlan populates the AnomalyDetectionJobUpdateAPIModel from the plan and state models
type ChunkingConfigAPIModel ¶
type ChunkingConfigAPIModel struct {
Mode string `json:"mode"`
TimeSpan string `json:"time_span,omitempty"`
}
ChunkingConfigAPIModel represents chunking configuration in API format
type CustomRuleAPIModel ¶
type CustomRuleAPIModel struct {
Actions []interface{} `json:"actions,omitempty"`
Conditions []RuleConditionAPIModel `json:"conditions,omitempty"`
}
CustomRuleAPIModel represents a custom rule in API format
type CustomRuleTFModel ¶
type CustomRuleTFModel struct {
Actions types.List `tfsdk:"actions"`
Conditions types.List `tfsdk:"conditions"`
}
CustomRuleTFModel represents a custom rule configuration
type DataDescriptionAPIModel ¶
type DataDescriptionAPIModel struct {
TimeField string `json:"time_field,omitempty"`
TimeFormat string `json:"time_format,omitempty"`
}
DataDescriptionAPIModel represents data description in API format
type DataDescriptionTFModel ¶
type DataDescriptionTFModel struct {
TimeField types.String `tfsdk:"time_field"`
TimeFormat types.String `tfsdk:"time_format"`
}
DataDescriptionTFModel represents data description configuration
type DelayedDataCheckConfigAPIModel ¶
type DelayedDataCheckConfigAPIModel struct {
CheckWindow string `json:"check_window,omitempty"`
Enabled bool `json:"enabled"`
}
DelayedDataCheckConfigAPIModel represents delayed data check configuration in API format
type DetectorAPIModel ¶
type DetectorAPIModel struct {
ByFieldName string `json:"by_field_name,omitempty"`
DetectorDescription string `json:"detector_description,omitempty"`
ExcludeFrequent string `json:"exclude_frequent,omitempty"`
FieldName string `json:"field_name,omitempty"`
Function string `json:"function"`
OverFieldName string `json:"over_field_name,omitempty"`
PartitionFieldName string `json:"partition_field_name,omitempty"`
UseNull *bool `json:"use_null,omitempty"`
CustomRules []CustomRuleAPIModel `json:"custom_rules,omitempty"`
}
DetectorAPIModel represents a detector configuration in API format
type DetectorTFModel ¶
type DetectorTFModel struct {
ByFieldName types.String `tfsdk:"by_field_name"`
DetectorDescription types.String `tfsdk:"detector_description"`
ExcludeFrequent types.String `tfsdk:"exclude_frequent"`
FieldName types.String `tfsdk:"field_name"`
Function types.String `tfsdk:"function"`
OverFieldName types.String `tfsdk:"over_field_name"`
PartitionFieldName types.String `tfsdk:"partition_field_name"`
UseNull types.Bool `tfsdk:"use_null"`
CustomRules types.List `tfsdk:"custom_rules"`
}
DetectorTFModel represents a detector configuration
type IndicesOptionsAPIModel ¶
type IndicesOptionsAPIModel struct {
ExpandWildcards []string `json:"expand_wildcards,omitempty"`
AllowNoIndices *bool `json:"allow_no_indices,omitempty"`
IgnoreThrottled *bool `json:"ignore_throttled,omitempty"`
}
IndicesOptionsAPIModel represents indices options in API format
type ModelPlotConfigAPIModel ¶
type ModelPlotConfigAPIModel struct {
AnnotationsEnabled *bool `json:"annotations_enabled,omitempty"`
Enabled bool `json:"enabled"`
Terms string `json:"terms,omitempty"`
}
ModelPlotConfigAPIModel represents model plot configuration in API format
type ModelPlotConfigTFModel ¶
type ModelPlotConfigTFModel struct {
AnnotationsEnabled types.Bool `tfsdk:"annotations_enabled"`
Enabled types.Bool `tfsdk:"enabled"`
Terms types.String `tfsdk:"terms"`
}
ModelPlotConfigTFModel represents model plot configuration
type PerPartitionCategorizationAPIModel ¶
type PerPartitionCategorizationAPIModel struct {
Enabled bool `json:"enabled"`
StopOnWarn *bool `json:"stop_on_warn,omitempty"`
}
PerPartitionCategorizationAPIModel represents per-partition categorization in API format
type PerPartitionCategorizationTFModel ¶
type PerPartitionCategorizationTFModel struct {
Enabled types.Bool `tfsdk:"enabled"`
StopOnWarn types.Bool `tfsdk:"stop_on_warn"`
}
PerPartitionCategorizationTFModel represents per-partition categorization configuration
type RuleConditionAPIModel ¶
type RuleConditionAPIModel struct {
AppliesTo string `json:"applies_to"`
Operator string `json:"operator"`
Value float64 `json:"value"`
}
RuleConditionAPIModel represents a rule condition in API format