語言

ResourceMonitoringOptions.MemoryConsumptionRefreshInterval 屬性

定義

警告

This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.

取得或設定用於度量報告 "dotnet.process.memory.virtual.utilization" 的刷新值的預設區間。

public:
 property TimeSpan MemoryConsumptionRefreshInterval { TimeSpan get(); void set(TimeSpan value); };
[System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public TimeSpan MemoryConsumptionRefreshInterval { get; set; }
public TimeSpan MemoryConsumptionRefreshInterval { get; set; }
[<System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
member this.MemoryConsumptionRefreshInterval : TimeSpan with get, set
member this.MemoryConsumptionRefreshInterval : TimeSpan with get, set
Public Property MemoryConsumptionRefreshInterval As TimeSpan

屬性值

預設值為 5 秒。

屬性

備註

此特性僅限於 Linux 系統,對其他作業系統不影響。 這是指標值從作業系統擷取資源利用率資料的時間區間。

適用於