-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger for diagnostic settings and association resource types #3295
Changes from all commits
8ba71ec
f229b35
a0ee666
90b000d
0734d7c
6524601
b1f3c4f
af6c116
d09b424
22eff74
4ca6bc6
411a8a5
794d132
ce1133b
cf9f582
8d3e723
84994fb
bed5a2b
4e3741e
4ba1266
cc48583
3dd7e67
352fcc0
a33822c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-ResourceGroup", | ||
"diagnosticSettingsName": "SampleDiagSetting", | ||
"api-version": "2018-06-01-preview", | ||
"diagnosticSettings": { | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"osType": "Windows", | ||
"dataSources": [ | ||
{ | ||
"kind": "PerformanceCounter", | ||
"configuration": { | ||
"perfCounters": [ | ||
{ | ||
"name": "\\Process(_Total)\\%Processor Time", | ||
"samplingPeriod": "PT1M" | ||
}, | ||
{ | ||
"name": "\\Process(_Total)\\Working Set", | ||
"samplingPeriod": "PT1M" | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't you need the details for the kind? The workspace resource ID at least? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not for this private preview. Remember - multi-homing is not supported. Workspace resource id would be passed by extension |
||
} | ||
] | ||
}, | ||
{ | ||
"kind": "ETWProviders", | ||
"configuration": { | ||
"providers": [ | ||
{ | ||
"name": "AuditLog", | ||
"id": 1, | ||
"filter": "filter exp" | ||
}, | ||
{ | ||
"name": "TraceLog", | ||
"id": 2 | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "WindowsEventLogs", | ||
"configuration": { | ||
"eventLogs": [ | ||
{ | ||
"logName": "Application", | ||
"filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" | ||
|
||
}, | ||
{ | ||
"logName": "Application", | ||
"filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" | ||
} | ||
|
||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
} | ||
|
||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagSetting", | ||
"name": "productionMachineSetting", | ||
"type": "Microsoft.Insights/guestDiagnosticSettings", | ||
"location": "West US", | ||
"tags": {}, | ||
"properties": { | ||
"osType": "Windows", | ||
"dataSources": [ | ||
{ | ||
"kind": "PerformanceCounter", | ||
"configuration": { | ||
"perfCounters": [ | ||
{ | ||
"name": "\\Process(_Total)\\%Processor Time", | ||
"samplingPeriod": "PT1M" | ||
}, | ||
{ | ||
"name": "\\Process(_Total)\\Working Set", | ||
"samplingPeriod": "PT1M" | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagSetting", | ||
"name": "SampleDiagSetting", | ||
"type": "Microsoft.Insights/guestDiagnosticSettings", | ||
"location": "West US", | ||
"tags": {}, | ||
"properties": { | ||
"osType": "Windows", | ||
"dataSources": [ | ||
{ | ||
"kind": "PerformanceCounter", | ||
"configuration": { | ||
"perfCounters": [ | ||
{ | ||
"name": "\\Process(_Total)\\%Processor Time", | ||
"samplingPeriod": "PT1M" | ||
}, | ||
{ | ||
"name": "\\Process(_Total)\\Working Set", | ||
"samplingPeriod": "PT1M" | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri":"subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", | ||
"associationName": "healthSystemMachineConfigAssociation", | ||
"api-version": "2018-06-01-preview", | ||
"diagnosticSettingsAssociation": { | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", | ||
"type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", | ||
"name": "healthSystemMachineConfigAssociation", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", | ||
"type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", | ||
"name": "healthSystemMachineConfigAssociation", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri":"subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", | ||
"associationName": "healthSystemMachineConfigAssociation", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": null | ||
}, | ||
"204": { | ||
"headers": {}, | ||
"body": null | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-ResourceGroup", | ||
"diagnosticSettingsName": "productionMachineSetting", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/productionMachineSetting", | ||
"name": "productionMachineSetting", | ||
"type": "Microsoft.Insights/guestDiagnosticSettings", | ||
"location": "West US", | ||
"tags": {}, | ||
"properties": { | ||
"osType": "windows", | ||
"dataSources": [ | ||
{ | ||
"kind": "PerformanceCounter", | ||
"configuration": { | ||
"perfCounters": [ | ||
{ | ||
"name": "\\Process(_Total)\\%Processor Time", | ||
"samplingPeriod": "PT1M" | ||
}, | ||
{ | ||
"name": "\\Process(_Total)\\Working Set", | ||
"samplingPeriod": "PT1M" | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "ETWProviders", | ||
"configuration": { | ||
"providers": [ | ||
{ | ||
"name": "AuditLog", | ||
"id": 1, | ||
"filter": "filter exp" | ||
}, | ||
{ | ||
"name": "TraceLog", | ||
"id": 2 | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "WindowsEventLogs", | ||
"configuration": { | ||
"eventLogs": [ | ||
{ | ||
"logName": "Application", | ||
"filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" | ||
|
||
}, | ||
{ | ||
"logName": "Application", | ||
"filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" | ||
} | ||
|
||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
} | ||
|
||
] | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/productionMachineSetting", | ||
"name": "productionMachineSetting", | ||
"type": "Microsoft.Insights/guestDiagnosticSettings", | ||
"location": "West US", | ||
"tags": {}, | ||
"properties": { | ||
"osType": "windows", | ||
"dataSources": [ | ||
{ | ||
"kind": "PerformanceCounter", | ||
"configuration": { | ||
"perfCounters": [ | ||
{ | ||
"name": "\\Process(_Total)\\%Processor Time", | ||
"samplingPeriod": "PT1M" | ||
}, | ||
{ | ||
"name": "\\Process(_Total)\\Working Set", | ||
"samplingPeriod": "PT1M" | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "ETWProviders", | ||
"configuration": { | ||
"providers": [ | ||
{ | ||
"name": "AuditLog", | ||
"id": 1, | ||
"filter": "filter exp" | ||
}, | ||
{ | ||
"name": "TraceLog", | ||
"id": 2 | ||
} | ||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "WindowsEventLogs", | ||
"configuration": { | ||
"eventLogs": [ | ||
{ | ||
"logName": "Application", | ||
"filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" | ||
|
||
}, | ||
{ | ||
"logName": "Application", | ||
"filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" | ||
} | ||
|
||
] | ||
}, | ||
"sinks": [ | ||
{ | ||
"kind": "LogAnalytics" | ||
} | ||
] | ||
} | ||
|
||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: instead of SampleDiagSetting, use "productionMachineSetting" , which is more like a real customer scenario (one setting for all production machines)