v1alpha1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

+groupName=http.dynatrace.kubeform.com

Index

Constants

This section is empty.

Variables

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

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

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Monitor

type Monitor struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MonitorSpec   `json:"spec,omitempty"`
	Status            MonitorStatus `json:"status,omitempty"`
}

func (*Monitor) DeepCopy

func (in *Monitor) DeepCopy() *Monitor

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

func (*Monitor) DeepCopyInto

func (in *Monitor) DeepCopyInto(out *Monitor)

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

func (*Monitor) DeepCopyObject

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

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

func (*Monitor) SetupWebhookWithManager

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

func (*Monitor) ValidateCreate

func (r *Monitor) ValidateCreate() error

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

func (*Monitor) ValidateDelete

func (r *Monitor) ValidateDelete() error

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

func (*Monitor) ValidateUpdate

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

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

type MonitorList

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

MonitorList is a list of Monitors

func (*MonitorList) DeepCopy

func (in *MonitorList) DeepCopy() *MonitorList

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

func (*MonitorList) DeepCopyInto

func (in *MonitorList) DeepCopyInto(out *MonitorList)

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

func (*MonitorList) DeepCopyObject

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

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

type MonitorSpec

type MonitorSpec struct {
	State *MonitorSpecResource `json:"state,omitempty" tf:"-"`

	Resource MonitorSpecResource `json:"resource" tf:"resource"`

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

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

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

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

func (*MonitorSpec) DeepCopy

func (in *MonitorSpec) DeepCopy() *MonitorSpec

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

func (*MonitorSpec) DeepCopyInto

func (in *MonitorSpec) DeepCopyInto(out *MonitorSpec)

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

type MonitorSpecAnomalyDetection

type MonitorSpecAnomalyDetection struct {
	// Thresholds for loading times
	// +optional
	LoadingTimeThresholds []MonitorSpecAnomalyDetectionLoadingTimeThresholds `json:"loadingTimeThresholds,omitempty" tf:"loading_time_thresholds"`
	// Outage handling configuration
	// +optional
	OutageHandling []MonitorSpecAnomalyDetectionOutageHandling `json:"outageHandling,omitempty" tf:"outage_handling"`
}

func (*MonitorSpecAnomalyDetection) DeepCopy

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

func (*MonitorSpecAnomalyDetection) DeepCopyInto

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

type MonitorSpecAnomalyDetectionLoadingTimeThresholds

type MonitorSpecAnomalyDetectionLoadingTimeThresholds struct {
	// Performance threshold is enabled (`true`) or disabled (`false`)
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// The list of performance threshold rules
	// +optional
	Thresholds []MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholds `json:"thresholds,omitempty" tf:"thresholds"`
}

func (*MonitorSpecAnomalyDetectionLoadingTimeThresholds) DeepCopy

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

func (*MonitorSpecAnomalyDetectionLoadingTimeThresholds) DeepCopyInto

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

type MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholds

type MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholds struct {
	// The list of performance threshold rules
	// +kubebuilder:validation:MinItems=1
	Threshold []MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholdsThreshold `json:"threshold" tf:"threshold"`
}

func (*MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholds) DeepCopy

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

func (*MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholds) DeepCopyInto

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

type MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholdsThreshold

type MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholdsThreshold struct {
	// Specify the event to which an ACTION threshold applies
	// +optional
	EventIndex *int64 `json:"eventIndex,omitempty" tf:"event_index"`
	// Specify the request to which an ACTION threshold applies
	// +optional
	RequestIndex *int64 `json:"requestIndex,omitempty" tf:"request_index"`
	// The type of the threshold: `TOTAL` (total loading time) or `ACTION` (action loading time)
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// Notify if monitor takes longer than *X* milliseconds to load
	ValueMs *int64 `json:"valueMs" tf:"value_ms"`
}

func (*MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholdsThreshold) DeepCopy

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

func (*MonitorSpecAnomalyDetectionLoadingTimeThresholdsThresholdsThreshold) DeepCopyInto

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

type MonitorSpecAnomalyDetectionOutageHandling

type MonitorSpecAnomalyDetectionOutageHandling struct {
	// When enabled (`true`), generate a problem and send an alert when the monitor is unavailable at all configured locations
	// +optional
	GlobalOutage *bool `json:"globalOutage,omitempty" tf:"global_outage"`
	// When enabled (`true`), generate a problem and send an alert when the monitor is unavailable for one or more consecutive runs at any location
	// +optional
	LocalOutage *bool `json:"localOutage,omitempty" tf:"local_outage"`
	// Local outage handling configuration.
	//
	//  Alert if **affectedLocations** of locations are unable to access the web application **consecutiveRuns** times consecutively
	// +optional
	LocalOutagePolicy []MonitorSpecAnomalyDetectionOutageHandlingLocalOutagePolicy `json:"localOutagePolicy,omitempty" tf:"local_outage_policy"`
	// Schedule retry if browser monitor execution results in a fail. For HTTP monitors this property is ignored
	// +optional
	RetryOnError *bool `json:"retryOnError,omitempty" tf:"retry_on_error"`
}

func (*MonitorSpecAnomalyDetectionOutageHandling) DeepCopy

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

func (*MonitorSpecAnomalyDetectionOutageHandling) DeepCopyInto

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

type MonitorSpecAnomalyDetectionOutageHandlingLocalOutagePolicy

type MonitorSpecAnomalyDetectionOutageHandlingLocalOutagePolicy struct {
	// The number of affected locations to trigger an alert
	AffectedLocations *int64 `json:"affectedLocations" tf:"affected_locations"`
	// The number of consecutive fails to trigger an alert
	ConsecutiveRuns *int64 `json:"consecutiveRuns" tf:"consecutive_runs"`
}

func (*MonitorSpecAnomalyDetectionOutageHandlingLocalOutagePolicy) DeepCopy

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

func (*MonitorSpecAnomalyDetectionOutageHandlingLocalOutagePolicy) DeepCopyInto

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

type MonitorSpecResource

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

	// The anomaly detection configuration.
	// +optional
	AnomalyDetection []MonitorSpecAnomalyDetection `json:"anomalyDetection,omitempty" tf:"anomaly_detection"`
	// The monitor is enabled (`true`) or disabled (`false`).
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// The frequency of the monitor, in minutes.
	//
	// You can use one of the following values: `5`, `10`, `15`, `30`, and `60`.
	Frequency *int64 `json:"frequency" tf:"frequency"`
	// A list of locations from which the monitor is executed.
	//
	// To specify a location, use its entity ID.
	// +optional
	// +kubebuilder:validation:MinItems=1
	Locations []string `json:"locations,omitempty" tf:"locations"`
	// A set of manually assigned applications.
	// +optional
	// +kubebuilder:validation:MinItems=1
	ManuallyAssignedApps []string `json:"manuallyAssignedApps,omitempty" tf:"manually_assigned_apps"`
	// The name of the monitor.
	Name *string `json:"name" tf:"name"`
	// The HTTP Script
	// +optional
	Script *MonitorSpecScript `json:"script,omitempty" tf:"script"`
	// A set of tags assigned to the monitor.
	//
	// You can specify only the value of the tag here and the `CONTEXTLESS` context and source 'USER' will be added automatically.
	// +optional
	Tags []MonitorSpecTags `json:"tags,omitempty" tf:"tags"`
}

func (*MonitorSpecResource) DeepCopy

func (in *MonitorSpecResource) DeepCopy() *MonitorSpecResource

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

func (*MonitorSpecResource) DeepCopyInto

func (in *MonitorSpecResource) DeepCopyInto(out *MonitorSpecResource)

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

type MonitorSpecScript

type MonitorSpecScript struct {
	// A HTTP request to be performed by the monitor.
	// +kubebuilder:validation:MinItems=1
	Request []MonitorSpecScriptRequest `json:"request" tf:"request"`
}

func (*MonitorSpecScript) DeepCopy

func (in *MonitorSpecScript) DeepCopy() *MonitorSpecScript

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

func (*MonitorSpecScript) DeepCopyInto

func (in *MonitorSpecScript) DeepCopyInto(out *MonitorSpecScript)

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

type MonitorSpecScriptCodec

type MonitorSpecScriptCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitorSpecScriptCodec) Decode

func (MonitorSpecScriptCodec) Encode

func (MonitorSpecScriptCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (MonitorSpecScriptCodec) IsEmpty

type MonitorSpecScriptRequest

type MonitorSpecScriptRequest struct {
	// The body of the HTTP request.
	// +optional
	Body *string `json:"body,omitempty" tf:"body"`
	// The setup of the monitor
	// +optional
	Configuration *MonitorSpecScriptRequestConfiguration `json:"configuration,omitempty" tf:"configuration"`
	// A short description of the event to appear in the web UI.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// The HTTP method of the request.
	Method *string `json:"method" tf:"method"`
	// Javascript code to execute after sending the request.
	// +optional
	PostProcessing *string `json:"postProcessing,omitempty" tf:"post_processing"`
	// Javascript code to execute before sending the request.
	// +optional
	PreProcessing *string `json:"preProcessing,omitempty" tf:"pre_processing"`
	// The URL to check.
	Url *string `json:"url" tf:"url"`
	// Validation helps you verify that your HTTP monitor loads the expected content
	// +optional
	Validation *MonitorSpecScriptRequestValidation `json:"validation,omitempty" tf:"validation"`
}

func (*MonitorSpecScriptRequest) DeepCopy

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

func (*MonitorSpecScriptRequest) DeepCopyInto

func (in *MonitorSpecScriptRequest) DeepCopyInto(out *MonitorSpecScriptRequest)

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

type MonitorSpecScriptRequestConfiguration

type MonitorSpecScriptRequestConfiguration struct {
	// If set to `false`, then the monitor fails with invalid SSL certificates.
	//
	// If not set, the `false` option is used
	// +optional
	AcceptAnyCertificate *bool `json:"acceptAnyCertificate,omitempty" tf:"accept_any_certificate"`
	// If set to `false`, redirects are reported as successful requests with response code 3xx.
	//
	// If not set, the `false` option is used.
	// +optional
	FollowRedirects *bool `json:"followRedirects,omitempty" tf:"follow_redirects"`
	// The setup of the monitor
	// +optional
	Headers *MonitorSpecScriptRequestConfigurationHeaders `json:"headers,omitempty" tf:"headers"`
	// The User agent of the request
	// +optional
	UserAgent *string `json:"userAgent,omitempty" tf:"user_agent"`
}

func (*MonitorSpecScriptRequestConfiguration) DeepCopy

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

func (*MonitorSpecScriptRequestConfiguration) DeepCopyInto

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

type MonitorSpecScriptRequestConfigurationCodec

type MonitorSpecScriptRequestConfigurationCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitorSpecScriptRequestConfigurationCodec) Decode

func (MonitorSpecScriptRequestConfigurationCodec) Encode

func (MonitorSpecScriptRequestConfigurationCodec) IsEmpty

type MonitorSpecScriptRequestConfigurationHeaders

type MonitorSpecScriptRequestConfigurationHeaders struct {
	// contains an HTTP header of the request
	// +kubebuilder:validation:MinItems=1
	Header []MonitorSpecScriptRequestConfigurationHeadersHeader `json:"header" tf:"header"`
}

func (*MonitorSpecScriptRequestConfigurationHeaders) DeepCopy

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

func (*MonitorSpecScriptRequestConfigurationHeaders) DeepCopyInto

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

type MonitorSpecScriptRequestConfigurationHeadersCodec

type MonitorSpecScriptRequestConfigurationHeadersCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitorSpecScriptRequestConfigurationHeadersCodec) Decode

func (MonitorSpecScriptRequestConfigurationHeadersCodec) Encode

func (MonitorSpecScriptRequestConfigurationHeadersCodec) IsEmpty

type MonitorSpecScriptRequestConfigurationHeadersHeader

type MonitorSpecScriptRequestConfigurationHeadersHeader struct {
	// The key of the header
	Name *string `json:"name" tf:"name"`
	// The value of the header
	Value *string `json:"value" tf:"value"`
}

func (*MonitorSpecScriptRequestConfigurationHeadersHeader) DeepCopy

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

func (*MonitorSpecScriptRequestConfigurationHeadersHeader) DeepCopyInto

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

type MonitorSpecScriptRequestValidation

type MonitorSpecScriptRequestValidation struct {
	// A list of validation rules
	// +kubebuilder:validation:MinItems=1
	Rule []MonitorSpecScriptRequestValidationRule `json:"rule" tf:"rule"`
}

func (*MonitorSpecScriptRequestValidation) DeepCopy

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

func (*MonitorSpecScriptRequestValidation) DeepCopyInto

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

type MonitorSpecScriptRequestValidationCodec

type MonitorSpecScriptRequestValidationCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitorSpecScriptRequestValidationCodec) Decode

func (MonitorSpecScriptRequestValidationCodec) Encode

func (MonitorSpecScriptRequestValidationCodec) IsEmpty

type MonitorSpecScriptRequestValidationRule

type MonitorSpecScriptRequestValidationRule struct {
	//  The validation condition. `true` means validation succeeds if the specified content/element is found. `false` means validation fails if the specified content/element is found. Always specify `false` for `certificateExpiryDateConstraint` to fail the monitor if SSL certificate expiry is within the specified number of days
	// +optional
	PassIfFound *bool `json:"passIfFound,omitempty" tf:"pass_if_found"`
	// The type of the rule. Possible values are `patternConstraint`, `regexConstraint`, `httpStatusesList` and `certificateExpiryDateConstraint`
	Type *string `json:"type" tf:"type"`
	// The content to look for
	Value *string `json:"value" tf:"value"`
}

func (*MonitorSpecScriptRequestValidationRule) DeepCopy

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

func (*MonitorSpecScriptRequestValidationRule) DeepCopyInto

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

type MonitorSpecTags

type MonitorSpecTags struct {
	// Tag with source of a Dynatrace entity.
	// +optional
	Tag []MonitorSpecTagsTag `json:"tag,omitempty" tf:"tag"`
}

func (*MonitorSpecTags) DeepCopy

func (in *MonitorSpecTags) DeepCopy() *MonitorSpecTags

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

func (*MonitorSpecTags) DeepCopyInto

func (in *MonitorSpecTags) DeepCopyInto(out *MonitorSpecTags)

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

type MonitorSpecTagsTag

type MonitorSpecTagsTag struct {
	// The origin of the tag. Supported values are `AWS`, `AWS_GENERIC`, `AZURE`, `CLOUD_FOUNDRY`, `CONTEXTLESS`, `ENVIRONMENT`, `GOOGLE_CLOUD` and `KUBERNETES`.
	//
	// Custom tags use the `CONTEXTLESS` value.
	Context *string `json:"context" tf:"context"`
	// The key of the tag.
	//
	// Custom tags have the tag value here.
	Key *string `json:"key" tf:"key"`
	// The source of the tag. Supported values are `USER`, `RULE_BASED` and `AUTO`.
	// +optional
	Source *string `json:"source,omitempty" tf:"source"`
	//  The value of the tag.
	//
	// Not applicable to custom tags.
	// +optional
	Value *string `json:"value,omitempty" tf:"value"`
}

func (*MonitorSpecTagsTag) DeepCopy

func (in *MonitorSpecTagsTag) DeepCopy() *MonitorSpecTagsTag

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

func (*MonitorSpecTagsTag) DeepCopyInto

func (in *MonitorSpecTagsTag) DeepCopyInto(out *MonitorSpecTagsTag)

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

type MonitorStatus

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

func (*MonitorStatus) DeepCopy

func (in *MonitorStatus) DeepCopy() *MonitorStatus

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

func (*MonitorStatus) DeepCopyInto

func (in *MonitorStatus) DeepCopyInto(out *MonitorStatus)

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