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/2022-06-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 CreateNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, err error)
89 CreateNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
90 CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup insights.ActionGroupResource) (result insights.ActionGroupResource, err error)
91 Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error)
92 EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest insights.EnableRequest) (result autorest.Response, err error)
93 Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result insights.ActionGroupResource, err error)
94 GetTestNotifications(ctx context.Context, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
95 GetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
96 GetTestNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
97 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ActionGroupList, err error)
98 ListBySubscriptionID(ctx context.Context) (result insights.ActionGroupList, err error)
99 PostTestNotifications(ctx context.Context, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsPostTestNotificationsFuture, err error)
100 Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch insights.ActionGroupPatchBody) (result insights.ActionGroupResource, err error)
101 }
102
103 var _ ActionGroupsClientAPI = (*insights.ActionGroupsClient)(nil)
104
105
106 type ActivityLogsClientAPI interface {
107 List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
108 ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
109 }
110
111 var _ ActivityLogsClientAPI = (*insights.ActivityLogsClient)(nil)
112
113
114 type EventCategoriesClientAPI interface {
115 List(ctx context.Context) (result insights.EventCategoryCollection, err error)
116 }
117
118 var _ EventCategoriesClientAPI = (*insights.EventCategoriesClient)(nil)
119
120
121 type TenantActivityLogsClientAPI interface {
122 List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
123 ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
124 }
125
126 var _ TenantActivityLogsClientAPI = (*insights.TenantActivityLogsClient)(nil)
127
128
129 type MetricDefinitionsClientAPI interface {
130 List(ctx context.Context, resourceURI string, metricnamespace string) (result insights.MetricDefinitionCollection, err error)
131 }
132
133 var _ MetricDefinitionsClientAPI = (*insights.MetricDefinitionsClient)(nil)
134
135
136 type MetricsClientAPI interface {
137 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)
138 }
139
140 var _ MetricsClientAPI = (*insights.MetricsClient)(nil)
141
142
143 type BaselinesClientAPI interface {
144 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)
145 }
146
147 var _ BaselinesClientAPI = (*insights.BaselinesClient)(nil)
148
149
150 type MetricAlertsClientAPI interface {
151 CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResource) (result insights.MetricAlertResource, err error)
152 Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
153 Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertResource, err error)
154 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.MetricAlertResourceCollection, err error)
155 ListBySubscription(ctx context.Context) (result insights.MetricAlertResourceCollection, err error)
156 Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.MetricAlertResourcePatch) (result insights.MetricAlertResource, err error)
157 }
158
159 var _ MetricAlertsClientAPI = (*insights.MetricAlertsClient)(nil)
160
161
162 type MetricAlertsStatusClientAPI interface {
163 List(ctx context.Context, resourceGroupName string, ruleName string) (result insights.MetricAlertStatusCollection, err error)
164 ListByName(ctx context.Context, resourceGroupName string, ruleName string, statusName string) (result insights.MetricAlertStatusCollection, err error)
165 }
166
167 var _ MetricAlertsStatusClientAPI = (*insights.MetricAlertsStatusClient)(nil)
168
169
170 type ScheduledQueryRulesClientAPI interface {
171 CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.ScheduledQueryRuleResource) (result insights.ScheduledQueryRuleResource, err error)
172 Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
173 Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.ScheduledQueryRuleResource, err error)
174 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ScheduledQueryRuleResourceCollectionPage, err error)
175 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.ScheduledQueryRuleResourceCollectionIterator, err error)
176 ListBySubscription(ctx context.Context) (result insights.ScheduledQueryRuleResourceCollectionPage, err error)
177 ListBySubscriptionComplete(ctx context.Context) (result insights.ScheduledQueryRuleResourceCollectionIterator, err error)
178 Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.ScheduledQueryRuleResourcePatch) (result insights.ScheduledQueryRuleResource, err error)
179 }
180
181 var _ ScheduledQueryRulesClientAPI = (*insights.ScheduledQueryRulesClient)(nil)
182
183
184 type MetricNamespacesClientAPI interface {
185 List(ctx context.Context, resourceURI string, startTime string) (result insights.MetricNamespaceCollection, err error)
186 }
187
188 var _ MetricNamespacesClientAPI = (*insights.MetricNamespacesClient)(nil)
189
190
191 type VMInsightsClientAPI interface {
192 GetOnboardingStatus(ctx context.Context, resourceURI string) (result insights.VMInsightsOnboardingStatus, err error)
193 }
194
195 var _ VMInsightsClientAPI = (*insights.VMInsightsClient)(nil)
196
197
198 type PrivateLinkScopesClientAPI interface {
199 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload insights.AzureMonitorPrivateLinkScope) (result insights.AzureMonitorPrivateLinkScope, err error)
200 Delete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkScopesDeleteFuture, err error)
201 Get(ctx context.Context, resourceGroupName string, scopeName string) (result insights.AzureMonitorPrivateLinkScope, err error)
202 List(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
203 ListComplete(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
204 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
205 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
206 UpdateTags(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags insights.TagsResource) (result insights.AzureMonitorPrivateLinkScope, err error)
207 }
208
209 var _ PrivateLinkScopesClientAPI = (*insights.PrivateLinkScopesClient)(nil)
210
211
212 type PrivateLinkScopeOperationStatusClientAPI interface {
213 Get(ctx context.Context, asyncOperationID string, resourceGroupName string) (result insights.OperationStatus, err error)
214 }
215
216 var _ PrivateLinkScopeOperationStatusClientAPI = (*insights.PrivateLinkScopeOperationStatusClient)(nil)
217
218
219 type PrivateLinkResourcesClientAPI interface {
220 Get(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (result insights.PrivateLinkResource, err error)
221 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultPage, err error)
222 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultIterator, err error)
223 }
224
225 var _ PrivateLinkResourcesClientAPI = (*insights.PrivateLinkResourcesClient)(nil)
226
227
228 type PrivateEndpointConnectionsClientAPI interface {
229 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters insights.PrivateEndpointConnection) (result insights.PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
230 Delete(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnectionsDeleteFuture, err error)
231 Get(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnection, err error)
232 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultPage, err error)
233 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultIterator, err error)
234 }
235
236 var _ PrivateEndpointConnectionsClientAPI = (*insights.PrivateEndpointConnectionsClient)(nil)
237
238
239 type PrivateLinkScopedResourcesClientAPI interface {
240 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters insights.ScopedResource) (result insights.PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
241 Delete(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.PrivateLinkScopedResourcesDeleteFuture, err error)
242 Get(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.ScopedResource, err error)
243 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultPage, err error)
244 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultIterator, err error)
245 }
246
247 var _ PrivateLinkScopedResourcesClientAPI = (*insights.PrivateLinkScopedResourcesClient)(nil)
248
249
250 type ActivityLogAlertsClientAPI interface {
251 CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRule insights.ActivityLogAlertResource) (result insights.ActivityLogAlertResource, err error)
252 Delete(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error)
253 Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result insights.ActivityLogAlertResource, err error)
254 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListPage, err error)
255 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListIterator, err error)
256 ListBySubscriptionID(ctx context.Context) (result insights.AlertRuleListPage, err error)
257 ListBySubscriptionIDComplete(ctx context.Context) (result insights.AlertRuleListIterator, err error)
258 Update(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRulePatch insights.AlertRulePatchObject) (result insights.ActivityLogAlertResource, err error)
259 }
260
261 var _ ActivityLogAlertsClientAPI = (*insights.ActivityLogAlertsClient)(nil)
262
263
264 type DataCollectionEndpointsClientAPI interface {
265 Create(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.DataCollectionEndpointResource) (result insights.DataCollectionEndpointResource, err error)
266 Delete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result autorest.Response, err error)
267 Get(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionEndpointResource, err error)
268 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultPage, err error)
269 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
270 ListBySubscription(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultPage, err error)
271 ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
272 Update(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.ResourceForUpdate) (result insights.DataCollectionEndpointResource, err error)
273 }
274
275 var _ DataCollectionEndpointsClientAPI = (*insights.DataCollectionEndpointsClient)(nil)
276
277
278 type DataCollectionRuleAssociationsClientAPI interface {
279 Create(ctx context.Context, resourceURI string, associationName string, body *insights.DataCollectionRuleAssociationProxyOnlyResource) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
280 Delete(ctx context.Context, resourceURI string, associationName string) (result autorest.Response, err error)
281 Get(ctx context.Context, resourceURI string, associationName string) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
282 ListByDataCollectionEndpoint(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
283 ListByDataCollectionEndpointComplete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
284 ListByResource(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
285 ListByResourceComplete(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
286 ListByRule(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
287 ListByRuleComplete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
288 }
289
290 var _ DataCollectionRuleAssociationsClientAPI = (*insights.DataCollectionRuleAssociationsClient)(nil)
291
292
293 type DataCollectionRulesClientAPI interface {
294 Create(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.DataCollectionRuleResource) (result insights.DataCollectionRuleResource, err error)
295 Delete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result autorest.Response, err error)
296 Get(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleResource, err error)
297 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultPage, err error)
298 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultIterator, err error)
299 ListBySubscription(ctx context.Context) (result insights.DataCollectionRuleResourceListResultPage, err error)
300 ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionRuleResourceListResultIterator, err error)
301 Update(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.ResourceForUpdate) (result insights.DataCollectionRuleResource, err error)
302 }
303
304 var _ DataCollectionRulesClientAPI = (*insights.DataCollectionRulesClient)(nil)
305
View as plain text