I would do something like this
Group-Object-Property {[int]($_.Timestamp.Hour/2)}
But note that if your metrics span over more than 1 day, this will place metrics from different days, but from the same 2-hour interval, in the same group.
I would do something like this
Group-Object-Property {[int]($_.Timestamp.Hour/2)}
But note that if your metrics span over more than 1 day, this will place metrics from different days, but from the same 2-hour interval, in the same group.