1
2 package insightsapi
3
4
5
6
7
8
9
10 import (
11 "context"
12 "github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-07-01-preview/insights"
13 "github.com/Azure/go-autorest/autorest"
14 )
15
16
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
31 type OperationsClientAPI interface {
32 List(ctx context.Context) (result insights.OperationListResult, err error)
33 }
34
35 var _ OperationsClientAPI = (*insights.OperationsClient)(nil)
36
37
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
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
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
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
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
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
100 type ActivityLogsClientAPI interface {
101 List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
102 ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
103 }
104
105 var _ ActivityLogsClientAPI = (*insights.ActivityLogsClient)(nil)
106
107
108 type EventCategoriesClientAPI interface {
109 List(ctx context.Context) (result insights.EventCategoryCollection, err error)
110 }
111
112 var _ EventCategoriesClientAPI = (*insights.EventCategoriesClient)(nil)
113
114
115 type TenantActivityLogsClientAPI interface {
116 List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
117 ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
118 }
119
120 var _ TenantActivityLogsClientAPI = (*insights.TenantActivityLogsClient)(nil)
121
122
123 type MetricDefinitionsClientAPI interface {
124 List(ctx context.Context, resourceURI string, metricnamespace string) (result insights.MetricDefinitionCollection, err error)
125 }
126
127 var _ MetricDefinitionsClientAPI = (*insights.MetricDefinitionsClient)(nil)
128
129
130 type MetricsClientAPI interface {
131 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)
132 }
133
134 var _ MetricsClientAPI = (*insights.MetricsClient)(nil)
135
136
137 type BaselinesClientAPI interface {
138 List(ctx context.Context, resourceURI string, metricnames string, metricnamespace string, timespan string, interval *string, aggregation string, sensitivities string, filter string, resultType insights.ResultType) (result insights.MetricBaselinesResponse, err error)
139 }
140
141 var _ BaselinesClientAPI = (*insights.BaselinesClient)(nil)
142
143
144 type MetricAlertsClientAPI interface {
145 CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResource) (result insights.MetricAlertResource, err error)
146 Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
147 Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertResource, err error)
148 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.MetricAlertResourceCollection, err error)
149 ListBySubscription(ctx context.Context) (result insights.MetricAlertResourceCollection, err error)
150 Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResourcePatch) (result insights.MetricAlertResource, err error)
151 }
152
153 var _ MetricAlertsClientAPI = (*insights.MetricAlertsClient)(nil)
154
155
156 type MetricAlertsStatusClientAPI interface {
157 List(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertStatusCollection, err error)
158 ListByName(ctx context.Context, resourceGroupName string, ruleName string, statusName string) (result insights.MetricAlertStatusCollection, err error)
159 }
160
161 var _ MetricAlertsStatusClientAPI = (*insights.MetricAlertsStatusClient)(nil)
162
163
164 type ScheduledQueryRulesClientAPI interface {
165 CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.LogSearchRuleResource) (result insights.LogSearchRuleResource, err error)
166 Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
167 Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.LogSearchRuleResource, err error)
168 ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result insights.LogSearchRuleResourceCollection, err error)
169 ListBySubscription(ctx context.Context, filter string) (result insights.LogSearchRuleResourceCollection, err error)
170 Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.LogSearchRuleResourcePatch) (result insights.LogSearchRuleResource, err error)
171 }
172
173 var _ ScheduledQueryRulesClientAPI = (*insights.ScheduledQueryRulesClient)(nil)
174
175
176 type MetricNamespacesClientAPI interface {
177 List(ctx context.Context, resourceURI string, startTime string) (result insights.MetricNamespaceCollection, err error)
178 }
179
180 var _ MetricNamespacesClientAPI = (*insights.MetricNamespacesClient)(nil)
181
182
183 type VMInsightsClientAPI interface {
184 GetOnboardingStatus(ctx context.Context, resourceURI string) (result insights.VMInsightsOnboardingStatus, err error)
185 }
186
187 var _ VMInsightsClientAPI = (*insights.VMInsightsClient)(nil)
188
189
190 type PrivateLinkScopesClientAPI interface {
191 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload insights.AzureMonitorPrivateLinkScope) (result insights.AzureMonitorPrivateLinkScope, err error)
192 Delete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkScopesDeleteFuture, err error)
193 Get(ctx context.Context, resourceGroupName string, scopeName string) (result insights.AzureMonitorPrivateLinkScope, err error)
194 List(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
195 ListComplete(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
196 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
197 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
198 UpdateTags(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags insights.TagsResource) (result insights.AzureMonitorPrivateLinkScope, err error)
199 }
200
201 var _ PrivateLinkScopesClientAPI = (*insights.PrivateLinkScopesClient)(nil)
202
203
204 type PrivateLinkScopeOperationStatusClientAPI interface {
205 Get(ctx context.Context, asyncOperationID string, resourceGroupName string) (result insights.OperationStatus, err error)
206 }
207
208 var _ PrivateLinkScopeOperationStatusClientAPI = (*insights.PrivateLinkScopeOperationStatusClient)(nil)
209
210
211 type PrivateLinkResourcesClientAPI interface {
212 Get(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (result insights.PrivateLinkResource, err error)
213 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultPage, err error)
214 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultIterator, err error)
215 }
216
217 var _ PrivateLinkResourcesClientAPI = (*insights.PrivateLinkResourcesClient)(nil)
218
219
220 type PrivateEndpointConnectionsClientAPI interface {
221 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters insights.PrivateEndpointConnection) (result insights.PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
222 Delete(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnectionsDeleteFuture, err error)
223 Get(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnection, err error)
224 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultPage, err error)
225 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultIterator, err error)
226 }
227
228 var _ PrivateEndpointConnectionsClientAPI = (*insights.PrivateEndpointConnectionsClient)(nil)
229
230
231 type PrivateLinkScopedResourcesClientAPI interface {
232 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters insights.ScopedResource) (result insights.PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
233 Delete(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.PrivateLinkScopedResourcesDeleteFuture, err error)
234 Get(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.ScopedResource, err error)
235 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultPage, err error)
236 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultIterator, err error)
237 }
238
239 var _ PrivateLinkScopedResourcesClientAPI = (*insights.PrivateLinkScopedResourcesClient)(nil)
240
241
242 type ActivityLogAlertsClientAPI interface {
243 CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRule insights.ActivityLogAlertResource) (result insights.ActivityLogAlertResource, err error)
244 Delete(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error)
245 Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result insights.ActivityLogAlertResource, err error)
246 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListPage, err error)
247 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListIterator, err error)
248 ListBySubscriptionID(ctx context.Context) (result insights.AlertRuleListPage, err error)
249 ListBySubscriptionIDComplete(ctx context.Context) (result insights.AlertRuleListIterator, err error)
250 Update(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRulePatch insights.AlertRulePatchObject) (result insights.ActivityLogAlertResource, err error)
251 }
252
253 var _ ActivityLogAlertsClientAPI = (*insights.ActivityLogAlertsClient)(nil)
254
255
256 type DataCollectionEndpointsClientAPI interface {
257 Create(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.DataCollectionEndpointResource) (result insights.DataCollectionEndpointResource, err error)
258 Delete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result autorest.Response, err error)
259 Get(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionEndpointResource, err error)
260 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultPage, err error)
261 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
262 ListBySubscription(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultPage, err error)
263 ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
264 Update(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.ResourceForUpdate) (result insights.DataCollectionEndpointResource, err error)
265 }
266
267 var _ DataCollectionEndpointsClientAPI = (*insights.DataCollectionEndpointsClient)(nil)
268
269
270 type DataCollectionRuleAssociationsClientAPI interface {
271 Create(ctx context.Context, resourceURI string, associationName string, body *insights.DataCollectionRuleAssociationProxyOnlyResource) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
272 Delete(ctx context.Context, resourceURI string, associationName string) (result autorest.Response, err error)
273 Get(ctx context.Context, resourceURI string, associationName string) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
274 ListByResource(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
275 ListByResourceComplete(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
276 ListByRule(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
277 ListByRuleComplete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
278 }
279
280 var _ DataCollectionRuleAssociationsClientAPI = (*insights.DataCollectionRuleAssociationsClient)(nil)
281
282
283 type DataCollectionRulesClientAPI interface {
284 Create(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.DataCollectionRuleResource) (result insights.DataCollectionRuleResource, err error)
285 Delete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result autorest.Response, err error)
286 Get(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleResource, err error)
287 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultPage, err error)
288 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultIterator, err error)
289 ListBySubscription(ctx context.Context) (result insights.DataCollectionRuleResourceListResultPage, err error)
290 ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionRuleResourceListResultIterator, err error)
291 Update(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.ResourceForUpdate) (result insights.DataCollectionRuleResource, err error)
292 }
293
294 var _ DataCollectionRulesClientAPI = (*insights.DataCollectionRulesClient)(nil)
295
View as plain text