Skip to content
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

Update swagger for Azure Monitor logs query #14514

Merged
merged 24 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
{
"title": "Get Metadata",
"description": "A metadata request that returns the workspace schema and other information",
"parameters": {
"workspaceId": "b438b4f6-912a-46d5-9cb1-b44069212abc",
"apiVersion": "2018-04-20"
},
"responses": {
"200": {
"body": {
"tables": [
{
"id": "ADAssessmentRecommendation",
"name": "ADAssessmentRecommendation",
"description": "Recommendations generated by AD assessments that are started through a scheduled task. When you schedule the assessment it runs by default every 7 days and upload the data into Azure Log Analytics",
"timespanColumn": "TimeGenerated",
"columns": [
{
"name": "SourceSystem",
"type": "string",
"isPreferredFacet": true
},
{
"name": "AssessmentId",
"type": "string",
"isPreferredFacet": true
},
{
"name": "RecommendationId",
"type": "string",
"isPreferredFacet": true
},
{
"name": "Recommendation",
"type": "string",
"isPreferredFacet": true
},
{
"name": "Description",
"type": "string"
},
{
"name": "RecommendationResult",
"type": "string",
"isPreferredFacet": true
},
{
"name": "TimeGenerated",
"type": "datetime"
},
{
"name": "FocusAreaId",
"type": "string",
"isPreferredFacet": true
},
{
"name": "FocusArea",
"type": "string",
"isPreferredFacet": true
},
{
"name": "ActionAreaId",
"type": "string",
"isPreferredFacet": true
},
{
"name": "ActionArea",
"type": "string",
"isPreferredFacet": true
},
{
"name": "RecommendationWeight",
"type": "real"
},
{
"name": "Computer",
"type": "string",
"isPreferredFacet": true
},
{
"name": "AffectedObjectType",
"type": "string",
"isPreferredFacet": true
},
{
"name": "AffectedObjectName",
"type": "string",
"isPreferredFacet": true
},
{
"name": "Forest",
"type": "string",
"isPreferredFacet": true
},
{
"name": "Domain",
"type": "string",
"isPreferredFacet": true
},
{
"name": "DomainController",
"type": "string",
"isPreferredFacet": true
},
{
"name": "Technology",
"type": "string"
},
{
"name": "CustomData",
"type": "string"
},
{
"name": "TargetCount",
"type": "int"
},
{
"name": "IsRollup",
"type": "bool",
"isPreferredFacet": true
},
{
"name": "IsCopied",
"type": "bool",
"isPreferredFacet": true
},
{
"name": "RecommendationPeriod",
"type": "string",
"isPreferredFacet": true
},
{
"name": "Type",
"type": "string"
},
{
"name": "_ResourceId",
"type": "string"
}
],
"related": {
"categories": [
"workloads"
],
"solutions": [
"ADAssessment"
],
"resourceTypes": [
"microsoft.compute/virtualmachines"
]
}
},
{
"id": "custom_CL",
"name": "custom_CL",
"timespanColumn": "TimeGenerated",
"columns": [
{
"name": "SourceSystem",
"type": "string",
"isPreferredFacet": true
},
{
"name": "ManagementGroupName",
"type": "string",
"isPreferredFacet": true
},
{
"name": "TimeGenerated",
"type": "datetime",
"isPreferredFacet": true
},
{
"name": "Computer",
"type": "string",
"isPreferredFacet": true
},
{
"name": "RawData",
"type": "string"
},
{
"name": "Type",
"type": "string"
},
{
"name": "_ResourceId",
"type": "string"
}
],
"related": {
"workspaces": [
"b438b4f6-912a-46d5-9cb1-b44069212abc"
]
}
}
],
"solutions": [
{
"id": "ADAssessment",
"name": "ADAssessment",
"displayName": "Active Directory Health Check",
"description": "Assess the risk and health of Active Directory environments.",
"related": {
"tables": [
"ADAssessmentRecommendation"
],
"functions": [
"dwad"
],
"workspaces": [
"b438b4f6-912a-46d5-9cb1-b44069212abc"
]
}
}
],
"functions": [
{
"id": "dwad",
"name": "dwad",
"displayName": "dasd",
"body": "Heartbeat\r\n| where ResourceGroup != \"rg-SAP-DEVQA-005\" and ResourceGroup != \"rg-SAP-DEVQA-006\" and Computer contains \"\"\r\n| limit 500000\r\n| sort by Computer asc\r\n| distinct Computer\r\n",
"related": {
"solutions": [
"ADAssessment"
],
"workspaces": [
"b438b4f6-912a-46d5-9cb1-b44069212abc"
]
}
}
],
"resourceTypes": [
{
"id": "microsoft.compute/virtualmachines",
"type": "Microsoft.Compute/VirtualMachines",
"displayName": "Virtual machines",
"related": {
"tables": [
"ADAssessmentRecommendation"
]
}
}
],
"workspaces": [
{
"id": "b438b4f6-912a-46d5-9cb1-b44069212abc",
"resourceId": "/subscriptions/e4272367-5645-4c4e-9c67-3b74b59a6982/resourceGroups/contosoazurehq/providers/microsoft.operationalinsights/workspaces/contosoretail-IT",
"name": "contosoretail-IT",
"region": "eastus",
"related": {
"resourceTypes": [
"microsoft.compute/virtualmachines"
],
"tables": [
"custom_CL"
],
"solutions": [
"ADAssessment"
],
"functions": [
"dwad"
]
}
}
],
"categories": [
{
"id": "workloads",
"displayName": "Workloads",
"related": {
"tables": [
"ADAssessmentRecommendation",
"ADReplicationResult",
"SQLAssessmentRecommendation",
"WorkloadMonitoringPerf"
]
}
}
]
}
}
}
}
Loading