Example #1
0
            public TimeSeriesResponseType GetValues(string SiteNumber,
                                                    string Variable,
                                                    string StartDate,
                                                    string EndDate)
            {
                Stopwatch   timer = System.Diagnostics.Stopwatch.StartNew();
                GetValuesOD obj   = new GetValuesOD();

                // queryLog.Info("GetValues|" + SiteNumber + "|" + Variable + "|" + StartDate + "|" + EndDate);
                //String network,method,location, variable, start, end, , processing time,count
                queryLog2.LogValuesStart(Logging.Methods.GetValues, // method
                                         SiteNumber,                //locaiton
                                         Variable,                  //variable
                                         StartDate,                 // startdate

                                         EndDate,                   //enddate
                                         appContext.Request.UserHostName);

                TimeSeriesResponseType resp = obj.getValues(SiteNumber, Variable, StartDate, EndDate);

                queryLog2.LogValuesEnd(Logging.Methods.GetValues,
                                       SiteNumber,                                //locaiton
                                       Variable,                                  //variable
                                       StartDate,                                 // startdate
                                       EndDate,                                   //enddate
                                       timer.ElapsedMilliseconds,                 // processing time
                                                                                  // assume one for now
                                       resp.timeSeries[0].values[0].value.Length, // count
                                       appContext.Request.UserHostName);

                return(resp);
            }
Example #2
0
            public TimeSeriesResponseType GetValuesForASite(string site, string startDate, string endDate)
            {
                {
                    Stopwatch   timer = System.Diagnostics.Stopwatch.StartNew();
                    GetValuesOD obj   = new GetValuesOD();

                    //String network,method,location, variable, start, end, , processing time,count
                    queryLog2.LogValuesStart(Logging.Methods.GetValuesForSiteObject, // method
                                             site,                                   //locaiton
                                             "ALL",                                  //variable
                                             startDate,                              // startdate
                                             endDate,                                //enddate
                                             appContext.Request.UserHostName);

                    TimeSeriesResponseType resp = obj.GetValuesForSiteVariable(site, startDate, endDate);

                    //     //String network,method,location, variable, start, end, , processing time,count
                    //     queryLog.InfoFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}",
                    //System.Configuration.ConfigurationManager.AppSettings["network"], // network
                    //"GetValues", // method
                    //SiteNumber, //locaiton
                    //Variable, //variable
                    //StartDate, // startdate
                    //StartDate, //enddate
                    //timer.ElapsedMilliseconds, // processing time
                    //resp.timeSeries.values.value.Length // count
                    //,
                    //         appContext.Request.UserHostName);
                    queryLog2.LogValuesEnd(Logging.Methods.GetValuesForSiteObject,
                                           site,                      //locaiton
                                           "ALL",                     //variable
                                           startDate,                 // startdate
                                           endDate,                   //enddate
                                           timer.ElapsedMilliseconds, // processing time
                                                                      // assume one for now
                                           -9999,                     // May need to count all.
                                           appContext.Request.UserHostName);

                    return(resp);
                }
            }
            public TimeSeriesResponseType GetValuesForASite(string site, string startDate, string endDate)
            {
                {
                    Stopwatch timer = System.Diagnostics.Stopwatch.StartNew();
                    GetValuesOD obj = new GetValuesOD();

                    //String network,method,location, variable, start, end, , processing time,count
                    queryLog2.LogValuesStart(Logging.Methods.GetValuesForSiteObject, // method
                                     site, //locaiton
                                   "ALL", //variable
                                   startDate, // startdate
                                   endDate, //enddate
                                   appContext.Request.UserHostName);

                    TimeSeriesResponseType resp = obj.GetValuesForSiteVariable(site, startDate, endDate);

                    //     //String network,method,location, variable, start, end, , processing time,count
                    //     queryLog.InfoFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}",
                    //System.Configuration.ConfigurationManager.AppSettings["network"], // network
                    //"GetValues", // method
                    //SiteNumber, //locaiton
                    //Variable, //variable
                    //StartDate, // startdate
                    //StartDate, //enddate
                    //timer.ElapsedMilliseconds, // processing time
                    //resp.timeSeries.values.value.Length // count
                    //,
                    //         appContext.Request.UserHostName);
                    queryLog2.LogValuesEnd(Logging.Methods.GetValuesForSiteObject,
                                   site, //locaiton
                                   "ALL", //variable
                                   startDate, // startdate
                                   endDate, //enddate
                                   timer.ElapsedMilliseconds, // processing time
                                            // assume one for now
                                   -9999, // May need to count all.
                                   appContext.Request.UserHostName);

                    return resp;

                }
            }
            public TimeSeriesResponseType GetValues(string SiteNumber,
                                                    string Variable,
                                                    string StartDate,
                                                    string EndDate)
            {
                Stopwatch timer = System.Diagnostics.Stopwatch.StartNew();
                GetValuesOD obj = new GetValuesOD();
                // queryLog.Info("GetValues|" + SiteNumber + "|" + Variable + "|" + StartDate + "|" + EndDate);
                //String network,method,location, variable, start, end, , processing time,count
                queryLog2.LogValuesStart(Logging.Methods.GetValues, // method
                                 SiteNumber, //locaiton
                   Variable, //variable
                   StartDate, // startdate
                   EndDate, //enddate
                   appContext.Request.UserHostName);

                TimeSeriesResponseType resp = obj.getValues(SiteNumber, Variable, StartDate, EndDate);

                queryLog2.LogValuesEnd(Logging.Methods.GetValues,
                 SiteNumber, //locaiton
                   Variable, //variable
                   StartDate, // startdate
                   EndDate, //enddate
                   timer.ElapsedMilliseconds, // processing time
                    // assume one for now
                   resp.timeSeries[0].values[0].value.Length, // count
                    appContext.Request.UserHostName);

                return resp;
            }