Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   externalmetric.GroupName,
	Version: "v1alpha2",
}

    GroupVersion is the identifier for the API which includes the name of the group and the version of the API

    Functions

    func Resource

    func Resource(resource string) schema.GroupResource

    Types

    type AzureConfig

    type AzureConfig struct {
    	// Shared
    	ResourceGroup  string `json:"resourceGroup"`
    	SubscriptionID string `json:"subscriptionID"`
    	// Azure Monitor
    	ResourceName              string `json:"resourceName,omitempty"`
    	ResourceProviderNamespace string `json:"resourceProviderNamespace,omitempty"`
    	ResourceType              string `json:"resourceType,omitempty"`
    	// Azure Service Bus Topic Subscription
    	ServiceBusNamespace    string `json:"serviceBusNamespace,omitempty"`
    	ServiceBusTopic        string `json:"serviceBusTopic,omitempty"`
    	ServiceBusSubscription string `json:"serviceBusSubscription,omitempty"`
    }

      AzureConfig holds Azure configuration for an External Metric

      func (*AzureConfig) DeepCopy

      func (in *AzureConfig) DeepCopy() *AzureConfig

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

        func (*AzureConfig) DeepCopyInto

        func (in *AzureConfig) DeepCopyInto(out *AzureConfig)

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

          type CustomMetric

          type CustomMetric struct {
          	// TypeMeta is the metadata for the resource, like kind and apiversion
          	meta_v1.TypeMeta `json:",inline"`
          
          	// ObjectMeta contains the metadata for the particular object (name, namespace, self link, labels, etc)
          	meta_v1.ObjectMeta `json:"metadata,omitempty"`
          
          	// Spec is the custom resource spec
          	Spec CustomMetricSpec `json:"spec"`
          }

            CustomMetric describes a configuration for Application insights

            func (*CustomMetric) DeepCopy

            func (in *CustomMetric) DeepCopy() *CustomMetric

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

              func (*CustomMetric) DeepCopyInto

              func (in *CustomMetric) DeepCopyInto(out *CustomMetric)

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

                func (*CustomMetric) DeepCopyObject

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

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

                  type CustomMetricConfig

                  type CustomMetricConfig struct {
                  	MetricName    string `json:"metricName"`
                  	ApplicationID string `json:"applicationID"`
                  	Query         string `json:"query"`
                  }

                    CustomMetricConfig holds app insights configuration

                    func (*CustomMetricConfig) DeepCopy

                    func (in *CustomMetricConfig) DeepCopy() *CustomMetricConfig

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

                      func (*CustomMetricConfig) DeepCopyInto

                      func (in *CustomMetricConfig) DeepCopyInto(out *CustomMetricConfig)

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

                        type CustomMetricList

                        type CustomMetricList struct {
                        	meta_v1.TypeMeta `json:",inline"`
                        	meta_v1.ListMeta `json:"metadata"`
                        
                        	Items []CustomMetric `json:"items"`
                        }

                          CustomMetricList is a list of CustomMetric resources

                          func (*CustomMetricList) DeepCopy

                          func (in *CustomMetricList) DeepCopy() *CustomMetricList

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

                            func (*CustomMetricList) DeepCopyInto

                            func (in *CustomMetricList) DeepCopyInto(out *CustomMetricList)

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

                              func (*CustomMetricList) DeepCopyObject

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

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

                                type CustomMetricSpec

                                type CustomMetricSpec struct {
                                	MetricConfig CustomMetricConfig `json:"metric"`
                                }

                                  CustomMetricSpec is the spec for a CustomMetric resource

                                  func (*CustomMetricSpec) DeepCopy

                                  func (in *CustomMetricSpec) DeepCopy() *CustomMetricSpec

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

                                    func (*CustomMetricSpec) DeepCopyInto

                                    func (in *CustomMetricSpec) DeepCopyInto(out *CustomMetricSpec)

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

                                      type ExternalMetric

                                      type ExternalMetric struct {
                                      	// TypeMeta is the metadata for the resource, like kind and apiversion
                                      	meta_v1.TypeMeta `json:",inline"`
                                      
                                      	// ObjectMeta contains the metadata for the particular object (name, namespace, self link, labels, etc)
                                      	meta_v1.ObjectMeta `json:"metadata,omitempty"`
                                      
                                      	// Spec is the custom resource spec
                                      	Spec ExternalMetricSpec `json:"spec"`
                                      }

                                        ExternalMetric describes a ExternalMetric resource

                                        func (*ExternalMetric) DeepCopy

                                        func (in *ExternalMetric) DeepCopy() *ExternalMetric

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

                                          func (*ExternalMetric) DeepCopyInto

                                          func (in *ExternalMetric) DeepCopyInto(out *ExternalMetric)

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

                                            func (*ExternalMetric) DeepCopyObject

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

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

                                              type ExternalMetricConfig

                                              type ExternalMetricConfig struct {
                                              	// Shared
                                              	MetricName string `json:"metricName,omitempty"`
                                              	// Azure Monitor
                                              	Aggregation string `json:"aggregation,omitempty"`
                                              	Filter      string `json:"filter,omitempty"`
                                              }

                                                ExternalMetricConfig holds azure monitor metric configuration

                                                func (*ExternalMetricConfig) DeepCopy

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

                                                  func (*ExternalMetricConfig) DeepCopyInto

                                                  func (in *ExternalMetricConfig) DeepCopyInto(out *ExternalMetricConfig)

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

                                                    type ExternalMetricList

                                                    type ExternalMetricList struct {
                                                    	meta_v1.TypeMeta `json:",inline"`
                                                    	meta_v1.ListMeta `json:"metadata"`
                                                    
                                                    	Items []ExternalMetric `json:"items"`
                                                    }

                                                      ExternalMetricList is a list of ExternalMetric resources

                                                      func (*ExternalMetricList) DeepCopy

                                                      func (in *ExternalMetricList) DeepCopy() *ExternalMetricList

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

                                                        func (*ExternalMetricList) DeepCopyInto

                                                        func (in *ExternalMetricList) DeepCopyInto(out *ExternalMetricList)

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

                                                          func (*ExternalMetricList) DeepCopyObject

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

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

                                                            type ExternalMetricSpec

                                                            type ExternalMetricSpec struct {
                                                            	MetricConfig ExternalMetricConfig `json:"metric"`
                                                            	AzureConfig  AzureConfig          `json:"azure"`
                                                            	Type         string               `json:"type,omitempty"`
                                                            }

                                                              ExternalMetricSpec is the spec for a ExternalMetric resource

                                                              func (*ExternalMetricSpec) DeepCopy

                                                              func (in *ExternalMetricSpec) DeepCopy() *ExternalMetricSpec

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

                                                                func (*ExternalMetricSpec) DeepCopyInto

                                                                func (in *ExternalMetricSpec) DeepCopyInto(out *ExternalMetricSpec)

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