StatisticsDaemon Class

Namespace:
Weavy.Core.Plugins
Assembly:
Weavy.Core.dll

A daemon that creates data points for displaying usage statistics.

[Guid("7EC149E3-331E-446F-AF2D-3C9D469B0D19")]
[Daemon(Icon = "chart-bar", Name = "Statistics", Description = "Periodically samples the system for usage statistics.", Schedule = "0 4 * * *")]
public class StatisticsDaemon : Daemon, IDaemon, IFunction, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ICloneable, IValidatableObject
Inheritance:
System.Object → ExpandoPluginFunctionDaemonStatisticsDaemon
Attributes:
System.Runtime.InteropServices.GuidAttribute, DaemonAttribute
Implements:
IDaemon, IFunction, IPlugin, IExtension, IExpando

Constructors

StatisticsDaemon()

Methods

Run(CancellationToken, String[]) Sample the system and create an entry in the statistics table.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.