...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/appinsights/v1/insights/insightsapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/appinsights/v1/insights/insightsapi

     1  package insightsapi
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  import (
    10  	"context"
    11  	"github.com/Azure/azure-sdk-for-go/services/preview/appinsights/v1/insights"
    12  )
    13  
    14  // MetricsClientAPI contains the set of methods on the MetricsClient type.
    15  type MetricsClientAPI interface {
    16  	Get(ctx context.Context, appID string, metricID insights.MetricID, timespan string, interval *string, aggregation []insights.MetricsAggregation, segment []insights.MetricsSegment, top *int32, orderby string, filter string) (result insights.MetricsResult, err error)
    17  	GetMetadata(ctx context.Context, appID string) (result insights.SetObject, err error)
    18  	GetMultiple(ctx context.Context, appID string, body []insights.MetricsPostBodySchema) (result insights.ListMetricsResultsItem, err error)
    19  }
    20  
    21  var _ MetricsClientAPI = (*insights.MetricsClient)(nil)
    22  
    23  // EventsClientAPI contains the set of methods on the EventsClient type.
    24  type EventsClientAPI interface {
    25  	Get(ctx context.Context, appID string, eventType insights.EventType, eventID string, timespan string) (result insights.EventsResults, err error)
    26  	GetByType(ctx context.Context, appID string, eventType insights.EventType, timespan string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (result insights.EventsResults, err error)
    27  	GetOdataMetadata(ctx context.Context, appID string) (result insights.SetObject, err error)
    28  }
    29  
    30  var _ EventsClientAPI = (*insights.EventsClient)(nil)
    31  
    32  // QueryClientAPI contains the set of methods on the QueryClient type.
    33  type QueryClientAPI interface {
    34  	Execute(ctx context.Context, appID string, body insights.QueryBody) (result insights.QueryResults, err error)
    35  }
    36  
    37  var _ QueryClientAPI = (*insights.QueryClient)(nil)
    38  
    39  // MetadataClientAPI contains the set of methods on the MetadataClient type.
    40  type MetadataClientAPI interface {
    41  	Get(ctx context.Context, appID string) (result insights.MetadataResults, err error)
    42  	Post(ctx context.Context, appID string) (result insights.MetadataResults, err error)
    43  }
    44  
    45  var _ MetadataClientAPI = (*insights.MetadataClient)(nil)
    46  

View as plain text