azure

package
v0.0.0-...-ddad2a0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(logger *zap.SugaredLogger, body bool) autorest.PrepareDecorator

func LogResponse

func LogResponse(logger *zap.SugaredLogger, body bool) autorest.RespondDecorator

Types

type Client

type Client struct {
	Account        *gardener.Account
	SubscriptionID string
	Location       string
	// contains filtered or unexported fields
}

Client holds azure clients configuration

type Compute

type Compute struct {
	VMTypes            []VMType          `json:"vm_types"`
	ProvisionedRAMGB   float64           `json:"provisioned_ram_gb"`
	ProvisionedVolumes ProvisionedVolume `json:"provisioned_volumes"`
	ProvisionedCpus    uint32            `json:"provisioned_cpus"`
}

type Event

type Event struct {
	Timestamp      string     `json:"timestamp"`
	ResourceGroups []string   `json:"resource_groups"`
	Compute        Compute    `json:"compute"`
	Networking     Networking `json:"networking"`
	EventHub       EventHub   `json:"event_hub"`
}

type EventHub

type EventHub struct {
	NumberNamespaces     uint32  `json:"number_namespaces"`
	IncomingRequestsPT1M float64 `json:"incoming_requests_pt1m"`
	MaxIncomingBytesPT1M float64 `json:"max_incoming_bytes_pt1m"`
	MaxOutgoingBytesPT1M float64 `json:"max_outgoing_bytes_pt1m"`
	IncomingRequestsPT5M float64 `json:"incoming_requests_pt5m"`
	MaxIncomingBytesPT5M float64 `json:"max_incoming_bytes_pt5m"`
	MaxOutgoingBytesPT5M float64 `json:"max_outgoing_bytes_pt5m"`
}

type Events

type Events map[string][]*Event

type Networking

type Networking struct {
	ProvisionedLoadBalancers uint32 `json:"provisioned_loadbalancers"`
	ProvisionedVnets         uint32 `json:"provisioned_vnets"`
	ProvisionedIps           uint32 `json:"provisioned_ips"`
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewAzureProvider

func NewAzureProvider(workers int, pollinterval time.Duration, accountsChannel chan *gardener.Account, eventsChannel chan<- *[]byte, logger *zap.SugaredLogger, tracelevel int) *Provider

NewAzureProvider create new azure provider.

func (*Provider) Collect

func (a *Provider) Collect(ctx context.Context, parentwg *sync.WaitGroup)

Collect start azure metrics gathering

type ProvisionedVolume

type ProvisionedVolume struct {
	SizeGBTotal   uint32 `json:"size_gb_total"`
	SizeGBRounded uint32 `json:"size_gb_rounded"`
	Count         uint32 `json:"count"`
}

type ResourceSkus

type ResourceSkus struct {
	// contains filtered or unexported fields
}
var (
	ResourceSkusList ResourceSkus
)

type SecretMap

type SecretMap struct {
	ClientID        string `mapstructure:"clientID"`
	ClientSecret    string `mapstructure:"clientSecret"`
	TenantID        string `mapstructure:"tenantID"`
	SubscriptionID  string `mapstructure:"subscriptionID"`
	EnvironmentName string
}

SecretMap is a structure to decode and map kubernetes secret data values to azure client configuration

type VMType

type VMType struct {
	Name  string `json:"name"`
	Count uint32 `json:"count"`
}

Jump to

Keyboard shortcuts

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