-
Notifications
You must be signed in to change notification settings - Fork 803
/
interfaces.go
59 lines (47 loc) · 3.84 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// 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 monitorlegacyapi
// 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/2016-03-01-preview/monitorlegacy"
"github.com/Azure/go-autorest/autorest"
)
// EventCategoriesClientAPI contains the set of methods on the EventCategoriesClient type.
type EventCategoriesClientAPI interface {
List(ctx context.Context) (result monitorlegacy.EventCategoryCollection, err error)
}
var _ EventCategoriesClientAPI = (*monitorlegacy.EventCategoriesClient)(nil)
// AlertRulesClientAPI contains the set of methods on the AlertRulesClient type.
type AlertRulesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters monitorlegacy.AlertRuleResource) (result monitorlegacy.AlertRuleResource, err error)
Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, ruleName string) (result monitorlegacy.AlertRuleResource, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result monitorlegacy.AlertRuleResourceCollection, err error)
ListBySubscription(ctx context.Context) (result monitorlegacy.AlertRuleResourceCollection, err error)
Update(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource monitorlegacy.AlertRuleResourcePatch) (result monitorlegacy.AlertRuleResource, err error)
}
var _ AlertRulesClientAPI = (*monitorlegacy.AlertRulesClient)(nil)
// AlertRuleIncidentsClientAPI contains the set of methods on the AlertRuleIncidentsClient type.
type AlertRuleIncidentsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (result monitorlegacy.Incident, err error)
ListByAlertRule(ctx context.Context, resourceGroupName string, ruleName string) (result monitorlegacy.IncidentListResult, err error)
}
var _ AlertRuleIncidentsClientAPI = (*monitorlegacy.AlertRuleIncidentsClient)(nil)
// LogProfilesClientAPI contains the set of methods on the LogProfilesClient type.
type LogProfilesClientAPI interface {
CreateOrUpdate(ctx context.Context, logProfileName string, parameters monitorlegacy.LogProfileResource) (result monitorlegacy.LogProfileResource, err error)
Delete(ctx context.Context, logProfileName string) (result autorest.Response, err error)
Get(ctx context.Context, logProfileName string) (result monitorlegacy.LogProfileResource, err error)
List(ctx context.Context) (result monitorlegacy.LogProfileCollection, err error)
Update(ctx context.Context, logProfileName string, logProfilesResource monitorlegacy.LogProfileResourcePatch) (result monitorlegacy.LogProfileResource, err error)
}
var _ LogProfilesClientAPI = (*monitorlegacy.LogProfilesClient)(nil)
// VMInsightsClientAPI contains the set of methods on the VMInsightsClient type.
type VMInsightsClientAPI interface {
GetOnboardingStatus(ctx context.Context, resourceURI string) (result monitorlegacy.VMInsightsOnboardingStatus, err error)
}
var _ VMInsightsClientAPI = (*monitorlegacy.VMInsightsClient)(nil)