Table of Contents

Class StatsManager

Namespace
PolarStudio
Assembly
PolarStudio.dll

This class is used to keep track of statistics of the server. A StatsManager has an interval (for example 1 minute or 5 minutes) over which the statistics are kept. For each of these intervals several numbers are stored.

public class StatsManager
Inheritance
StatsManager
Inherited Members
Extension Methods

Properties

IntervalSeconds

Returns the interval of the stats records in seconds.

public int IntervalSeconds { get; }

Property Value

int

MaxRecords

Returns the max number of records that is to be kept in this list.

public int MaxRecords { get; }

Property Value

int

Methods

GetStats()

Gets all stats records of this stats manager.

public Collection<StatsRecord> GetStats()

Returns

Collection<StatsRecord>

GetStats(DateTime)

This method returns StatsRecords starting the given pLastFinalStatsDateTimeGMT.

public Collection<StatsRecord> GetStats(DateTime pLastFinalStatsDateTimeGMT)

Parameters

pLastFinalStatsDateTimeGMT DateTime

The last (thinking backwards) UTC date time of the record to be returned.

Returns

Collection<StatsRecord>

The applicable StatsRecords