Skip to content

Commit

Permalink
Fix heartbeat query
Browse files Browse the repository at this point in the history
  • Loading branch information
judyer28 committed Dec 5, 2024
1 parent 59300fc commit 3c121f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/HybridCompute/machines/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
numberOfEvaluationPeriods: 1
minFailingPeriodsToAlert: 1
query: 'Heartbeat
| where type == "microsoft.hybridcompute/machines"
| where _ResourceId has "Microsoft.HybridCompute/machines"
| summarize TimeGenerated=max(TimeGenerated) by Computer, _ResourceId
| extend Duration = datetime_diff("minute",now(),TimeGenerated)
| summarize AggregatedValue = min(Duration) by Computer, bin(TimeGenerated,5m), _ResourceId'
Expand Down

0 comments on commit 3c121f4

Please sign in to comment.