API Referenceglobal
public sealed class Sandbox.Services.Stats.GlobalStats
Methods
Showing 5 methods
public Sandbox.Services.Stats.GlobalStats Copy()
Make a copy of this class. Allows you to store the stats from a point in time.
public Sandbox.Services.Stats.GlobalStat Get(string name)
Get a stat by name. Will return an empty stat if not found
public virtual sealed System.Collections.Generic.IEnumerator`1<Sandbox.Services.Stats.GlobalStat> GetEnumerator()
public System.Threading.Tasks.Task Refresh()
Refresh these global stats - grab the latest values
public bool TryGet(string name, Sandbox.Services.Stats.GlobalStat stat)
Get a stat by name, returns true if found
No results match this filter.
Properties
Showing 3 properties
public bool Sandbox.Services.Stats.GlobalStats.IsRefreshing { get; set; }
True if we're currently fetching new stats
public Sandbox.Services.Stats.GlobalStat Sandbox.Services.Stats.GlobalStats.Item { get; set; }
public System.DateTime Sandbox.Services.Stats.GlobalStats.LastRefresh { get; set; }
The UTC datetime when we last fetched new stats
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Services.Stats.GlobalStats |