v1alpha1

package
v0.0.0-...-ea8c238 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the pagerduty v1alpha1 API group +kubebuilder:object:generate=true +groupName=pagerduty.10gen.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "pagerduty.10gen.io", Version: "v1alpha1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

Types

type AlertGroupingParametersConfigSpec

type AlertGroupingParametersConfigSpec struct {
	Timeout uint `json:"timeout,omitempty"`
}

AlertGroupingParametersConfigSpec defines the specifics for how an alert grouping type should behave

func (*AlertGroupingParametersConfigSpec) DeepCopy

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

func (*AlertGroupingParametersConfigSpec) DeepCopyInto

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

type AlertGroupingParametersSpec

type AlertGroupingParametersSpec struct {
	Type   string                             `json:"type,omitempty"`
	Config *AlertGroupingParametersConfigSpec `json:"config,omitempty"`
}

AlertGroupingParametersSpec defines the options used for alert grouping

func (*AlertGroupingParametersSpec) DeepCopy

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

func (*AlertGroupingParametersSpec) DeepCopyInto

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

type PagerDutyIntegration

type PagerDutyIntegration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PagerDutyIntegrationSpec   `json:"spec,omitempty"`
	Status PagerDutyIntegrationStatus `json:"status,omitempty"`
}

PagerDutyIntegration is the Schema for the pagerdutyintegrations API

func (*PagerDutyIntegration) DeepCopy

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

func (*PagerDutyIntegration) DeepCopyInto

func (in *PagerDutyIntegration) DeepCopyInto(out *PagerDutyIntegration)

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

func (*PagerDutyIntegration) DeepCopyObject

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

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

type PagerDutyIntegrationList

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

PagerDutyIntegrationList contains a list of PagerDutyIntegration

func (*PagerDutyIntegrationList) DeepCopy

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

func (*PagerDutyIntegrationList) DeepCopyInto

func (in *PagerDutyIntegrationList) DeepCopyInto(out *PagerDutyIntegrationList)

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

func (*PagerDutyIntegrationList) DeepCopyObject

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

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

type PagerDutyIntegrationSpec

type PagerDutyIntegrationSpec struct {
	// Time in seconds that an incident changes to the Triggered State after
	// being Acknowledged. Value must not be negative. Omitting or setting
	// this field to 0 will disable the feature.
	// +kubebuilder:validation:Minimum=0
	AcknowledgeTimeout uint `json:"acknowledgeTimeout,omitempty"`

	// ID of an existing Escalation Policy in PagerDuty.
	EscalationPolicy string `json:"escalationPolicy"`

	// Time in seconds that an incident is automatically resolved if left
	// open for that long. Value must not be negative. Omitting or setting
	// this field to 0 will disable the feature.
	// +kubebuilder:validation:Minimum=0
	ResolveTimeout uint `json:"resolveTimeout,omitempty"`

	// Prefix to set on the PagerDuty Service name.
	ServicePrefix string `json:"servicePrefix"`

	// Reference to the secret containing PAGERDUTY_API_KEY.
	PagerdutyApiKeySecretRef corev1.SecretReference `json:"pagerdutyApiKeySecretRef"`

	// A label selector used to find which clusterdeployment CRs receive a
	// PD integration based on this configuration.
	ClusterDeploymentSelector metav1.LabelSelector `json:"clusterDeploymentSelector"`

	// Name and namespace in the target cluster where the secret is synced.
	TargetSecretRef corev1.SecretReference `json:"targetSecretRef"`

	//  The status of the serviceOrchestration and the referenced configmap resource
	ServiceOrchestration ServiceOrchestration `json:"serviceOrchestration,omitempty"`

	// Configures alert grouping for PD services
	AlertGroupingParameters *AlertGroupingParametersSpec `json:"alertGroupingParameters,omitempty"`
}

PagerDutyIntegrationSpec defines the desired state of PagerDutyIntegration

func (*PagerDutyIntegrationSpec) DeepCopy

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

func (*PagerDutyIntegrationSpec) DeepCopyInto

func (in *PagerDutyIntegrationSpec) DeepCopyInto(out *PagerDutyIntegrationSpec)

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

type PagerDutyIntegrationStatus

type PagerDutyIntegrationStatus struct{}

PagerDutyIntegrationStatus defines the observed state of PagerDutyIntegration

func (*PagerDutyIntegrationStatus) DeepCopy

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

func (*PagerDutyIntegrationStatus) DeepCopyInto

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

type ServiceOrchestration

type ServiceOrchestration struct {
	Enabled                bool                    `json:"enabled"`
	RuleConfigConfigMapRef *corev1.ObjectReference `json:"ruleConfigConfigMapRef,omitempty"`
}

ServiceOrchestration defines if the service orchestration is enabled and the referenced configmap resource for the rules

func (*ServiceOrchestration) DeepCopy

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

func (*ServiceOrchestration) DeepCopyInto

func (in *ServiceOrchestration) DeepCopyInto(out *ServiceOrchestration)

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