fix kql query action in logic app leverage | top 10 by timestamp desc

was using TimeGenerated which caused an error in logic app kql query.
This commit is contained in:
swiftsolves-msft 2022-07-29 14:58:08 -04:00
Родитель f24871a053
Коммит ba5b45fda0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1185,7 +1185,7 @@
},
"type": "ApiConnection",
"inputs": {
"body": "set query_datetimescope_column = \"TimeGenerated\";\nset query_datetimescope_from = datetime(@{body('Parse_JSON_2')?['Query Start Time UTC']});\nset query_datetimescope_to = datetime(@{body('Parse_JSON_2')?['Query End Time UTC']});\n@{body('Parse_JSON_2')?['Query']} | top @{variables('EventsNumber')} by TimeGenerated desc ",
"body": "set query_datetimescope_column = \"TimeGenerated\";\nset query_datetimescope_from = datetime(@{body('Parse_JSON_2')?['Query Start Time UTC']});\nset query_datetimescope_to = datetime(@{body('Parse_JSON_2')?['Query End Time UTC']});\n@{body('Parse_JSON_2')?['Query']} | top @{variables('EventsNumber')} by timestamp desc ",
"host": {
"connection": {
"name": "@parameters('$connections')['azuremonitorlogs']['connectionId']"