Запросы для таблицы ASCDeviceEvents

Сбои проверки подлинности и аттестации устройств Azure Sphere

Список сбоев проверки подлинности и аттестации устройств Azure Sphere за последнюю неделю, отсортированный по времени.

ASCDeviceEvents
| where OperationName == "DeviceCertificateEvent" and
        Properties.EventType == "DeviceAttestationFailure" or Properties.EventType == "DeviceCertificateEvent" and
        ResultType == "Failure" // Filter by time by adding " | where TimeGenerated > ago(7d) " for last 7 days of data or using time picker in the UI
| project TimeGenerated, DeviceId, Properties, ResultDescription, Location
| sort by TimeGenerated desc
| limit 100

События устройств Azure Sphere временная шкала

Отсортированный временная шкала всех событий, созданных устройством Azure Sphere за последнюю неделю, для отслеживания и устранения непредвиденных сбоев.

ASCDeviceEvents
| where OperationName == "DeviceCertificateEvent" or Properties.DeviceTelemetryEventCategory == "AppCrash" // Remove/Add filters to see all/specific events. Filter data by Device by adding " | where DeviceId == "Your Device ID" " 
| project TimeGenerated, OperationName, ResultType, ResultDescription, Properties, Location
| sort by TimeGenerated desc
| limit 100

Диаграмма времени событий пульса устройства Azure Sphere

График всех событий создания сертификатов, инициированных устройствами Azure Sphere за последнюю неделю, для непрерывного мониторинга работоспособности устройств и отслеживания тенденций.

let Interval = timespan(1d); // Interval for the Chart 
ASCDeviceEvents
| where OperationName == "DeviceCertificateEvent" and 
        Properties.EventType == "DeviceCertificatesGenerate" and 
        ResultType == "Success"
| summarize Device_Heartbeat_Events=count() by bin(TimeGenerated, Interval)
| render timechart

Устройства Azure Sphere не обновлены до последней версии ОС

Список устройств Azure Sphere, которые не были обновлены до последней версии ОС за последнюю неделю.

ASCDeviceEvents
| where OperationName == "DeviceUpdateEvent" and  
        todouble(Properties.InstalledOSVersion) != todouble(Properties.TargetedOSVersion) // Filter by time by adding " | where TimeGenerated > ago(7d) " for last 7 days of data or using time picker in the UI
| summarize by DeviceId
| limit 100

Сводка по событиям телеметрии устройства Azure Sphere

Круговая диаграмма с общими сведениями о каждой категории событий, созданных устройствами Azure Sphere за последнюю неделю, для отслеживания общей работоспособности устройства.

ASCDeviceEvents
| where OperationName == "DeviceTelemetryEvent" // Filter by time by adding " | where TimeGenerated > ago(7d) " for last 7 days of data or using time picker in the UI
| summarize count() by tostring(Properties.DeviceTelemetryEventCategory)
| render piechart