-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsight.bicep
41 lines (39 loc) · 941 Bytes
/
insight.bicep
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
import * as _insightsType from '../types/insight.bicep'
@description('''
Build the storage diagnostics metrics properties
''')
@export()
func buildStorageDiagnosticsMetricsProperties(workspaceId string) _insightsType.insightsDiagnosticsSettingsProperties => {
workspaceId: workspaceId
metrics: [
{
category: 'Transaction'
enabled: true
}
]
}
@description('''
Build the storage blob service diagnostics logs properties
''')
@export()
func buildStorageBlobDiagnosticsLogsProperties(
workspaceId string,
storageWriteCategoryEnabled bool,
storageDeleteCategoryEnabled bool
) _insightsType.insightsDiagnosticsSettingsProperties => {
workspaceId: workspaceId
logs: [
{
category: 'StorageRead'
enabled: true
}
{
category: 'StorageWrite'
enabled: storageWriteCategoryEnabled
}
{
category: 'StorageDelete'
enabled: storageDeleteCategoryEnabled
}
]
}