v1alpha1

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "connections.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 (
	MetricsEndpointScrapeJob_Kind             = "MetricsEndpointScrapeJob"
	MetricsEndpointScrapeJob_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: MetricsEndpointScrapeJob_Kind}.String()
	MetricsEndpointScrapeJob_KindAPIVersion   = MetricsEndpointScrapeJob_Kind + "." + CRDGroupVersion.String()
	MetricsEndpointScrapeJob_GroupVersionKind = CRDGroupVersion.WithKind(MetricsEndpointScrapeJob_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type MetricsEndpointScrapeJob

type MetricsEndpointScrapeJob 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.authenticationMethod) || (has(self.initProvider) && has(self.initProvider.authenticationMethod))",message="spec.forProvider.authenticationMethod 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.stackId) || (has(self.initProvider) && has(self.initProvider.stackId))",message="spec.forProvider.stackId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.url) || (has(self.initProvider) && has(self.initProvider.url))",message="spec.forProvider.url is a required parameter"
	Spec   MetricsEndpointScrapeJobSpec   `json:"spec"`
	Status MetricsEndpointScrapeJobStatus `json:"status,omitempty"`
}

MetricsEndpointScrapeJob is the Schema for the MetricsEndpointScrapeJobs 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 (*MetricsEndpointScrapeJob) DeepCopy

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

func (*MetricsEndpointScrapeJob) DeepCopyInto

func (in *MetricsEndpointScrapeJob) DeepCopyInto(out *MetricsEndpointScrapeJob)

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

func (*MetricsEndpointScrapeJob) DeepCopyObject

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

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

func (*MetricsEndpointScrapeJob) GetCondition

GetCondition of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) GetDeletionPolicy

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

GetDeletionPolicy of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) GetID

func (tr *MetricsEndpointScrapeJob) GetID() string

GetID returns ID of underlying Terraform resource of this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) GetInitParameters

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

GetInitParameters of this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) GetManagementPolicies

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

GetManagementPolicies of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) GetMergedParameters

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

GetInitParameters of this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) GetObservation

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

GetObservation of this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) GetParameters

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

GetParameters of this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) GetProviderConfigReference

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

GetProviderConfigReference of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) GetTerraformResourceType

func (mg *MetricsEndpointScrapeJob) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) GetTerraformSchemaVersion

func (tr *MetricsEndpointScrapeJob) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*MetricsEndpointScrapeJob) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) Hub

func (tr *MetricsEndpointScrapeJob) Hub()

Hub marks this type as a conversion hub.

func (*MetricsEndpointScrapeJob) LateInitialize

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

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

func (*MetricsEndpointScrapeJob) SetConditions

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

SetConditions of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) SetDeletionPolicy

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

SetDeletionPolicy of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) SetManagementPolicies

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

SetManagementPolicies of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) SetObservation

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

SetObservation for this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) SetParameters

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

SetParameters for this MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJob) SetProviderConfigReference

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

SetProviderConfigReference of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJob) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this MetricsEndpointScrapeJob.

type MetricsEndpointScrapeJobInitParameters

type MetricsEndpointScrapeJobInitParameters struct {

	// (String, Sensitive) Password for basic authentication, use if scrape job is using basic authentication method
	// Password for basic authentication, use if scrape job is using basic authentication method
	AuthenticationBasicPasswordSecretRef *v1.SecretKeySelector `json:"authenticationBasicPasswordSecretRef,omitempty" tf:"-"`

	// (String) Username for basic authentication, use if scrape job is using basic authentication method
	// Username for basic authentication, use if scrape job is using basic authentication method
	AuthenticationBasicUsername *string `json:"authenticationBasicUsername,omitempty" tf:"authentication_basic_username,omitempty"`

	// (String, Sensitive) Bearer token used for authentication, use if scrape job is using bearer authentication method
	// Bearer token used for authentication, use if scrape job is using bearer authentication method
	AuthenticationBearerTokenSecretRef *v1.SecretKeySelector `json:"authenticationBearerTokenSecretRef,omitempty" tf:"-"`

	// (String) Method to pass authentication credentials: basic or bearer.
	// Method to pass authentication credentials: basic or bearer.
	AuthenticationMethod *string `json:"authenticationMethod,omitempty" tf:"authentication_method,omitempty"`

	// (Boolean) Whether the metrics endpoint scrape job is enabled or not.
	// Whether the metrics endpoint scrape job is enabled or not.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// (String) The name of the metrics endpoint scrape job.
	// The name of the metrics endpoint scrape job.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number) Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
	// Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
	ScrapeIntervalSeconds *float64 `json:"scrapeIntervalSeconds,omitempty" tf:"scrape_interval_seconds,omitempty"`

	// (String) The Stack ID of the Grafana Cloud instance.
	// The Stack ID of the Grafana Cloud instance.
	StackID *string `json:"stackId,omitempty" tf:"stack_id,omitempty"`

	// (String) The url to scrape metrics from; a valid HTTPs URL is required.
	// The url to scrape metrics from; a valid HTTPs URL is required.
	URL *string `json:"url,omitempty" tf:"url,omitempty"`
}

func (*MetricsEndpointScrapeJobInitParameters) DeepCopy

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

func (*MetricsEndpointScrapeJobInitParameters) DeepCopyInto

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

type MetricsEndpointScrapeJobList

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

MetricsEndpointScrapeJobList contains a list of MetricsEndpointScrapeJobs

func (*MetricsEndpointScrapeJobList) DeepCopy

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

func (*MetricsEndpointScrapeJobList) DeepCopyInto

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

func (*MetricsEndpointScrapeJobList) DeepCopyObject

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

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

func (*MetricsEndpointScrapeJobList) GetItems

GetItems of this MetricsEndpointScrapeJobList.

type MetricsEndpointScrapeJobObservation

type MetricsEndpointScrapeJobObservation struct {

	// (String) Username for basic authentication, use if scrape job is using basic authentication method
	// Username for basic authentication, use if scrape job is using basic authentication method
	AuthenticationBasicUsername *string `json:"authenticationBasicUsername,omitempty" tf:"authentication_basic_username,omitempty"`

	// (String) Method to pass authentication credentials: basic or bearer.
	// Method to pass authentication credentials: basic or bearer.
	AuthenticationMethod *string `json:"authenticationMethod,omitempty" tf:"authentication_method,omitempty"`

	// (Boolean) Whether the metrics endpoint scrape job is enabled or not.
	// Whether the metrics endpoint scrape job is enabled or not.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// This has the format "{{ stack_id }}:{{ name }}".
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String) The name of the metrics endpoint scrape job.
	// The name of the metrics endpoint scrape job.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number) Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
	// Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
	ScrapeIntervalSeconds *float64 `json:"scrapeIntervalSeconds,omitempty" tf:"scrape_interval_seconds,omitempty"`

	// (String) The Stack ID of the Grafana Cloud instance.
	// The Stack ID of the Grafana Cloud instance.
	StackID *string `json:"stackId,omitempty" tf:"stack_id,omitempty"`

	// (String) The url to scrape metrics from; a valid HTTPs URL is required.
	// The url to scrape metrics from; a valid HTTPs URL is required.
	URL *string `json:"url,omitempty" tf:"url,omitempty"`
}

func (*MetricsEndpointScrapeJobObservation) DeepCopy

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

func (*MetricsEndpointScrapeJobObservation) DeepCopyInto

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

type MetricsEndpointScrapeJobParameters

type MetricsEndpointScrapeJobParameters struct {

	// (String, Sensitive) Password for basic authentication, use if scrape job is using basic authentication method
	// Password for basic authentication, use if scrape job is using basic authentication method
	// +kubebuilder:validation:Optional
	AuthenticationBasicPasswordSecretRef *v1.SecretKeySelector `json:"authenticationBasicPasswordSecretRef,omitempty" tf:"-"`

	// (String) Username for basic authentication, use if scrape job is using basic authentication method
	// Username for basic authentication, use if scrape job is using basic authentication method
	// +kubebuilder:validation:Optional
	AuthenticationBasicUsername *string `json:"authenticationBasicUsername,omitempty" tf:"authentication_basic_username,omitempty"`

	// (String, Sensitive) Bearer token used for authentication, use if scrape job is using bearer authentication method
	// Bearer token used for authentication, use if scrape job is using bearer authentication method
	// +kubebuilder:validation:Optional
	AuthenticationBearerTokenSecretRef *v1.SecretKeySelector `json:"authenticationBearerTokenSecretRef,omitempty" tf:"-"`

	// (String) Method to pass authentication credentials: basic or bearer.
	// Method to pass authentication credentials: basic or bearer.
	// +kubebuilder:validation:Optional
	AuthenticationMethod *string `json:"authenticationMethod,omitempty" tf:"authentication_method,omitempty"`

	// (Boolean) Whether the metrics endpoint scrape job is enabled or not.
	// Whether the metrics endpoint scrape job is enabled or not.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// (String) The name of the metrics endpoint scrape job.
	// The name of the metrics endpoint scrape job.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number) Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
	// Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
	// +kubebuilder:validation:Optional
	ScrapeIntervalSeconds *float64 `json:"scrapeIntervalSeconds,omitempty" tf:"scrape_interval_seconds,omitempty"`

	// (String) The Stack ID of the Grafana Cloud instance.
	// The Stack ID of the Grafana Cloud instance.
	// +kubebuilder:validation:Optional
	StackID *string `json:"stackId,omitempty" tf:"stack_id,omitempty"`

	// (String) The url to scrape metrics from; a valid HTTPs URL is required.
	// The url to scrape metrics from; a valid HTTPs URL is required.
	// +kubebuilder:validation:Optional
	URL *string `json:"url,omitempty" tf:"url,omitempty"`
}

func (*MetricsEndpointScrapeJobParameters) DeepCopy

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

func (*MetricsEndpointScrapeJobParameters) DeepCopyInto

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

type MetricsEndpointScrapeJobSpec

type MetricsEndpointScrapeJobSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     MetricsEndpointScrapeJobParameters `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 MetricsEndpointScrapeJobInitParameters `json:"initProvider,omitempty"`
}

MetricsEndpointScrapeJobSpec defines the desired state of MetricsEndpointScrapeJob

func (*MetricsEndpointScrapeJobSpec) DeepCopy

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

func (*MetricsEndpointScrapeJobSpec) DeepCopyInto

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

type MetricsEndpointScrapeJobStatus

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

MetricsEndpointScrapeJobStatus defines the observed state of MetricsEndpointScrapeJob.

func (*MetricsEndpointScrapeJobStatus) DeepCopy

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

func (*MetricsEndpointScrapeJobStatus) DeepCopyInto

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