Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=ml.grafana.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Alert
- func (in *Alert) DeepCopy() *Alert
- func (in *Alert) DeepCopyInto(out *Alert)
- func (in *Alert) DeepCopyObject() runtime.Object
- func (mg *Alert) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Alert) GetConnectionDetailsMapping() map[string]string
- func (mg *Alert) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Alert) GetID() string
- func (tr *Alert) GetInitParameters() (map[string]any, error)
- func (mg *Alert) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Alert) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Alert) GetObservation() (map[string]any, error)
- func (tr *Alert) GetParameters() (map[string]any, error)
- func (mg *Alert) GetProviderConfigReference() *xpv1.Reference
- func (mg *Alert) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Alert) GetTerraformResourceType() string
- func (tr *Alert) GetTerraformSchemaVersion() int
- func (mg *Alert) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Alert) Hub()
- func (tr *Alert) LateInitialize(attrs []byte) (bool, error)
- func (mg *Alert) SetConditions(c ...xpv1.Condition)
- func (mg *Alert) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Alert) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Alert) SetObservation(obs map[string]any) error
- func (tr *Alert) SetParameters(params map[string]any) error
- func (mg *Alert) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Alert) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Alert) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type AlertInitParameters
- type AlertList
- type AlertObservation
- type AlertParameters
- type AlertSpec
- type AlertStatus
- type AlgorithmInitParameters
- type AlgorithmObservation
- type AlgorithmParameters
- type ConfigInitParameters
- type ConfigObservation
- type ConfigParameters
- type CustomPeriodsInitParameters
- type CustomPeriodsObservation
- type CustomPeriodsParameters
- type Holiday
- func (in *Holiday) DeepCopy() *Holiday
- func (in *Holiday) DeepCopyInto(out *Holiday)
- func (in *Holiday) DeepCopyObject() runtime.Object
- func (mg *Holiday) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Holiday) GetConnectionDetailsMapping() map[string]string
- func (mg *Holiday) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Holiday) GetID() string
- func (tr *Holiday) GetInitParameters() (map[string]any, error)
- func (mg *Holiday) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Holiday) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Holiday) GetObservation() (map[string]any, error)
- func (tr *Holiday) GetParameters() (map[string]any, error)
- func (mg *Holiday) GetProviderConfigReference() *xpv1.Reference
- func (mg *Holiday) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Holiday) GetTerraformResourceType() string
- func (tr *Holiday) GetTerraformSchemaVersion() int
- func (mg *Holiday) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Holiday) Hub()
- func (tr *Holiday) LateInitialize(attrs []byte) (bool, error)
- func (mg *Holiday) SetConditions(c ...xpv1.Condition)
- func (mg *Holiday) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Holiday) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Holiday) SetObservation(obs map[string]any) error
- func (tr *Holiday) SetParameters(params map[string]any) error
- func (mg *Holiday) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Holiday) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Holiday) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type HolidayInitParameters
- type HolidayList
- type HolidayObservation
- type HolidayParameters
- type HolidaySpec
- type HolidayStatus
- type Job
- func (in *Job) DeepCopy() *Job
- func (in *Job) DeepCopyInto(out *Job)
- func (in *Job) DeepCopyObject() runtime.Object
- func (mg *Job) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Job) GetConnectionDetailsMapping() map[string]string
- func (mg *Job) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Job) GetID() string
- func (tr *Job) GetInitParameters() (map[string]any, error)
- func (mg *Job) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Job) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Job) GetObservation() (map[string]any, error)
- func (tr *Job) GetParameters() (map[string]any, error)
- func (mg *Job) GetProviderConfigReference() *xpv1.Reference
- func (mg *Job) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Job) GetTerraformResourceType() string
- func (tr *Job) GetTerraformSchemaVersion() int
- func (mg *Job) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Job) Hub()
- func (tr *Job) LateInitialize(attrs []byte) (bool, error)
- func (mg *Job) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Job) SetConditions(c ...xpv1.Condition)
- func (mg *Job) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Job) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Job) SetObservation(obs map[string]any) error
- func (tr *Job) SetParameters(params map[string]any) error
- func (mg *Job) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Job) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Job) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type JobInitParameters
- type JobList
- type JobObservation
- type JobParameters
- type JobSpec
- type JobStatus
- type OutlierDetector
- func (in *OutlierDetector) DeepCopy() *OutlierDetector
- func (in *OutlierDetector) DeepCopyInto(out *OutlierDetector)
- func (in *OutlierDetector) DeepCopyObject() runtime.Object
- func (mg *OutlierDetector) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *OutlierDetector) GetConnectionDetailsMapping() map[string]string
- func (mg *OutlierDetector) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *OutlierDetector) GetID() string
- func (tr *OutlierDetector) GetInitParameters() (map[string]any, error)
- func (mg *OutlierDetector) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *OutlierDetector) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *OutlierDetector) GetObservation() (map[string]any, error)
- func (tr *OutlierDetector) GetParameters() (map[string]any, error)
- func (mg *OutlierDetector) GetProviderConfigReference() *xpv1.Reference
- func (mg *OutlierDetector) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *OutlierDetector) GetTerraformResourceType() string
- func (tr *OutlierDetector) GetTerraformSchemaVersion() int
- func (mg *OutlierDetector) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *OutlierDetector) Hub()
- func (tr *OutlierDetector) LateInitialize(attrs []byte) (bool, error)
- func (mg *OutlierDetector) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *OutlierDetector) SetConditions(c ...xpv1.Condition)
- func (mg *OutlierDetector) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *OutlierDetector) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *OutlierDetector) SetObservation(obs map[string]any) error
- func (tr *OutlierDetector) SetParameters(params map[string]any) error
- func (mg *OutlierDetector) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *OutlierDetector) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *OutlierDetector) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type OutlierDetectorInitParameters
- type OutlierDetectorList
- type OutlierDetectorObservation
- type OutlierDetectorParameters
- type OutlierDetectorSpec
- type OutlierDetectorStatus
Constants ¶
const ( CRDGroup = "ml.grafana.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( Alert_Kind = "Alert" Alert_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Alert_Kind}.String() Alert_KindAPIVersion = Alert_Kind + "." + CRDGroupVersion.String() Alert_GroupVersionKind = CRDGroupVersion.WithKind(Alert_Kind) )
Repository type metadata.
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 )
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.
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.
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 Alert ¶ added in v0.23.0
type Alert 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.title) || (has(self.initProvider) && has(self.initProvider.title))",message="spec.forProvider.title is a required parameter"
Spec AlertSpec `json:"spec"`
Status AlertStatus `json:"status,omitempty"`
}
Alert is the Schema for the Alerts API. +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 (*Alert) DeepCopy ¶ added in v0.23.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alert.
func (*Alert) DeepCopyInto ¶ added in v0.23.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Alert) DeepCopyObject ¶ added in v0.23.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Alert) GetCondition ¶ added in v0.23.0
func (mg *Alert) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Alert.
func (*Alert) GetConnectionDetailsMapping ¶ added in v0.23.0
GetConnectionDetailsMapping for this Alert
func (*Alert) GetDeletionPolicy ¶ added in v0.23.0
func (mg *Alert) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Alert.
func (*Alert) GetID ¶ added in v0.23.0
GetID returns ID of underlying Terraform resource of this Alert
func (*Alert) GetInitParameters ¶ added in v0.23.0
GetInitParameters of this Alert
func (*Alert) GetManagementPolicies ¶ added in v0.23.0
func (mg *Alert) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Alert.
func (*Alert) GetMergedParameters ¶ added in v0.23.0
GetInitParameters of this Alert
func (*Alert) GetObservation ¶ added in v0.23.0
GetObservation of this Alert
func (*Alert) GetParameters ¶ added in v0.23.0
GetParameters of this Alert
func (*Alert) GetProviderConfigReference ¶ added in v0.23.0
GetProviderConfigReference of this Alert.
func (*Alert) GetPublishConnectionDetailsTo ¶ added in v0.23.0
func (mg *Alert) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Alert.
func (*Alert) GetTerraformResourceType ¶ added in v0.23.0
GetTerraformResourceType returns Terraform resource type for this Alert
func (*Alert) GetTerraformSchemaVersion ¶ added in v0.23.0
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Alert) GetWriteConnectionSecretToReference ¶ added in v0.23.0
func (mg *Alert) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Alert.
func (*Alert) Hub ¶ added in v0.23.0
func (tr *Alert) Hub()
Hub marks this type as a conversion hub.
func (*Alert) LateInitialize ¶ added in v0.23.0
LateInitialize this Alert using its observed tfState. returns True if there are any spec changes for the resource.
func (*Alert) SetConditions ¶ added in v0.23.0
SetConditions of this Alert.
func (*Alert) SetDeletionPolicy ¶ added in v0.23.0
func (mg *Alert) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Alert.
func (*Alert) SetManagementPolicies ¶ added in v0.23.0
func (mg *Alert) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Alert.
func (*Alert) SetObservation ¶ added in v0.23.0
SetObservation for this Alert
func (*Alert) SetParameters ¶ added in v0.23.0
SetParameters for this Alert
func (*Alert) SetProviderConfigReference ¶ added in v0.23.0
SetProviderConfigReference of this Alert.
func (*Alert) SetPublishConnectionDetailsTo ¶ added in v0.23.0
func (mg *Alert) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Alert.
func (*Alert) SetWriteConnectionSecretToReference ¶ added in v0.23.0
func (mg *Alert) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Alert.
type AlertInitParameters ¶ added in v0.23.0
type AlertInitParameters struct {
// Annotations to add to the alert generated in Grafana.
// +mapType=granular
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// The condition for when to consider a point as anomalous.
AnomalyCondition *string `json:"anomalyCondition,omitempty" tf:"anomaly_condition,omitempty"`
// How long values must be anomalous before firing an alert.
For *string `json:"for,omitempty" tf:"for,omitempty"`
// The forecast this alert belongs to.
JobID *string `json:"jobId,omitempty" tf:"job_id,omitempty"`
// Labels to add to the alert generated in Grafana.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// How the alert should be processed when no data is returned by the underlying series
NoDataState *string `json:"noDataState,omitempty" tf:"no_data_state,omitempty"`
// The forecast this alert belongs to.
OutlierID *string `json:"outlierId,omitempty" tf:"outlier_id,omitempty"`
// The threshold of points over the window that need to be anomalous to alert.
Threshold *string `json:"threshold,omitempty" tf:"threshold,omitempty"`
// The title of the alert.
Title *string `json:"title,omitempty" tf:"title,omitempty"`
// How much time to average values over
Window *string `json:"window,omitempty" tf:"window,omitempty"`
}
func (*AlertInitParameters) DeepCopy ¶ added in v0.23.0
func (in *AlertInitParameters) DeepCopy() *AlertInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertInitParameters.
func (*AlertInitParameters) DeepCopyInto ¶ added in v0.23.0
func (in *AlertInitParameters) DeepCopyInto(out *AlertInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertList ¶ added in v0.23.0
type AlertList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Alert `json:"items"`
}
AlertList contains a list of Alerts
func (*AlertList) DeepCopy ¶ added in v0.23.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertList.
func (*AlertList) DeepCopyInto ¶ added in v0.23.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertList) DeepCopyObject ¶ added in v0.23.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertObservation ¶ added in v0.23.0
type AlertObservation struct {
// Annotations to add to the alert generated in Grafana.
// +mapType=granular
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// The condition for when to consider a point as anomalous.
AnomalyCondition *string `json:"anomalyCondition,omitempty" tf:"anomaly_condition,omitempty"`
// How long values must be anomalous before firing an alert.
For *string `json:"for,omitempty" tf:"for,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The forecast this alert belongs to.
JobID *string `json:"jobId,omitempty" tf:"job_id,omitempty"`
// Labels to add to the alert generated in Grafana.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// How the alert should be processed when no data is returned by the underlying series
NoDataState *string `json:"noDataState,omitempty" tf:"no_data_state,omitempty"`
// The forecast this alert belongs to.
OutlierID *string `json:"outlierId,omitempty" tf:"outlier_id,omitempty"`
// The threshold of points over the window that need to be anomalous to alert.
Threshold *string `json:"threshold,omitempty" tf:"threshold,omitempty"`
// The title of the alert.
Title *string `json:"title,omitempty" tf:"title,omitempty"`
// How much time to average values over
Window *string `json:"window,omitempty" tf:"window,omitempty"`
}
func (*AlertObservation) DeepCopy ¶ added in v0.23.0
func (in *AlertObservation) DeepCopy() *AlertObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertObservation.
func (*AlertObservation) DeepCopyInto ¶ added in v0.23.0
func (in *AlertObservation) DeepCopyInto(out *AlertObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertParameters ¶ added in v0.23.0
type AlertParameters struct {
// Annotations to add to the alert generated in Grafana.
// +kubebuilder:validation:Optional
// +mapType=granular
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// The condition for when to consider a point as anomalous.
// +kubebuilder:validation:Optional
AnomalyCondition *string `json:"anomalyCondition,omitempty" tf:"anomaly_condition,omitempty"`
// How long values must be anomalous before firing an alert.
// +kubebuilder:validation:Optional
For *string `json:"for,omitempty" tf:"for,omitempty"`
// The forecast this alert belongs to.
// +kubebuilder:validation:Optional
JobID *string `json:"jobId,omitempty" tf:"job_id,omitempty"`
// Labels to add to the alert generated in Grafana.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// How the alert should be processed when no data is returned by the underlying series
// +kubebuilder:validation:Optional
NoDataState *string `json:"noDataState,omitempty" tf:"no_data_state,omitempty"`
// The forecast this alert belongs to.
// +kubebuilder:validation:Optional
OutlierID *string `json:"outlierId,omitempty" tf:"outlier_id,omitempty"`
// The threshold of points over the window that need to be anomalous to alert.
// +kubebuilder:validation:Optional
Threshold *string `json:"threshold,omitempty" tf:"threshold,omitempty"`
// The title of the alert.
// +kubebuilder:validation:Optional
Title *string `json:"title,omitempty" tf:"title,omitempty"`
// How much time to average values over
// +kubebuilder:validation:Optional
Window *string `json:"window,omitempty" tf:"window,omitempty"`
}
func (*AlertParameters) DeepCopy ¶ added in v0.23.0
func (in *AlertParameters) DeepCopy() *AlertParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertParameters.
func (*AlertParameters) DeepCopyInto ¶ added in v0.23.0
func (in *AlertParameters) DeepCopyInto(out *AlertParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertSpec ¶ added in v0.23.0
type AlertSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider AlertParameters `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 AlertInitParameters `json:"initProvider,omitempty"`
}
AlertSpec defines the desired state of Alert
func (*AlertSpec) DeepCopy ¶ added in v0.23.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpec.
func (*AlertSpec) DeepCopyInto ¶ added in v0.23.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertStatus ¶ added in v0.23.0
type AlertStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider AlertObservation `json:"atProvider,omitempty"`
}
AlertStatus defines the observed state of Alert.
func (*AlertStatus) DeepCopy ¶ added in v0.23.0
func (in *AlertStatus) DeepCopy() *AlertStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertStatus.
func (*AlertStatus) DeepCopyInto ¶ added in v0.23.0
func (in *AlertStatus) DeepCopyInto(out *AlertStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (in *AlgorithmInitParameters) DeepCopy() *AlgorithmInitParameters
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 ¶
func (in *AlgorithmObservation) DeepCopy() *AlgorithmObservation
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 ¶
func (in *ConfigInitParameters) DeepCopy() *ConfigInitParameters
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 ¶
func (in *CustomPeriodsInitParameters) DeepCopy() *CustomPeriodsInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomPeriodsInitParameters.
func (*CustomPeriodsInitParameters) DeepCopyInto ¶
func (in *CustomPeriodsInitParameters) DeepCopyInto(out *CustomPeriodsInitParameters)
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 ¶
func (in *CustomPeriodsObservation) DeepCopy() *CustomPeriodsObservation
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 ¶
func (in *CustomPeriodsParameters) DeepCopy() *CustomPeriodsParameters
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. A holiday describes time periods where a time series is expected to behave differently to normal. To use a holiday in a job, use its id in the holidays attribute of a grafana_machine_learning_job: +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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Holiday.
func (*Holiday) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Holiday) DeepCopyObject ¶
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 ¶
GetConnectionDetailsMapping for this Holiday
func (*Holiday) GetDeletionPolicy ¶
func (mg *Holiday) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Holiday.
func (*Holiday) GetInitParameters ¶
GetInitParameters of this Holiday
func (*Holiday) GetManagementPolicies ¶
func (mg *Holiday) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Holiday.
func (*Holiday) GetMergedParameters ¶
GetInitParameters of this Holiday
func (*Holiday) GetObservation ¶
GetObservation of this Holiday
func (*Holiday) GetParameters ¶
GetParameters of this Holiday
func (*Holiday) GetProviderConfigReference ¶
GetProviderConfigReference of this Holiday.
func (*Holiday) GetPublishConnectionDetailsTo ¶
func (mg *Holiday) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Holiday.
func (*Holiday) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Holiday
func (*Holiday) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Holiday) GetWriteConnectionSecretToReference ¶
func (mg *Holiday) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Holiday.
func (*Holiday) LateInitialize ¶
LateInitialize this Holiday using its observed tfState. returns True if there are any spec changes for the resource.
func (*Holiday) SetConditions ¶
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 ¶
SetObservation for this Holiday
func (*Holiday) SetParameters ¶
SetParameters for this Holiday
func (*Holiday) SetProviderConfigReference ¶
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 ¶
func (in *HolidayInitParameters) DeepCopy() *HolidayInitParameters
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. A job defines the queries and model parameters for a machine learning task. See the Grafana Cloud docs https://grafana.com/docs/grafana-cloud/alerting-and-irm/machine-learning/dynamic-alerting/forecasting/config/ for more information on available hyperparameters for use in the hyper_params field. +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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (*Job) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Job) DeepCopyObject ¶
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 ¶
GetConnectionDetailsMapping for this Job
func (*Job) GetDeletionPolicy ¶
func (mg *Job) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Job.
func (*Job) GetInitParameters ¶
GetInitParameters of this Job
func (*Job) GetManagementPolicies ¶
func (mg *Job) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Job.
func (*Job) GetMergedParameters ¶
GetInitParameters of this Job
func (*Job) GetObservation ¶
GetObservation of this Job
func (*Job) GetParameters ¶
GetParameters of this Job
func (*Job) GetProviderConfigReference ¶
GetProviderConfigReference of this Job.
func (*Job) GetPublishConnectionDetailsTo ¶
func (mg *Job) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Job.
func (*Job) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Job
func (*Job) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Job) GetWriteConnectionSecretToReference ¶
func (mg *Job) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Job.
func (*Job) LateInitialize ¶
LateInitialize this Job using its observed tfState. returns True if there are any spec changes for the resource.
func (*Job) ResolveReferences ¶
ResolveReferences of this Job.
func (*Job) SetConditions ¶
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 ¶
SetObservation for this Job
func (*Job) SetParameters ¶
SetParameters for this Job
func (*Job) SetProviderConfigReference ¶
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 type of datasource being queried. Currently allowed values are prometheus, grafana-prometheus-datasource, grafana-amazonprometheus-datasource, loki, grafana-loki-datasource, graphite, grafana-graphite-datasource, grafana-datadog-datasource, postgres, grafana-postgresql-datasource, doitintl-bigquery-datasource, grafana-bigquery-datasource, grafana-snowflake-datasource, influxdb, grafana-influxdb-datasource, grafana-splunk-datasource, elasticsearch, grafana-elasticsearch-datasource, and grafana-mongodb-datasource.
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/alerting-and-irm/machine-learning/forecasts/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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (*JobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 type of datasource being queried. Currently allowed values are prometheus, grafana-prometheus-datasource, grafana-amazonprometheus-datasource, loki, grafana-loki-datasource, graphite, grafana-graphite-datasource, grafana-datadog-datasource, postgres, grafana-postgresql-datasource, doitintl-bigquery-datasource, grafana-bigquery-datasource, grafana-snowflake-datasource, influxdb, grafana-influxdb-datasource, grafana-splunk-datasource, elasticsearch, grafana-elasticsearch-datasource, and grafana-mongodb-datasource.
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/alerting-and-irm/machine-learning/forecasts/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 type of datasource being queried. Currently allowed values are prometheus, grafana-prometheus-datasource, grafana-amazonprometheus-datasource, loki, grafana-loki-datasource, graphite, grafana-graphite-datasource, grafana-datadog-datasource, postgres, grafana-postgresql-datasource, doitintl-bigquery-datasource, grafana-bigquery-datasource, grafana-snowflake-datasource, influxdb, grafana-influxdb-datasource, grafana-splunk-datasource, elasticsearch, grafana-elasticsearch-datasource, and grafana-mongodb-datasource.
// +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/alerting-and-irm/machine-learning/forecasts/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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
func (*JobSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (*JobStatus) DeepCopyInto ¶
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. An outlier detector monitors the results of a query and reports when its values are outside normal bands. The normal band is configured by choice of algorithm, its sensitivity and other configuration. Visit https://grafana.com/docs/grafana-cloud/machine-learning/outlier-detection/ for more details. +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 ¶
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 type of datasource being queried. Currently allowed values are prometheus, grafana-prometheus-datasource, grafana-amazonprometheus-datasource, loki, grafana-loki-datasource, graphite, grafana-graphite-datasource, grafana-datadog-datasource, postgres, grafana-postgresql-datasource, doitintl-bigquery-datasource, grafana-bigquery-datasource, grafana-snowflake-datasource, influxdb, grafana-influxdb-datasource, grafana-splunk-datasource, elasticsearch, grafana-elasticsearch-datasource, and grafana-mongodb-datasource.
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 ¶
func (in *OutlierDetectorInitParameters) DeepCopy() *OutlierDetectorInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutlierDetectorInitParameters.
func (*OutlierDetectorInitParameters) DeepCopyInto ¶
func (in *OutlierDetectorInitParameters) DeepCopyInto(out *OutlierDetectorInitParameters)
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 type of datasource being queried. Currently allowed values are prometheus, grafana-prometheus-datasource, grafana-amazonprometheus-datasource, loki, grafana-loki-datasource, graphite, grafana-graphite-datasource, grafana-datadog-datasource, postgres, grafana-postgresql-datasource, doitintl-bigquery-datasource, grafana-bigquery-datasource, grafana-snowflake-datasource, influxdb, grafana-influxdb-datasource, grafana-splunk-datasource, elasticsearch, grafana-elasticsearch-datasource, and grafana-mongodb-datasource.
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 ¶
func (in *OutlierDetectorObservation) DeepCopy() *OutlierDetectorObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutlierDetectorObservation.
func (*OutlierDetectorObservation) DeepCopyInto ¶
func (in *OutlierDetectorObservation) DeepCopyInto(out *OutlierDetectorObservation)
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 type of datasource being queried. Currently allowed values are prometheus, grafana-prometheus-datasource, grafana-amazonprometheus-datasource, loki, grafana-loki-datasource, graphite, grafana-graphite-datasource, grafana-datadog-datasource, postgres, grafana-postgresql-datasource, doitintl-bigquery-datasource, grafana-bigquery-datasource, grafana-snowflake-datasource, influxdb, grafana-influxdb-datasource, grafana-splunk-datasource, elasticsearch, grafana-elasticsearch-datasource, and grafana-mongodb-datasource.
// +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 ¶
func (in *OutlierDetectorParameters) DeepCopy() *OutlierDetectorParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutlierDetectorParameters.
func (*OutlierDetectorParameters) DeepCopyInto ¶
func (in *OutlierDetectorParameters) DeepCopyInto(out *OutlierDetectorParameters)
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 ¶
func (in *OutlierDetectorStatus) DeepCopy() *OutlierDetectorStatus
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.
Source Files
¶
- zz_alert_terraformed.go
- zz_alert_types.go
- zz_generated.conversion_hubs.go
- zz_generated.deepcopy.go
- zz_generated.managed.go
- zz_generated.managedlist.go
- zz_generated.resolvers.go
- zz_groupversion_info.go
- zz_holiday_terraformed.go
- zz_holiday_types.go
- zz_job_terraformed.go
- zz_job_types.go
- zz_outlierdetector_terraformed.go
- zz_outlierdetector_types.go