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 ¶
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
Click to show internal directories.
Click to hide internal directories.