job_state

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema

func GetSchema() schema.Schema

func NewMLJobStateResource

func NewMLJobStateResource() resource.Resource

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

Jump to

Keyboard shortcuts

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