...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/insightsapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/insightsapi

     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 insightsapi
     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/2018-03-01/insights"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // AutoscaleSettingsClientAPI contains the set of methods on the AutoscaleSettingsClient type.
    17  type AutoscaleSettingsClientAPI interface {
    18  	CreateOrUpdate(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters insights.AutoscaleSettingResource) (result insights.AutoscaleSettingResource, err error)
    19  	Delete(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result autorest.Response, err error)
    20  	Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result insights.AutoscaleSettingResource, err error)
    21  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AutoscaleSettingResourceCollectionPage, err error)
    22  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AutoscaleSettingResourceCollectionIterator, err error)
    23  	ListBySubscription(ctx context.Context) (result insights.AutoscaleSettingResourceCollectionPage, err error)
    24  	ListBySubscriptionComplete(ctx context.Context) (result insights.AutoscaleSettingResourceCollectionIterator, err error)
    25  	Update(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource insights.AutoscaleSettingResourcePatch) (result insights.AutoscaleSettingResource, err error)
    26  }
    27  
    28  var _ AutoscaleSettingsClientAPI = (*insights.AutoscaleSettingsClient)(nil)
    29  
    30  // OperationsClientAPI contains the set of methods on the OperationsClient type.
    31  type OperationsClientAPI interface {
    32  	List(ctx context.Context) (result insights.OperationListResult, err error)
    33  }
    34  
    35  var _ OperationsClientAPI = (*insights.OperationsClient)(nil)
    36  
    37  // AlertRuleIncidentsClientAPI contains the set of methods on the AlertRuleIncidentsClient type.
    38  type AlertRuleIncidentsClientAPI interface {
    39  	Get(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (result insights.Incident, err error)
    40  	ListByAlertRule(ctx context.Context, resourceGroupName string, ruleName string) (result insights.IncidentListResult, err error)
    41  }
    42  
    43  var _ AlertRuleIncidentsClientAPI = (*insights.AlertRuleIncidentsClient)(nil)
    44  
    45  // AlertRulesClientAPI contains the set of methods on the AlertRulesClient type.
    46  type AlertRulesClientAPI interface {
    47  	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.AlertRuleResource) (result insights.AlertRuleResource, err error)
    48  	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
    49  	Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.AlertRuleResource, err error)
    50  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AlertRuleResourceCollection, err error)
    51  	ListBySubscription(ctx context.Context) (result insights.AlertRuleResourceCollection, err error)
    52  	Update(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource insights.AlertRuleResourcePatch) (result insights.AlertRuleResource, err error)
    53  }
    54  
    55  var _ AlertRulesClientAPI = (*insights.AlertRulesClient)(nil)
    56  
    57  // LogProfilesClientAPI contains the set of methods on the LogProfilesClient type.
    58  type LogProfilesClientAPI interface {
    59  	CreateOrUpdate(ctx context.Context, logProfileName string, parameters insights.LogProfileResource) (result insights.LogProfileResource, err error)
    60  	Delete(ctx context.Context, logProfileName string) (result autorest.Response, err error)
    61  	Get(ctx context.Context, logProfileName string) (result insights.LogProfileResource, err error)
    62  	List(ctx context.Context) (result insights.LogProfileCollection, err error)
    63  	Update(ctx context.Context, logProfileName string, logProfilesResource insights.LogProfileResourcePatch) (result insights.LogProfileResource, err error)
    64  }
    65  
    66  var _ LogProfilesClientAPI = (*insights.LogProfilesClient)(nil)
    67  
    68  // DiagnosticSettingsClientAPI contains the set of methods on the DiagnosticSettingsClient type.
    69  type DiagnosticSettingsClientAPI interface {
    70  	CreateOrUpdate(ctx context.Context, resourceURI string, parameters insights.DiagnosticSettingsResource, name string) (result insights.DiagnosticSettingsResource, err error)
    71  	Delete(ctx context.Context, resourceURI string, name string) (result autorest.Response, err error)
    72  	Get(ctx context.Context, resourceURI string, name string) (result insights.DiagnosticSettingsResource, err error)
    73  	List(ctx context.Context, resourceURI string) (result insights.DiagnosticSettingsResourceCollection, err error)
    74  }
    75  
    76  var _ DiagnosticSettingsClientAPI = (*insights.DiagnosticSettingsClient)(nil)
    77  
    78  // DiagnosticSettingsCategoryClientAPI contains the set of methods on the DiagnosticSettingsCategoryClient type.
    79  type DiagnosticSettingsCategoryClientAPI interface {
    80  	Get(ctx context.Context, resourceURI string, name string) (result insights.DiagnosticSettingsCategoryResource, err error)
    81  	List(ctx context.Context, resourceURI string) (result insights.DiagnosticSettingsCategoryResourceCollection, err error)
    82  }
    83  
    84  var _ DiagnosticSettingsCategoryClientAPI = (*insights.DiagnosticSettingsCategoryClient)(nil)
    85  
    86  // ActionGroupsClientAPI contains the set of methods on the ActionGroupsClient type.
    87  type ActionGroupsClientAPI interface {
    88  	CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup insights.ActionGroupResource) (result insights.ActionGroupResource, err error)
    89  	Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error)
    90  	EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest insights.EnableRequest) (result autorest.Response, err error)
    91  	Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result insights.ActionGroupResource, err error)
    92  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ActionGroupList, err error)
    93  	ListBySubscriptionID(ctx context.Context) (result insights.ActionGroupList, err error)
    94  	Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch insights.ActionGroupPatchBody) (result insights.ActionGroupResource, err error)
    95  }
    96  
    97  var _ ActionGroupsClientAPI = (*insights.ActionGroupsClient)(nil)
    98  
    99  // ActivityLogAlertsClientAPI contains the set of methods on the ActivityLogAlertsClient type.
   100  type ActivityLogAlertsClientAPI interface {
   101  	CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlert insights.ActivityLogAlertResource) (result insights.ActivityLogAlertResource, err error)
   102  	Delete(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error)
   103  	Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result insights.ActivityLogAlertResource, err error)
   104  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ActivityLogAlertList, err error)
   105  	ListBySubscriptionID(ctx context.Context) (result insights.ActivityLogAlertList, err error)
   106  	Update(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertPatch insights.ActivityLogAlertPatchBody) (result insights.ActivityLogAlertResource, err error)
   107  }
   108  
   109  var _ ActivityLogAlertsClientAPI = (*insights.ActivityLogAlertsClient)(nil)
   110  
   111  // ActivityLogsClientAPI contains the set of methods on the ActivityLogsClient type.
   112  type ActivityLogsClientAPI interface {
   113  	List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
   114  	ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
   115  }
   116  
   117  var _ ActivityLogsClientAPI = (*insights.ActivityLogsClient)(nil)
   118  
   119  // EventCategoriesClientAPI contains the set of methods on the EventCategoriesClient type.
   120  type EventCategoriesClientAPI interface {
   121  	List(ctx context.Context) (result insights.EventCategoryCollection, err error)
   122  }
   123  
   124  var _ EventCategoriesClientAPI = (*insights.EventCategoriesClient)(nil)
   125  
   126  // TenantActivityLogsClientAPI contains the set of methods on the TenantActivityLogsClient type.
   127  type TenantActivityLogsClientAPI interface {
   128  	List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
   129  	ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
   130  }
   131  
   132  var _ TenantActivityLogsClientAPI = (*insights.TenantActivityLogsClient)(nil)
   133  
   134  // MetricDefinitionsClientAPI contains the set of methods on the MetricDefinitionsClient type.
   135  type MetricDefinitionsClientAPI interface {
   136  	List(ctx context.Context, resourceURI string, metricnamespace string) (result insights.MetricDefinitionCollection, err error)
   137  }
   138  
   139  var _ MetricDefinitionsClientAPI = (*insights.MetricDefinitionsClient)(nil)
   140  
   141  // MetricsClientAPI contains the set of methods on the MetricsClient type.
   142  type MetricsClientAPI interface {
   143  	List(ctx context.Context, resourceURI string, timespan string, interval *string, metricnames string, aggregation string, top *int32, orderby string, filter string, resultType insights.ResultType, metricnamespace string) (result insights.Response, err error)
   144  }
   145  
   146  var _ MetricsClientAPI = (*insights.MetricsClient)(nil)
   147  
   148  // MetricBaselineClientAPI contains the set of methods on the MetricBaselineClient type.
   149  type MetricBaselineClientAPI interface {
   150  	CalculateBaseline(ctx context.Context, resourceURI string, timeSeriesInformation insights.TimeSeriesInformation) (result insights.CalculateBaselineResponse, err error)
   151  	Get(ctx context.Context, resourceURI string, metricName string, timespan string, interval *string, aggregation string, sensitivities string, resultType insights.ResultType) (result insights.BaselineResponse, err error)
   152  }
   153  
   154  var _ MetricBaselineClientAPI = (*insights.MetricBaselineClient)(nil)
   155  
   156  // MetricAlertsClientAPI contains the set of methods on the MetricAlertsClient type.
   157  type MetricAlertsClientAPI interface {
   158  	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResource) (result insights.MetricAlertResource, err error)
   159  	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
   160  	Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertResource, err error)
   161  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.MetricAlertResourceCollection, err error)
   162  	ListBySubscription(ctx context.Context) (result insights.MetricAlertResourceCollection, err error)
   163  	Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResourcePatch) (result insights.MetricAlertResource, err error)
   164  }
   165  
   166  var _ MetricAlertsClientAPI = (*insights.MetricAlertsClient)(nil)
   167  
   168  // MetricAlertsStatusClientAPI contains the set of methods on the MetricAlertsStatusClient type.
   169  type MetricAlertsStatusClientAPI interface {
   170  	List(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertStatusCollection, err error)
   171  	ListByName(ctx context.Context, resourceGroupName string, ruleName string, statusName string) (result insights.MetricAlertStatusCollection, err error)
   172  }
   173  
   174  var _ MetricAlertsStatusClientAPI = (*insights.MetricAlertsStatusClient)(nil)
   175  
   176  // ScheduledQueryRulesClientAPI contains the set of methods on the ScheduledQueryRulesClient type.
   177  type ScheduledQueryRulesClientAPI interface {
   178  	CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.LogSearchRuleResource) (result insights.LogSearchRuleResource, err error)
   179  	Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
   180  	Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.LogSearchRuleResource, err error)
   181  	ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result insights.LogSearchRuleResourceCollection, err error)
   182  	ListBySubscription(ctx context.Context, filter string) (result insights.LogSearchRuleResourceCollection, err error)
   183  	Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.LogSearchRuleResourcePatch) (result insights.LogSearchRuleResource, err error)
   184  }
   185  
   186  var _ ScheduledQueryRulesClientAPI = (*insights.ScheduledQueryRulesClient)(nil)
   187  

View as plain text