Class BuiltInMetrics
The metrics every Typhon server can publish (W25), at reserved indices 0–31 under the reserved typhon. prefix. Durations travel in milliseconds as
f16: microseconds would overflow a half at 65 ms.
public static class BuiltInMetrics
- Inheritance
-
BuiltInMetrics
- Inherited Members
Fields
ArchetypeEntities
Entities per replicated archetype; its labels are the archetype names, in index order.
public const string ArchetypeEntities = "typhon.archetype.entities"
Field Value
SystemMean
Per-system mean duration; its labels are the system names, in schedule order.
public const string SystemMean = "typhon.system.mean"
Field Value
Properties
Count
The number of built-in metrics defined today.
public static int Count { get; }
Property Value
Methods
Create(int, string[])
Builds the definition of the built-in metric at idx.
public static CatalogMetric Create(int idx, string[] labels = null)
Parameters
idxintThe reserved index, in [0, Count).
labelsstring[]The labels, for SystemMean and ArchetypeEntities; otherwise null.
Returns
- CatalogMetric
The metric definition.
HasShape(int, CatalogMetric)
Whether metric is shaped exactly as Create(int, string[]) builds the built-in at idx.
public static bool HasShape(int idx, CatalogMetric metric)
Parameters
idxintThe built-in's reserved index.
metricCatalogMetricA metric carrying that built-in's name.
Returns
ReservedIdx(string)
The reserved index of a built-in metric, or −1 when name is not one.
public static int ReservedIdx(string name)
Parameters
namestringThe metric name.
Returns
- int
The reserved index, or −1.