Accessing the DW from the SDK in SCOM2012 RRS feed

  • Question

  • Hello there.

    I'm currently trying to get some performance data from the SCOM SDK and using this code I can only get data from the operational DB (meaning last 7 days):

    ReadOnlyCollection<MonitoringPerformanceData> perfData = obj.MonObj.GetMonitoringPerformanceData(stat.MPDCriteria, TraversalDepth.Recursive);
    if (perfData.Count == 1)
       newObjStat.perfValues = perfData[0].GetValues(DateTime.Now.AddDays(-90).Date, DateTime.Now.Date);

    Unfortunately, I need data from the last 90 days, so I need to get it from the DW. So my question is, how can I get the performance data out of the DW?

    Monday, August 6, 2012 9:27 AM