-
Notifications
You must be signed in to change notification settings - Fork 12
/
WorkspacesListIntelligencePacks.go
260 lines (257 loc) · 7.5 KB
/
WorkspacesListIntelligencePacks.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
package armoperationalinsights_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/WorkspacesListIntelligencePacks.json
func ExampleIntelligencePacksClient_List() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armoperationalinsights.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIntelligencePacksClient().List(ctx, "rg1", "TestLinkWS", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.IntelligencePackArray = []*armoperationalinsights.IntelligencePack{
// {
// Name: to.Ptr("CapacityPerformance"),
// DisplayName: to.Ptr("Capacity and Performance"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AzureWebAppsAnalytics"),
// DisplayName: to.Ptr("Azure Web Apps Analytics (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("Security"),
// DisplayName: to.Ptr("Security and Audit"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("Updates"),
// DisplayName: to.Ptr("Update Management"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AntiMalware"),
// DisplayName: to.Ptr("Antimalware Assessment"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("LogManagement"),
// DisplayName: to.Ptr("Log Management"),
// Enabled: to.Ptr(true),
// },
// {
// Name: to.Ptr("ChangeTracking"),
// DisplayName: to.Ptr("Change Tracking"),
// Enabled: to.Ptr(true),
// },
// {
// Name: to.Ptr("SQLAssessment"),
// DisplayName: to.Ptr("SQL Assessment"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("SCOMAssessment"),
// DisplayName: to.Ptr("System Center Operations Manager Assessment (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("ServiceDesk"),
// DisplayName: to.Ptr("IT Service Management Connector(Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("ADAssessment"),
// DisplayName: to.Ptr("AD Assessment"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AlertManagement"),
// DisplayName: to.Ptr("Alert Management"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AzureAutomation"),
// DisplayName: to.Ptr("Azure Automation"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("WireData"),
// DisplayName: to.Ptr("Wire Data"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("SiteRecovery"),
// DisplayName: to.Ptr("Azure Site Recovery"),
// Enabled: to.Ptr(true),
// },
// {
// Name: to.Ptr("Backup"),
// DisplayName: to.Ptr("Backup"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("SurfaceHub"),
// DisplayName: to.Ptr("Surface Hub"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("NetworkMonitoring"),
// DisplayName: to.Ptr("Network Performance Monitor"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("Containers"),
// DisplayName: to.Ptr("Container Monitoring Solution"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("ServiceMap"),
// DisplayName: to.Ptr("Service Map"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AzureNetworking"),
// DisplayName: to.Ptr("Azure Networking Analytics (Deprecated)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("ADReplication"),
// DisplayName: to.Ptr("AD Replication Status"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("Office365"),
// DisplayName: to.Ptr("Office 365 (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("CompatibilityAssessment"),
// DisplayName: to.Ptr("Upgrade Readiness"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("KeyVault"),
// DisplayName: to.Ptr("Key Vault (Deprecated)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("ServiceFabric"),
// DisplayName: to.Ptr("Service Fabric"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("DnsAnalytics"),
// DisplayName: to.Ptr("DNS Analytics (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("ApplicationInsights"),
// DisplayName: to.Ptr("Application Insights (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("WireData2"),
// DisplayName: to.Ptr("Wire Data 2.0"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("WaaSUpdateInsights"),
// DisplayName: to.Ptr("Update Compliance (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AgentHealthAssessment"),
// DisplayName: to.Ptr("Agent Health "),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AzureActivity"),
// DisplayName: to.Ptr("Activity Log Analytics"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("HDInsight"),
// DisplayName: to.Ptr("HDInsight HBase Monitoring (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("HDInsightKafka"),
// DisplayName: to.Ptr("HDInsight Kafka Monitoring"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("HDInsightSpark"),
// DisplayName: to.Ptr("HDInsight Spark Monitoring"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("VMware"),
// DisplayName: to.Ptr("VMware (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("SecurityCenterFree"),
// DisplayName: to.Ptr("Security Center Free � for Azure Resources only"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("LogicAppsManagement"),
// DisplayName: to.Ptr("Logic Apps Management"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("LogicAppB2B"),
// DisplayName: to.Ptr("Logic Apps B2B"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AzureSQLAnalytics"),
// DisplayName: to.Ptr("Azure SQL Analytics (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("KeyVaultAnalytics"),
// DisplayName: to.Ptr("Key Vault Analytics"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AzureNSGAnalytics"),
// DisplayName: to.Ptr("Azure Network Security Group Analytics"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("AzureAppGatewayAnalytics"),
// DisplayName: to.Ptr("Azure Application Gateway Analytics"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("DeviceHealthProd"),
// DisplayName: to.Ptr("Device Health (Preview)"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("WindowsDefenderATP"),
// DisplayName: to.Ptr("Windows Defender ATP"),
// Enabled: to.Ptr(false),
// },
// {
// Name: to.Ptr("ProcessInvestigator"),
// DisplayName: to.Ptr("ProcessInvestigator"),
// Enabled: to.Ptr(false),
// }}
}