Table of Contents

Class NodeSnapshot

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Snapshot of a single resource node's metrics at a point in time.

public sealed class NodeSnapshot
Inheritance
NodeSnapshot
Inherited Members

Remarks

Not all nodes declare all metric kinds. A pure grouping node has no metrics at all. Check nullable properties before accessing values.

var storageNode = snapshot.Nodes["Storage"];
// storageNode.Memory is null (grouping only)

var pageCacheNode = snapshot.Nodes["Storage/PageCache"];
// pageCacheNode.Memory has value
// pageCacheNode.Capacity has value

Constructors

NodeSnapshot()

public NodeSnapshot()

Properties

Capacity

Capacity utilization metrics, if declared by this node.

public CapacityMetrics? Capacity { get; init; }

Property Value

CapacityMetrics?

DiskIO

Disk I/O metrics, if declared by this node.

public DiskIOMetrics? DiskIO { get; init; }

Property Value

DiskIOMetrics?

Duration

Named duration metrics, if declared by this node. Empty array if no duration metrics.

public IReadOnlyList<DurationMetric> Duration { get; init; }

Property Value

IReadOnlyList<DurationMetric>

Id

Node identifier (e.g., "PageCache").

public string Id { get; init; }

Property Value

string

Memory

Memory allocation metrics, if declared by this node.

public MemoryMetrics? Memory { get; init; }

Property Value

MemoryMetrics?

Path

Full path in the tree (e.g., "Storage/PageCache").

public string Path { get; init; }

Property Value

string

Throughput

Named throughput counters, if declared by this node. Empty array if no throughput metrics.

public IReadOnlyList<ThroughputMetric> Throughput { get; init; }

Property Value

IReadOnlyList<ThroughputMetric>

Type

Node type from ResourceType enum.

public ResourceType Type { get; init; }

Property Value

ResourceType