...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/metrics/metricsapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/metrics/metricsapi

     1  // 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.
     2  package metricsapi
     3  
     4  // Copyright (c) Microsoft Corporation. All rights reserved.
     5  // Licensed under the MIT License. See License.txt in the project root for license information.
     6  //
     7  // Code generated by Microsoft (R) AutoRest Code Generator.
     8  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     9  
    10  import (
    11  	"context"
    12  	"github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/metrics"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // NamespacesClientAPI contains the set of methods on the NamespacesClient type.
    17  type NamespacesClientAPI interface {
    18  	List(ctx context.Context, resourceURI string, startTime string) (result metrics.NamespaceCollection, err error)
    19  }
    20  
    21  var _ NamespacesClientAPI = (*metrics.NamespacesClient)(nil)
    22  
    23  // AlertsClientAPI contains the set of methods on the AlertsClient type.
    24  type AlertsClientAPI interface {
    25  	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters metrics.AlertResource) (result metrics.AlertResource, err error)
    26  	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
    27  	Get(ctx context.Context, resourceGroupName string, ruleName string) (result metrics.AlertResource, err error)
    28  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result metrics.AlertResourceCollection, err error)
    29  	ListBySubscription(ctx context.Context) (result metrics.AlertResourceCollection, err error)
    30  	Update(ctx context.Context, resourceGroupName string, ruleName string, parameters metrics.AlertResourcePatch) (result metrics.AlertResource, err error)
    31  }
    32  
    33  var _ AlertsClientAPI = (*metrics.AlertsClient)(nil)
    34  
    35  // AlertsStatusClientAPI contains the set of methods on the AlertsStatusClient type.
    36  type AlertsStatusClientAPI interface {
    37  	List(ctx context.Context, resourceGroupName string, ruleName string) (result metrics.AlertStatusCollection, err error)
    38  	ListByName(ctx context.Context, resourceGroupName string, ruleName string, statusName string) (result metrics.AlertStatusCollection, err error)
    39  }
    40  
    41  var _ AlertsStatusClientAPI = (*metrics.AlertsStatusClient)(nil)
    42  
    43  // BaselinesClientAPI contains the set of methods on the BaselinesClient type.
    44  type BaselinesClientAPI interface {
    45  	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)
    46  }
    47  
    48  var _ BaselinesClientAPI = (*metrics.BaselinesClient)(nil)
    49  
    50  // DefinitionsClientAPI contains the set of methods on the DefinitionsClient type.
    51  type DefinitionsClientAPI interface {
    52  	List(ctx context.Context, resourceURI string, metricnamespace string) (result metrics.DefinitionCollection, err error)
    53  	ListAtSubscriptionScope(ctx context.Context, region string, metricnamespace string) (result metrics.SubscriptionScopeMetricDefinitionCollection, err error)
    54  }
    55  
    56  var _ DefinitionsClientAPI = (*metrics.DefinitionsClient)(nil)
    57  
    58  // ClientAPI contains the set of methods on the Client type.
    59  type ClientAPI interface {
    60  	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)
    61  	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)
    62  	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)
    63  }
    64  
    65  var _ ClientAPI = (*metrics.Client)(nil)
    66  
    67  // OperationsClientAPI contains the set of methods on the OperationsClient type.
    68  type OperationsClientAPI interface {
    69  	List(ctx context.Context) (result metrics.OperationListResult, err error)
    70  }
    71  
    72  var _ OperationsClientAPI = (*metrics.OperationsClient)(nil)
    73  

View as plain text