telemetry

package
v1.1.616 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertOperationResult added in v1.1.12

func ConvertOperationResult(operationResult ctrlutil.OperationResult) (Operation, ResourceType)

func GenerateMocResourceName

func GenerateMocResourceName(nameSegments ...string) string

func IsCRDUpdate added in v1.1.12

func IsCRDUpdate(operationResult ctrlutil.OperationResult) bool

func RecordHybridAKSCRDChange added in v1.1.12

func RecordHybridAKSCRDChange(logger logr.Logger, parentResource string, resource string, action Operation, resourceType ResourceType, params interface{}, err error)

RecordHybridAKSCRDChange need to be called when CRD changed.

func WriteMocInfoLog added in v1.1.10

func WriteMocInfoLog(ctx context.Context, scope scope.ScopeInterface)

func WriteMocOperationLog

func WriteMocOperationLog(logger logr.Logger, operation Operation, crResourceName string, mocResourceType MocResourceType, mocResourceName string, params interface{}, err error)

Types

type MocInfoLog added in v1.1.10

type MocInfoLog struct {
	MocDeploymentID       string `json:"moc_deployment_id,omitempty"`
	WssdCloudAgentVersion string `json:"wssd_cloud_agent_version,omitempty"`
	MocVersion            string `json:"moc_version,omitempty"`
}

type MocResourceType

type MocResourceType string
const (
	LoadBalancer     MocResourceType = "LoadBalancer"
	VipPool          MocResourceType = "VipPool"
	VirtualNetwork   MocResourceType = "VirtualNetwork"
	NetworkInterface MocResourceType = "NetworkInterface"
	Disk             MocResourceType = "Disk"
	VirtualMachine   MocResourceType = "VirtualMachine"
	KeyVault         MocResourceType = "KeyVault"
	Secret           MocResourceType = "Secret"
	Group            MocResourceType = "Group"
)

type Operation added in v1.1.12

type Operation string
const (
	Create         Operation = "Create"
	CreateOrUpdate Operation = "CreateOrUpdate"
	Update         Operation = "Update"
	Delete         Operation = "Delete"
	Get            Operation = "Get"
)

type OperationLog

type OperationLog struct {
	Timestamp      string      `json:"timestamp"`
	ParentResource string      `json:"parent_resource"`
	Resource       string      `json:"resource"`
	FilterKeyword  string      `json:"filter_keyword"`
	Action         string      `json:"action"`
	Params         interface{} `json:"params"`
	ErrorCode      string      `json:"error_code"`
	Message        string      `json:"msg"`
}

type ResourceType added in v1.1.12

type ResourceType string
const (
	CRD    ResourceType = "CRD"
	Status ResourceType = "Status"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL