Share via


Query per la tabella ASCDeviceEvents

Errori di autenticazione e attestazione del dispositivo Azure Sphere

Elenco degli errori di autenticazione e attestazione dei dispositivi di Azure Sphere per l'ultima settimana, ordinati in base al tempo.

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

Sequenza temporale degli eventi del dispositivo Azure Sphere

Sequenza temporale ordinata di tutti gli eventi generati da un dispositivo Azure Sphere durante l'ultima settimana, per monitorare e risolvere eventuali errori imprevisti.

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

Diagramma di tempo degli eventi heartbeat del dispositivo Azure Sphere

Un grafico temporale di tutti gli eventi di generazione dei certificati avviati dai dispositivi Azure Sphere nell'ultima settimana, per monitorare continuamente l'integrità dei dispositivi e visualizzare le tendenze.

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

Dispositivi Azure Sphere non aggiornati al sistema operativo più recente

Elenco dei dispositivi Azure Sphere che non sono stati aggiornati alla versione più recente del sistema operativo nell'ultima settimana.

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

Riepilogo degli eventi di telemetria dei dispositivi di Azure Sphere

Un grafico a torta che riepiloga la condivisione di ognuna delle categorie di eventi generate dai dispositivi Azure Sphere nell'ultima settimana, per monitorare l'integrità complessiva del 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