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=dashboard.newrelic.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: dashboard.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 Dashboard

type Dashboard struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DashboardSpec   `json:"spec,omitempty"`
	Status            DashboardStatus `json:"status,omitempty"`
}

func (*Dashboard) DeepCopy

func (in *Dashboard) DeepCopy() *Dashboard

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

func (*Dashboard) DeepCopyInto

func (in *Dashboard) DeepCopyInto(out *Dashboard)

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

func (*Dashboard) DeepCopyObject

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

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

func (*Dashboard) SetupWebhookWithManager

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

func (*Dashboard) ValidateCreate

func (r *Dashboard) ValidateCreate() error

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

func (*Dashboard) ValidateDelete

func (r *Dashboard) ValidateDelete() error

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

func (*Dashboard) ValidateUpdate

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

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

type DashboardList

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

DashboardList is a list of Dashboards

func (*DashboardList) DeepCopy

func (in *DashboardList) DeepCopy() *DashboardList

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

func (*DashboardList) DeepCopyInto

func (in *DashboardList) DeepCopyInto(out *DashboardList)

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

func (*DashboardList) DeepCopyObject

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

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

type DashboardSpec

type DashboardSpec struct {
	State *DashboardSpecResource `json:"state,omitempty" tf:"-"`

	Resource DashboardSpecResource `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 (*DashboardSpec) DeepCopy

func (in *DashboardSpec) DeepCopy() *DashboardSpec

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

func (*DashboardSpec) DeepCopyInto

func (in *DashboardSpec) DeepCopyInto(out *DashboardSpec)

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

type DashboardSpecFilter

type DashboardSpecFilter struct {
	// +optional
	Attributes []string `json:"attributes,omitempty" tf:"attributes"`
	EventTypes []string `json:"eventTypes" tf:"event_types"`
}

func (*DashboardSpecFilter) DeepCopy

func (in *DashboardSpecFilter) DeepCopy() *DashboardSpecFilter

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

func (*DashboardSpecFilter) DeepCopyInto

func (in *DashboardSpecFilter) DeepCopyInto(out *DashboardSpecFilter)

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

type DashboardSpecFilterCodec

type DashboardSpecFilterCodec struct {
}

+k8s:deepcopy-gen=false

func (DashboardSpecFilterCodec) Decode

func (DashboardSpecFilterCodec) Encode

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

func (DashboardSpecFilterCodec) IsEmpty

type DashboardSpecResource

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

	// The URL for viewing the dashboard.
	// +optional
	DashboardURL *string `json:"dashboardURL,omitempty" tf:"dashboard_url"`
	// Determines who can edit the dashboard in an account. Valid values are all, editable_by_all, editable_by_owner, or read_only. Defaults to editable_by_all.
	// +optional
	Editable *string `json:"editable,omitempty" tf:"editable"`
	// A nested block that describes a dashboard filter. Exactly one nested filter block is allowed.
	// +optional
	Filter *DashboardSpecFilter `json:"filter,omitempty" tf:"filter"`
	// New Relic One supports a 3 column grid or a 12 column grid. New Relic Insights supports a 3 column grid.
	// +optional
	GridColumnCount *int64 `json:"gridColumnCount,omitempty" tf:"grid_column_count"`
	// The icon for the dashboard.
	// +optional
	Icon *string `json:"icon,omitempty" tf:"icon"`
	// The title of the dashboard.
	Title *string `json:"title" tf:"title"`
	// Determines who can see the dashboard in an account. Valid values are all or owner. Defaults to all.
	// +optional
	Visibility *string `json:"visibility,omitempty" tf:"visibility"`
	// A nested block that describes a visualization. Up to 300 widget blocks are allowed in a dashboard definition.
	// +optional
	// +kubebuilder:validation:MaxItems=300
	Widget []DashboardSpecWidget `json:"widget,omitempty" tf:"widget"`
}

func (*DashboardSpecResource) DeepCopy

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

func (*DashboardSpecResource) DeepCopyInto

func (in *DashboardSpecResource) DeepCopyInto(out *DashboardSpecResource)

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

type DashboardSpecWidget

type DashboardSpecWidget struct {
	// The target account ID to fetch data from, if not the current account.
	// +optional
	AccountID *int64 `json:"accountID,omitempty" tf:"account_id"`
	// Column position of widget from top left, starting at 1.
	Column *int64 `json:"column" tf:"column"`
	// A block describing a COMPARE WITH clause.
	// +optional
	CompareWith []DashboardSpecWidgetCompareWith `json:"compareWith,omitempty" tf:"compare_with"`
	// The ID of a dashboard to link to from the widget's facets.
	// +optional
	DrilldownDashboardID *int64 `json:"drilldownDashboardID,omitempty" tf:"drilldown_dashboard_id"`
	// +optional
	Duration *int64 `json:"duration,omitempty" tf:"duration"`
	// +optional
	EndTime *int64 `json:"endTime,omitempty" tf:"end_time"`
	// A collection of entity ids to display data for. These are typically application IDs.
	// +optional
	EntityIDS []int64 `json:"entityIDS,omitempty" tf:"entity_ids"`
	// +optional
	Facet *string `json:"facet,omitempty" tf:"facet"`
	// Height of the widget. Valid values are 1 to 3 inclusive. Defaults to 1.
	// +optional
	Height *int64 `json:"height,omitempty" tf:"height"`
	// The limit of distinct data series to display.  Requires `order_by` to be set.
	// +optional
	Limit *int64 `json:"limit,omitempty" tf:"limit"`
	// A nested block that describes a metric.
	// +optional
	Metric []DashboardSpecWidgetMetric `json:"metric,omitempty" tf:"metric"`
	// Description of the widget.
	// +optional
	Notes *string `json:"notes,omitempty" tf:"notes"`
	// Valid NRQL query string.
	// +optional
	Nrql *string `json:"nrql,omitempty" tf:"nrql"`
	// Set the order of result series.  Required when using `limit`.
	// +optional
	OrderBy *string `json:"orderBy,omitempty" tf:"order_by"`
	// +optional
	RawMetricName *string `json:"rawMetricName,omitempty" tf:"raw_metric_name"`
	// Row position of widget from top left, starting at 1.
	Row *int64 `json:"row" tf:"row"`
	// The markdown source to be rendered in the widget.
	// +optional
	Source *string `json:"source,omitempty" tf:"source"`
	// Threshold above which the displayed value will be styled with a red color.
	// +optional
	ThresholdRed *float64 `json:"thresholdRed,omitempty" tf:"threshold_red"`
	// Threshold above which the displayed value will be styled with a yellow color.
	// +optional
	ThresholdYellow *float64 `json:"thresholdYellow,omitempty" tf:"threshold_yellow"`
	// A title for the widget.
	Title *string `json:"title" tf:"title"`
	// How the widget visualizes data.
	Visualization *string `json:"visualization" tf:"visualization"`
	// The ID of the widget.
	// +optional
	WidgetID *int64 `json:"widgetID,omitempty" tf:"widget_id"`
	// Width of the widget. Valid values are 1 to 3 inclusive. Defaults to 1.
	// +optional
	Width *int64 `json:"width,omitempty" tf:"width"`
}

func (*DashboardSpecWidget) DeepCopy

func (in *DashboardSpecWidget) DeepCopy() *DashboardSpecWidget

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

func (*DashboardSpecWidget) DeepCopyInto

func (in *DashboardSpecWidget) DeepCopyInto(out *DashboardSpecWidget)

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

type DashboardSpecWidgetCompareWith

type DashboardSpecWidgetCompareWith struct {
	// The offset duration for the COMPARE WITH clause.
	OffsetDuration *string `json:"offsetDuration" tf:"offset_duration"`
	// The presentation settings for the rendered data.
	Presentation *DashboardSpecWidgetCompareWithPresentation `json:"presentation" tf:"presentation"`
}

func (*DashboardSpecWidgetCompareWith) DeepCopy

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

func (*DashboardSpecWidgetCompareWith) DeepCopyInto

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

type DashboardSpecWidgetCompareWithPresentation

type DashboardSpecWidgetCompareWithPresentation struct {
	// The color for the rendered data.
	Color *string `json:"color" tf:"color"`
	// The name for the rendered data.
	Name *string `json:"name" tf:"name"`
}

func (*DashboardSpecWidgetCompareWithPresentation) DeepCopy

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

func (*DashboardSpecWidgetCompareWithPresentation) DeepCopyInto

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

type DashboardSpecWidgetCompareWithPresentationCodec

type DashboardSpecWidgetCompareWithPresentationCodec struct {
}

+k8s:deepcopy-gen=false

func (DashboardSpecWidgetCompareWithPresentationCodec) Decode

func (DashboardSpecWidgetCompareWithPresentationCodec) Encode

func (DashboardSpecWidgetCompareWithPresentationCodec) IsEmpty

type DashboardSpecWidgetMetric

type DashboardSpecWidgetMetric struct {
	// The metric name to display.
	Name *string `json:"name" tf:"name"`
	// The metric scope.
	// +optional
	Scope *string `json:"scope,omitempty" tf:"scope"`
	// The metric units.
	// +optional
	Units *string `json:"units,omitempty" tf:"units"`
	// The metric values to display.
	// +optional
	Values []string `json:"values,omitempty" tf:"values"`
}

func (*DashboardSpecWidgetMetric) DeepCopy

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

func (*DashboardSpecWidgetMetric) DeepCopyInto

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

type DashboardStatus

type DashboardStatus 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 (*DashboardStatus) DeepCopy

func (in *DashboardStatus) DeepCopy() *DashboardStatus

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

func (*DashboardStatus) DeepCopyInto

func (in *DashboardStatus) DeepCopyInto(out *DashboardStatus)

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