public static Metric Create(string name, double value, double? decayFactor = null) { return Defined(value) ? new Metric(name, value, CreateEWMA(value, decayFactor)) : null; }
/// <summary> /// Gets the total amount of system memory. Creates a new instance each time. /// </summary> public Metric SystemMaxMemory() { return(Metric.Create(StandardMetrics.SystemMemoryMax, IsRunningOnMono ? _monoSystemMaxMemory.RawValue : GetVbTotalPhysicalMemory())); }