Ejemplo n.º 1
0
        async Task RunForWebRtcNativeLogMessages(
            IEnumerableAsync <CDL.Message[]> input,
            string outputFileName,
            CancellationToken cancellation,
            ICodepathTracker templatesTracker,
            XAttribute contentsEtagAttr
            )
        {
            timeSeriesTypesAccess.CheckForCustomConfigUpdate();

            ICombinedParser parser = new TimeSeriesCombinedParser(timeSeriesTypesAccess.GetMetadataTypes());

            await parser.FeedLogMessages(input);

            foreach (var ts in parser.GetParsedTimeSeries())
            {
                ts.DataPoints = Analytics.TimeSeries.Filters.RemoveRepeatedValues.Filter(ts.DataPoints).ToList();
            }

            TimeSeriesPostprocessorOutput.SerializePostprocessorOutput(
                parser.GetParsedTimeSeries(),
                parser.GetParsedEvents(),
                outputFileName,
                timeSeriesTypesAccess);
        }
Ejemplo n.º 2
0
        async Task RunForWebRtcInternalsDump(
            IEnumerableAsync <DMP.Message[]> input,
            string outputFileName,
            CancellationToken cancellation,
            ICodepathTracker templatesTracker,
            XAttribute contentsEtagAttr
            )
        {
            timeSeriesTypesAccess.CheckForCustomConfigUpdate();

            ICombinedParser parser = new TimeSeriesCombinedParser(timeSeriesTypesAccess.GetMetadataTypes());

            await parser.FeedLogMessages(input, m => m.ObjectId, m => m.Text);

            TimeSeriesPostprocessorOutput.SerializePostprocessorOutput(
                parser.GetParsedTimeSeries(),
                parser.GetParsedEvents(),
                outputFileName,
                timeSeriesTypesAccess);
        }
Ejemplo n.º 3
0
        async Task RunForSymphonyRtc(
            IEnumerableAsync <Sym.Message[]> input,
            string outputFileName,
            CancellationToken cancellation,
            ICodepathTracker templatesTracker,
            XAttribute contentsEtagAttr
            )
        {
            timeSeriesTypesAccess.CheckForCustomConfigUpdate();

            ICombinedParser parser = new TimeSeriesCombinedParser(timeSeriesTypesAccess.GetMetadataTypes());

            await parser.FeedLogMessages(input, m => m.Text, m => string.Format("{0}.{1}", m.Logger, m.Text));

            TimeSeriesPostprocessorOutput.SerializePostprocessorOutput(
                parser.GetParsedTimeSeries(),
                parser.GetParsedEvents(),
                outputFileName,
                timeSeriesTypesAccess);
        }