C# Class CogMon.Services.EventStats.SimpleEventAggregator

EventAggregator This class manages MongoDB event aggregation using map-reduce.
Inheritance: IEventAggregator
Mostrar archivo Open project: lafar6502/cogmon

Public Methods

Method Description
AddEvent ( Lib dr ) : void
AddEvent ( MEvent mev, string collection ) : void
AddEvent ( string id, System.DateTime ts, double>.Dictionary values ) : void
AddEvent ( string seriesId, System.DateTime tstamp, IEnumerable values ) : void
GetDataSeries ( string seriesId, System.DateTime start, System.DateTime end, string step ) : object
GetDataSeriesInfo ( string seriesId ) : DataSeries
GetTimeSeries ( string seriesId, System.DateTime start, System.DateTime end, string step ) : TimeSeriesData
RunAggregation ( string id ) : void

Private Methods

Method Description
CalcDefaultStep ( System.TimeSpan ts, DataSeries ds ) : char

M - month D - day H - hour A - 5-minutes

FormatDatePartForStep ( System.DateTime dt, char step ) : string
FormatLabelForTimestamp ( System.DateTime dt, char step ) : string
GetKey ( string seriesId, char step, System.DateTime dt ) : string
Increment ( System.DateTime dt, char step, int steps ) : System.DateTime
ParseDateTimeFromAggId ( string id ) : System.DateTime
RoundToStepBoundary ( System.DateTime dt, char step, bool upper ) : System.DateTime

Method Details

AddEvent() public method

public AddEvent ( Lib dr ) : void
dr Lib
return void

AddEvent() public method

public AddEvent ( MEvent mev, string collection ) : void
mev CogMon.Lib.DataSeries.MEvent
collection string
return void

AddEvent() public method

public AddEvent ( string id, System.DateTime ts, double>.Dictionary values ) : void
id string
ts System.DateTime
values double>.Dictionary
return void

AddEvent() public method

public AddEvent ( string seriesId, System.DateTime tstamp, IEnumerable values ) : void
seriesId string
tstamp System.DateTime
values IEnumerable
return void

GetDataSeries() public method

public GetDataSeries ( string seriesId, System.DateTime start, System.DateTime end, string step ) : object
seriesId string
start System.DateTime
end System.DateTime
step string
return object

GetDataSeriesInfo() public method

public GetDataSeriesInfo ( string seriesId ) : DataSeries
seriesId string
return DataSeries

GetTimeSeries() public method

public GetTimeSeries ( string seriesId, System.DateTime start, System.DateTime end, string step ) : TimeSeriesData
seriesId string
start System.DateTime
end System.DateTime
step string
return CogMon.Lib.DataSeries.TimeSeriesData

RunAggregation() public method

public RunAggregation ( string id ) : void
id string
return void