Class NodeSnapshot
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
DiskIO
Disk I/O metrics, if declared by this node.
public DiskIOMetrics? DiskIO { get; init; }
Property Value
Duration
Named duration metrics, if declared by this node. Empty array if no duration metrics.
public IReadOnlyList<DurationMetric> Duration { get; init; }
Property Value
Id
Node identifier (e.g., "PageCache").
public string Id { get; init; }
Property Value
Memory
Memory allocation metrics, if declared by this node.
public MemoryMetrics? Memory { get; init; }
Property Value
Path
Full path in the tree (e.g., "Storage/PageCache").
public string Path { get; init; }
Property Value
Throughput
Named throughput counters, if declared by this node. Empty array if no throughput metrics.
public IReadOnlyList<ThroughputMetric> Throughput { get; init; }
Property Value
Type
Node type from ResourceType enum.
public ResourceType Type { get; init; }