stats

package
v1.8.17 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aggregate added in v1.6.3

func Aggregate(key Type, val time.Duration)

Aggregate aggregates the value of a specific statistic.

func AggregateConcurrent added in v1.6.3

func AggregateConcurrent(key Type, begin, end time.Time)

AggregateConcurrent aggregates the value of a specific statistic that is being collected concurrently.

func Increment added in v1.6.3

func Increment(key Type, count int)

Increment Increments the count of a specific statistic.

func Init

func Init()

Init initializes the maps uesd to store the

func Print

func Print(key Type)

Print prints the value of a specific statistic.

func PrintCount added in v1.5.3

func PrintCount(key Type)

PrintCount prints the count of a specific statistic.

func PrintSync

func PrintSync()

PrintSync prints all relevant statistics in a sync cycle.

func Put

func Put(key Type, val time.Duration)

Put puts a value to a specific statistic.

Types

type Type added in v1.6.1

type Type string

Type represents differnet statistics that are being collected.

const (
	// Total represents the total duration of a specific operation.
	Total Type = "Total"

	// System represents the duration it takes to list all aad-pod-identity CRDs.
	System Type = "System"

	// CacheSync represents the duration it takes to sync CRD client's cache.
	CacheSync Type = "CacheSync"

	// CurrentState represents the duration it takes to generate a list of desired AzureAssignedIdentities.
	CurrentState Type = "Gather current state"

	// PodList represents the duration it takes to list pods.
	PodList Type = "Pod listing"

	// AzureIdentityBindingList represents the duration it takes to list AzureIdentityBindings.
	AzureIdentityBindingList Type = "AzureIdentityBinding listing"

	// AzureIdentityList represents the duration it takes to list AzureIdentities.
	AzureIdentityList Type = "AzureIdentity listing"

	// AzurePodIdentityExceptionList represents the duration it takes to list AzurePodIdentityExceptions.
	AzurePodIdentityExceptionList Type = "AzurePodIdentityException listing"

	// AzureAssignedIdentityList represents the duration it takes to list AzureAssignedIdentities.
	AzureAssignedIdentityList Type = "AzureAssignedIdentity listing"

	// CloudGet represents the duration it takes to complete a GET request to ARM in a given sync cycle.
	CloudGet Type = "Cloud provider GET"

	// CloudPatch represents the duration it takes to complete a PATCH request to ARM in a given sync cycle.
	CloudPatch Type = "Cloud provider PATCH"

	// TotalPatchCalls represents the number of PATCH requests to ARM in a given sync cycle.
	TotalPatchCalls Type = "Number of cloud provider PATCH"

	// TotalGetCalls represents the number of GET requests to ARM in a given sync cycle.
	TotalGetCalls Type = "Number of cloud provider GET"

	// TotalAzureAssignedIdentitiesCreated represents the number of AzureAssignedIdentities created in a given sync cycle.
	TotalAzureAssignedIdentitiesCreated Type = "Number of AzureAssignedIdentities created in this sync cycle"

	// TotalAzureAssignedIdentitiesUpdated represents the number of AzureAssignedIdentities updated in a given sync cycle.
	TotalAzureAssignedIdentitiesUpdated Type = "Number of AzureAssignedIdentities updated in this sync cycle"

	// TotalAzureAssignedIdentitiesDeleted represents the number of AzureAssignedIdentities deleted in a given sync cycle.
	TotalAzureAssignedIdentitiesDeleted Type = "Number of AzureAssignedIdentities deleted in this sync cycle"

	// FindAzureAssignedIdentitiesToDelete represents the duration it takes to generate a list of AzureAssignedIdentities to be deleted.
	FindAzureAssignedIdentitiesToDelete Type = "Find AzureAssignedIdentities to delete"

	// FindAzureAssignedIdentitiesToCreate represents the duration it takes to generate a list of AzureAssignedIdentities to be created.
	FindAzureAssignedIdentitiesToCreate Type = "Find AzureAssignedIdentities to create"

	// DeleteAzureAssignedIdentity represents the duration it takes to delete an AzureAssignedIdentity.
	DeleteAzureAssignedIdentity Type = "AzureAssignedIdentity deletion"

	// CreateAzureAssignedIdentity represents the duration it takes to create an AzureAssignedIdentity.
	CreateAzureAssignedIdentity Type = "AzureAssignedIdentity creation"

	// UpdateAzureAssignedIdentity represents the duration it takes to update an AzureAssignedIdentity.
	UpdateAzureAssignedIdentity Type = "AzureAssignedIdentity update"

	// TotalAzureAssignedIdentitiesCreateOrUpdate represents the duration it takes to create or update a given list of AzureAssignedIdentities.
	TotalAzureAssignedIdentitiesCreateOrUpdate Type = "Total time to assign or update AzureAssignedIdentities"
)

Jump to

Keyboard shortcuts

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