v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=machine.grafana.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: machine.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type LearningJob

type LearningJob struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              LearningJobSpec   `json:"spec,omitempty"`
	Status            LearningJobStatus `json:"status,omitempty"`
}

func (*LearningJob) DeepCopy

func (in *LearningJob) DeepCopy() *LearningJob

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LearningJob.

func (*LearningJob) DeepCopyInto

func (in *LearningJob) DeepCopyInto(out *LearningJob)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LearningJob) DeepCopyObject

func (in *LearningJob) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*LearningJob) SetupWebhookWithManager

func (r *LearningJob) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*LearningJob) ValidateCreate

func (r *LearningJob) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*LearningJob) ValidateDelete

func (r *LearningJob) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*LearningJob) ValidateUpdate

func (r *LearningJob) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type LearningJobList

type LearningJobList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of LearningJob CRD objects
	Items []LearningJob `json:"items,omitempty"`
}

LearningJobList is a list of LearningJobs

func (*LearningJobList) DeepCopy

func (in *LearningJobList) DeepCopy() *LearningJobList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LearningJobList.

func (*LearningJobList) DeepCopyInto

func (in *LearningJobList) DeepCopyInto(out *LearningJobList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LearningJobList) DeepCopyObject

func (in *LearningJobList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LearningJobSpec

type LearningJobSpec struct {
	State *LearningJobSpecResource `json:"state,omitempty" tf:"-"`

	Resource LearningJobSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*LearningJobSpec) DeepCopy

func (in *LearningJobSpec) DeepCopy() *LearningJobSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LearningJobSpec.

func (*LearningJobSpec) DeepCopyInto

func (in *LearningJobSpec) DeepCopyInto(out *LearningJobSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LearningJobSpecResource

type LearningJobSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The id of the datasource to query.
	DatasourceID *int64 `json:"datasourceID" tf:"datasource_id"`
	// The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
	DatasourceType *string `json:"datasourceType" tf:"datasource_type"`
	// A description of the job.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// The hyperparameters used to fine tune the algorithm. See https://grafana.com/docs/grafana-cloud/machine-learning/models/ for the full list of available hyperparameters.
	// +optional
	HyperParams map[string]string `json:"hyperParams,omitempty" tf:"hyper_params"`
	// The data interval in seconds to train the data on.
	// +optional
	Interval *int64 `json:"interval,omitempty" tf:"interval"`
	// The metric used to query the job results.
	Metric *string `json:"metric" tf:"metric"`
	// The name of the job.
	Name *string `json:"name" tf:"name"`
	// An object representing the query params to query Grafana with.
	QueryParams map[string]string `json:"queryParams" tf:"query_params"`
	// The data interval in seconds to train the data on.
	// +optional
	TrainingWindow *int64 `json:"trainingWindow,omitempty" tf:"training_window"`
}

func (*LearningJobSpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LearningJobSpecResource.

func (*LearningJobSpecResource) DeepCopyInto

func (in *LearningJobSpecResource) DeepCopyInto(out *LearningJobSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LearningJobStatus

type LearningJobStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*LearningJobStatus) DeepCopy

func (in *LearningJobStatus) DeepCopy() *LearningJobStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LearningJobStatus.

func (*LearningJobStatus) DeepCopyInto

func (in *LearningJobStatus) DeepCopyInto(out *LearningJobStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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