共用方式為


Microsoft.Extensions.Diagnostics.ResourceMonitoring Namespace

Classes

ResourceMonitoringBuilderExtensions

Lets you configure and register resource monitoring components.

ResourceMonitoringOptions

Options to control resource monitoring behavior.

Structs

ResourceUtilization

Captures resource usage at a given point in time.

Snapshot

A snapshot of CPU and memory usage taken periodically over time.

SystemResources

Provides information about the CPU and memory limits defined by the underlying system.

Interfaces

IResourceMonitor

Provides the ability to sample the system for current resource utilization.

IResourceMonitorBuilder

Helps building the resource monitoring infrastructure.

IResourceUtilizationPublisher

Defines the contract for a resource utilization publisher that gets invoked whenever resource utilization is computed.

ISnapshotProvider

An interface to be implemented by a provider that represents an underlying system and gets resources data about it.