Forum Discussion

Philippe_CLOUP's avatar
May 22, 2008

paramter for get_performance_graph_csv_statistics

I am trying, using visual basic 2008, to get the performance graphics in an MDI application, to create a simple page with all the perf graphs on a big-ip box.

After initializing the iControl connection to the big-ip, and getting all the performance_reports, i am trying to get the datas for each graph.

when calling the function

SystemStatistics.get_performance_graph_csv_statistics
, i have the following message in the Error List:

Value of type 'iControl.SystemStatisticsPerformanceStatisticQuery' cannot be converted to '1-dimensional array of iControl.SystemStatisticsPerformanceStatisticQuery'.

The variable i am trying to pass to the function is as follow:

Dim Query As iControl.SystemStatisticsPerformanceStatisticQuery 
             Query.object_name = "CPU0" 
             Query.start_time = 0 
             Query.end_time = 0 
             Query.interval = 0 
             Query.maximum_rows = 0 
             m_inerfaces.SystemStatistics.get_performance_graph_csv_statistics(Query) 
 

Any idea.

I think i am wrong in the type of "Query" variable.

Thanks.

2 Replies

  • i'd try something like this:

     

     

    Warning this is assumption based on old VB code i have, i'm really bad with this:

     

     

    Dim Query As iControl.SystemStatisticsPerformanceStatisticQuery

     

    Query.object_name = "CPU0"

     

    Query.start_time = 0

     

    Query.end_time = 0

     

    Query.interval = 0

     

    Query.maximum_rows = 0

     

    m_inerfaces.SystemStatistics.get_performance_graph_csv_statistics(Query)

     

     

    change it to:

     

     

    Dim Query(1) As iControl.SystemStatisticsPerformanceStatisticQuery

     

    Query(0).object_name = "CPU0"

     

    Query(0).start_time = 0

     

    Query(0).end_time = 0

     

    Query(0).interval = 0

     

    Query(0).maximum_rows = 0

     

    m_inerfaces.SystemStatistics.get_performance_graph_csv_statistics(Query)

     

  • That's likely how I would do it as well. You need to pass an array. For more examples, look in the SDK under the VB samples. I can't remember if this method is covered, but others like it are.

     

     

    -Joe