ResourceMonitoringOptions.CpuConsumptionRefreshInterval 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.
取得或設定用於度量報告 "process.cpu.utilization" 的刷新值的預設區間。
public:
property TimeSpan CpuConsumptionRefreshInterval { 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 CpuConsumptionRefreshInterval { get; set; }
public TimeSpan CpuConsumptionRefreshInterval { 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.CpuConsumptionRefreshInterval : TimeSpan with get, set
member this.CpuConsumptionRefreshInterval : TimeSpan with get, set
Public Property CpuConsumptionRefreshInterval As TimeSpan
屬性值
預設值為 5 秒。
- 屬性
備註
此特性僅限於 Linux 系統,對其他作業系統不影響。 這是指標值從作業系統擷取資源利用率資料的時間區間。