monitor

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetMetrics(ctx context.Context, resourceGroup, provider, metricNames, aggregationType string, timeStart, timeEnd int64) ([]*armmonitor.Metric, error)
}

Client is the interface for a client to interact with the Azure monitoring api.

func New

func New(subscriptionID string, credentials *azidentity.ClientSecretCredential) (Client, error)

New returns a new client to interact with the monitor API.

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func (*MockClient) GetMetrics

func (_m *MockClient) GetMetrics(ctx context.Context, resourceGroup string, provider string, metricNames string, aggregationType string, timeStart int64, timeEnd int64) ([]*armmonitor.Metric, error)

GetMetrics provides a mock function with given fields: ctx, resourceGroup, provider, metricNames, aggregationType, timeStart, timeEnd

Jump to

Keyboard shortcuts

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