// Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
package metricsapi

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/metrics"
	"github.com/Azure/go-autorest/autorest"
)

// NamespacesClientAPI contains the set of methods on the NamespacesClient type.
type NamespacesClientAPI interface {
	List(ctx context.Context, resourceURI string, startTime string) (result metrics.NamespaceCollection, err error)
}

var _ NamespacesClientAPI = (*metrics.NamespacesClient)(nil)

// AlertsClientAPI contains the set of methods on the AlertsClient type.
type AlertsClientAPI interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters metrics.AlertResource) (result metrics.AlertResource, err error)
	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
	Get(ctx context.Context, resourceGroupName string, ruleName string) (result metrics.AlertResource, err error)
	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result metrics.AlertResourceCollection, err error)
	ListBySubscription(ctx context.Context) (result metrics.AlertResourceCollection, err error)
	Update(ctx context.Context, resourceGroupName string, ruleName string, parameters metrics.AlertResourcePatch) (result metrics.AlertResource, err error)
}

var _ AlertsClientAPI = (*metrics.AlertsClient)(nil)

// AlertsStatusClientAPI contains the set of methods on the AlertsStatusClient type.
type AlertsStatusClientAPI interface {
	List(ctx context.Context, resourceGroupName string, ruleName string) (result metrics.AlertStatusCollection, err error)
	ListByName(ctx context.Context, resourceGroupName string, ruleName string, statusName string) (result metrics.AlertStatusCollection, err error)
}

var _ AlertsStatusClientAPI = (*metrics.AlertsStatusClient)(nil)

// BaselinesClientAPI contains the set of methods on the BaselinesClient type.
type BaselinesClientAPI interface {
	List(ctx context.Context, resourceURI string, metricnames string, metricnamespace string, timespan string, interval *string, aggregation string, sensitivities string, filter string, resultType metrics.ResultType) (result metrics.BaselinesResponse, err error)
}

var _ BaselinesClientAPI = (*metrics.BaselinesClient)(nil)

// DefinitionsClientAPI contains the set of methods on the DefinitionsClient type.
type DefinitionsClientAPI interface {
	List(ctx context.Context, resourceURI string, metricnamespace string) (result metrics.DefinitionCollection, err error)
	ListAtSubscriptionScope(ctx context.Context, region string, metricnamespace string) (result metrics.SubscriptionScopeMetricDefinitionCollection, err error)
}

var _ DefinitionsClientAPI = (*metrics.DefinitionsClient)(nil)

// ClientAPI contains the set of methods on the Client type.
type ClientAPI interface {
	List(ctx context.Context, resourceURI string, timespan string, interval *string, metricnames string, aggregation string, top *int32, orderby string, filter string, resultType metrics.ResultType, metricnamespace string, autoAdjustTimegrain *bool, validateDimensions *bool) (result metrics.Response, err error)
	ListAtSubscriptionScope(ctx context.Context, region string, timespan string, interval *string, metricnames string, aggregation string, top *int32, orderby string, filter string, resultType metrics.MetricResultType, metricnamespace string, autoAdjustTimegrain *bool, validateDimensions *bool) (result metrics.SubscriptionScopeMetricResponse, err error)
	ListAtSubscriptionScopePost(ctx context.Context, region string, timespan string, interval *string, metricnames string, aggregation string, top *int32, orderby string, filter string, resultType metrics.MetricResultType, metricnamespace string, autoAdjustTimegrain *bool, validateDimensions *bool, body *metrics.SubscriptionScopeMetricsRequestBodyParameters) (result metrics.SubscriptionScopeMetricResponse, err error)
}

var _ ClientAPI = (*metrics.Client)(nil)

// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
	List(ctx context.Context) (result metrics.OperationListResult, err error)
}

var _ OperationsClientAPI = (*metrics.OperationsClient)(nil)
