-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Get-AllPerformanceData_DW.sql
- Loading branch information
1 parent
4d17122
commit 1010e61
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
select | ||
vManagedEntity.Path | ||
,Perf.vPerfdaily.DateTime | ||
,Perf.vPerfdaily.SampleCount | ||
,vPerformanceRule.ObjectName | ||
,vPerformanceRule.CounterName | ||
,vManagedEntity.Name | ||
,Perf.vPerfdaily.Averagevalue | ||
,Perf.vPerfdaily.MinValue | ||
,Perf.vPerfdaily.MaxValue | ||
,vRule.RuleDefaultName | ||
from Perf.vPerfDaily | ||
join vPerformanceRuleInstance on vPerformanceRuleInstance.PerformanceRuleInstanceRowid=Perf.vPerfDaily.PerformanceRuleInstanceRowid | ||
join vPerformanceRule on vPerformanceRule.RuleRowId=vPerformanceRuleInstance.RuleRowId | ||
join vManagedEntity on vManagedEntity.ManagedEntityRowid=Perf.vPerfDaily.ManagedEntityRowId | ||
join vRule on vRule.RuleRowId=vPerformanceRuleInstance.RuleRowId | ||
where vRule.RuleDefaultName like '%Windows Server 2012%' and | ||
Perf.vPerfDaily.Datetime between '2021-07-28' and '2021-08-05' | ||
Order by Path ASC, Perf.vPerfDaily.DateTime DESC, RuleDefaultName ASC |