v1alpha1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "intelligence.theia.antrea.io"

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{
		Group:   GroupName,
		Version: "v1alpha1"}

	NetworkPolicyRecommendationResource = schema.GroupVersionResource{
		Group:    SchemeGroupVersion.Group,
		Version:  SchemeGroupVersion.Version,
		Resource: "networkpolicyrecommendations"}

	AnomalyDetectorResource = schema.GroupVersionResource{
		Group:    SchemeGroupVersion.Group,
		Version:  SchemeGroupVersion.Version,
		Resource: "throughputanomalydetectors"}
)
View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type NetworkPolicyRecommendation

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

	Type                string                            `json:"jobType,omitempty"`
	Limit               int                               `json:"limit,omitempty"`
	PolicyType          string                            `json:"policyType,omitempty"`
	StartInterval       metav1.Time                       `json:"startInterval,omitempty"`
	EndInterval         metav1.Time                       `json:"endInterval,omitempty"`
	NSAllowList         []string                          `json:"nsAllowList,omitempty"`
	ExcludeLabels       bool                              `json:"excludeLabels,omitempty"`
	ToServices          bool                              `json:"toServices,omitempty"`
	ExecutorInstances   int                               `json:"executorInstances,omitempty"`
	DriverCoreRequest   string                            `json:"driverCoreRequest,omitempty"`
	DriverMemory        string                            `json:"driverMemory,omitempty"`
	ExecutorCoreRequest string                            `json:"executorCoreRequest,omitempty"`
	ExecutorMemory      string                            `json:"executorMemory,omitempty"`
	Status              NetworkPolicyRecommendationStatus `json:"status,omitempty"`
}

func (*NetworkPolicyRecommendation) DeepCopy

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

func (*NetworkPolicyRecommendation) DeepCopyInto

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

func (*NetworkPolicyRecommendation) DeepCopyObject

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

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

type NetworkPolicyRecommendationList

type NetworkPolicyRecommendationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []NetworkPolicyRecommendation `json:"items"`
}

func (*NetworkPolicyRecommendationList) DeepCopy

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

func (*NetworkPolicyRecommendationList) DeepCopyInto

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

func (*NetworkPolicyRecommendationList) DeepCopyObject

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

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

type NetworkPolicyRecommendationStatus

type NetworkPolicyRecommendationStatus struct {
	State                 string      `json:"state,omitempty"`
	SparkApplication      string      `json:"sparkApplication,omitempty"`
	CompletedStages       int         `json:"completedStages,omitempty"`
	TotalStages           int         `json:"totalStages,omitempty"`
	RecommendationOutcome string      `json:"recommendationOutcome,omitempty"`
	ErrorMsg              string      `json:"errorMsg,omitempty"`
	StartTime             metav1.Time `json:"startTime,omitempty"`
	EndTime               metav1.Time `json:"endTime,omitempty"`
}

func (*NetworkPolicyRecommendationStatus) DeepCopy

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

func (*NetworkPolicyRecommendationStatus) DeepCopyInto

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

type ThroughputAnomalyDetector added in v0.6.0

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

	Type                string                           `json:"jobType,omitempty"`
	StartInterval       metav1.Time                      `json:"startInterval,omitempty"`
	EndInterval         metav1.Time                      `json:"endInterval,omitempty"`
	ExecutorInstances   int                              `json:"executorInstances,omitempty"`
	NSIgnoreList        []string                         `json:"nsIgnoreList,omitempty"`
	AggregatedFlow      string                           `json:"aggFlow,omitempty"`
	PodLabel            string                           `json:"podLabel,omitempty"`
	PodName             string                           `json:"podName,omitempty"`
	PodNameSpace        string                           `json:"podNameSpace,omitempty"`
	ExternalIP          string                           `json:"externalIp,omitempty"`
	ServicePortName     string                           `json:"servicePortName,omitempty"`
	DriverCoreRequest   string                           `json:"driverCoreRequest,omitempty"`
	DriverMemory        string                           `json:"driverMemory,omitempty"`
	ExecutorCoreRequest string                           `json:"executorCoreRequest,omitempty"`
	ExecutorMemory      string                           `json:"executorMemory,omitempty"`
	Status              ThroughputAnomalyDetectorStatus  `json:"status,omitempty"`
	Stats               []ThroughputAnomalyDetectorStats `json:"stats,omitempty"`
}

func (*ThroughputAnomalyDetector) DeepCopy added in v0.6.0

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

func (*ThroughputAnomalyDetector) DeepCopyInto added in v0.6.0

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

func (*ThroughputAnomalyDetector) DeepCopyObject added in v0.6.0

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

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

type ThroughputAnomalyDetectorList added in v0.6.0

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

func (*ThroughputAnomalyDetectorList) DeepCopy added in v0.6.0

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

func (*ThroughputAnomalyDetectorList) DeepCopyInto added in v0.6.0

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

func (*ThroughputAnomalyDetectorList) DeepCopyObject added in v0.6.0

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

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

type ThroughputAnomalyDetectorStats added in v0.6.0

type ThroughputAnomalyDetectorStats struct {
	Id                         string `json:"id,omitempty"`
	SourceIP                   string `json:"sourceIP,omitempty"`
	SourceTransportPort        string `json:"sourceTransportPort,omitempty"`
	DestinationIP              string `json:"destinationIP,omitempty"`
	DestinationTransportPort   string `json:"destinationTransportPort,omitempty"`
	FlowStartSeconds           string `json:"FlowStartSeconds,omitempty"`
	PodNamespace               string `json:"podNamespace,omitempty"`
	PodLabels                  string `json:"podLabels,omitempty"`
	PodName                    string `json:"podName,omitempty"`
	Direction                  string `json:"direction,omitempty"`
	DestinationServicePortName string `json:"destinationServicePortName,omitempty"`
	FlowEndSeconds             string `json:"FlowEndSeconds,omitempty"`
	Throughput                 string `json:"throughput,omitempty"`
	AggType                    string `json:"aggType,omitempty"`
	AlgoType                   string `json:"algoType,omitempty"`
	AlgoCalc                   string `json:"AlgoCalc,omitempty"`
	Anomaly                    string `json:"anomaly,omitempty"`
}

func (*ThroughputAnomalyDetectorStats) DeepCopy added in v0.6.0

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

func (*ThroughputAnomalyDetectorStats) DeepCopyInto added in v0.6.0

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

type ThroughputAnomalyDetectorStatus added in v0.6.0

type ThroughputAnomalyDetectorStatus struct {
	State            string      `json:"state,omitempty"`
	SparkApplication string      `json:"sparkApplication,omitempty"`
	CompletedStages  int         `json:"completedStages,omitempty"`
	TotalStages      int         `json:"totalStages,omitempty"`
	ErrorMsg         string      `json:"errorMsg,omitempty"`
	StartTime        metav1.Time `json:"startTime,omitempty"`
	EndTime          metav1.Time `json:"endTime,omitempty"`
}

func (*ThroughputAnomalyDetectorStatus) DeepCopy added in v0.6.0

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

func (*ThroughputAnomalyDetectorStatus) DeepCopyInto added in v0.6.0

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