Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMLJobStateResource ¶
Types ¶
type MLJob ¶
type MLJob struct {
JobId string `json:"job_id"`
State string `json:"state"`
Node *MLJobNode `json:"node,omitempty"`
}
MLJob represents a single ML job in the stats response
type MLJobNode ¶
type MLJobNode struct {
Id string `json:"id"`
Name string `json:"name"`
Attributes map[string]interface{} `json:"attributes"`
}
MLJobNode represents the node information for an ML job
type MLJobStateData ¶
type MLJobStateData struct {
Id types.String `tfsdk:"id"`
ElasticsearchConnection types.List `tfsdk:"elasticsearch_connection"`
JobId types.String `tfsdk:"job_id"`
State types.String `tfsdk:"state"`
Force types.Bool `tfsdk:"force"`
Timeout customtypes.Duration `tfsdk:"job_timeout"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
type MLJobStats ¶
type MLJobStats struct {
Jobs []MLJob `json:"jobs"`
}
MLJobStats represents the statistics structure for an ML job
Click to show internal directories.
Click to hide internal directories.