Condividi tramite


Query per la tabella MicrosoftDataShareSentSnapshotLog

Per informazioni sull'uso di queste query nella portale di Azure, vedere Esercitazione su Log Analytics. Per l'API REST, vedere Query.

Elencare gli snapshot inviati per durata

Elenco degli snapshot ordinati in base al tempo di durata negli ultimi 7 giorni.

MicrosoftDataShareSentSnapshotLog
| where TimeGenerated > ago(7d) 
| where StartTime != "" and EndTime  != "" 
| project StartTime , EndTime , DurationSeconds =(todatetime(EndTime)-todatetime(StartTime))/1s , ResourceName = split(_ResourceId,"/accounts/",1) 
| sort by DurationSeconds desc nulls last 

Conteggio snapshot inviati non riusciti

Numero totale di snapshot con failover negli ultimi 7 giorni.

MicrosoftDataShareSentSnapshotLog
| where TimeGenerated > ago(7d)  
| where Status == "Failed" 
| summarize count() by _ResourceId 

Errori frequenti negli snapshot inviati

Elencare i primi 10 errori negli ultimi 7 giorni.

MicrosoftDataShareSentSnapshotLog 
| where TimeGenerated > ago(7d)  
| where Status == "Failed" 
| summarize count() by _ResourceId, DataSetType// Counting failed logs per datasettype
| top 10 by count_ desc nulls last

Grafico degli snapshot inviati quotidianamente

Grafico dell'ora del numero di snapshot recenti, operazione riuscita di Visual Studio non riuscita.

//Succeeded VS Failed
MicrosoftDataShareSentSnapshotLog 
| where TimeGenerated > ago(30d)  
| summarize count() by bin(TimeGenerated, 1d), Status, _ResourceId // Aggregating by day //Click "Table" to see resource's name.
| render timechart