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-10-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 PredictiveMetricClientAPI interface {
32 Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string, aggregation string, timespan string, interval *string, metricnamespace string, metricnames string) (result insights.PredictiveResponse, err error)
33 }
34
35 var _ PredictiveMetricClientAPI = (*insights.PredictiveMetricClient)(nil)
36
37
38 type OperationsClientAPI interface {
39 List(ctx context.Context) (result insights.OperationListResult, err error)
40 }
41
42 var _ OperationsClientAPI = (*insights.OperationsClient)(nil)
43
44
45 type AlertRuleIncidentsClientAPI interface {
46 Get(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (result insights.Incident, err error)
47 ListByAlertRule(ctx context.Context, resourceGroupName string, ruleName string) (result insights.IncidentListResult, err error)
48 }
49
50 var _ AlertRuleIncidentsClientAPI = (*insights.AlertRuleIncidentsClient)(nil)
51
52
53 type AlertRulesClientAPI interface {
54 CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.AlertRuleResource) (result insights.AlertRuleResource, err error)
55 Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error)
56 Get(ctx context.Context, resourceGroupName string, ruleName string) (result insights.AlertRuleResource, err error)
57 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AlertRuleResourceCollection, err error)
58 ListBySubscription(ctx context.Context) (result insights.AlertRuleResourceCollection, err error)
59 Update(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource insights.AlertRuleResourcePatch) (result insights.AlertRuleResource, err error)
60 }
61
62 var _ AlertRulesClientAPI = (*insights.AlertRulesClient)(nil)
63
64
65 type LogProfilesClientAPI interface {
66 CreateOrUpdate(ctx context.Context, logProfileName string, parameters insights.LogProfileResource) (result insights.LogProfileResource, err error)
67 Delete(ctx context.Context, logProfileName string) (result autorest.Response, err error)
68 Get(ctx context.Context, logProfileName string) (result insights.LogProfileResource, err error)
69 List(ctx context.Context) (result insights.LogProfileCollection, err error)
70 Update(ctx context.Context, logProfileName string, logProfilesResource insights.LogProfileResourcePatch) (result insights.LogProfileResource, err error)
71 }
72
73 var _ LogProfilesClientAPI = (*insights.LogProfilesClient)(nil)
74
75
76 type DiagnosticSettingsClientAPI interface {
77 CreateOrUpdate(ctx context.Context, resourceURI string, parameters insights.DiagnosticSettingsResource, name string) (result insights.DiagnosticSettingsResource, err error)
78 Delete(ctx context.Context, resourceURI string, name string) (result autorest.Response, err error)
79 Get(ctx context.Context, resourceURI string, name string) (result insights.DiagnosticSettingsResource, err error)
80 List(ctx context.Context, resourceURI string) (result insights.DiagnosticSettingsResourceCollection, err error)
81 }
82
83 var _ DiagnosticSettingsClientAPI = (*insights.DiagnosticSettingsClient)(nil)
84
85
86 type DiagnosticSettingsCategoryClientAPI interface {
87 Get(ctx context.Context, resourceURI string, name string) (result insights.DiagnosticSettingsCategoryResource, err error)
88 List(ctx context.Context, resourceURI string) (result insights.DiagnosticSettingsCategoryResourceCollection, err error)
89 }
90
91 var _ DiagnosticSettingsCategoryClientAPI = (*insights.DiagnosticSettingsCategoryClient)(nil)
92
93
94 type ActionGroupsClientAPI interface {
95 CreateNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, err error)
96 CreateNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
97 CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup insights.ActionGroupResource) (result insights.ActionGroupResource, err error)
98 Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error)
99 EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest insights.EnableRequest) (result autorest.Response, err error)
100 Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result insights.ActionGroupResource, err error)
101 GetTestNotifications(ctx context.Context, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
102 GetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
103 GetTestNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationID string) (result insights.TestNotificationDetailsResponse, err error)
104 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ActionGroupList, err error)
105 ListBySubscriptionID(ctx context.Context) (result insights.ActionGroupList, err error)
106 PostTestNotifications(ctx context.Context, notificationRequest insights.NotificationRequestBody) (result insights.ActionGroupsPostTestNotificationsFuture, err error)
107 Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch insights.ActionGroupPatchBody) (result insights.ActionGroupResource, err error)
108 }
109
110 var _ ActionGroupsClientAPI = (*insights.ActionGroupsClient)(nil)
111
112
113 type ActivityLogsClientAPI interface {
114 List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
115 ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
116 }
117
118 var _ ActivityLogsClientAPI = (*insights.ActivityLogsClient)(nil)
119
120
121 type EventCategoriesClientAPI interface {
122 List(ctx context.Context) (result insights.EventCategoryCollection, err error)
123 }
124
125 var _ EventCategoriesClientAPI = (*insights.EventCategoriesClient)(nil)
126
127
128 type TenantActivityLogsClientAPI interface {
129 List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
130 ListComplete(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionIterator, err error)
131 }
132
133 var _ TenantActivityLogsClientAPI = (*insights.TenantActivityLogsClient)(nil)
134
135
136 type MetricDefinitionsClientAPI interface {
137 List(ctx context.Context, resourceURI string, metricnamespace string) (result insights.MetricDefinitionCollection, err error)
138 }
139
140 var _ MetricDefinitionsClientAPI = (*insights.MetricDefinitionsClient)(nil)
141
142
143 type MetricsClientAPI interface {
144 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)
145 }
146
147 var _ MetricsClientAPI = (*insights.MetricsClient)(nil)
148
149
150 type BaselinesClientAPI interface {
151 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)
152 }
153
154 var _ BaselinesClientAPI = (*insights.BaselinesClient)(nil)
155
156
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
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
177 type ScheduledQueryRulesClientAPI interface {
178 CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.ScheduledQueryRuleResource) (result insights.ScheduledQueryRuleResource, 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.ScheduledQueryRuleResource, err error)
181 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.ScheduledQueryRuleResourceCollectionPage, err error)
182 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.ScheduledQueryRuleResourceCollectionIterator, err error)
183 ListBySubscription(ctx context.Context) (result insights.ScheduledQueryRuleResourceCollectionPage, err error)
184 ListBySubscriptionComplete(ctx context.Context) (result insights.ScheduledQueryRuleResourceCollectionIterator, err error)
185 Update(ctx context.Context, resourceGroupName string, ruleName string, parameters insights.ScheduledQueryRuleResourcePatch) (result insights.ScheduledQueryRuleResource, err error)
186 }
187
188 var _ ScheduledQueryRulesClientAPI = (*insights.ScheduledQueryRulesClient)(nil)
189
190
191 type MetricNamespacesClientAPI interface {
192 List(ctx context.Context, resourceURI string, startTime string) (result insights.MetricNamespaceCollection, err error)
193 }
194
195 var _ MetricNamespacesClientAPI = (*insights.MetricNamespacesClient)(nil)
196
197
198 type VMInsightsClientAPI interface {
199 GetOnboardingStatus(ctx context.Context, resourceURI string) (result insights.VMInsightsOnboardingStatus, err error)
200 }
201
202 var _ VMInsightsClientAPI = (*insights.VMInsightsClient)(nil)
203
204
205 type PrivateLinkScopesClientAPI interface {
206 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload insights.AzureMonitorPrivateLinkScope) (result insights.AzureMonitorPrivateLinkScope, err error)
207 Delete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkScopesDeleteFuture, err error)
208 Get(ctx context.Context, resourceGroupName string, scopeName string) (result insights.AzureMonitorPrivateLinkScope, err error)
209 List(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
210 ListComplete(ctx context.Context) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
211 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultPage, err error)
212 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AzureMonitorPrivateLinkScopeListResultIterator, err error)
213 UpdateTags(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags insights.TagsResource) (result insights.AzureMonitorPrivateLinkScope, err error)
214 }
215
216 var _ PrivateLinkScopesClientAPI = (*insights.PrivateLinkScopesClient)(nil)
217
218
219 type PrivateLinkScopeOperationStatusClientAPI interface {
220 Get(ctx context.Context, asyncOperationID string, resourceGroupName string) (result insights.OperationStatus, err error)
221 }
222
223 var _ PrivateLinkScopeOperationStatusClientAPI = (*insights.PrivateLinkScopeOperationStatusClient)(nil)
224
225
226 type PrivateLinkResourcesClientAPI interface {
227 Get(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (result insights.PrivateLinkResource, err error)
228 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultPage, err error)
229 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateLinkResourceListResultIterator, err error)
230 }
231
232 var _ PrivateLinkResourcesClientAPI = (*insights.PrivateLinkResourcesClient)(nil)
233
234
235 type PrivateEndpointConnectionsClientAPI interface {
236 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters insights.PrivateEndpointConnection) (result insights.PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
237 Delete(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnectionsDeleteFuture, err error)
238 Get(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result insights.PrivateEndpointConnection, err error)
239 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultPage, err error)
240 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.PrivateEndpointConnectionListResultIterator, err error)
241 }
242
243 var _ PrivateEndpointConnectionsClientAPI = (*insights.PrivateEndpointConnectionsClient)(nil)
244
245
246 type PrivateLinkScopedResourcesClientAPI interface {
247 CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters insights.ScopedResource) (result insights.PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
248 Delete(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.PrivateLinkScopedResourcesDeleteFuture, err error)
249 Get(ctx context.Context, resourceGroupName string, scopeName string, name string) (result insights.ScopedResource, err error)
250 ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultPage, err error)
251 ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result insights.ScopedResourceListResultIterator, err error)
252 }
253
254 var _ PrivateLinkScopedResourcesClientAPI = (*insights.PrivateLinkScopedResourcesClient)(nil)
255
256
257 type ActivityLogAlertsClientAPI interface {
258 CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRule insights.ActivityLogAlertResource) (result insights.ActivityLogAlertResource, err error)
259 Delete(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error)
260 Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result insights.ActivityLogAlertResource, err error)
261 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListPage, err error)
262 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.AlertRuleListIterator, err error)
263 ListBySubscriptionID(ctx context.Context) (result insights.AlertRuleListPage, err error)
264 ListBySubscriptionIDComplete(ctx context.Context) (result insights.AlertRuleListIterator, err error)
265 Update(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertRulePatch insights.AlertRulePatchObject) (result insights.ActivityLogAlertResource, err error)
266 }
267
268 var _ ActivityLogAlertsClientAPI = (*insights.ActivityLogAlertsClient)(nil)
269
270
271 type DataCollectionEndpointsClientAPI interface {
272 Create(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.DataCollectionEndpointResource) (result insights.DataCollectionEndpointResource, err error)
273 Delete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result autorest.Response, err error)
274 Get(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionEndpointResource, err error)
275 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultPage, err error)
276 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
277 ListBySubscription(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultPage, err error)
278 ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionEndpointResourceListResultIterator, err error)
279 Update(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, body *insights.ResourceForUpdate) (result insights.DataCollectionEndpointResource, err error)
280 }
281
282 var _ DataCollectionEndpointsClientAPI = (*insights.DataCollectionEndpointsClient)(nil)
283
284
285 type DataCollectionRuleAssociationsClientAPI interface {
286 Create(ctx context.Context, resourceURI string, associationName string, body *insights.DataCollectionRuleAssociationProxyOnlyResource) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
287 Delete(ctx context.Context, resourceURI string, associationName string) (result autorest.Response, err error)
288 Get(ctx context.Context, resourceURI string, associationName string) (result insights.DataCollectionRuleAssociationProxyOnlyResource, err error)
289 ListByDataCollectionEndpoint(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
290 ListByDataCollectionEndpointComplete(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
291 ListByResource(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
292 ListByResourceComplete(ctx context.Context, resourceURI string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
293 ListByRule(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultPage, err error)
294 ListByRuleComplete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleAssociationProxyOnlyResourceListResultIterator, err error)
295 }
296
297 var _ DataCollectionRuleAssociationsClientAPI = (*insights.DataCollectionRuleAssociationsClient)(nil)
298
299
300 type DataCollectionRulesClientAPI interface {
301 Create(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.DataCollectionRuleResource) (result insights.DataCollectionRuleResource, err error)
302 Delete(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result autorest.Response, err error)
303 Get(ctx context.Context, resourceGroupName string, dataCollectionRuleName string) (result insights.DataCollectionRuleResource, err error)
304 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultPage, err error)
305 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result insights.DataCollectionRuleResourceListResultIterator, err error)
306 ListBySubscription(ctx context.Context) (result insights.DataCollectionRuleResourceListResultPage, err error)
307 ListBySubscriptionComplete(ctx context.Context) (result insights.DataCollectionRuleResourceListResultIterator, err error)
308 Update(ctx context.Context, resourceGroupName string, dataCollectionRuleName string, body *insights.ResourceForUpdate) (result insights.DataCollectionRuleResource, err error)
309 }
310
311 var _ DataCollectionRulesClientAPI = (*insights.DataCollectionRulesClient)(nil)
312
View as plain text