Share via


Consultas para a tabela ASCDeviceEvents

Falhas de autenticação e atestado de dispositivos do Azure Sphere

Uma lista de falhas de autenticação e atestado de dispositivos do Azure Sphere para a última semana, ordenadas por hora.

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

Linha cronológica de eventos de dispositivos do Azure Sphere

Uma linha cronológica ordenada de todos os eventos gerados por um dispositivo do Azure Sphere durante a última semana, para monitorizar e resolver quaisquer falhas inesperadas.

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

Timechart de eventos de heartbeat de dispositivos do Azure Sphere

Um gráfico de tempo de todos os eventos de geração de certificados iniciados por dispositivos do Azure Sphere durante a última semana, para monitorizar continuamente o estado de funcionamento do dispositivo e ver tendências.

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

Dispositivos do Azure Sphere não atualizados para o SO mais recente

Uma lista de dispositivos do Azure Sphere que não foram atualizados para a versão mais recente do SO ao longo da última semana.

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

Resumo dos eventos de telemetria de dispositivos do Azure Sphere

Um gráfico circular que resume a partilha de cada uma das categorias de eventos geradas pelos Dispositivos do Azure Sphere ao longo da última semana, para monitorizar o estado de funcionamento geral do dispositivo.

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