v1alpha1

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=ml.grafana.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "ml.grafana.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Holiday_Kind             = "Holiday"
	Holiday_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Holiday_Kind}.String()
	Holiday_KindAPIVersion   = Holiday_Kind + "." + CRDGroupVersion.String()
	Holiday_GroupVersionKind = CRDGroupVersion.WithKind(Holiday_Kind)
)

Repository type metadata.

View Source
var (
	Job_Kind             = "Job"
	Job_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Job_Kind}.String()
	Job_KindAPIVersion   = Job_Kind + "." + CRDGroupVersion.String()
	Job_GroupVersionKind = CRDGroupVersion.WithKind(Job_Kind)
)

Repository type metadata.

View Source
var (
	OutlierDetector_Kind             = "OutlierDetector"
	OutlierDetector_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: OutlierDetector_Kind}.String()
	OutlierDetector_KindAPIVersion   = OutlierDetector_Kind + "." + CRDGroupVersion.String()
	OutlierDetector_GroupVersionKind = CRDGroupVersion.WithKind(OutlierDetector_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type AlgorithmInitParameters

type AlgorithmInitParameters struct {

	// For DBSCAN only, specify the configuration map
	Config []ConfigInitParameters `json:"config,omitempty" tf:"config,omitempty"`

	// The name of the algorithm to use ('mad' or 'dbscan').
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Specify the sensitivity of the detector (in range [0,1]).
	Sensitivity *float64 `json:"sensitivity,omitempty" tf:"sensitivity,omitempty"`
}

func (*AlgorithmInitParameters) DeepCopy

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

func (*AlgorithmInitParameters) DeepCopyInto

func (in *AlgorithmInitParameters) DeepCopyInto(out *AlgorithmInitParameters)

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

type AlgorithmObservation

type AlgorithmObservation struct {

	// For DBSCAN only, specify the configuration map
	Config []ConfigObservation `json:"config,omitempty" tf:"config,omitempty"`

	// The name of the algorithm to use ('mad' or 'dbscan').
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Specify the sensitivity of the detector (in range [0,1]).
	Sensitivity *float64 `json:"sensitivity,omitempty" tf:"sensitivity,omitempty"`
}

func (*AlgorithmObservation) DeepCopy

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

func (*AlgorithmObservation) DeepCopyInto

func (in *AlgorithmObservation) DeepCopyInto(out *AlgorithmObservation)

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

type AlgorithmParameters

type AlgorithmParameters struct {

	// For DBSCAN only, specify the configuration map
	// +kubebuilder:validation:Optional
	Config []ConfigParameters `json:"config,omitempty" tf:"config,omitempty"`

	// The name of the algorithm to use ('mad' or 'dbscan').
	// +kubebuilder:validation:Optional
	Name *string `json:"name" tf:"name,omitempty"`

	// Specify the sensitivity of the detector (in range [0,1]).
	// +kubebuilder:validation:Optional
	Sensitivity *float64 `json:"sensitivity" tf:"sensitivity,omitempty"`
}

func (*AlgorithmParameters) DeepCopy

func (in *AlgorithmParameters) DeepCopy() *AlgorithmParameters

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

func (*AlgorithmParameters) DeepCopyInto

func (in *AlgorithmParameters) DeepCopyInto(out *AlgorithmParameters)

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

type ConfigInitParameters

type ConfigInitParameters struct {

	// Specify the epsilon parameter (positive float)
	Epsilon *float64 `json:"epsilon,omitempty" tf:"epsilon,omitempty"`
}

func (*ConfigInitParameters) DeepCopy

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

func (*ConfigInitParameters) DeepCopyInto

func (in *ConfigInitParameters) DeepCopyInto(out *ConfigInitParameters)

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

type ConfigObservation

type ConfigObservation struct {

	// Specify the epsilon parameter (positive float)
	Epsilon *float64 `json:"epsilon,omitempty" tf:"epsilon,omitempty"`
}

func (*ConfigObservation) DeepCopy

func (in *ConfigObservation) DeepCopy() *ConfigObservation

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

func (*ConfigObservation) DeepCopyInto

func (in *ConfigObservation) DeepCopyInto(out *ConfigObservation)

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

type ConfigParameters

type ConfigParameters struct {

	// Specify the epsilon parameter (positive float)
	// +kubebuilder:validation:Optional
	Epsilon *float64 `json:"epsilon" tf:"epsilon,omitempty"`
}

func (*ConfigParameters) DeepCopy

func (in *ConfigParameters) DeepCopy() *ConfigParameters

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

func (*ConfigParameters) DeepCopyInto

func (in *ConfigParameters) DeepCopyInto(out *ConfigParameters)

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

type CustomPeriodsInitParameters

type CustomPeriodsInitParameters struct {
	EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`

	// The name of the custom period.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
}

func (*CustomPeriodsInitParameters) DeepCopy

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

func (*CustomPeriodsInitParameters) DeepCopyInto

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

type CustomPeriodsObservation

type CustomPeriodsObservation struct {
	EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`

	// The name of the custom period.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
}

func (*CustomPeriodsObservation) DeepCopy

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

func (*CustomPeriodsObservation) DeepCopyInto

func (in *CustomPeriodsObservation) DeepCopyInto(out *CustomPeriodsObservation)

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

type CustomPeriodsParameters

type CustomPeriodsParameters struct {

	// +kubebuilder:validation:Optional
	EndTime *string `json:"endTime" tf:"end_time,omitempty"`

	// The name of the custom period.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// +kubebuilder:validation:Optional
	StartTime *string `json:"startTime" tf:"start_time,omitempty"`
}

func (*CustomPeriodsParameters) DeepCopy

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

func (*CustomPeriodsParameters) DeepCopyInto

func (in *CustomPeriodsParameters) DeepCopyInto(out *CustomPeriodsParameters)

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

type Holiday

type Holiday struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   HolidaySpec   `json:"spec"`
	Status HolidayStatus `json:"status,omitempty"`
}

Holiday is the Schema for the Holidays API. <no value> +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*Holiday) DeepCopy

func (in *Holiday) DeepCopy() *Holiday

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

func (*Holiday) DeepCopyInto

func (in *Holiday) DeepCopyInto(out *Holiday)

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

func (*Holiday) DeepCopyObject

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

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

func (*Holiday) GetCondition

func (mg *Holiday) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Holiday.

func (*Holiday) GetConnectionDetailsMapping

func (tr *Holiday) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Holiday

func (*Holiday) GetDeletionPolicy

func (mg *Holiday) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Holiday.

func (*Holiday) GetID

func (tr *Holiday) GetID() string

GetID returns ID of underlying Terraform resource of this Holiday

func (*Holiday) GetInitParameters

func (tr *Holiday) GetInitParameters() (map[string]any, error)

GetInitParameters of this Holiday

func (*Holiday) GetManagementPolicies

func (mg *Holiday) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Holiday.

func (*Holiday) GetMergedParameters

func (tr *Holiday) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Holiday

func (*Holiday) GetObservation

func (tr *Holiday) GetObservation() (map[string]any, error)

GetObservation of this Holiday

func (*Holiday) GetParameters

func (tr *Holiday) GetParameters() (map[string]any, error)

GetParameters of this Holiday

func (*Holiday) GetProviderConfigReference

func (mg *Holiday) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Holiday.

func (*Holiday) GetPublishConnectionDetailsTo

func (mg *Holiday) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Holiday.

func (*Holiday) GetTerraformResourceType

func (mg *Holiday) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Holiday

func (*Holiday) GetTerraformSchemaVersion

func (tr *Holiday) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Holiday) GetWriteConnectionSecretToReference

func (mg *Holiday) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Holiday.

func (*Holiday) Hub

func (tr *Holiday) Hub()

Hub marks this type as a conversion hub.

func (*Holiday) LateInitialize

func (tr *Holiday) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Holiday using its observed tfState. returns True if there are any spec changes for the resource.

func (*Holiday) SetConditions

func (mg *Holiday) SetConditions(c ...xpv1.Condition)

SetConditions of this Holiday.

func (*Holiday) SetDeletionPolicy

func (mg *Holiday) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Holiday.

func (*Holiday) SetManagementPolicies

func (mg *Holiday) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Holiday.

func (*Holiday) SetObservation

func (tr *Holiday) SetObservation(obs map[string]any) error

SetObservation for this Holiday

func (*Holiday) SetParameters

func (tr *Holiday) SetParameters(params map[string]any) error

SetParameters for this Holiday

func (*Holiday) SetProviderConfigReference

func (mg *Holiday) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Holiday.

func (*Holiday) SetPublishConnectionDetailsTo

func (mg *Holiday) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Holiday.

func (*Holiday) SetWriteConnectionSecretToReference

func (mg *Holiday) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Holiday.

type HolidayInitParameters

type HolidayInitParameters struct {

	// A list of custom periods for the holiday.
	CustomPeriods []CustomPeriodsInitParameters `json:"customPeriods,omitempty" tf:"custom_periods,omitempty"`

	// A description of the holiday.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The timezone to use for events in the iCal file pointed to by ical_url.
	IcalTimezone *string `json:"icalTimezone,omitempty" tf:"ical_timezone,omitempty"`

	// A URL to an iCal file containing all occurrences of the holiday.
	IcalURL *string `json:"icalUrl,omitempty" tf:"ical_url,omitempty"`

	// The name of the holiday.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*HolidayInitParameters) DeepCopy

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

func (*HolidayInitParameters) DeepCopyInto

func (in *HolidayInitParameters) DeepCopyInto(out *HolidayInitParameters)

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

type HolidayList

type HolidayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Holiday `json:"items"`
}

HolidayList contains a list of Holidays

func (*HolidayList) DeepCopy

func (in *HolidayList) DeepCopy() *HolidayList

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

func (*HolidayList) DeepCopyInto

func (in *HolidayList) DeepCopyInto(out *HolidayList)

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

func (*HolidayList) DeepCopyObject

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

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

func (*HolidayList) GetItems

func (l *HolidayList) GetItems() []resource.Managed

GetItems of this HolidayList.

type HolidayObservation

type HolidayObservation struct {

	// A list of custom periods for the holiday.
	CustomPeriods []CustomPeriodsObservation `json:"customPeriods,omitempty" tf:"custom_periods,omitempty"`

	// A description of the holiday.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The timezone to use for events in the iCal file pointed to by ical_url.
	IcalTimezone *string `json:"icalTimezone,omitempty" tf:"ical_timezone,omitempty"`

	// A URL to an iCal file containing all occurrences of the holiday.
	IcalURL *string `json:"icalUrl,omitempty" tf:"ical_url,omitempty"`

	// The name of the holiday.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*HolidayObservation) DeepCopy

func (in *HolidayObservation) DeepCopy() *HolidayObservation

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

func (*HolidayObservation) DeepCopyInto

func (in *HolidayObservation) DeepCopyInto(out *HolidayObservation)

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

type HolidayParameters

type HolidayParameters struct {

	// A list of custom periods for the holiday.
	// +kubebuilder:validation:Optional
	CustomPeriods []CustomPeriodsParameters `json:"customPeriods,omitempty" tf:"custom_periods,omitempty"`

	// A description of the holiday.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The timezone to use for events in the iCal file pointed to by ical_url.
	// +kubebuilder:validation:Optional
	IcalTimezone *string `json:"icalTimezone,omitempty" tf:"ical_timezone,omitempty"`

	// A URL to an iCal file containing all occurrences of the holiday.
	// +kubebuilder:validation:Optional
	IcalURL *string `json:"icalUrl,omitempty" tf:"ical_url,omitempty"`

	// The name of the holiday.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*HolidayParameters) DeepCopy

func (in *HolidayParameters) DeepCopy() *HolidayParameters

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

func (*HolidayParameters) DeepCopyInto

func (in *HolidayParameters) DeepCopyInto(out *HolidayParameters)

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

type HolidaySpec

type HolidaySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     HolidayParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider HolidayInitParameters `json:"initProvider,omitempty"`
}

HolidaySpec defines the desired state of Holiday

func (*HolidaySpec) DeepCopy

func (in *HolidaySpec) DeepCopy() *HolidaySpec

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

func (*HolidaySpec) DeepCopyInto

func (in *HolidaySpec) DeepCopyInto(out *HolidaySpec)

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

type HolidayStatus

type HolidayStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        HolidayObservation `json:"atProvider,omitempty"`
}

HolidayStatus defines the observed state of Holiday.

func (*HolidayStatus) DeepCopy

func (in *HolidayStatus) DeepCopy() *HolidayStatus

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

func (*HolidayStatus) DeepCopyInto

func (in *HolidayStatus) DeepCopyInto(out *HolidayStatus)

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

type Job

type Job struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.datasourceType) || (has(self.initProvider) && has(self.initProvider.datasourceType))",message="spec.forProvider.datasourceType is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metric) || (has(self.initProvider) && has(self.initProvider.metric))",message="spec.forProvider.metric is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.queryParams) || (has(self.initProvider) && has(self.initProvider.queryParams))",message="spec.forProvider.queryParams is a required parameter"
	Spec   JobSpec   `json:"spec"`
	Status JobStatus `json:"status,omitempty"`
}

Job is the Schema for the Jobs API. <no value> +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*Job) DeepCopy

func (in *Job) DeepCopy() *Job

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

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

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

func (*Job) DeepCopyObject

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

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

func (*Job) GetCondition

func (mg *Job) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Job.

func (*Job) GetConnectionDetailsMapping

func (tr *Job) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Job

func (*Job) GetDeletionPolicy

func (mg *Job) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Job.

func (*Job) GetID

func (tr *Job) GetID() string

GetID returns ID of underlying Terraform resource of this Job

func (*Job) GetInitParameters

func (tr *Job) GetInitParameters() (map[string]any, error)

GetInitParameters of this Job

func (*Job) GetManagementPolicies

func (mg *Job) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Job.

func (*Job) GetMergedParameters

func (tr *Job) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Job

func (*Job) GetObservation

func (tr *Job) GetObservation() (map[string]any, error)

GetObservation of this Job

func (*Job) GetParameters

func (tr *Job) GetParameters() (map[string]any, error)

GetParameters of this Job

func (*Job) GetProviderConfigReference

func (mg *Job) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Job.

func (*Job) GetPublishConnectionDetailsTo

func (mg *Job) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Job.

func (*Job) GetTerraformResourceType

func (mg *Job) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Job

func (*Job) GetTerraformSchemaVersion

func (tr *Job) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Job) GetWriteConnectionSecretToReference

func (mg *Job) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Job.

func (*Job) Hub

func (tr *Job) Hub()

Hub marks this type as a conversion hub.

func (*Job) LateInitialize

func (tr *Job) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Job using its observed tfState. returns True if there are any spec changes for the resource.

func (*Job) ResolveReferences

func (mg *Job) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Job.

func (*Job) SetConditions

func (mg *Job) SetConditions(c ...xpv1.Condition)

SetConditions of this Job.

func (*Job) SetDeletionPolicy

func (mg *Job) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Job.

func (*Job) SetManagementPolicies

func (mg *Job) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Job.

func (*Job) SetObservation

func (tr *Job) SetObservation(obs map[string]any) error

SetObservation for this Job

func (*Job) SetParameters

func (tr *Job) SetParameters(params map[string]any) error

SetParameters for this Job

func (*Job) SetProviderConfigReference

func (mg *Job) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Job.

func (*Job) SetPublishConnectionDetailsTo

func (mg *Job) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Job.

func (*Job) SetWriteConnectionSecretToReference

func (mg *Job) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Job.

type JobInitParameters

type JobInitParameters struct {

	// An object representing the custom labels added on the forecast.
	// +mapType=granular
	CustomLabels map[string]*string `json:"customLabels,omitempty" tf:"custom_labels,omitempty"`

	// Reference to a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceRef *v1.Reference `json:"dataSourceRef,omitempty" tf:"-"`

	// Selector for a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceSelector *v1.Selector `json:"dataSourceSelector,omitempty" tf:"-"`

	// The id of the datasource to query.
	DatasourceID *float64 `json:"datasourceId,omitempty" tf:"datasource_id,omitempty"`

	// The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
	DatasourceType *string `json:"datasourceType,omitempty" tf:"datasource_type,omitempty"`

	// The uid of the datasource to query.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.DataSource
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DataSourceRef
	// +crossplane:generate:reference:selectorFieldName=DataSourceSelector
	DatasourceUID *string `json:"datasourceUid,omitempty" tf:"datasource_uid,omitempty"`

	// A description of the job.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// A list of holiday IDs or names to take into account when training the model.
	Holidays []*string `json:"holidays,omitempty" tf:"holidays,omitempty"`

	// 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. Defaults to `map[]`.
	// +mapType=granular
	HyperParams map[string]*string `json:"hyperParams,omitempty" tf:"hyper_params,omitempty"`

	// The data interval in seconds to train the data on. Defaults to `300`.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The metric used to query the job results.
	Metric *string `json:"metric,omitempty" tf:"metric,omitempty"`

	// The name of the job.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// An object representing the query params to query Grafana with.
	// +mapType=granular
	QueryParams map[string]*string `json:"queryParams,omitempty" tf:"query_params,omitempty"`

	// The data interval in seconds to train the data on. Defaults to `7776000`.
	TrainingWindow *float64 `json:"trainingWindow,omitempty" tf:"training_window,omitempty"`
}

func (*JobInitParameters) DeepCopy

func (in *JobInitParameters) DeepCopy() *JobInitParameters

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

func (*JobInitParameters) DeepCopyInto

func (in *JobInitParameters) DeepCopyInto(out *JobInitParameters)

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

type JobList

type JobList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Job `json:"items"`
}

JobList contains a list of Jobs

func (*JobList) DeepCopy

func (in *JobList) DeepCopy() *JobList

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

func (*JobList) DeepCopyInto

func (in *JobList) DeepCopyInto(out *JobList)

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

func (*JobList) DeepCopyObject

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

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

func (*JobList) GetItems

func (l *JobList) GetItems() []resource.Managed

GetItems of this JobList.

type JobObservation

type JobObservation struct {

	// An object representing the custom labels added on the forecast.
	// +mapType=granular
	CustomLabels map[string]*string `json:"customLabels,omitempty" tf:"custom_labels,omitempty"`

	// The id of the datasource to query.
	DatasourceID *float64 `json:"datasourceId,omitempty" tf:"datasource_id,omitempty"`

	// The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
	DatasourceType *string `json:"datasourceType,omitempty" tf:"datasource_type,omitempty"`

	// The uid of the datasource to query.
	DatasourceUID *string `json:"datasourceUid,omitempty" tf:"datasource_uid,omitempty"`

	// A description of the job.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// A list of holiday IDs or names to take into account when training the model.
	Holidays []*string `json:"holidays,omitempty" tf:"holidays,omitempty"`

	// 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. Defaults to `map[]`.
	// +mapType=granular
	HyperParams map[string]*string `json:"hyperParams,omitempty" tf:"hyper_params,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The data interval in seconds to train the data on. Defaults to `300`.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The metric used to query the job results.
	Metric *string `json:"metric,omitempty" tf:"metric,omitempty"`

	// The name of the job.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// An object representing the query params to query Grafana with.
	// +mapType=granular
	QueryParams map[string]*string `json:"queryParams,omitempty" tf:"query_params,omitempty"`

	// The data interval in seconds to train the data on. Defaults to `7776000`.
	TrainingWindow *float64 `json:"trainingWindow,omitempty" tf:"training_window,omitempty"`
}

func (*JobObservation) DeepCopy

func (in *JobObservation) DeepCopy() *JobObservation

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

func (*JobObservation) DeepCopyInto

func (in *JobObservation) DeepCopyInto(out *JobObservation)

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

type JobParameters

type JobParameters struct {

	// An object representing the custom labels added on the forecast.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	CustomLabels map[string]*string `json:"customLabels,omitempty" tf:"custom_labels,omitempty"`

	// Reference to a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceRef *v1.Reference `json:"dataSourceRef,omitempty" tf:"-"`

	// Selector for a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceSelector *v1.Selector `json:"dataSourceSelector,omitempty" tf:"-"`

	// The id of the datasource to query.
	// +kubebuilder:validation:Optional
	DatasourceID *float64 `json:"datasourceId,omitempty" tf:"datasource_id,omitempty"`

	// The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
	// +kubebuilder:validation:Optional
	DatasourceType *string `json:"datasourceType,omitempty" tf:"datasource_type,omitempty"`

	// The uid of the datasource to query.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.DataSource
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DataSourceRef
	// +crossplane:generate:reference:selectorFieldName=DataSourceSelector
	// +kubebuilder:validation:Optional
	DatasourceUID *string `json:"datasourceUid,omitempty" tf:"datasource_uid,omitempty"`

	// A description of the job.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// A list of holiday IDs or names to take into account when training the model.
	// +kubebuilder:validation:Optional
	Holidays []*string `json:"holidays,omitempty" tf:"holidays,omitempty"`

	// 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. Defaults to `map[]`.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	HyperParams map[string]*string `json:"hyperParams,omitempty" tf:"hyper_params,omitempty"`

	// The data interval in seconds to train the data on. Defaults to `300`.
	// +kubebuilder:validation:Optional
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The metric used to query the job results.
	// +kubebuilder:validation:Optional
	Metric *string `json:"metric,omitempty" tf:"metric,omitempty"`

	// The name of the job.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// An object representing the query params to query Grafana with.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	QueryParams map[string]*string `json:"queryParams,omitempty" tf:"query_params,omitempty"`

	// The data interval in seconds to train the data on. Defaults to `7776000`.
	// +kubebuilder:validation:Optional
	TrainingWindow *float64 `json:"trainingWindow,omitempty" tf:"training_window,omitempty"`
}

func (*JobParameters) DeepCopy

func (in *JobParameters) DeepCopy() *JobParameters

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

func (*JobParameters) DeepCopyInto

func (in *JobParameters) DeepCopyInto(out *JobParameters)

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

type JobSpec

type JobSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     JobParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider JobInitParameters `json:"initProvider,omitempty"`
}

JobSpec defines the desired state of Job

func (*JobSpec) DeepCopy

func (in *JobSpec) DeepCopy() *JobSpec

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

func (*JobSpec) DeepCopyInto

func (in *JobSpec) DeepCopyInto(out *JobSpec)

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

type JobStatus

type JobStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        JobObservation `json:"atProvider,omitempty"`
}

JobStatus defines the observed state of Job.

func (*JobStatus) DeepCopy

func (in *JobStatus) DeepCopy() *JobStatus

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

func (*JobStatus) DeepCopyInto

func (in *JobStatus) DeepCopyInto(out *JobStatus)

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

type OutlierDetector

type OutlierDetector struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.algorithm) || (has(self.initProvider) && has(self.initProvider.algorithm))",message="spec.forProvider.algorithm is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.datasourceType) || (has(self.initProvider) && has(self.initProvider.datasourceType))",message="spec.forProvider.datasourceType is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metric) || (has(self.initProvider) && has(self.initProvider.metric))",message="spec.forProvider.metric is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.queryParams) || (has(self.initProvider) && has(self.initProvider.queryParams))",message="spec.forProvider.queryParams is a required parameter"
	Spec   OutlierDetectorSpec   `json:"spec"`
	Status OutlierDetectorStatus `json:"status,omitempty"`
}

OutlierDetector is the Schema for the OutlierDetectors API. <no value> +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*OutlierDetector) DeepCopy

func (in *OutlierDetector) DeepCopy() *OutlierDetector

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

func (*OutlierDetector) DeepCopyInto

func (in *OutlierDetector) DeepCopyInto(out *OutlierDetector)

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

func (*OutlierDetector) DeepCopyObject

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

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

func (*OutlierDetector) GetCondition

func (mg *OutlierDetector) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this OutlierDetector.

func (*OutlierDetector) GetConnectionDetailsMapping

func (tr *OutlierDetector) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this OutlierDetector

func (*OutlierDetector) GetDeletionPolicy

func (mg *OutlierDetector) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this OutlierDetector.

func (*OutlierDetector) GetID

func (tr *OutlierDetector) GetID() string

GetID returns ID of underlying Terraform resource of this OutlierDetector

func (*OutlierDetector) GetInitParameters

func (tr *OutlierDetector) GetInitParameters() (map[string]any, error)

GetInitParameters of this OutlierDetector

func (*OutlierDetector) GetManagementPolicies

func (mg *OutlierDetector) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this OutlierDetector.

func (*OutlierDetector) GetMergedParameters

func (tr *OutlierDetector) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this OutlierDetector

func (*OutlierDetector) GetObservation

func (tr *OutlierDetector) GetObservation() (map[string]any, error)

GetObservation of this OutlierDetector

func (*OutlierDetector) GetParameters

func (tr *OutlierDetector) GetParameters() (map[string]any, error)

GetParameters of this OutlierDetector

func (*OutlierDetector) GetProviderConfigReference

func (mg *OutlierDetector) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this OutlierDetector.

func (*OutlierDetector) GetPublishConnectionDetailsTo

func (mg *OutlierDetector) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this OutlierDetector.

func (*OutlierDetector) GetTerraformResourceType

func (mg *OutlierDetector) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this OutlierDetector

func (*OutlierDetector) GetTerraformSchemaVersion

func (tr *OutlierDetector) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*OutlierDetector) GetWriteConnectionSecretToReference

func (mg *OutlierDetector) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this OutlierDetector.

func (*OutlierDetector) Hub

func (tr *OutlierDetector) Hub()

Hub marks this type as a conversion hub.

func (*OutlierDetector) LateInitialize

func (tr *OutlierDetector) LateInitialize(attrs []byte) (bool, error)

LateInitialize this OutlierDetector using its observed tfState. returns True if there are any spec changes for the resource.

func (*OutlierDetector) ResolveReferences

func (mg *OutlierDetector) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this OutlierDetector.

func (*OutlierDetector) SetConditions

func (mg *OutlierDetector) SetConditions(c ...xpv1.Condition)

SetConditions of this OutlierDetector.

func (*OutlierDetector) SetDeletionPolicy

func (mg *OutlierDetector) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this OutlierDetector.

func (*OutlierDetector) SetManagementPolicies

func (mg *OutlierDetector) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this OutlierDetector.

func (*OutlierDetector) SetObservation

func (tr *OutlierDetector) SetObservation(obs map[string]any) error

SetObservation for this OutlierDetector

func (*OutlierDetector) SetParameters

func (tr *OutlierDetector) SetParameters(params map[string]any) error

SetParameters for this OutlierDetector

func (*OutlierDetector) SetProviderConfigReference

func (mg *OutlierDetector) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this OutlierDetector.

func (*OutlierDetector) SetPublishConnectionDetailsTo

func (mg *OutlierDetector) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this OutlierDetector.

func (*OutlierDetector) SetWriteConnectionSecretToReference

func (mg *OutlierDetector) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this OutlierDetector.

type OutlierDetectorInitParameters

type OutlierDetectorInitParameters struct {

	// The algorithm to use and its configuration. See https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for details.
	Algorithm []AlgorithmInitParameters `json:"algorithm,omitempty" tf:"algorithm,omitempty"`

	// Reference to a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceRef *v1.Reference `json:"dataSourceRef,omitempty" tf:"-"`

	// Selector for a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceSelector *v1.Selector `json:"dataSourceSelector,omitempty" tf:"-"`

	// The id of the datasource to query.
	DatasourceID *float64 `json:"datasourceId,omitempty" tf:"datasource_id,omitempty"`

	// The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
	DatasourceType *string `json:"datasourceType,omitempty" tf:"datasource_type,omitempty"`

	// The uid of the datasource to query.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.DataSource
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DataSourceRef
	// +crossplane:generate:reference:selectorFieldName=DataSourceSelector
	DatasourceUID *string `json:"datasourceUid,omitempty" tf:"datasource_uid,omitempty"`

	// A description of the outlier detector.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The data interval in seconds to monitor. Defaults to `300`.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The metric used to query the outlier detector results.
	Metric *string `json:"metric,omitempty" tf:"metric,omitempty"`

	// The name of the outlier detector.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// An object representing the query params to query Grafana with.
	// +mapType=granular
	QueryParams map[string]*string `json:"queryParams,omitempty" tf:"query_params,omitempty"`
}

func (*OutlierDetectorInitParameters) DeepCopy

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

func (*OutlierDetectorInitParameters) DeepCopyInto

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

type OutlierDetectorList

type OutlierDetectorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []OutlierDetector `json:"items"`
}

OutlierDetectorList contains a list of OutlierDetectors

func (*OutlierDetectorList) DeepCopy

func (in *OutlierDetectorList) DeepCopy() *OutlierDetectorList

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

func (*OutlierDetectorList) DeepCopyInto

func (in *OutlierDetectorList) DeepCopyInto(out *OutlierDetectorList)

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

func (*OutlierDetectorList) DeepCopyObject

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

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

func (*OutlierDetectorList) GetItems

func (l *OutlierDetectorList) GetItems() []resource.Managed

GetItems of this OutlierDetectorList.

type OutlierDetectorObservation

type OutlierDetectorObservation struct {

	// The algorithm to use and its configuration. See https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for details.
	Algorithm []AlgorithmObservation `json:"algorithm,omitempty" tf:"algorithm,omitempty"`

	// The id of the datasource to query.
	DatasourceID *float64 `json:"datasourceId,omitempty" tf:"datasource_id,omitempty"`

	// The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
	DatasourceType *string `json:"datasourceType,omitempty" tf:"datasource_type,omitempty"`

	// The uid of the datasource to query.
	DatasourceUID *string `json:"datasourceUid,omitempty" tf:"datasource_uid,omitempty"`

	// A description of the outlier detector.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The data interval in seconds to monitor. Defaults to `300`.
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The metric used to query the outlier detector results.
	Metric *string `json:"metric,omitempty" tf:"metric,omitempty"`

	// The name of the outlier detector.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// An object representing the query params to query Grafana with.
	// +mapType=granular
	QueryParams map[string]*string `json:"queryParams,omitempty" tf:"query_params,omitempty"`
}

func (*OutlierDetectorObservation) DeepCopy

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

func (*OutlierDetectorObservation) DeepCopyInto

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

type OutlierDetectorParameters

type OutlierDetectorParameters struct {

	// The algorithm to use and its configuration. See https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for details.
	// +kubebuilder:validation:Optional
	Algorithm []AlgorithmParameters `json:"algorithm,omitempty" tf:"algorithm,omitempty"`

	// Reference to a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceRef *v1.Reference `json:"dataSourceRef,omitempty" tf:"-"`

	// Selector for a DataSource in oss to populate datasourceUid.
	// +kubebuilder:validation:Optional
	DataSourceSelector *v1.Selector `json:"dataSourceSelector,omitempty" tf:"-"`

	// The id of the datasource to query.
	// +kubebuilder:validation:Optional
	DatasourceID *float64 `json:"datasourceId,omitempty" tf:"datasource_id,omitempty"`

	// The type of datasource being queried. Currently allowed values are prometheus, graphite, loki, postgres, and datadog.
	// +kubebuilder:validation:Optional
	DatasourceType *string `json:"datasourceType,omitempty" tf:"datasource_type,omitempty"`

	// The uid of the datasource to query.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.DataSource
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DataSourceRef
	// +crossplane:generate:reference:selectorFieldName=DataSourceSelector
	// +kubebuilder:validation:Optional
	DatasourceUID *string `json:"datasourceUid,omitempty" tf:"datasource_uid,omitempty"`

	// A description of the outlier detector.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The data interval in seconds to monitor. Defaults to `300`.
	// +kubebuilder:validation:Optional
	Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`

	// The metric used to query the outlier detector results.
	// +kubebuilder:validation:Optional
	Metric *string `json:"metric,omitempty" tf:"metric,omitempty"`

	// The name of the outlier detector.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// An object representing the query params to query Grafana with.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	QueryParams map[string]*string `json:"queryParams,omitempty" tf:"query_params,omitempty"`
}

func (*OutlierDetectorParameters) DeepCopy

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

func (*OutlierDetectorParameters) DeepCopyInto

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

type OutlierDetectorSpec

type OutlierDetectorSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     OutlierDetectorParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider OutlierDetectorInitParameters `json:"initProvider,omitempty"`
}

OutlierDetectorSpec defines the desired state of OutlierDetector

func (*OutlierDetectorSpec) DeepCopy

func (in *OutlierDetectorSpec) DeepCopy() *OutlierDetectorSpec

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

func (*OutlierDetectorSpec) DeepCopyInto

func (in *OutlierDetectorSpec) DeepCopyInto(out *OutlierDetectorSpec)

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

type OutlierDetectorStatus

type OutlierDetectorStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        OutlierDetectorObservation `json:"atProvider,omitempty"`
}

OutlierDetectorStatus defines the observed state of OutlierDetector.

func (*OutlierDetectorStatus) DeepCopy

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

func (*OutlierDetectorStatus) DeepCopyInto

func (in *OutlierDetectorStatus) DeepCopyInto(out *OutlierDetectorStatus)

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