public static DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.OBAggregatorRequest GetAggregations(string interval) { using (new zAppDev.DotNet.Framework.Profiling.Profiler("MakeRequest", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "GetAggregations")) { DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.OBAggregatorRequest aggs = new DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.OBAggregatorRequest(); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.TermAggregatorRoot top_service = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetTermQuery("Service.keyword", 5, true); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.TermAggregatorRoot top_operation = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetTermQuery("Operation.keyword", 5, true); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.TermAggregatorRoot from_ip = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetTermQuery("IP.keyword", 5, true); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.TermAggregatorRoot verb_type = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetTermQuery("RequestMethod.keyword", 5, true); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.TermAggregatorRoot status = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetTermQuery("StatusCode", 5, true); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.StatsAggregatorRoot elapsed_msecs = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetStatQuery("ElapsedMsecs"); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.HistogramRoot req_over_time = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetHistogramQuery("Timestamp", interval); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.BucketHistogramRoot req_latency = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetBucketHistogramQuery("ElapsedMsecs", 2000); aggs.TopService = top_service; aggs.TopOperation = top_operation; aggs.FromIP = from_ip; aggs.VerbType = verb_type; aggs.Status = status; aggs.ElapsedMsecs = elapsed_msecs; aggs.RequestOverTime = req_over_time; aggs.RequestLatency = req_latency; aggs.Errors = DSS1_RetailerDriverStockOptimisation.BO.MakeRequestExtensions.GetErrorFilter(); return(aggs); } }
public static DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.BucketHistogramRoot GetBucketHistogramQuery(string field, int?interval) { using (new zAppDev.DotNet.Framework.Profiling.Profiler("MakeRequest", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "GetBucketHistogramQuery")) { DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.BucketHistogramRoot q = new DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.BucketHistogramRoot(); DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.BucketHistogram hist = new DSS1_RetailerDriverStockOptimisation.ExternalStructs.Elasticsearch.BucketHistogram(); q.Histogram = hist; hist.Field = field; hist.Interval = interval; return(q); } }